/* =========================================================================
   DIGITAL RANK HOUSE - CSS
   ========================================================================= */

/* --- CSS VARIABLES --- */
:root {
  /* Default (Light)*/
  --bg-color: #ffffff;
  --surface-color: #f8fafc;
  --border-color: #e2e8f0;
  
  --text-color: #334155;
  --text-muted: #64748b;
  --heading: #0f172a;
  
  --primary: #4f46e5;      /* Indigo */
  --primary-hover: #4338ca;
  --secondary: #1e1e1e;
  --accent: #0ea5e9;       /* Sky Blue */
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Dark Mode */
.dark {
  --bg-color: #050505;     /* Very dark, almost black */
  --surface-color: #0f1115; /* Slightly lighter surface for distinction */
  --border-color: rgba(255, 255, 255, 0.08); /* Subtle borders */
  
  --text-color: #f1f5f9;   /* Off-white */
  --text-muted: #94a3b8;   /* Light slate */
  --heading: #ffffff;      /* Pure white for punch */
  
  --primary: #6366f1;      /* Brighter Indigo for dark mode */
  --primary-hover: #818cf8;
  --secondary: #f1f5f9;
  --accent: #38bdf8;       /* Brighter Sky Blue */
  
  /* Glassmorphism specifically tuned for dark mode */
  --glass-bg: rgba(15, 17, 21, 0.5); /* Semi-transparent surface color */
  --glass-border: rgba(255, 255, 255, 0.05); /* Very faint white border */
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); /* Deeper shadow */
}

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-outfit {
  font-family: 'Outfit', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Helper Classes */
.container {
  max-width: 1280px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; /* Fallback */
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Hide/Show based on theme */
.dark .dark-hidden { display: none; }
html:not(.dark) .light-hidden { display: none; }


/* --- COMPONENTS --- */

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem; /* Rounded-lg */
  transition: all 0.3s ease;
  border: 1px solid var(--primary);
  cursor: pointer;
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary);
}

.dark .btn-primary:hover {
  background-color: var(--primary-hover);
  color: #fff;
  border-color: var(--primary-hover);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem; /* Rounded-lg */
  transition: all 0.3s ease;
  border: 1px solid var(--primary);
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: #fff;
}

.dark .btn-secondary {
  color: var(--text-color);
  border-color: var(--border-color);
}
.dark .btn-secondary:hover {
  border-color: var(--text-color);
  background-color: rgba(255,255,255,0.05); /* slight fill */
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--surface-color);
  color: var(--text-color);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.icon-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* Forms */
.form-input {
  width: 100%;
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.dark .form-input:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Nav Links */
.nav-link {
  color: var(--text-color);
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
    color: var(--text-color);
    font-size: 2rem;
    transition: color 0.3s;
}
.mobile-nav-link:hover {
    color: var(--primary);
}

/* Effects */
.hover-lift {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
}
.dark .hover-lift:hover {
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5), 0 0 20px rgba(99, 102, 241, 0.1);
}

/* No Scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Specific component tweaks */
#mobile-menu {
  padding-top: 5rem;
}

.project-card {
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .project-card {
    width: 300px;
  }
}

@media (min-width: 1024px) {
  .project-card {
    width: 280px;
  }
}


/* --- ANIMATIONS --- */

.animate-fade-in-up {
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

.animate-fade-in-slow {
  animation: fadeIn 2s ease forwards;
  opacity: 0;
}

.animate-bounce-slow {
  animation: bounceSlow 3s infinite ease-in-out;
}

.animate-blob {
  animation: blob 7s infinite alternate;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

@keyframes fadeInUp {
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
      opacity: 1;
  }
}

@keyframes bounceSlow {
  0%, 100% {
      transform: translate(-50%, 0);
  }
  50% {
      transform: translate(-50%, 10px);
  }
}

@keyframes blob {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0px, 0px) scale(1); }
}


