/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* Define Cascade Layers */
@layer reset, base, components, sections, utilities;

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* offset for sticky nav */
  }

  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }

  img, svg {
    display: block;
    max-width: 100%;
    height: auto;
  }

  button, input, select, textarea {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
  }

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

  ul, ol {
    list-style: none;
  }
}

@layer base {
  :root {
    /* Color Palette */
    --bg-dark: #070913;
    --bg-dark-rgb: 7, 9, 19;
    --bg-card: rgba(15, 23, 42, 0.5);
    --bg-card-hover: rgba(23, 37, 84, 0.3);
    
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-rgb: 59, 130, 246;
    
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --accent-rgb: 245, 158, 11;
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows & Effects */
    --glass-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --glow-primary: 0 0 40px -10px rgba(59, 130, 246, 0.15);
    --transition-smooth: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
  }

  h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: #ffffff;
  }

  h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
  }

  h2 {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    letter-spacing: -0.01em;
  }

  h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  }

  /* Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: var(--bg-dark);
  }
  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    &:hover {
      background: rgba(255, 255, 255, 0.3);
    }
  }
}

@layer components {
  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
    
    &.btn-primary {
      background-color: var(--primary);
      color: #ffffff;
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
      &:hover {
        background-color: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
      }
    }
    
    &.btn-outline {
      border: 1px solid var(--border-color);
      color: var(--text-main);
      backdrop-filter: blur(8px);
      &:hover {
        border-color: var(--text-main);
        background-color: rgba(255, 255, 255, 0.05);
        transform: translateY(-2px);
      }
    }

    &.btn-accent {
      background-color: var(--accent);
      color: #070913;
      box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
      &:hover {
        background-color: var(--accent-hover);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
      }
    }
  }

  /* Glassmorphism Cards */
  .glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: border-color 0.3s, background-color 0.3s, transform 0.3s;
    
    &:hover {
      border-color: var(--border-hover);
      background-color: var(--bg-card-hover);
      transform: translateY(-4px);
    }
  }

  /* Badges */
  .badge {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
  }

  /* Form Inputs with floating visual state */
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    
    input, textarea, select {
      width: 100%;
      padding: 0.85rem 1rem;
      background-color: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      color: #ffffff;
      transition: var(--transition-smooth);
      
      &:focus {
        outline: none;
        border-color: var(--primary);
        background-color: rgba(255, 255, 255, 0.05);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
      }
    }

    textarea {
      resize: vertical;
      min-height: 120px;
    }

    label {
      font-size: 0.85rem;
      font-weight: 500;
      color: var(--text-muted);
      transition: var(--transition-smooth);
    }

    /* Modern user valid/invalid selectors */
    input:user-valid:focus, textarea:user-valid:focus {
      border-color: #10b981; /* green */
      box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    }
    input:user-invalid, textarea:user-invalid {
      border-color: #ef4444; /* red */
      box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    }
  }
}

