/************************************************************
 * 1) Root Variables / Global
 ************************************************************/
 :root {
    --primary-color: #7B2FFF;
    --secondary-color: #5500C9;
    --dark-bg: #0A0A0F;
    --darker-bg: #050508;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(255, 255, 255, 0.08);
    --light-text: #ffffff;
    --gray-text: rgba(255, 255, 255, 0.7);
    --border-radius: 16px;
    --transition: all 0.3s ease-in-out;
    --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  
    /* Fluid Typography - Adjusted for better mobile visibility */
    --h1-size: clamp(2rem, 5vw, 3.5rem);
    --h2-size: clamp(1.75rem, 3vw, 2.5rem);
    --h3-size: clamp(1.35rem, 2vw, 1.75rem);
    --p-size: clamp(1rem, 1.5vw, 1.125rem);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    height: 100%;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    background: black;
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100%;
    position: relative;
  }
  
  a {
    text-decoration: none;
    color: var(--light-text);
    transition: var(--transition);
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /************************************************************
   * 2) Enhanced Typography
   ************************************************************/
  h1, .h1 {
    font-size: var(--h1-size);
  }
  h2, .h2 {
    font-size: var(--h2-size);
  }
  h3, .h3 {
    font-size: var(--h3-size);
  }
  p, .p {
    font-size: var(--p-size);
  }
  
  /************************************************************
   * 3) Header
   ************************************************************/
  #header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 997;
    padding: 20px 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  #header.header-scrolled {
    padding: 15px 0;
    background: black;
    backdrop-filter: blur(10px);
  }
  
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    display: flex;
    align-items: center;
  }
  
  .logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--light-text);
  }
  
  .logo-img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
  }
  
  .logo a:hover .logo-img {
    transform: rotate(20deg);
  }
  
  .navbar ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 40px;
  }
  .navbar a {
    font-weight: 500;
    font-size: 15px;
    position: relative;
    color: var(--gray-text);
  }
  .navbar a:hover {
    color: var(--light-text);
  }
  
  /* Get Started button in navbar */
  .getstarted {
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--primary-color);
    color: var(--light-text) !important;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .getstarted:hover {
    background: var(--secondary-color);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(123, 47, 255, 0.3);
  }
  
  /************************************************************
   * 4) Hero Section
   ************************************************************/
  #hero {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 15, 0.9) 0%,
        var(--dark-bg) 95%
      );
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 140px 0 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: heroReveal 1.2s ease forwards;
  }
  
  #hero h1 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(
      135deg,
      var(--light-text) 0%,
      var(--primary-color) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  #hero h2 {
    margin-bottom: 24px;
    color: var(--gray-text);
    font-weight: 500;
  }
  
  #hero p {
    margin-bottom: 40px;
    color: var(--gray-text);
  }
  
  .hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
  }
  
  /* Primary Hero Buttons */
  .btn-get-started,
  .btn-discover {
    padding: 16px 32px;
    border-radius: 50px;
    color: var(--light-text);
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  
  /* Gradient background for primary CTA */
  .btn-get-started {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
    box-shadow: none;
  }
  .btn-get-started:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(123, 47, 255, 0.3);
  }
  
  .btn-discover {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(123, 47, 255, 0.3);
  }
  .btn-discover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(123, 47, 255, 0.3);
    border-color: rgba(123, 47, 255, 0.5);
  }
  
  /************************************************************
   * 5) Section Base Styles
   ************************************************************/
  section {
    position: relative;
    overflow: hidden;
    padding: clamp(60px, 10vw, 100px) 0;
  }
  
  /* Section Title */
  .section-title {
    text-align: center;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  .section-title.aos-animate {
    opacity: 1;
    transform: translateY(0);
  }
  .section-title h2 {
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--light-text);
  }
  .section-title p {
    color: var(--gray-text);
    max-width: 600px;
    margin: 0 auto;
  }
  
  /************************************************************
   * 6) Card & Grid Styles
   ************************************************************/
  .grid {
    display: grid;
    gap: 24px;
  }
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Cards */
  .card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 320px;
    position: relative;
  }
  
  .card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(123, 47, 255, 0.3);
  }
  
  .card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
  }
  .card-icon i {
    font-size: 24px;
    color: var(--light-text);
  }
  
  .card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--light-text);
  }
  .card p {
    color: var(--gray-text);
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    flex-grow: 1;
  }
  
  /* Card link arrow */
  .card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 500;
    padding: 8px 0;
    margin-top: 24px;
    position: relative;
    width: fit-content;
    align-self: flex-end;
    margin-left: auto;
  }
  
  .card-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .card-link i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .card-link:hover {
    color: var(--secondary-color);
  }
  
  .card-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
  
  .card-link:hover i {
    transform: translateX(5px);
  }
  
  /* Make sure the link doesn't interfere with card click */
  .card[data-service] .card-link {
    pointer-events: none;
  }
  
  /* Show underline animation on card hover */
  .card[data-service]:hover .card-link::after {
    transform: scaleX(1);
    transform-origin: left;
  }
  
  .card[data-service]:hover .card-link i {
    transform: translateX(5px);
  }
  
  /************************************************************
   * 7) Stats
   ************************************************************/
  .stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
  }
  .stat-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 32px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  .stat-item.aos-animate {
    opacity: 1;
    transform: translateY(0);
  }
  .stat-item h3 {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
  }
  .stat-item p {
    color: var(--gray-text);
    font-size: 16px;
    margin: 0;
  }
  
  /************************************************************
   * 8) About Section
   ************************************************************/
  #about {
    padding: clamp(60px, 10vw, 100px) 0;
    position: relative;
    margin-bottom: 0px;
  }
  
  .about-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
    z-index: 2;
  }
  
  .about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
  }
  .about-intro .gradient-text {
    font-size: var(--h3-size);
    font-weight: 500;
    background: linear-gradient(135deg, var(--light-text) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 40px;
  }
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 0;
  }
  
  /* Enhanced stat-card */
  .stat-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
  }
  .stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(123, 47, 255, 0.3);
  }
  
  /* Stat Icons & text inside about cards */
  .stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    background: rgba(123, 47, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .stat-icon i {
    font-size: 24px;
    color: var(--primary-color);
  }
  .stat-value {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--light-text) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    display: block;
    width: 100%;
    text-align: center;
  }
  
  /************************************************************
   * 9) Contact Section
   ************************************************************/
  #contact {
    position: relative;
    overflow: hidden;
    padding: clamp(60px, 10vw, 100px) 0;
    margin-top: 0;
  }
  
  .contact-wrapper {
    position: relative;
    z-index: 2;
    background: linear-gradient(
      135deg,
      rgba(123, 47, 255, 0.1) 0%,
      rgba(0, 0, 0, 0) 100%
    );
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    overflow: hidden;
  }
  
  .contact-info {
    padding: 48px;
    display: flex;
    flex-direction: column;
  }
  .contact-info h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--light-text) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .contact-info p {
    color: var(--gray-text);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
  }
  
  .contact-features {
    gap: 20px;
    margin-top: auto;
    margin-bottom: 20px;
  }
  .feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-text);
  }
  .feature i {
    width: 32px;
    height: 32px;
    background: rgba(123, 47, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    position: relative;
  }
  .feature i::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: rgba(123, 47, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
  }
  .feature:hover i::after {
    transform: translate(-50%, -50%) scale(1);
  }
  .feature span {
    font-size: 15px;
  }
  
  .contact-form-wrapper {
    padding: 48px;
    display: flex;
    align-items: center;
  }
  .form-content {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  .form-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--light-text);
  }
  .form-content > p {
    color: var(--gray-text);
    font-size: 15px;
    margin-bottom: 24px;
  }
  
  .email-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .form-group {
    margin-bottom: 24px;
  }
  
  /* Form controls */
  .form-control {
    width: 100%;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .form-control::placeholder {
    color: var(--gray-text);
  }
  .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(123, 47, 255, 0.1);
  }
  .form-control.error {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.05);
  }
  .form-control.error:focus {
    border-color: #ff4444;
  }
  .form-control.error::placeholder {
    color: rgba(255, 68, 68, 0.7);
  }
  
  /* Error/Success messages */
  .error-message {
    color: #ff4444;
    font-size: 14px;
    margin-top: 8px;
    display: none;
  }
  .form-control.error + .error-message {
    display: block;
  }
  .success-message {
    text-align: center;
    padding: 32px;
  }
  .success-message i {
    font-size: 48px;
    color: #00C851;
    margin-bottom: 16px;
  }
  .success-message p {
    font-size: 18px;
    color: var(--light-text);
  }
  
  /* Submit Button */
  .btn-submit {
    width: 100%;
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .btn-submit:hover {
    transform: translateY(-2px) scale(1.02);
  }
  .btn-submit.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: loading 1s linear infinite;
    margin-left: 8px;
  }
  .privacy-note {
    text-align: center;
    color: var(--gray-text);
    font-size: 13px;
    margin-top: 16px !important;
  }
  
  /************************************************************
   * 10) Footer
   ************************************************************/
  #footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
  }
  .social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
  }
  .social-links a {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.03);
  }
  .social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
  }
  .copyright {
    color: var(--gray-text);
    margin-bottom: 24px;
  }
  
  /************************************************************
   * 11) Back to Top
   ************************************************************/
  .back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 996;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
  }
  .back-to-top.active {
    opacity: 1;
    visibility: visible;
  }
  .back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
  }
  
  /************************************************************
   * 12) Mobile Nav Toggle
   ************************************************************/
  .mobile-nav-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--light-text);
    transition: var(--transition);
  }
  
  /************************************************************
   * 13) Floating CTA (if used)
   ************************************************************/
  .floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .floating-cta.visible {
    transform: translateY(0);
    opacity: 1;
  }
  
  /************************************************************
   * 14) Media Queries
   ************************************************************/
  /* Updated Media Queries for Better Mobile Responsiveness */
  @media (max-width: 768px) {
    .section-title {
        margin-bottom: 30px;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .section-title h2 {
        font-size: var(--h2-size);
        margin-bottom: 15px;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .section-title p {
        font-size: var(--p-size);
        opacity: 1 !important;
        visibility: visible !important;
    }

    #hero h1 {
        font-size: var(--h1-size);
        margin-bottom: 20px;
        opacity: 1 !important;
        visibility: visible !important;
    }

    #hero h2 {
        font-size: var(--h2-size);
        margin-bottom: 15px;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .gradient-heading {
        font-size: var(--h2-size);
        opacity: 1 !important;
        visibility: visible !important;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 480px) {
    .section-title h2,
    .gradient-heading {
        font-size: var(--h2-size);
        opacity: 1;
        visibility: visible;
        text-align: center;
    }

    #hero h1 {
        font-size: var(--h1-size);
        opacity: 1;
        visibility: visible;
    }

    #hero h2 {
        font-size: var(--h2-size);
        opacity: 1;
        visibility: visible;
    }
  }
  
  /* Up to 991px */
  @media (max-width: 991px) {
    .grid-3 {
      grid-template-columns: repeat(2, 1fr);
    }
    #hero h1 {
      font-size: 42px;
    }
    .mobile-nav-toggle {
      display: block;
    }
    .navbar ul {
      display: none;
      flex-direction: column;
      position: fixed;
      top: 80px;
      left: 0;
      right: 0;
      background: var(--dark-bg);
      padding: 20px;
      box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
      transition: var(--transition);
    }
    .navbar ul.active {
      display: flex;
    }
    .navbar a {
      padding: 10px 0;
      font-size: 16px;
    }
    .navbar .getstarted {
      margin: 10px 0;
      width: 100%;
      text-align: center;
    }
    .stats-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .contact-wrapper {
      grid-template-columns: 1fr;
      gap: 32px;
    }
  }
  
  /* Up to 480px */
  @media (max-width: 480px) {
    #hero h1 {
      font-size: 28px;
    }
    .btn-get-started,
    .btn-discover {
      width: 100%;
      justify-content: center;
    }
    .card-icon {
      width: 40px;
      height: 40px;
    }
    .card-icon i {
      font-size: 20px;
    }
    .stat-item h3 {
      font-size: 24px;
    }
    .contact-info,
    .contact-form-wrapper {
      padding: 24px;
    }
    .contact-features {
      gap: 12px;
    }
    .feature i {
      width: 28px;
      height: 28px;
      font-size: 14px;
    }
    .feature span {
      font-size: 14px;
    }
    .section-divider {
      height: 50px;
    }
  }
  
  /************************************************************
   * 15) Animations / Special Effects
   ************************************************************/
  /* AOS generic fade/translate settings */
  [data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition:
      transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }
  [data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  /* Keyframes for Hero reveal */
  @keyframes heroReveal {
    0% {
      opacity: 0;
      transform: translateY(30px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Loading spinner for .btn-submit */
  @keyframes loading {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  /************************************************************
   * 16) Parallax, Particles, Waves, "Tech Grid", Glitch, etc.
   ************************************************************/
  /* Particles behind hero */
  #particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
  }
  
  /* Wave background behind hero */
  .wave-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
  }
  .wave {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), #FF3366);
    opacity: 0.1;
    filter: blur(30px);
    transform-origin: center;
    animation: pulse 8s ease-in-out infinite;
  }
  .wave:nth-child(2) {
    animation-delay: -2s;
    opacity: 0.08;
  }
  .wave:nth-child(3) {
    animation-delay: -4s;
    opacity: 0.06;
  }
  @keyframes pulse {
    0% {
      transform: scale(0.95);
    }
    50% {
      transform: scale(1.05);
    }
    100% {
      transform: scale(0.95);
    }
  }
  
  /* High-tech grid overlay */
  .tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(
        rgba(123, 47, 255, 0.07) 1px,
        transparent 1px
      ),
      linear-gradient(
        90deg,
        rgba(123, 47, 255, 0.07) 1px,
        transparent 1px
      );
    background-size: 50px 50px;
    z-index: 1;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: center 0;
    animation: gridMove 20s linear infinite;
  }
  @keyframes gridMove {
    0% {
      background-position: 0 0;
    }
    100% {
      background-position: 50px 50px;
    }
  }
  
  /* Glitch text effect */
  .hero-text-wrapper {
    position: relative;
    margin-bottom: 24px;
  }
  
  /* Base styles for both headings */
  .glitch-text,
  .gradient-text {
    position: relative;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--light-text);
  }
  
  .glitch-text::before,
  .gradient-text::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        var(--primary-color) 50%,
        transparent 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    background-position: -100% 0;
  }
  
  /* Animation for both lines */
  @keyframes shine {
    0%, 45% {
        background-position: -100% 0;
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    45% {
        background-position: 200% 0;
        opacity: 1;
    }
    50%, 100% {
        background-position: 200% 0;
        opacity: 0;
    }
  }
  
  /* First line animation */
  .glitch-text::before {
    animation: shine 6s ease-out infinite;
    animation-delay: 0s;
  }
  
  /* Second line animation */
  .gradient-text::before {
    animation: shine 6s ease-out infinite;
    animation-delay: 3s; /* Start after first line finishes */
  }
  
  /* Enhanced Typography for Hero Section */
  #hero h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    letter-spacing: -0.01em;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--light-text) 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }
  
  #hero p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  /************************************************************
   * 17) Custom Scrollbar / Accessibility
   ************************************************************/
  ::-webkit-scrollbar {
    width: 10px;
  }
  ::-webkit-scrollbar-track {
    background: var(--darker-bg);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
  }
  
  /* Reduce motion preference */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
  
  /* Skip link (accessibility) */
  .skip-to-main {
    position: absolute;
    top: -100px;
    left: 0;
    padding: 10px;
    background: var(--primary-color);
    color: var(--light-text);
    z-index: 9999;
    transition: top 0.3s;
  }
  .skip-to-main:focus {
    top: 0;
  }
  
  /* Enhanced Typography for Hero Section */
  #hero h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    letter-spacing: -0.01em;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--light-text) 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }
  #hero p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  @media (prefers-reduced-motion: reduce) {
    #hero {
        background-attachment: scroll;
    }
  } 

  .company-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin: 0;
    flex-wrap: wrap;
    padding: 40px 0;
  }

  .logo-container {
    position: relative;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .company-logo {
    height: 36px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
    filter: brightness(0) invert(35%) sepia(90%) saturate(1000%) hue-rotate(250deg) brightness(100%) contrast(95%);
  }

  .logo-container:hover {
    transform: scale(1.2);
  }

  .logo-container:hover .company-logo {
    opacity: 1;
    filter: brightness(0) invert(45%) sepia(80%) saturate(700%) hue-rotate(240deg) brightness(95%) contrast(90%);
  }

  /* Adjust spacing of adjacent logos when one is hovered */
  .logo-container:hover + .logo-container {
    transform: translateX(15px);
  }
  .logo-container:not(:first-child):hover {
    margin-left: 15px;
  }

  .mission-statement {
    color: var(--gray-text);
    margin-top: 30px;
    font-size: var(--p-size);
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .company-logos {
        gap: 40px;
        padding: 30px 0;
    }
    
    .company-logo {
        height: 32px;
    }

    .about-content {
        gap: 40px;
    }
  }

  /* Mission Cards */
  .mission-card {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }

  .mission-card .card-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .mission-card .card-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
  }

  .mission-card .card-icon i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 2;
  }

  .mission-card .icon-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(110, 142, 251, 0.2);
    border-radius: 50%;
    animation: pulse 2s infinite;
  }

  .mission-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.1), rgba(167, 119, 227, 0.1));
    border-radius: 20px;
    color: #6e8efb;
    font-size: 0.9rem;
    font-weight: 500;
    width: auto;
    margin: 0;
  }

  .mission-content {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .mission-content h3 {
    margin: 1rem 0;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .mission-content p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    color: var(--gray-text);
  }

  .mission-highlight {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }

  .mission-highlight::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .mission-highlight i {
    color: #6e8efb;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .mission-highlight span {
    font-size: 0.85rem;
    color: var(--gray-text);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
  }

  @media (max-width: 768px) {
    .mission-highlight {
        gap: 0.35rem;
    }
    
    .mission-highlight i {
        font-size: 0.9rem;
    }
    
    .mission-highlight span {
        font-size: 0.8rem;
    }
  }

  @keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
  } 

  /************************************************************
 * AI Agents Page Specific Styles
 ************************************************************/

