/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  :root {
    --primary: #FF6B4A;
    --primary-dark: #E55A3A;
    --dark: #0A0A0A;
    --dark-soft: #1A1A1A;
    --light: #FFFFFF;
    --gray-100: #F8F8F8;
    --gray-200: #E8E8E8;
    --gray-400: #999999;
    --gray-600: #666666;
  }
  
  [data-theme="dark"] {
    --dark: #FFFFFF;
    --dark-soft: #E8E8E8;
    --light: #0A0A0A;
    --gray-100: #1A1A1A;
    --gray-200: #2A2A2A;
    --gray-400: #888888;
    --gray-600: #AAAAAA;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: var(--dark);
    line-height: 1.5;
    overflow-x: hidden;
    background: var(--light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Capriola', sans-serif;
    font-weight: 600;
    letter-spacing: -0.03em;
  }
  
  /* ==========================================================================
     Navigation
     ========================================================================== */
  
  nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: background 0.3s ease;
  }
  
  [data-theme="dark"] nav {
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid rgba(255,255,255,0.03);
  }
  
  nav .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    height: 100%;
  }
  
  .logo-icon {
    height: 100%;
    max-height: 40px;
    width: auto;
    transition: opacity 0.3s ease;
    object-fit: contain;
  }
  
  .logo-light { display: block; }
  .logo-dark { display: none; }
  
  [data-theme="dark"] .logo-light { display: none; }
  [data-theme="dark"] .logo-dark { display: block; }
  
  .logo-text {
    font-family: 'Capriola', sans-serif;
    font-size: 24px;
    color: var(--dark);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1;
  }
  
  nav ul {
    display: flex;
    list-style: none;
    gap: 48px;
    align-items: center;
  }
  
  nav a {
    text-decoration: none;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
  }
  
  nav a:hover { color: var(--dark); }
  
  .theme-toggle {
    background: var(--gray-100);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
  }
  
  .theme-toggle:hover {
    background: var(--gray-200);
    transform: rotate(180deg);
  }
  
  .nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  
  .mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
  }
  
  .mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--dark);
    transition: all 0.3s ease;
    border-radius: 2px;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }
  .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  /* ==========================================================================
     Buttons
     ========================================================================== */
  
  .btn-primary {
    background: var(--dark);
    color: var(--light);
    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    border: none;
    cursor: pointer;
  }
  
  .btn-primary:hover {
    background: var(--dark-soft);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(10, 10, 10, 0.15);
    color: var(--light);
  }
  
  [data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 8px 24px rgba(255,255,255,0.15);
  }
  
  .btn-secondary {
    background: transparent;
    color: var(--dark);
    padding: 12px 24px;
    border: 1.5px solid var(--dark);
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    cursor: pointer;
  }
  
  .btn-secondary:hover {
    background: var(--dark);
    color: var(--light);
    transform: translateY(-1px);
  }
  
  .btn-white {
    background: white;
    color: var(--primary);
    border: none;
  }
  
  .btn-white:hover {
    background: rgba(255,255,255,0.9);
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  }
  
  /* ==========================================================================
     Hero Section with Animated Blobs
     ========================================================================== */
  
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 60px 120px;
    position: relative;
    overflow: hidden;
    background: var(--light);
  }
  
  .blob-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
  }
  
  .blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.15) 0%, rgba(255, 143, 112, 0.1) 100%);
    filter: blur(60px);
    animation: blobFloat 20s ease-in-out infinite;
  }
  
  .blob1 { width: 600px; height: 600px; top: -200px; right: -200px; animation-delay: 0s; }
  .blob2 {
    width: 500px; height: 500px; bottom: -150px; left: -150px; animation-delay: -7s;
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.1) 0%, rgba(255, 143, 112, 0.15) 100%);
  }
  .blob3 { width: 400px; height: 400px; top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -14s; }
  
  @keyframes blobFloat {
    0%, 100% {
      transform: translate(0, 0) scale(1) rotate(0deg);
      border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
    25% {
      transform: translate(50px, -50px) scale(1.1) rotate(90deg);
      border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
      transform: translate(0, 50px) scale(0.9) rotate(180deg);
      border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    75% {
      transform: translate(-50px, 0) scale(1.05) rotate(270deg);
      border-radius: 70% 30% 50% 50% / 30% 60% 40% 60%;
    }
  }
  
  .hero-content {
    max-width: 1100px;
    position: relative;
    z-index: 1;
  }
  
  .hero-label {
    display: inline-block;
    background: rgba(255, 107, 74, 0.1);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out;
  }
  
  h1 {
    font-size: clamp(56px, 8vw, 96px);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 32px;
    letter-spacing: -0.04em;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
  }
  
  .gradient-text {
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .hero p {
    font-size: 21px;
    color: var(--gray-600);
    max-width: 720px;
    margin: 0 auto 48px;
    line-height: 1.6;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
  }
  
  .hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
  }
  
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  /* ==========================================================================
     Stats Bar
     ========================================================================== */
  
  .stats {
    background: var(--light);
    border-radius: 24px;
    padding: 48px 60px;
    margin: -80px 60px 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 60px rgba(0,0,0,0.04);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    border: 1px solid var(--gray-200);
  }
  
  [data-theme="dark"] .stats {
    box-shadow: 0 4px 60px rgba(255,255,255,0.04);
  }
  
  .stat { text-align: center; }
  
  .stat-number {
    font-size: 48px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.03em;
    display: block;
    margin-bottom: 8px;
  }
  
  .stat-label {
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 500;
    letter-spacing: -0.01em;
  }
  
  /* ==========================================================================
     Technology Scroll
     ========================================================================== */
  
  .tech-scroll {
    padding: 80px 0;
    background: var(--gray-100);
    overflow: hidden;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
  }
  
  .tech-scroll h3 {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
  }
  
  .scroll-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 0;
  }
  
  .scroll-content {
    display: flex;
    animation: scroll 40s linear infinite;
    gap: 60px;
  }
  
  .tech-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--light);
    border-radius: 100px;
    white-space: nowrap;
    font-weight: 500;
    font-size: 15px;
    color: var(--dark);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
  }
  
  .tech-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  
  @keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  
  /* ==========================================================================
     Vision Section
     ========================================================================== */
  
  .vision {
    background: var(--dark);
    color: var(--light);
    border-radius: 32px;
    padding: 120px 80px;
    margin: 140px 60px;
    position: relative;
    overflow: hidden;
  }
  
  [data-theme="dark"] .vision {
    background: var(--light);
    color: var(--dark);
  }
  
  .vision::before {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,107,74,0.15) 0%, transparent 70%);
    border-radius: 50%;
  }
  
  .vision-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
  }
  
  .vision .section-label { color: var(--primary); }
  .vision h2 { color: inherit; margin-bottom: 32px; }
  
  .vision p {
    font-size: 20px;
    line-height: 1.7;
    opacity: 0.85;
    font-weight: 400;
  }
  
  /* ==========================================================================
     Section Styles
     ========================================================================== */
  
  section {
    padding: 140px 60px;
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .section-label {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
  }
  
  h2 {
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    line-height: 1.1;
  }
  
  .section-intro {
    font-size: 19px;
    color: var(--gray-600);
    max-width: 720px;
    line-height: 1.7;
    margin-bottom: 80px;
  }
  
  /* ==========================================================================
     About Section (Updated, Homogeneous)
     ========================================================================== */
  
  .about { background: var(--light); }
  
  .about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* copy wider than media */
    gap: 48px;
    align-items: start;
    margin-top: 40px;
  }
  
  .about .section-intro { max-width: 100%; } /* allow intro to use full column width */
  
  .about-copy p,
  .about-copy ul,
  .about-copy li {
    color: var(--gray-600);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 400;
  }
  
  .about-copy ul {
    padding-left: 24px;
    list-style: disc;
  }
  
  .about-copy li { margin-bottom: 8px; }
  
  /* Contact/info tiles inside About */
  .about .info-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
  }
  
  .about .info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
  }
  
  .about .info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  }
  
  [data-theme="dark"] .about .info-item:hover {
    box-shadow: 0 12px 30px rgba(255,255,255,0.06);
  }
  
  .about .info-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, #FF8F70 100%);
    font-size: 22px;
    color: #fff;
  }
  
  .about .info-text { display: flex; flex-direction: column; gap: 4px; }
  
  .about .info-text strong {
    font-size: 18px;
    color: var(--dark);
    letter-spacing: -0.01em;
  }
  
  .about .info-text strong a {
    color: inherit;
    text-decoration: none;
  }
  .about .info-text strong a:hover { text-decoration: underline; }
  
  .about .info-text span {
    font-size: 13px;
    color: var(--gray-600);
  }
  
  /* Optional media block */
  .about .about-media { display: grid; gap: 10px; }
  
  .about .about-media img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    object-fit: cover;
  }
  
  .about .about-caption {
    font-size: 12px;
    color: var(--gray-600);
  }
  
  [data-theme="dark"] .about-copy p,
  [data-theme="dark"] .about-copy ul,
  [data-theme="dark"] .about-copy li { color: var(--gray-400); }
  
  [data-theme="dark"] .about .about-media img {
    border-color: var(--gray-200);
    box-shadow: 0 12px 30px rgba(255,255,255,0.06);
  }
  
  [data-theme="dark"] .about .about-caption { color: var(--gray-400); }
  
  /* ==========================================================================
     Services Grid
     ========================================================================== */
  
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 80px;
  }
  
  .service-card {
    padding: 48px;
    background: var(--gray-100);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
  }
  
  .service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #FF8F70 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .service-card:hover::before { transform: scaleX(1); }
  
  .service-card:hover {
    background: var(--light);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border-color: var(--gray-200);
  }
  
  [data-theme="dark"] .service-card:hover {
    box-shadow: 0 20px 60px rgba(255,255,255,0.08);
  }
  
  .service-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, #FF8F70 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
  }
  
  .service-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
  }
  
  .service-card p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 15px;
  }
  
  /* ==========================================================================
     Process Section
     ========================================================================== */
  
  .process { background: var(--gray-100); }
  
  .process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
    margin-top: 80px;
  }
  
  .process-step { position: relative; }
  
  .step-number {
    font-size: 72px;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    top: -20px;
    left: 0;
    letter-spacing: -0.03em;
  }
  
  .process-step h3 {
    font-size: 24px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    padding-top: 40px;
  }
  
  .process-step p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 15px;
  }
  
  /* ==========================================================================
     Team Section
     ========================================================================== */
  
  .team { background: var(--light); }
  
  .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    margin-top: 80px;
  }
  
  .team-member { text-align: center; }
  
 /* Team photos: keep your existing .team-photo container */
  .team-photo {
    width: 180px;
    height: 180px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #FF8F70 100%);
    margin: 0 auto 24px;
    overflow: hidden;
    position: relative;
  }

  /* Make the <img> fill and crop nicely */
  .team-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  /* Keep your existing hover effect */
  .team-member:hover .team-photo {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 60px rgba(255,107,74,0.3);
    transition: all 0.4s ease;
  }

  
  .team-member h3 {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 600;
  }
  
  .team-role {
    color: var(--gray-600);
    font-size: 15px;
    margin-bottom: 12px;
  }
  
  /* ==========================================================================
     CTA Section
     ========================================================================== */
  
  .cta {
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, #FF8F70 100%);
    color: white;
    border-radius: 32px;
    padding: 120px 80px;
    margin: 0 60px;
    position: relative;
    overflow: hidden;
  }
  
  .cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
  }
  
  .cta-content { position: relative; z-index: 1; }
  
  .cta h2 {
    color: white;
    margin-bottom: 24px;
    font-size: clamp(36px, 5vw, 56px);
  }
  
  .cta p {
    font-size: 20px;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.95;
  }
  
  /* ==========================================================================
     Footer
     ========================================================================== */
  
  footer {
    background: var(--dark);
    color: var(--light);
    padding: 80px 60px 40px;
    margin-top: 140px;
  }
  
  [data-theme="dark"] footer {
    background: var(--light);
    color: var(--dark);
  }
  
  .footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
  }
  
  .footer-brand h3 { font-size: 20px; margin-bottom: 16px; }
  
  .footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.7;
  }
  
  .footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  
  .footer-links ul { list-style: none; }
  
  .footer-links a {
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    line-height: 2.2;
    opacity: 0.7;
    transition: opacity 0.2s;
  }
  
  .footer-links a:hover { opacity: 1; }
  
  .footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid;
    border-color: rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: 0.7;
  }
  
  [data-theme="dark"] .footer-bottom { border-color: rgba(0,0,0,0.1); }
  
  .footer-social { display: flex; gap: 20px; }
  
  .footer-social a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
  }
  
  .footer-social a:hover { opacity: 1; }
  
  /* ===============================
     Footer Contact
     =============================== */
  
  footer .footer-contact {
    max-width: 1400px;
    margin: 16px auto 0;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
  }
  
  footer .fc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
  }
  
  [data-theme="dark"] footer .fc-item {
    background: var(--gray-100);
    border-color: var(--gray-200);
  }
  
  footer .fc-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), #FF8F70);
    color: #fff;
    font-size: 16px;
  }
  
  footer .fc-item a,
  footer .fc-item address {
    font-style: normal;
    font-size: 14px;
    letter-spacing: -0.01em;
    color: var(--dark);
    text-decoration: none;
  }
  
  footer .fc-item a:hover { text-decoration: underline; }
  
  [data-theme="dark"] footer .fc-item a,
  [data-theme="dark"] footer .fc-item address {
    color: var(--light);
  }
  .about-media {
    display: grid;
    align-content: start;
  }
  
  /* The video fills whatever width the grid column gives it,
     keeps 16:9, and never stretches out of bounds */
  .about-video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;              /* crop gracefully if the source isn't 16:9 */
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  
    /* Prevent it from becoming too tall on huge screens */
    max-height: min(56vh, 720px);
  }
  
  /* Caption keeps width with the video */
  .about-caption {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: var(--gray-600);
  }
  
  /* Dark mode border/shadow harmonization */
  [data-theme="dark"] .about-video {
    border-color: var(--gray-200);
    box-shadow: 0 12px 30px rgba(255,255,255,0.06);
  }
  
  /* Respect reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .about-video { animation: none !important; }
  }
  
  /* Mobile: you already collapse to a single column; this just ensures
     the video remains fluid and not taller than the viewport */
  @media (max-width: 768px) {
    .about-video {
      max-height: min(48vh, 560px);
    }
  }
  /* ==========================================================================
     Responsive Design
     ========================================================================== */
  
  @media (max-width: 1024px) {
    .footer-content {
      grid-template-columns: 1fr 1fr;
      gap: 40px;
    }
  }
  
  @media (max-width: 900px) {
    .about-grid {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 768px) {
    nav .container { padding: 20px 24px; }
  
    .mobile-menu-toggle { display: flex; }
    .nav-right { gap: 16px; }
  
    nav ul {
      position: fixed;
      top: 0;
      right: -100%;
      height: 100vh;
      width: 80%;
      max-width: 400px;
      background: var(--light);
      flex-direction: column;
      gap: 0;
      padding: 100px 40px 40px;
      box-shadow: -4px 0 20px rgba(0,0,0,0.1);
      transition: right 0.3s ease;
      align-items: flex-start;
      z-index: 1000;
    }
  
    [data-theme="dark"] nav ul {
      box-shadow: -4px 0 20px rgba(255,255,255,0.1);
    }
  
    nav ul.active { right: 0; }
  
    nav ul li {
      width: 100%;
      padding: 16px 0;
      border-bottom: 1px solid var(--gray-200);
    }
  
    nav ul li:last-child {
      border-bottom: none;
      margin-top: 20px;
    }
  
    nav ul li a {
      width: 100%;
      text-align: left;
      font-size: 18px;
      display: block;
    }
  
    nav ul li .btn-primary {
      text-align: center;
      display: block;
      width: 100%;
    }
  
    section { padding: 80px 24px; }
    .hero { padding: 140px 24px 80px; }
  
    .vision, .cta {
      padding: 60px 32px;
      margin: 0 24px;
    }
  
    .stats {
      margin: -60px 24px 0;
      padding: 32px 24px;
      gap: 32px;
    }
  
    h1 { font-size: 48px; }
    h2 { font-size: 36px; }
  
    .footer-content {
      grid-template-columns: 1fr;
      gap: 32px;
    }
  
    .footer-bottom {
      flex-direction: column;
      gap: 20px;
      text-align: center;
    }
  
    .hero-buttons {
      flex-direction: column;
      align-items: center;
    }
  
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
      width: 100%;
      max-width: 300px;
    }
  
    .scroll-content { gap: 30px; }
    .tech-item {
      padding: 12px 24px;
      font-size: 14px;
    }
  }
  
  /* ==========================================================================
     Smooth Scroll
     ========================================================================== */
  
  html { scroll-behavior: smooth; }
  