@layer sections {
  /* Navigation Header */
  .header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding-block: 1.5rem;
    background-color: rgba(7, 9, 19, 0.6);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: padding-block 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;

    .nav-container {
      max-width: 1200px;
      margin-inline: auto;
      padding-inline: 1.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .logo-container {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      
      .logo-icon {
        width: 38px;
        height: 38px;
        background: linear-gradient(135deg, var(--primary), var(--accent));
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-family: var(--font-heading);
        color: #ffffff;
        font-size: 1.25rem;
        box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
      }
      
      .logo-text {
        font-family: var(--font-heading);
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        background: linear-gradient(to right, #ffffff, var(--text-muted));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }
    }

    .nav-links {
      display: flex;
      gap: 2rem;
      align-items: center;
      
      a {
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--text-muted);
        transition: var(--transition-smooth);
        position: relative;
        padding-block: 0.25rem;
        
        &::after {
          content: '';
          position: absolute;
          bottom: 0;
          left: 0;
          width: 0;
          height: 1.5px;
          background: linear-gradient(to right, var(--primary), var(--accent));
          transition: var(--transition-smooth);
        }

        &:hover, &.active {
          color: #ffffff;
          &::after {
            width: 100%;
          }
        }
      }
    }

    /* Mobile toggle button */
    .menu-toggle {
      display: none;
      flex-direction: column;
      gap: 6px;
      cursor: pointer;
      z-index: 101;
      
      span {
        width: 25px;
        height: 2px;
        background-color: #ffffff;
        transition: var(--transition-smooth);
      }

      &.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
      }
      &.open span:nth-child(2) {
        opacity: 0;
      }
      &.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
      }
    }

    /* Native CSS scroll driven shrink animation */
    @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
      animation: shrink-header auto linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 100px;
    }
  }

  @keyframes shrink-header {
    to {
      padding-block: 0.85rem;
      background-color: rgba(7, 9, 19, 0.95);
      border-color: var(--border-hover);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
  }

  /* Hero Section */
  .hero-section {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 7rem;
    min-height: 95vh;
    display: flex;
    align-items: center;
    background-image: radial-gradient(circle at 75% 25%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
                      radial-gradient(circle at 25% 75%, rgba(245, 158, 11, 0.04) 0%, transparent 60%);

    .hero-container {
      max-width: 1200px;
      margin-inline: auto;
      padding-inline: 1.5rem;
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 4rem;
      align-items: center;
    }

    .hero-content {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 1.75rem;
    }

    .hero-tagline {
      font-size: 1.1rem;
      color: var(--accent);
      font-weight: 600;
      letter-spacing: 0.15em;
      text-transform: uppercase;
    }

    .hero-title span {
      background: linear-gradient(135deg, #ffffff 40%, var(--primary) 70%, var(--accent));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      display: block;
    }

    .hero-desc {
      font-size: clamp(1.05rem, 2vw, 1.25rem);
      color: var(--text-muted);
      max-width: 600px;
      line-height: 1.7;
    }

    .hero-actions {
      display: flex;
      gap: 1.25rem;
      margin-top: 1rem;
    }

    .hero-visual {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      
      .visual-globe {
        width: 320px;
        height: 320px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(7, 9, 19, 0.8) 70%);
        border: 1px dashed rgba(255, 255, 255, 0.1);
        position: relative;
        animation: spin 30s linear infinite;

        &::before {
          content: '';
          position: absolute;
          inset: -15px;
          border-radius: 50%;
          border: 1px solid rgba(59, 130, 246, 0.05);
          animation: spin 45s linear infinite reverse;
        }

        &::after {
          content: '';
          position: absolute;
          inset: 30px;
          border-radius: 50%;
          border: 1px dashed rgba(245, 158, 11, 0.1);
        }
      }

      .tech-orbit-dot {
        position: absolute;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background-color: var(--primary);
        box-shadow: 0 0 15px var(--primary);
        top: 20%;
        left: 20%;
        
        &.dot-2 {
          background-color: var(--accent);
          box-shadow: 0 0 15px var(--accent);
          top: 75%;
          left: 80%;
          width: 10px;
          height: 10px;
        }
      }
    }
  }

  @keyframes spin {
    100% {
      transform: rotate(360deg);
    }
  }

  /* Section Layouts */
  .section-padding {
    padding-block: 7rem;
  }

  .section-header {
    text-align: center;
    max-width: 700px;
    margin-inline: auto;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    
    .section-subtitle {
      color: var(--primary);
      text-transform: uppercase;
      font-size: 0.85rem;
      letter-spacing: 0.15em;
      font-weight: 600;
    }
    
    .section-desc {
      color: var(--text-muted);
      font-size: 1.1rem;
    }
  }

  /* About / Founder Section */
  .about-section {
    background-color: rgba(15, 23, 42, 0.3);
    border-block: 1px solid var(--border-color);
    position: relative;
    
    .about-container {
      max-width: 1200px;
      margin-inline: auto;
      padding-inline: 1.5rem;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5rem;
      align-items: center;
    }

    .about-image-wrapper {
      position: relative;
      
      .profile-card {
        border-radius: 20px;
        overflow: hidden;
        border: 1px solid var(--border-color);
        background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.7));
        padding: 3rem 2.5rem;
        box-shadow: var(--glass-shadow);
        position: relative;
        z-index: 2;
        
        .profile-header {
          display: flex;
          flex-direction: column;
          gap: 0.5rem;
          border-bottom: 1px solid var(--border-color);
          padding-bottom: 1.5rem;
          margin-bottom: 2rem;
          
          .profile-name {
            font-size: 2rem;
            color: #ffffff;
          }
          
          .profile-title {
            color: var(--accent);
            font-size: 0.95rem;
            font-weight: 500;
            letter-spacing: 0.05em;
            text-transform: uppercase;
          }
          
          .profile-qual {
            color: var(--text-muted);
            font-size: 0.9rem;
          }
        }
      }
      
      &::before {
        content: '';
        position: absolute;
        width: 130px;
        height: 130px;
        background-color: rgba(59, 130, 246, 0.15);
        border-radius: 50%;
        filter: blur(40px);
        top: -20px;
        left: -20px;
        z-index: 1;
      }
    }

    .credentials-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
      margin-top: 1.5rem;
      
      .cred-item {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--border-color);
        padding: 1.25rem;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        
        .cred-icon {
          color: var(--accent);
          font-size: 1.5rem;
        }
        
        .cred-title {
          font-family: var(--font-body);
          font-size: 0.85rem;
          font-weight: 600;
          color: #ffffff;
        }

        .cred-text {
          font-size: 0.8rem;
          color: var(--text-muted);
        }
      }
    }

    .about-content {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      
      p {
        color: var(--text-muted);
      }
      
      .highlight-quote {
        font-family: var(--font-heading);
        font-size: 1.5rem;
        font-style: italic;
        color: #ffffff;
        border-inline-start: 4px solid var(--accent);
        padding-inline-start: 1.5rem;
        margin-block: 1rem;
      }
    }
  }

  /* Services Section */
  .services-section {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1.5rem;

    .services-nav {
      display: flex;
      justify-content: center;
      gap: 1rem;
      margin-bottom: 3.5rem;
      flex-wrap: wrap;
      
      .service-tab-btn {
        padding: 0.75rem 1.75rem;
        border-radius: 30px;
        border: 1px solid var(--border-color);
        color: var(--text-muted);
        font-size: 0.95rem;
        font-weight: 500;
        cursor: pointer;
        transition: var(--transition-smooth);
        
        &:hover {
          border-color: var(--text-main);
          color: #ffffff;
        }
        
        &.active {
          background-color: var(--primary);
          color: #ffffff;
          border-color: var(--primary);
          box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
        }
      }
    }

    .service-panes {
      position: relative;
      min-height: 400px;
      display: grid;
      grid-template-columns: 1fr;
      grid-template-rows: 1fr;
    }

    .service-pane {
      grid-column: 1;
      grid-row: 1;
      display: grid;
      grid-template-columns: 1fr 1.2fr;
      gap: 4rem;
      align-items: center;
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: scale(1) translateY(0);
      transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                  transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                  visibility 0.3s linear;
      
      &.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: scale(0.98) translateY(10px);
      }
    }

    .pane-content {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      
      .service-badge {
        align-self: flex-start;
      }
      
      .service-features-list {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
        
        li {
          display: flex;
          align-items: center;
          gap: 0.75rem;
          font-size: 0.95rem;
          color: var(--text-muted);
          
          &::before {
            content: "✓";
            color: var(--accent);
            font-weight: bold;
          }
        }
      }
    }

    .pane-cards {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
      
      .service-subcard {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--border-color);
        padding: 2rem;
        border-radius: 12px;
        transition: var(--transition-smooth);
        
        &:hover {
          border-color: rgba(59, 130, 246, 0.3);
          background-color: rgba(59, 130, 246, 0.05);
          transform: scale(1.02);
        }
        
        .subcard-title {
          font-size: 1.2rem;
          margin-bottom: 0.75rem;
          color: #ffffff;
        }

        .subcard-desc {
          font-size: 0.85rem;
          color: var(--text-muted);
        }
      }
    }
  }

  /* IP Budget Estimator Wizard */
  .estimator-section {
    background-color: rgba(15, 23, 42, 0.3);
    border-block: 1px solid var(--border-color);
    position: relative;
    
    .estimator-container {
      max-width: 1000px;
      margin-inline: auto;
      padding-inline: 1.5rem;
    }

    .wizard-wrapper {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 20px;
      box-shadow: var(--glass-shadow);
      padding: 3rem;
      overflow: hidden;
      
      .wizard-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 3rem;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1.5rem;
        position: relative;
        
        .step-indicators {
          display: flex;
          justify-content: space-between;
          width: 100%;
          position: relative;
          z-index: 2;
        }
        
        .step-indicator {
          display: flex;
          flex-direction: column;
          align-items: center;
          gap: 0.5rem;
          flex: 1;
          position: relative;
          
          .circle {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background-color: var(--bg-dark);
            border: 2px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-muted);
            transition: var(--transition-smooth);
          }
          
          .label {
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            transition: var(--transition-smooth);
          }
          
          &.active {
            .circle {
              border-color: var(--primary);
              background-color: var(--primary);
              color: #ffffff;
              box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
            }
            .label {
              color: #ffffff;
            }
          }

          &.completed {
            .circle {
              border-color: var(--accent);
              background-color: var(--accent);
              color: #070913;
            }
            .label {
              color: var(--accent);
            }
          }
        }
        
        .progress-bar-bg {
          position: absolute;
          top: 15px;
          left: 10%;
          width: 80%;
          height: 2px;
          background-color: var(--border-color);
          z-index: 1;
        }

        .progress-bar-fill {
          position: absolute;
          top: 15px;
          left: 10%;
          width: 0%;
          height: 2px;
          background-color: var(--accent);
          z-index: 1;
          transition: width 0.4s ease;
        }
      }
    }

    .wizard-steps {
      position: relative;
      margin-bottom: 2rem;
    }

    .wizard-step {
      display: block;
      opacity: 1;
      scale: 1;
      transition: display 0.4s, opacity 0.4s ease, scale 0.4s ease;
      transition-behavior: allow-discrete;
      
      &.hidden {
        display: none;
        opacity: 0;
        scale: 0.98;
      }
    }

    /* Starting style for wizard step transitions */
    @starting-style {
      .wizard-step:not(.hidden) {
        opacity: 0;
        scale: 0.98;
      }
    }

    .step-title {
      font-size: 1.6rem;
      margin-bottom: 1.5rem;
      text-align: center;
    }

    /* Step 1 Type Grid */
    .type-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1.5rem;
      
      .type-card {
        background: rgba(255, 255, 255, 0.02);
        border: 2px solid var(--border-color);
        padding: 2.5rem 2rem;
        border-radius: 12px;
        text-align: center;
        cursor: pointer;
        transition: var(--transition-smooth);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        
        .icon {
          font-size: 2.5rem;
          color: var(--text-muted);
          transition: var(--transition-smooth);
        }
        
        .name {
          font-family: var(--font-heading);
          font-size: 1.5rem;
          font-weight: 600;
          color: #ffffff;
        }

        .desc {
          font-size: 0.85rem;
          color: var(--text-muted);
        }

        &:hover {
          border-color: rgba(255, 255, 255, 0.2);
          background: rgba(255, 255, 255, 0.04);
        }

        &.selected {
          border-color: var(--primary);
          background: rgba(59, 130, 246, 0.08);
          box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
          
          .icon {
            color: var(--primary);
            transform: scale(1.1);
          }
        }
      }
    }

    /* Step 2 Service Selection */
    .services-selection-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1rem;
      
      .selection-item {
        background: rgba(255, 255, 255, 0.01);
        border: 1px solid var(--border-color);
        padding: 1.25rem 1.5rem;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        transition: var(--transition-smooth);
        
        .checkbox-label {
          display: flex;
          align-items: center;
          gap: 1rem;
          
          .box {
            width: 20px;
            height: 20px;
            border: 2px solid var(--border-color);
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: transparent;
            font-weight: bold;
            font-size: 0.75rem;
            transition: var(--transition-smooth);
          }

          .text-info {
            display: flex;
            flex-direction: column;
            
            .title {
              font-weight: 600;
              color: #ffffff;
            }
            .sub {
              font-size: 0.8rem;
              color: var(--text-muted);
            }
          }
        }
        
        .service-badge-info {
          display: flex;
          gap: 1rem;
          align-items: center;
          
          .time-est {
            font-size: 0.8rem;
            color: var(--accent);
          }
        }

        &:hover {
          border-color: rgba(255, 255, 255, 0.15);
          background: rgba(255, 255, 255, 0.03);
        }

        &.selected {
          border-color: rgba(59, 130, 246, 0.5);
          background: rgba(59, 130, 246, 0.04);
          
          .checkbox-label .box {
            border-color: var(--primary);
            background-color: var(--primary);
            color: #ffffff;
          }
        }
      }
    }

    /* Step 3 Estimate Details */
    .estimate-result-card {
      background: rgba(255, 255, 255, 0.01);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 2rem;
      
      .result-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1.25rem;
        margin-bottom: 1.5rem;
        
        .type-badge {
          font-family: var(--font-heading);
          font-size: 1.4rem;
          color: var(--accent);
        }

        .count-text {
          font-size: 0.85rem;
          color: var(--text-muted);
        }
      }

      .selected-summary-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
        
        .summary-item {
          display: flex;
          justify-content: space-between;
          font-size: 0.95rem;
          
          .item-name {
            color: #ffffff;
          }
          .item-time {
            color: var(--text-muted);
          }
        }
      }

      .timeline-box {
        background: rgba(59, 130, 246, 0.05);
        border: 1px solid rgba(59, 130, 246, 0.2);
        padding: 1.25rem;
        border-radius: 8px;
        margin-bottom: 2rem;
        
        .box-title {
          font-weight: 600;
          margin-bottom: 0.5rem;
          color: var(--primary);
        }
        
        .box-desc {
          font-size: 0.9rem;
          color: var(--text-muted);
        }
      }
    }

    .wizard-footer {
      display: flex;
      justify-content: space-between;
      margin-top: 2rem;
      border-top: 1px solid var(--border-color);
      padding-top: 1.5rem;
    }
  }

  /* Contact Section */
  .contact-section {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1.5rem;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    
    .contact-info-panel {
      display: flex;
      flex-direction: column;
      gap: 2.5rem;
      
      .info-title {
        font-size: 2.2rem;
      }
      
      .info-list {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        
        .info-card {
          display: flex;
          gap: 1.25rem;
          
          .icon {
            width: 48px;
            height: 48px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent);
            font-size: 1.25rem;
            flex-shrink: 0;
          }
          
          .details {
            display: flex;
            flex-direction: column;
            
            .label {
              font-size: 0.8rem;
              color: var(--text-muted);
              text-transform: uppercase;
              letter-spacing: 0.05em;
            }
            .value {
              font-size: 0.95rem;
              color: #ffffff;
              margin-top: 0.25rem;
            }
          }
        }
      }

      .map-container {
        width: 100%;
        height: 200px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        overflow: hidden;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        
        &::after {
          content: 'Chennai Office Location';
          font-family: var(--font-heading);
          color: var(--text-muted);
          font-size: 1.2rem;
        }

        .map-placeholder {
          position: absolute;
          inset: 0;
          background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 80%);
          pointer-events: none;
        }
      }
    }
    
    .contact-form-panel {
      position: relative;
      
      .form-status {
        position: absolute;
        inset: 0;
        background: rgba(7, 9, 19, 0.9);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        border-radius: 16px;
        padding: 2rem;
        z-index: 10;
        border: 1px solid var(--border-hover);
        opacity: 1;
        scale: 1;
        transition: display 0.4s, opacity 0.4s ease, scale 0.4s ease;
        transition-behavior: allow-discrete;
        
        &.hidden {
          display: none;
          opacity: 0;
          scale: 0.98;
        }
        
        .status-icon {
          font-size: 3rem;
          color: #10b981;
          margin-bottom: 1rem;
        }

        .status-title {
          font-size: 1.8rem;
          margin-bottom: 0.5rem;
        }

        .status-desc {
          color: var(--text-muted);
          font-size: 0.95rem;
        }
      }
    }
  }

  /* Footer */
  .footer {
    border-top: 1px solid var(--border-color);
    background-color: #04060d;
    padding-block: 4rem 2rem;
    margin-top: 5rem;
    
    .footer-container {
      max-width: 1200px;
      margin-inline: auto;
      padding-inline: 1.5rem;
      display: grid;
      grid-template-columns: 1.5fr 1fr 1fr;
      gap: 4rem;
      margin-bottom: 3rem;
    }

    .footer-brand {
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
      
      .logo {
        font-family: var(--font-heading);
        font-size: 1.8rem;
        font-weight: 700;
        color: #ffffff;
        
        span {
          color: var(--primary);
        }
      }

      .desc {
        font-size: 0.9rem;
        color: var(--text-muted);
        max-width: 320px;
      }
    }

    .footer-links-col {
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
      
      .title {
        font-size: 0.9rem;
        text-transform: uppercase;
        font-weight: 600;
        letter-spacing: 0.05em;
        color: #ffffff;
      }
      
      .links {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        
        a {
          font-size: 0.9rem;
          color: var(--text-muted);
          transition: var(--transition-smooth);
          
          &:hover {
            color: #ffffff;
          }
        }
      }
    }

    .footer-bottom {
      max-width: 1200px;
      margin-inline: auto;
      padding-inline: 1.5rem;
      border-top: 1px solid var(--border-color);
      padding-top: 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1.5rem;
      
      .copyright {
        font-size: 0.85rem;
        color: var(--text-muted);
      }
      
      .bottom-links {
        display: flex;
        gap: 2rem;
        
        a {
          font-size: 0.85rem;
          color: var(--text-muted);
          &:hover {
            color: #ffffff;
          }
        }
      }
    }
  }
}