/* Case Studies Section */
.case-study {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.case-study:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(123, 47, 255, 0.3);
}

.case-study .case-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.case-study .case-icon i {
  font-size: 24px;
  color: var(--light-text);
}

.case-study h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--light-text);
}

.case-study ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.case-study li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--gray-text);
  font-size: 16px;
  line-height: 1.6;
}

.case-study li:before {
  content: "\F26A";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* Process Timeline */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  position: relative;
}

.process-timeline:before {
  content: "";
  position: absolute;
  top: 40px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(123, 47, 255, 0.3);
}

.process-step h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--light-text);
}

.process-step p {
  color: var(--gray-text);
  font-size: 16px;
  line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .process-timeline {
      grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline:before {
      display: none;
  }
}

@media (max-width: 768px) {
  .process-timeline {
      grid-template-columns: 1fr;
      gap: 40px;
  }

  .case-study {
      padding: 32px;
  }

  .case-study li {
      font-size: 15px;
  }

  .process-step h3 {
      font-size: 20px;
  }
} 

#contact {
  margin-top: -360px;
}

.space {
  height: 300px;
}

/* Import main theme styles */
@import url('../style.css');

/* Benefits Section */
#benefits {
    padding: 80px 0;
    background: #000;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.benefits-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stat-card {
    background: #141414;
    border-radius: 12px;
    padding: 24px;
}