/* Reveal on Scroll (Handled by JS IntersectionObserver) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* --- TAILWIND SHIMS --- 
   (Since we are not running a build process, replicating required utilities)
*/
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.text-heading { color: var(--heading); }
.text-text-color { color: var(--text-color); }
.text-text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-white { color: #ffffff; }

.bg-bg-color { background-color: var(--bg-color); }
.bg-surface-color { background-color: var(--surface-color); }
.bg-primary { background-color: var(--primary); }
.bg-accent { background-color: var(--accent); }

.border-border-color { border-color: var(--border-color); }

.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.transition-opacity { transition-property: opacity; }
.transition-colors { transition-property: background-color, border-color, color, fill, stroke; }
.transition-transform { transition-property: transform; }
.transition-all { transition-property: all; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.bottom-10 { bottom: 2.5rem; }
.left-1\/2 { left: 50%; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.self-end { align-self: flex-end; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.min-h-screen { min-height: 100vh; }
.h-10 { height: 2.5rem; }
.w-full { width: 100%; }
.max-w-sm { max-width: 24rem; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.p-1\.5 { padding: 0.375rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.pt-20 { padding-top: 5rem; }
.pt-24 { padding-top: 6rem; }

.pb-12 { padding-bottom: 3rem; }
.pb-8 { padding-bottom: 2rem; }

.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

.transform { -webkit-transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.-translate-x-1\/2 { --tw-translate-x: -50%; transform: translateX(-50%); }
.-translate-y-1\/2 { --tw-translate-y: -50%; transform: translateY(-50%); }
.translate-y-4 { --tw-translate-y: 1rem; transform: translateY(1rem); }
.translate-y-0 { --tw-translate-y: 0px; transform: translateY(0); }
.translate-x-full { --tw-translate-x: 100%; transform: translateX(100%); }

.aspect-video { aspect-ratio: 16 / 9; }
.object-cover { object-fit: cover; }

.cursor-pointer { cursor: pointer; }
.resize-none { resize: none; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }

/* Grid / Flex Layout Utility Adjustments */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex { display: flex; }
  .md\:flex-row { flex-direction: row; }
  .md\:hidden { display: none; }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md\:p-12 { padding: 3rem; }
  .md\:w-auto { width: auto; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:flex { display: flex; }
}

/* Background Glow Orbs for modern feel */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.orb-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 60%);
}

.orb-2 {
    bottom: 20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
    opacity: 0.3;
}

.dark .glow-orb { opacity: 0.15; }

.text-center { text-align: center; }



        .about-card-section {
            padding: 80px 20px;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .about-card-container {
            display: flex;
            flex-direction: column;
            gap: 60px;
        }
        
        .about-card-card {
            display: flex;
            flex-direction: column;
            gap: 20px;
            background: white;
            padding: 40px;
            border-radius: 24px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            transition: transform 0.3s ease;
        }
        
        .about-card-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        
        .about-card-number {
            font-size: 48px;
            font-weight: 700;
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1;
        }
        
        h2 {
            font-size: 32px;
            font-weight: 600;
            color: #111827;
        }
        
        p {
            color: #4b5563;
            font-size: 18px;
            line-height: 1.7;
        }
        
        hr {
            border: none;
            border-top: 2px solid #e5e7eb;
            margin: 20px 0;
        }
        
        @media (min-width: 768px) {
            .about-card-container {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 30px;
            }
            
            .about-card-card:first-child {
                grid-column: 1 / -1;
            }
            
            .about-card-number {
                font-size: 64px;
            }
        }
        
        @media (min-width: 1024px) {
            .about-card-container {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .about-card-card:first-child {
                grid-column: auto;
            }
          }





       .team-section {
            padding: 80px 20px;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        /* Header */
        .team-section-header {
            display: flex;
            align-items: baseline;
            gap: 20px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }
        
        .team-section-number {
            font-size: 48px;
            font-weight: 700;
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1;
        }
        
        .team-section-title {
            font-size: 42px;
            font-weight: 600;
            color: #111827;
        }
        
        /* Description */
        .team-section-description {
            font-size: 18px;
            color: #4b5563;
            max-width: 800px;
            margin-bottom: 60px;
            line-height: 1.7;
        }
        
        /* Team Grid */
        .team-section-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 30px;
        }
        
        .team-section-member {
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .team-section-member:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        
        .team-section-image {
            width: 100%;
            height: 280px;
            object-fit: cover;
            display: block;
            transition: transform 0.5s ease;
        }
        
        .team-section-member:hover .team-section-image {
            transform: scale(1.05);
        }
        
        .team-section-info {
            padding: 24px;
        }
        
        .team-section-name {
            font-size: 22px;
            font-weight: 600;
            color: #111827;
            margin-bottom: 6px;
        }
        
        .team-section-role {
            font-size: 15px;
            color: #3b82f6;
            font-weight: 500;
            letter-spacing: 0.3px;
        }
        
        /* Divider */
        .team-section-divider {
            width: 40px;
            height: 3px;
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            margin: 16px 0 12px;
            border-radius: 2px;
        }
        
        @media (min-width: 640px) {
            .team-section-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (min-width: 1024px) {
            .team-section-grid {
                grid-template-columns: repeat(4, 1fr);
            }
            
            .team-section-number {
                font-size: 64px;
            }
            
            .team-section-title {
                font-size: 48px;
            }
        }

        /* Add these dark mode styles to your existing team section CSS */

/* Body background and text color (if not already in your main CSS) */
html.dark body {
    background-color: #111827;
    color: #f3f4f6;
}

/* Team section title */
html.dark .team-section-title {
    color: #f3f4f6;
}

/* Team section description */
html.dark .team-section-description {
    color: #9ca3af;
}

/* Team member cards */
html.dark .team-section-member {
    background: #1f2937;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* Team member names */
html.dark .team-section-name {
    color: #f3f4f6;
}

/* Card hover effect in dark mode */
html.dark .team-section-member:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Any other text elements */
html.dark .team-section-role {
    color: #60a5fa; /* Lighter blue for dark mode */
}

        .reviews-section {
            max-width: 1200px;
            width: 100%;
        }
        
        .reviews-heading {
            font-size: 42px;
            font-weight: 700;
            color: white;
            text-align: center;
            margin-bottom: 50px;
            position: relative;
            display: inline-block;
            left: 50%;
            transform: translateX(-50%);
        }
        
        .reviews-heading::after {
            content: '';
            position: absolute;
            bottom: -12px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: white;
            border-radius: 2px;
        }
        
        .reviews-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
        }
        
        .review-card {
            background: white;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .review-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        }
        
        .review-card-name {
            font-size: 22px;
            font-weight: 600;
            color: #111827;
            margin-bottom: 8px;
        }
        
        .review-card-stars {
            font-size: 24px;
            color: #fbbf24;
            margin-bottom: 20px;
            letter-spacing: 2px;
        }
        
        .review-card-text {
            font-size: 16px;
            color: #4b5563;
            line-height: 1.7;
            margin-bottom: 20px;
            flex-grow: 1;
        }
        
        .review-card-divider {
            border: none;
            border-top: 2px dashed #e5e7eb;
            margin: 0;
        }
        
        .review-star-empty {
            color: #d1d5db;
        }
        
        @media (max-width: 768px) {
            .reviews-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 640px) {
            .reviews-grid {
                grid-template-columns: 1fr;
            }
            
            .reviews-heading {
                font-size: 32px;
            }
        }




 /* main section – smaller overall padding to fit compact cards */
        .discover-section.project-review {
            max-width: 1280px;
            width: 100%;
            /* background: white; */
            border-radius: 2.5rem;
            padding: 1rem 1rem;          /* slightly reduced padding */
            box-shadow: 0 30px 60px -15px rgba(0, 20, 40, 0.2);
            /* background: linear-gradient(145deg, #ffffff 0%, #fafcff 100%); */
            border: 1px solid rgba(180, 200, 255, 0.3);
        }

        /* header – unchanged but margin adapted */
        .section-header.project-review {
            text-align: center;
            max-width: 700px;
            margin: 0 auto 2.5rem auto;      /* reduced bottom margin */
        }

        .section-header.project-review h2.project-review {
            font-size: clamp(2.2rem, 6vw, 3.2rem);   /* slightly smaller heading */
            font-weight: 700;
            letter-spacing: -0.02em;
            background: linear-gradient(135deg, #0b1f3a, #1f3a6b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 0.5rem;
            line-height: 1.2;
        }

        .section-header.project-review p.project-review {
            font-size: 1.15rem;               /* slightly smaller */
            color: #2f3e5a;
            font-weight: 400;
            line-height: 1.5;
            opacity: 0.85;
            max-width: 520px;
            margin: 0 auto;
        }

        /* category grid – reduced gap */
        .category-grid.project-review {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;                      /* smaller gap between cards */
            justify-content: center;
        }

        /* CARD – REDUCED SIZE: padding, max-width, font sizes adjusted */
        .category-card.project-review {
            flex: 1 1 240px;                   /* base width smaller */
            max-width: 290px;                  /* was 360px -> now 290px */
            /* background: rgba(255,255,255,0.7); */
            backdrop-filter: blur(2px);
            border-radius: 1.8rem;              /* slightly smaller radius */
            padding: 1.4rem 1.2rem 1.6rem 1.2rem; /* reduced padding */
            transition: transform 0.25s ease, box-shadow 0.3s;
            box-shadow: 0 8px 20px -8px rgba(0,32,64,0.08);
            border: 1px solid rgba(255,255,255,0.7);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .category-card.project-review:hover {
            transform: translateY(-6px);
            box-shadow: 0 20px 30px -12px rgba(0, 60, 130, 0.15);
            border-color: rgba(180, 210, 255, 0.6);
        }

        /* AI image container – reduced size */
        .ai-image.project-review {
            width: 100%;
            aspect-ratio: 1 / 1;
            border-radius: 1.3rem;              /* smaller radius */
            background: #eef2f8;
            margin-bottom: 1.2rem;               /* less margin */
            display: flex;
            align-items: flex-end;
            justify-content: center;
            overflow: hidden;
            position: relative;
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6), 0 10px 16px -12px rgba(0,20,40,0.3);
        }

        .ai-image.project-review::after {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3) 0%, transparent 60%);
            pointer-events: none;
            z-index: 2;
        }

        /* distinct AI art backgrounds (unchanged but container smaller) */
        .img-1.project-review {
            background: linear-gradient(125deg, #b3d0ff 0%, #7ca5f0 45%, #355c9e 100%), 
                        repeating-linear-gradient(45deg, rgba(255,255,255,0.1) 0px, rgba(255,255,255,0.1) 8px, rgba(200,220,255,0.2) 8px, rgba(200,220,255,0.2) 16px);
            background-blend-mode: overlay, normal;
        }
        .img-1 .ai-overlay-symbol.project-review {
            position: relative;
            z-index: 5;
            color: white;
            font-size: 2.2rem;                  /* smaller overlay text */
            text-shadow: 0 4px 10px rgba(0,0,0,0.25);
            background: rgba(20,40,70,0.2);
            backdrop-filter: blur(4px);
            padding: 0.2rem 1rem;                /* reduced padding */
            border-radius: 50px;
            border: 1px solid rgba(255,255,255,0.35);
            margin-bottom: 0.8rem;                /* less bottom space */
            font-weight: 400;
        }

        .img-2.project-review {
            background: linear-gradient(145deg, #f6d5b3 0%, #e0a87a 35%, #b46f4a 80%),
                        radial-gradient(circle at 80% 20%, #ffe6b0, transparent 40%),
                        repeating-linear-gradient(30deg, #ffecd6 0px, #ffecd6 6px, #e6cfa0 6px, #e6cfa0 12px);
            background-blend-mode: overlay, hard-light, normal;
        }
        .img-2 .ai-overlay-symbol.project-review {
            z-index: 5;
            font-size: 2.2rem;
            color: #2d221c;
            background: rgba(250, 240, 220, 0.5);
            backdrop-filter: blur(5px);
            padding: 0.2rem 1rem;
            border-radius: 50px;
            border: 1px solid rgba(255,255,245,0.8);
            margin-bottom: 0.8rem;
            font-weight: 400;
        }

        .img-3.project-review {
            background: linear-gradient(215deg, #a0d9d5 0%, #4f9e9e 35%, #1f5f5f 90%),
                        conic-gradient(from 90deg at 50% 50%, #b8f0e8, #60c0c0, #b8f0e8),
                        repeating-radial-gradient(circle at 30% 30%, #ffffff20, #ffffff10 12px, #a0e0e020 12px, #a0e0e020 24px);
            background-blend-mode: overlay, soft-light, normal;
        }
        .img-3 .ai-overlay-symbol.project-review {
            z-index: 5;
            font-size: 2.2rem;
            color: #eafffb;
            text-shadow: 0 2px 6px #011111;
            background: rgba(20, 70, 70, 0.3);
            backdrop-filter: blur(4px);
            padding: 0.2rem 1rem;
            border-radius: 50px;
            border: 1px solid rgba(255,255,255,0.4);
            margin-bottom: 0.8rem;
            font-weight: 400;
        }

        /* category title – smaller */
        .category-title.project-review {
            font-size: 1.5rem;                  /* reduced from 1.8rem */
            font-weight: 600;
            letter-spacing: -0.01em;
            /* color: #13273e; */
            margin-bottom: 0.3rem;
        }

        .category-desc.project-review {
            font-size: 0.9rem;                   /* smaller */
            color: #3c4b64;
            line-height: 1.4;
            margin-bottom: 1.2rem;                /* less margin */
            padding: 0 0.2rem;
        }

        .tag.project-review {
            background: #eef3fe;
            color: #1d3b66;
            border-radius: 40px;
            padding: 0.35rem 1.1rem;              /* smaller tag */
            font-size: 0.8rem;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            border: 1px solid #cddfff;
            margin-top: auto;
            transition: background 0.2s;
        }

        .tag.project-review i {
            font-size: 0.7rem;
            opacity: 0.8;
        }

        .category-card.project-review:hover .tag.project-review {
            background: #d9e7ff;
            border-color: #7ea4de;
        }

        /* responsive fine-tuning */
        @media (max-width: 700px) {
            .discover-section.project-review {
                padding: 1.8rem 1.2rem;
            }
            .category-card.project-review {
                max-width: 280px;                  /* even smaller on mobile */
            }
            .ai-image.project-review {
                aspect-ratio: 1/1;
            }
            .ai-overlay-symbol.project-review {
                font-size: 2rem !important;        /* keep overlay readable */
            }
        }

        /* hidden note with project-review */
        .image-credit-note.project-review {
            display: none;
        }