@layer utilities {
  .text-accent {
    color: var(--accent);
  }
  
  .text-center {
    text-align: center;
  }
  
  .hidden {
    display: none !important;
  }
}

/* Responsive Overrides */
@media (max-width: 968px) {
  .hero-section {
    padding-top: 8rem;
    padding-bottom: 4rem;
    .hero-container {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 3rem;
    }
    .hero-content {
      align-items: center;
    }
    .hero-visual {
      order: -1;
    }
  }

  .about-section {
    .about-container {
      grid-template-columns: 1fr;
      gap: 3.5rem;
    }
  }

  .services-section {
    .service-pane {
      grid-template-columns: 1fr;
      gap: 2.5rem;
    }
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .header-nav {
    .nav-links {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      width: 280px;
      background-color: rgba(7, 9, 19, 0.98);
      border-inline-start: 1px solid var(--border-color);
      flex-direction: column;
      justify-content: center;
      gap: 2rem;
      padding: 3rem;
      transform: translateX(100%);
      transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
      
      &.open {
        transform: translateX(0);
      }
      
      .btn {
        width: 100%;
      }
    }
    
    .menu-toggle {
      display: flex;
    }
  }

  .estimator-section {
    .wizard-wrapper {
      padding: 1.5rem;
    }
    .wizard-header {
      margin-bottom: 2rem;
      
      .step-indicator .label {
        display: none;
      }
    }
    .pane-cards {
      grid-template-columns: 1fr;
    }
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* Reduced Motion Mode Support */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  .header-nav {
    @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
      animation: none;
    }
  }
}

/* Landing Load Animations & Interactive Visuals */
@layer base {
  @keyframes reveal-down {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes reveal-up {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes float-visual {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-12px);
    }
  }

  @keyframes pulse-glow {
    0%, 100% {
      box-shadow: 0 0 40px -10px rgba(59, 130, 246, 0.15);
    }
    50% {
      box-shadow: 0 0 60px 0px rgba(59, 130, 246, 0.35);
    }
  }

  @keyframes orbit-1 {
    0% {
      transform: rotate(0deg) translateX(140px) rotate(0deg);
    }
    100% {
      transform: rotate(360deg) translateX(140px) rotate(-360deg);
    }
  }

  @keyframes orbit-2 {
    0% {
      transform: rotate(180deg) translateX(180px) rotate(-180deg);
    }
    100% {
      transform: rotate(540deg) translateX(180px) rotate(-540deg);
    }
  }

  @media (prefers-reduced-motion: no-preference) {
    .hero-tagline {
      animation: reveal-down 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) both;
    }
    
    .hero-title {
      animation: reveal-up 1s cubic-bezier(0.25, 0.8, 0.25, 1) both;
      animation-delay: 0.1s;
    }
    
    .hero-desc {
      animation: reveal-up 1s cubic-bezier(0.25, 0.8, 0.25, 1) both;
      animation-delay: 0.25s;
    }
    
    .hero-actions {
      animation: reveal-up 1s cubic-bezier(0.25, 0.8, 0.25, 1) both;
      animation-delay: 0.4s;
    }
    
    .hero-visual {
      animation: reveal-up 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) both,
                 float-visual 6s ease-in-out infinite 1.2s;
    }

    .hero-visual .visual-globe {
      animation: spin 45s linear infinite, pulse-glow 4s ease-in-out infinite;
    }

    .hero-visual .tech-orbit-dot {
      top: 50% !important;
      left: 50% !important;
      margin-top: -7px;
      margin-left: -7px;
      animation: orbit-1 15s linear infinite;
    }

    .hero-visual .tech-orbit-dot.dot-2 {
      top: 50% !important;
      left: 50% !important;
      margin-top: -5px;
      margin-left: -5px;
      animation: orbit-2 22s linear infinite reverse;
    }
  }
}