.stat-number {
    margin-bottom: 8px;
}

.stat-value {
    font-size: 72px;
    font-weight: 600;
    background: linear-gradient(135deg, #fff, #6c63ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.features-section {
    flex: 1;
}

.features-card {
    background: #141414;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #1a1a1a;
    border-radius: 8px;
    color: #fff;
}

.feature-list {
  list-style-type: none;
}

.feature-item i {
    color: #6c63ff;
    font-size: 20px;
}

/* Showcase section specific styles */
#showcase {
    position: relative;
    background: rgba(13, 13, 15, 0.95);
    padding: 80px 0 120px;
    margin-bottom: 120px;
    z-index: 1;
    width: 100%;
    overflow: hidden;
}

#showcase .container {
    position: relative;
    z-index: 2;
}

#showcase .grid {
    margin-bottom: 0;
    display: grid;
    gap: 2rem;
}

#showcase .card {
    position: relative;
    text-align: center;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid rgba(108, 99, 255, 0.1);
    background: rgba(18, 18, 20, 0.95);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

#showcase .card > div {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#showcase .card-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.9;
}

#showcase .card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
}

#showcase .card p {
    font-style: italic;
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.6;
    margin: 0 0 auto;
    font-size: 1.1rem;
}

#showcase .card .metrics {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Features section enhancements */
#features .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Contact section customization */
#contact {
    position: relative;
    z-index: 1;
    padding-top: 60px;
    margin-top: -40px;
    background: var(--background-color);
    clear: both;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(13, 13, 15, 0), var(--background-color));
    pointer-events: none;
}

