@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--page-bg);
}

/* CSS Variables */
:root {
  --primary: #3b82f6;
  --secondary: #8b5cf6;
  --highlight: #6366f1		;
  --gradient: linear-gradient(to right, #3b82f6, #8b5cf6);
  --glass-bg: rgba(31, 41, 55, 0.9);
  --page-bg: linear-gradient(135deg, #0f0f1c 0%, #1a1a2e 100%);
  --text-primary: #e5e7eb;
  --text-secondary: #d1d5db;
  --text-tertiary: #a1a1aa;
  --card-gradient: linear-gradient(135deg, rgba(31, 41, 55, 0.9), rgba(59, 130, 246, 0.1));
  --card-border: rgba(139, 92, 246, 0.3);
  --card-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.hero-subheading {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
    animation: typewriter 3s steps(60) 1s forwards;
    white-space: nowrap;
  }
  
  .hero-subheading::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent);
    z-index: -1;
  }
  
  @keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
  }
  
  .hero-ctas {
    display: flex;
    gap: 1rem;
    border-radius: 0.375rem;
  }
  
  .hero-cta-primary {
    padding: 0.9rem 2.2rem;
    border: none;
    border-radius: 0.375rem;
    background: var(--gradient);
    color: #ffffff;
    font-weight: 600;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
  }
  
  .hero-cta-primary:hover,
  .hero-cta-primary:focus {
    background: var(--highlight);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
  }
  
  .hero-cta-secondary {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.2rem;
    border: 2px solid var(--primary);
    border-radius: 0.375rem;
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .hero-cta-secondary:hover,
  .hero-cta-secondary:focus {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
  }
  
  .hero-cta-secondary .fa-phone {
    color: var(--primary);
  }
  
  .hero-cta-secondary:hover .fa-phone,
  .hero-cta-secondary:focus .fa-phone {
    color: #ffffff;
  }
  
  /* Slider */
  .hero-visual {
    flex: 1;
    max-width: 750px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
  }
  
  .slider {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease;
     z-index: 1; 
  }
  
  .slider img {
    height: 100%;
    width: auto;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease;
  }
  .slider img.active {
  opacity: 1;
  z-index: 10;          /* bring on top */
}
  .slider:hover {
    transform: scale(1.02);
  }
  
  /* How We Work Section */
  .how-we-work {
    background: var(--page-bg);
    padding: 6rem 2rem;
    text-align: center;
  }
  
  .section-title {
    font-size: 2.75rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
  }
  
  .section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
  }
  
  .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
  }
  
  .step {
    background: var(--card-gradient);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.4s ease;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
  }
  
  .step.reveal {
    opacity: 1;
    transform: translateY(0);
  }
  
  .step:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.5);
    transform: scale(1.05) rotate(2deg);
  }
  
  .step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .step:hover::before {
    opacity: 1;
  }
  
  .step-badge {
    width: 60px;
    height: 60px;
    background: var(--highlight);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #ffffff;
    transition: transform 0.3s ease;
  }
  
  .step:hover .step-badge {
    transform: scale(1.1);
  }
  
  .step-title {
    font-size: 1.6rem;
    font-weight: 600;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.75rem;
  }
  
  .step-description {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.7;
  }
  
  /* Portfolio Section */
  section.portfolio {
    padding: 60px 15px;
    background: var(--page-bg);
    text-align: center;
  }
  
  section.portfolio .portfolio__title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  section.portfolio .portfolio__subheading {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
  }
  
  section.portfolio .portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  section.portfolio .portfolio__card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--card-gradient);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
  }
  
  section.portfolio .portfolio__card:nth-child(1) { transition-delay: 0.3s; }
  section.portfolio .portfolio__card:nth-child(2) { transition-delay: 0.4s; }
  section.portfolio .portfolio__card:nth-child(3) { transition-delay: 0.5s; }
  
  section.portfolio .portfolio__card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.5);
  }
  
  section.portfolio .portfolio__image {
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }
  
  section.portfolio .portfolio__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  section.portfolio .portfolio__card:hover .portfolio__overlay {
    opacity: 1;
  }
  
  section.portfolio .portfolio__project-name {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
  }
  
  section.portfolio .portfolio__cta {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 24px;
    background: var(--gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1.3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--card-shadow);
    opacity: 0;
    transform: translateY(30px);
  }
  
  section.portfolio .portfolio__cta:hover {
    background: var(--highlight);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(139, 92, 246, 0.6);
  }
  
  section.portfolio.portfolio--visible .portfolio__title,
  section.portfolio.portfolio--visible .portfolio__subheading,
  section.portfolio.portfolio--visible .portfolio__card,
  section.portfolio.portfolio--visible .portfolio__cta {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Services Section */
  section.services {
    padding: 6rem 2rem;
    background: var(--page-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  section.services::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05), transparent);
    transform: translate(-50%, -50%);
    z-index: 0;
  }
  
  section.services .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }
  
  section.services .services__title {
    
    font-size: 2.75rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
  
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  section.services .services__subheading {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
  
    transform: translateY(30px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
  }
  
  section.services .services__tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
  }
  
  section.services .services__tab {
    background: transparent;
    border: 2px solid var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  section.services .services__tab:nth-child(1) { transition-delay: 0.3s; }
  section.services .services__tab:nth-child(2) { transition-delay: 0.4s; }
  section.services .services__tab:nth-child(3) { transition-delay: 0.5s; }
  
  section.services .services__tab:hover {
    transform: scale(1.05);
    box-shadow: var(--card-shadow);
  }
  
  section.services .services__tab.active {
    background: var(--gradient);
    color: #ffffff;
    border: none;
    box-shadow: var(--card-shadow);
  }
  
  section.services .services__content {
    position: relative;
  }
  
  section.services .services__detail {
    display: none;
    grid-template-columns: 100px 1fr;
    align-items: center;
    gap: 2rem;
    background: var(--card-gradient);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  
  section.services .services__detail.active {
    display: grid;
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  
  section.services .services__icon i {
    font-size: 3rem;
    color: var(--secondary);
  }
  
  section.services .services__text h3 {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
  }
  
  section.services .services__headline {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
  }
  
  section.services .services__description {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
  }
  
  section.services .services__cta-button {
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    
    background: var(--gradient);
    border: none;
    padding: 0.75rem 5.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--card-shadow);
  }
  
  section.services .services__cta-button:hover {
    background: var(--highlight);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(139, 92, 246, 0.6);
  }
  /* Testimonials Section */
  .testimonials {
    background: var(--page-bg);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
  }
  
  .testimonials__starry-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: transparent;
  }
  
  .testimonials__starry-bg::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Ccircle cx="10" cy="10" r="1" fill="rgba(59,130,246,0.5)"/%3E%3Ccircle cx="80" cy="20" r="0.8" fill="rgba(59,130,246,0.5)"/%3E%3Ccircle cx="30" cy="70" r="1.2" fill="rgba(59,130,246,0.5)"/%3E%3Ccircle cx="90" cy="50" r="0.9" fill="rgba(59,130,246,0.5)"/%3E%3C/svg%3E') repeat;
    animation: twinkle 10s infinite linear;
  }
  
  @keyframes twinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
  }
  
  .testimonials__container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }
  
  .testimonials__title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
  }
  
  .testimonials__subheading {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
  }
  
  .testimonials__swiper {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 40px;
  }
  
  .testimonials__card {
    perspective: 1000px;
    margin: 0;
  }
  
  .testimonials__card-inner {
    transform-style: preserve-3d;
    transition: transform 0.5s;
    background: var(--card-gradient);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(15px);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
  }
  
  .testimonials__quote-icon {
    font-size: 80px;
    opacity: 0.15;
    position: absolute;
    top: -20px;
    left: 20px;
    color: var(--secondary);
  }
  
  .testimonials__stars {
    color: var(--highlight);
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .testimonials__text {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 20px;
  }
  
  .testimonials__author {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .testimonials__author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  }
  
  .testimonials__author-info h3 {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
  }
  
  .testimonials__author-info p {
    font-size: 0.9rem;
    color: var(--text-tertiary);
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 0 20px 30px;
    border-color: transparent transparent transparent var(--primary);
    background: none;
    position: relative;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
  }
  
  .swiper-button-next {
    border-width: 20px 30px 20px 0;
    border-color: transparent var(--primary) transparent transparent;
  }
  
  .swiper-button-next::after,
  .swiper-button-prev::after {
    display: none;
  }
  
  .swiper-button-next::before,
  .swiper-button-prev::before {
    content: '';
    position: absolute;
    top: -22px;
    left: -32px;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(59, 130, 246, 0.5);
    border-radius: 8px;
    transform: rotate(45deg);
    z-index: -1;
    transition: border-color 0.3s ease;
  }
  
  .swiper-button-next::before {
    left: -30px;
  }
  
  .swiper-button-next:hover,
  .swiper-button-prev:hover {
    border-color: transparent transparent transparent var(--highlight);
    transform: scale(1.2);
  }
  
  .swiper-button-next:hover {
    border-color: transparent var(--highlight) transparent transparent;
  }
  
  .swiper-button-next:hover::before,
  .swiper-button-prev:hover::before {
    border-color: var(--highlight);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.7);
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
  }
  
  /* CTA Section */
  .cta-section {
    background: var(--page-bg);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  .cta-container {
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
  }
  
  .cta-title {
    font-size: 2.8rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
  }
  
  .cta-subheading {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
  }
  
  .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .cta-primary,
  .cta-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .cta-primary {
    background: var(--gradient);
    color: #ffffff;
    box-shadow: var(--card-shadow);
  }
  
  .cta-primary:hover {
    background: var(--highlight);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
  }
  
  .cta-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
  }
  
  .cta-secondary:hover {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.5);
  }
  
  /* Responsive Styles */
  @media (max-width: 992px) {
    .hero {
      flex-direction: column;
      text-align: center;
      margin-top: 80px;
      padding: 3rem 1rem 4rem;
      gap: 1.5rem;
    }
  
    .hero-content {
      max-width: 100%;
      order: 1;
    }
  
    .hero-visual {
      order: 2;
      max-width: 100%;
      margin-top: 2rem;
    }
  
    .hero-headline {
      font-size: 2.4rem;
    }
  
    .hero-subheading {
      font-size: 1.1rem;
    }
  
    .hero-ctas {
      justify-content: center;
      flex-direction: column;
      align-items: center;
    }
  
    .hero-cta-primary,
    .hero-cta-secondary {
      width: 100%;
      max-width: 320px;
      font-size: 2remS;
    }
  }
  
  @media (max-width: 768px) {
  
  
    .hero-headline {
      font-size: 2.5rem;
    }
  
    .hero-subheading {
      font-size: 1rem;
    }
  
    .slider {
      width: 95%;
      height: auto;
      margin: 0 2.5%;
      overflow: visible;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  
    .slider img {
      width: 100%;
      height: auto;
      object-fit: contain;
      position: relative;
      top: 0;
      left: 0;
    }
  
    section.portfolio {
      padding: 40px 10px;
    }
  
    section.portfolio .portfolio__title {
      font-size: 2.3rem;
    }
  
    section.portfolio .portfolio__subheading {
      font-size: 0.9rem;
    }
  
    section.portfolio .portfolio__grid {
      grid-template-columns: 1fr;
      gap: 15px;
    }
  
    section.portfolio .portfolio__cta {
      padding: 10px 20px;
      font-size: 1.3rem;
    }
  
    section.services {
      padding: 4rem 1rem;
    }
  
    section.services .services__title {
      font-size: 2rem;
    }
  
    section.services .services__subheading {
      font-size: 1rem;
    }
  
    section.services .services__tabs {
      flex-direction: column;
      align-items: center;
    }
  
    section.services .services__tab {
      width: 80%;
      font-size: 1.3rem;
      padding: 0.5rem 1rem;
    }
  
    section.services .services__detail {
      display: none;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 1.5rem;
      gap: 1rem;
    }
  
    section.services .services__detail.active {
      display: flex;
    }
  
    section.services .services__icon i {
      font-size: 2.5rem;
      margin-bottom: 1rem;
    }
  
    section.services .services__text h3 {
      font-size: 1.5rem;
    }
  
    section.services .services__headline {
      font-size: 1rem;
    }
  
    section.services .services__description {
      font-size: 0.9rem;
    }
  
    section.services .services__cta-button {
      font-size: 1.6rem;
      padding: 0.5rem 1rem;
      width: 90%;
    }
  
    .testimonials__title {
      font-size: 2rem;
    }
  
    .testimonials__subheading {
      font-size: 1rem;
    }
  
    .testimonials__swiper {
      max-width: 100%;
      padding: 0 30px;
    }
  
    .testimonials__card {
      transform: none !important;
    }
  
    .testimonials__quote-icon {
      font-size: 60px;
    }
  
    .swiper-button-next,
    .swiper-button-prev {
      border-width: 15px 0 15px 22px;
    }
  
    .swiper-button-next {
      border-width: 15px 22px 15px 0;
    }
  
    .swiper-button-next::before,
    .swiper-button-prev::before {
      top: -17px;
      left: -24px;
      width: 45px;
      height: 45px;
    }
  
    .swiper-button-next::before {
      left: -22px;
    }
  
    .cta-title {
      font-size: 2rem;
    }
  
    .cta-subheading {
      font-size: 1rem;
    }
  
    .cta-buttons {
      flex-direction: column;
      gap: 15px;
    }
  
    .cta-primary, .cta-secondary{
      font-size: 1.5rem;
    }
  }
  
  @media (max-width: 576px) {
    .hero {
      padding: 2.5rem 0.8rem 3rem;
    }
  
    .hero-headline {
      font-size: 2.5rem;
    }
  
    .hero-subheading {
      font-size: 0.9rem;
    }
  
    .hero-ctas {
      gap: 0.8rem;
    }
  
    .hero-cta-primary,
    .hero-cta-secondary {
      padding: 0.8rem 1.8rem;
      font-size: 1.5rem;
    }
  }
  
  /* Fallback for older browsers */
  @supports not (backdrop-filter: blur(15px)) {
    nav, .mobile-menu, .testimonials__card-inner, .services__detail {
      background: rgba(31, 41, 55, 1);
    }
  }
  
  @supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero-headline .main-text,
    .section-title,
    .step-title,
    .portfolio__title,
    .services__title,
    .services__text h3,
    .testimonials__title,
    .cta-title {
      color: var(--primary);
    }
  }
  
  .why-us {
    background: var(--page-bg);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: visible;
    perspective: 1000px;
  }
  
  .why-us__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
  }
  
  .why-us__container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }
  
  .why-us__title-wrapper {
    position: relative;
    display: inline-block;
  }
  
  .why-us__title {
    font-size: 2.75rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
  }
  
  .why-us__orbit-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    z-index: 1;
  }
  
  .why-us__orbit-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: orbit 8s linear infinite;
    will-change: transform;
  }
  
  .why-us__orbit-particle:nth-child(2) {
    background: var(--secondary);
    animation-duration: 10s;
    animation-direction: reverse;
  }
  
  .why-us__orbit-particle:nth-child(3) {
    background: var(--highlight);
    animation-duration: 12s;
  }
  
  @keyframes orbit {
    0% { transform: rotate(0deg) translateX(80px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(80px) rotate(-360deg); }
  }
  
  .why-us__subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 4rem;
  }
  
  .why-us__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .why-us__card {
    background: var(--card-gradient);
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    z-index: 1;
    min-height: 220px;
    box-sizing: border-box;
  }
  
  .why-us__card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.5), 0 0 15px var(--highlight);
    z-index: 2;
  }
  
  .why-us__card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  }
  
  .why-us__card-front,
  .why-us__card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 1rem;
    box-sizing: border-box;
    backface-visibility: hidden;
  }
  
  .why-us__card-front {
    background: var(--card-gradient);
    transform: scale(1);
    opacity: 1;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  }
  
  .why-us__card-back {
    background: var(--gradient);
    color: #ffffff;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  }
  
  .why-us__card:hover .why-us__card-front {
    transform: scale(0.95);
    opacity: 0;
  }
  
  .why-us__card:hover .why-us__card-back {
    transform: scale(1);
    opacity: 1;
  }
  
  .why-us__icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    opacity: 0;
    transform: scale(0);
    transition: transform 0.5s ease, opacity 0.5s ease;
  }
  
  .why-us__card:hover .why-us__icon {
    animation: pulse 0.6s ease-in-out;
  }
  
  @keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
  }
  
  .why-us__card-title {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.75rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: transform 0.5s ease 0.2s, opacity 0.5s ease 0.2s;
  }
  
  .why-us__card-back-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
  }
  
  .why-us__card-back-text {
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.5;
  }
  
  .why-us__card-back-cta {
    padding: 0.6rem 1.2rem;
    background: var(--highlight);
    color: #ffffff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .why-us__card-back-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(139, 92, 246, 0.6);
  }
  
  .why-us--visible .why-us__card .why-us__icon,
  .why-us--visible .why-us__card .why-us__card-title {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  
  /* Responsive Styles */
  @media (max-width: 768px) {
    .why-us {
      padding: 4rem 1rem;
    }
  
    .why-us__title {
      font-size: 2rem;
    }
  
    .why-us__subtitle {
      font-size: 1rem;
    }
  
    .why-us__grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
  
    .why-us__card {
      min-height: 280px;
      padding: 2rem;
      margin-bottom: 1.5rem;
    }
  
    .why-us__card-front,
    .why-us__card-back {
      padding: 2rem;
      justify-content: center;
      align-items: center;
    }
  
    .why-us__card-title,
    .why-us__card-back-title {
      font-size: 1.3rem;
    }
  
    .why-us__card-back-text {
      font-size: 0.85rem;
      line-height: 1.7;
    }
  
    .why-us__card-back-cta {
      font-size: 0.85rem;
      padding: 0.5rem 1rem;
    }
  
    .why-us__orbit-container {
      width: 150px;
      height: 150px;
    }
  
    .why-us__orbit-particle {
      display: none;
    }
  }
  
  @media (max-width: 576px) {
    .why-us__title {
      font-size: 1.8rem;
    }
  
    .why-us__subtitle {
      font-size: 0.9rem;
    }
  
    .why-us__icon {
      font-size: 2rem;
    }
  }
  
  /* Fallback for older browsers */
  @supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .why-us__title,
    .why-us__card-title {
      color: var(--primary);
    }
  }
  
  /* Accessibility: Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .why-us__orbit-particle,
    .why-us__icon,
    .why-us__card,
    .why-us__card-inner,
    .why-us__card-front,
    .why-us__card-back,
    .why-us__card-title {
      animation: none;
      transition: none;
      transform: none;
      opacity: 1;
    }
    .why-us__canvas {
      display: none;
    }
  }
  
  /* Accessibility: Keyboard navigation */
  .why-us__card:focus-within .why-us__card-front {
    transform: scale(0.95);
    opacity: 0;
  }
  
  .why-us__card:focus-within .why-us__card-back {
    transform: scale(1);
    opacity: 1;
  }
  
  
  