/* Sections Layer Updates for News & Carousel */
@layer sections {
  /* News Section & Funky Tiles */
  .news-section {
    position: relative;
    background-image: radial-gradient(circle at 10% 40%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
                      radial-gradient(circle at 90% 60%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
  }

  .news-container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1.5rem;
  }

  .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    grid-auto-flow: dense;
  }

  .news-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                border-color 0.4s ease,
                background-color 0.4s ease,
                box-shadow 0.4s ease;
    cursor: pointer;
    outline: none;

    &.card-featured-wide {
      grid-column: span 2;
    }

    &.card-tall {
      grid-row: span 2;
      min-height: 480px;
    }

    &:hover, &:focus-within {
      transform: translateY(-8px) scale(1.01);
      border-color: var(--border-hover);
      background-color: var(--bg-card-hover);
      box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7),
                  0 0 30px -5px var(--glow-color, rgba(59, 130, 246, 0.15));
    }
  }

  /* Ambient Glow settings for cards */
  .news-card:has(.badge-ai) { --glow-color: rgba(59, 130, 246, 0.25); }
  .news-card:has(.badge-quantum) { --glow-color: rgba(168, 85, 247, 0.2); }
  .news-card:has(.badge-biotech) { --glow-color: rgba(16, 185, 129, 0.2); }
  .news-card:has(.badge-semiconductor) { --glow-color: rgba(245, 158, 11, 0.25); }
  .news-card:has(.badge-advisory) { --glow-color: rgba(236, 72, 153, 0.2); }

  .card-bg-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), var(--glow-color, rgba(255, 255, 255, 0.05)) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
  }

  .news-card:hover .card-bg-glow {
    opacity: 1;
  }

  .card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
  }

  .card-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    .news-badge {
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      padding: 0.25rem 0.75rem;
      border-radius: 9999px;
      border: 1px solid rgba(255, 255, 255, 0.05);
      background: rgba(255, 255, 255, 0.03);

      &.badge-ai { color: #3b82f6; border-color: rgba(59, 130, 246, 0.2); background: rgba(59, 130, 246, 0.05); }
      &.badge-quantum { color: #a855f7; border-color: rgba(168, 85, 247, 0.2); background: rgba(168, 85, 247, 0.05); }
      &.badge-biotech { color: #10b981; border-color: rgba(16, 185, 129, 0.2); background: rgba(16, 185, 129, 0.05); }
      &.badge-semiconductor { color: #f59e0b; border-color: rgba(245, 158, 11, 0.2); background: rgba(245, 158, 11, 0.05); }
      &.badge-advisory { color: #ec4899; border-color: rgba(236, 72, 153, 0.2); background: rgba(236, 72, 153, 0.05); }
    }

    .news-date {
      font-size: 0.8rem;
      color: var(--text-muted);
    }
  }

  .news-title {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    line-height: 1.3;
    color: #ffffff;
    transition: color 0.3s;
  }

  .news-card:hover .news-title {
    color: var(--primary);
  }

  .news-card.card-featured-wide .news-title {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  }

  .news-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
  }

  .news-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    align-self: flex-start;
    transition: gap 0.3s, color 0.3s;

    span {
      transition: transform 0.3s;
    }

    &:hover {
      color: var(--accent);
      span {
        transform: translateX(4px);
      }
    }
  }

  /* Showcase Carousel Section Styling */
  .showcase-section {
    background-image: radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  }

  .carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin-inline: auto;
    padding-inline: 1rem;
  }

  .carousel-track-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--glass-shadow);
  }

  .carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    
    &::-webkit-scrollbar {
      display: none; /* Safari/Chrome */
    }
  }

  .carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 480px;
    scroll-snap-align: center;
    overflow: hidden;
    display: flex;
    align-items: flex-end;

    img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: brightness(0.65) contrast(1.05);
      transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
      z-index: 1;
    }

    &:hover img {
      transform: scale(1.05);
    }
  }

  .slide-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 4rem;
    background: linear-gradient(to top, rgba(7, 9, 19, 0.95) 0%, rgba(7, 9, 19, 0.5) 60%, transparent 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    
    .slide-badge {
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      background: rgba(59, 130, 246, 0.15);
      color: var(--primary);
      border: 1px solid rgba(59, 130, 246, 0.2);
      padding: 0.25rem 0.75rem;
      border-radius: 9999px;
    }

    .slide-title {
      font-size: clamp(1.6rem, 3vw, 2.2rem);
      font-weight: 700;
      letter-spacing: -0.01em;
    }

    .slide-desc {
      font-size: clamp(0.95rem, 1.5vw, 1.1rem);
      color: var(--text-muted);
      max-width: 650px;
    }
  }

  /* Carousel Controls */
  .carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.6);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);

    &.prev {
      left: -25px;
    }
    
    &.next {
      right: -25px;
    }

    &:hover {
      background: var(--primary);
      border-color: var(--primary);
      color: #ffffff;
      box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    }
    
    &:focus-visible {
      outline: 2px solid var(--primary);
      outline-offset: 2px;
    }
  }

  /* Carousel Indicators */
  .carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    
    .indicator-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--border-color);
      cursor: pointer;
      padding: 0;
      border: none;
      transition: width 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease;
      
      &.active {
        background: var(--primary);
        width: 24px;
        border-radius: 4px;
      }

      &:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
      }
    }
  }

  /* Native CSS Scroll Driven Zoom Animations for Slides */
  @media (prefers-reduced-motion: no-preference) {
    @supports ((animation-timeline: view()) and (animation-range: entry)) {
      @keyframes zoom-in-out {
        0% {
          scale: 0.94;
          opacity: 0.6;
        }
        50% {
          scale: 1;
          opacity: 1;
        }
        100% {
          scale: 0.94;
          opacity: 0.6;
        }
      }

      .carousel-slide {
        animation: zoom-in-out auto linear both;
        animation-timeline: view(inline);
        animation-range: cover 0% cover 100%;
      }
    }
  }

  /* Responsive styling for news grid and carousel buttons */
  @media (max-width: 968px) {
    .news-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .carousel-control.prev {
      left: 10px;
    }
    .carousel-control.next {
      right: 10px;
    }
  }

  @media (max-width: 768px) {
    .news-grid {
      grid-template-columns: 1fr;
    }
    .news-card.card-featured-wide {
      grid-column: span 1;
    }
    .news-card.card-tall {
      grid-row: span 1;
      min-height: auto;
    }
  }
}