#contact .container {
    position: relative;
    z-index: 2;
}

.contact-features .feature i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .benefits-wrapper {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 36px;
    }

    .section-title p {
        font-size: 18px;
    }

    .stat-value {
        font-size: 48px;
    }
}

/* Animation enhancements */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Business Intelligence Custom Styles */
body {
    background: var(--darker-bg);
}

#hero {
    background: linear-gradient(
        180deg,
        rgba(5, 5, 8, 0.98) 0%,
        var(--darker-bg) 100%
    );
    position: relative;
    overflow: hidden;
}

/* Data Visualization Background */
.data-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.1;
}

/* Animated Charts */
.chart-element {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.2;
    transform-origin: bottom;
    animation: chartGrow 3s ease-out infinite;
}

.chart-element:nth-child(1) { left: 10%; bottom: 20%; height: 180px; width: 2px; animation-delay: 0s; }
.chart-element:nth-child(2) { left: 15%; bottom: 20%; height: 140px; width: 2px; animation-delay: 0.2s; }
.chart-element:nth-child(3) { left: 20%; bottom: 20%; height: 200px; width: 2px; animation-delay: 0.4s; }
.chart-element:nth-child(4) { left: 25%; bottom: 20%; height: 160px; width: 2px; animation-delay: 0.6s; }
.chart-element:nth-child(5) { left: 30%; bottom: 20%; height: 220px; width: 2px; animation-delay: 0.8s; }

/* Floating Data Points */
.data-point {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: dataFloat 4s ease-in-out infinite;
}

.data-point::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.2;
    transform: translate(-4px, -4px);
}

/* Data Lines */
.data-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0.2;
    animation: dataFlow 3s linear infinite;
}

/* Grid Lines */
.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(0deg, transparent 24%, 
            rgba(123, 47, 255, 0.03) 25%, 
            rgba(123, 47, 255, 0.03) 26%, 
            transparent 27%, transparent 74%, 
            rgba(123, 47, 255, 0.03) 75%, 
            rgba(123, 47, 255, 0.03) 76%, 
            transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, 
            rgba(123, 47, 255, 0.03) 25%, 
            rgba(123, 47, 255, 0.03) 26%, 
            transparent 27%, transparent 74%, 
            rgba(123, 47, 255, 0.03) 75%, 
            rgba(123, 47, 255, 0.03) 76%, 
            transparent 77%, transparent);
    background-size: 50px 50px;
    z-index: 1;
}

/* Animations */
@keyframes chartGrow {
    0% { transform: scaleY(0); }
    50% { transform: scaleY(1); }
    100% { transform: scaleY(0); }
}

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

@keyframes dataFlow {
    0% { transform: translateX(0); opacity: 0; }
    50% { opacity: 0.2; }
    100% { transform: translateX(100px); opacity: 0; }
}
/* Hero Content */
.hero-content {
    position: relative;
    z-index: 5;
    opacity: 1 !important;
}

.hero-text-wrapper {
    position: relative;
    z-index: 5;
}

.hero-text-wrapper h1 {
    text-shadow: 0 0 20px rgba(123, 47, 255, 0.5);
    color: var(--light-text);
}

#features, #benefits, #showcase, #contact {
    position: relative;
    z-index: 5;
    background: var(--darker-bg);
}

/* Service Navigation Styles */
.service-detail-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-detail-section.active {
    display: block;
    opacity: 1;
}

#services {
    transition: opacity 0.4s ease-out;
}

#services.fade-out {
    opacity: 0;
}

/* Enhanced back button animation */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(123, 47, 255, 0.3);
    color: var(--light-text);
    font-weight: 500;
    cursor: pointer;
    transform-origin: left center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-back i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.btn-back:hover i {
    transform: translateX(-4px);
}

/* Service card hover animation */
.card[data-service] {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card[data-service]:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card[data-service]::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.card[data-service]:hover::after {
    opacity: 0.1;
}

/* Service section slide animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-40px);
    }
}

.slide-in {
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-out {
    animation: slideOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.margin-top {
  margin-top: 30px;
}

.section-title .gradient-heading {
    color: #B794F6;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Service card ripple effect */
.card[data-service] {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 0.6s linear;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    pointer-events: none;
    width: 200%;
    padding-bottom: 200%;
    opacity: 0.15;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.15;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    margin: auto;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    position: relative;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* Ensure modal stays centered on mobile */
@media (max-width: 768px) {
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        margin: auto;
        max-height: calc(100vh - 2rem);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
    border-radius: 50%;
}

.modal-close i {
    color: var(--light-text);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-close:hover i {
    color: var(--primary-color);
}

.modal-body {
    padding: 1.5rem 0;
}

/* Custom scrollbar for modal content */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Ensure modal content maintains glassmorphism effect */
.modal .card.glassmorphism {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Disable scroll on main content when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Add animation for modal content */
@keyframes modalContentShow {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

