:root {
    --primary-bg: #EEF2F6;
    --section-bg: #EEF2F6;
    --card-bg: #FFFFFF;
    --primary-accent: #0066FF;
    --secondary-accent: #7A3EFF;
    --primary-text: #111827;
    --secondary-text: #6B7280;
    --border-color: #E5E7EB;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--primary-bg);
    color: var(--primary-text);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Base Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.portfolio-preview {
    padding: 30px 0;
    background-color: var(--section-bg) !important;
}

section {
    padding: 30px 0;
    background-color: var(--section-bg);
}

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

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 767px) {
    section {
        padding: 15px 0;
    }

    .section-title {
        margin-bottom: 20px;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }
}

.section-title p {
    color: var(--secondary-text);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
header {
    background: rgba(240, 247, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* On Page Load Animation */
    transform: translateY(-100%);
    opacity: 0;
    animation: headerReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.2s;
}

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

header.header-scrolled {
    height: 65px;
    background: rgba(225, 240, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-accent);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    transform: scale(1.04);
}

.logo svg {
    margin-right: 0.5rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover svg {
    transform: scale(1.1);
}

nav#main-nav {
    /* Push nav to the right end */
    margin-left: auto;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li a {
    font-weight: 500;
    color: var(--secondary-text);
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-accent);
    transition: var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-accent);
    font-weight: 600;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    min-height: 44px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.nav-cta {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
}

.nav-cta:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.25);
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--primary-accent);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
}

.menu-toggle span:first-child {
    transform: translateY(-7px);
}

.menu-toggle span:nth-child(2) {
    opacity: 1;
}

.menu-toggle span:last-child {
    transform: translateY(7px);
}

/* Hamburger Menu to "X" Animation */
.menu-toggle.active span:first-child {
    transform: translateY(0) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.menu-toggle.active span:last-child {
    transform: translateY(0) rotate(-45deg);
}

@media (max-width: 1023px) {
    .menu-toggle {
        display: flex;
    }

    nav#main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        width: 300px;
        height: 100vh;
        background: #f0f7ff;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 6rem 2rem 2rem;
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
    }

    nav#main-nav.active {
        right: 0;
    }

    nav#main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav-cta {
        display: inline-flex;
        padding: 8px 16px;
        font-size: 0.9rem;
        margin-right: 1rem;
    }
}

.btn-primary {
    background-color: var(--primary-accent);
    color: white;
}

.btn-primary:hover {
    background-color: #0052cc;
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px rgba(0, 102, 255, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary-accent);
    color: var(--primary-accent);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-accent);
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    height: calc(100vh - 80px);
    min-height: 550px;
    /* Prevent squashing on small screens */
    overflow: hidden;
    padding: 0 !important;
    background: #000000 !important;
    will-change: transform;
}

@media (max-width: 767px) {
    .hero {
        height: 100svh;
        /* Use SVH for better mobile handling */
        min-height: 600px;
    }
}

.hero-slider {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    visibility: hidden;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide-bg img,
.hero-slide-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.1) contrast(1.1);
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
    animation: videoPulse 8s infinite ease-in-out;
}

@keyframes videoPulse {

    0%,
    100% {
        opacity: 0.85;
    }

    50% {
        opacity: 0.95;
    }
}

.hero-container-fluid {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-left: 8%;
    text-align: left;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-height: 2.2em;
}

.hero-content p {
    font-size: 1.5rem;
    color: #E5E7EB;
    margin-bottom: 2.5rem;
    max-width: 600px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out 0.5s;
}

.hero-slide.active .hero-content p {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
}

.btn-hero-outline {
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    background: transparent;
}

.btn-hero-outline:hover {
    background: var(--primary-accent);
    color: white;
    border-color: var(--primary-accent);
}

/* Page Hero (Subpages) */
.page-hero {
    position: relative;
    background-color: var(--section-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 60px 0;
    overflow: hidden;
}

.hero-content h1,
.hero-content p,
.page-hero h1,
.page-hero p,
#typed-hero {
    font-style: italic;
}

/* Cards */
.service-card {
    position: relative;
    height: auto;
    min-height: 200px;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: var(--shadow-soft);
    background-color: #FFFFFF;
}

.service-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.service-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.service-card-content {
    position: relative;
    z-index: 2;
    padding: 1rem;
    color: #FFFFFF;
}

.service-card .card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.service-card h3 {
    font-size: 1rem;
    color: #FFFFFF;
    margin-bottom: 0.25rem;
}

.service-card p {
    color: #F3F4F6;
    font-size: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767px) {
    .service-card {
        height: 180px;
    }
}

.service-card:hover {
    transform: translateY(-8px) rotate(1deg) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.service-card:hover .service-card-bg {
    transform: scale(1.1);
}

/* Scroll Animations */
/* Scroll Animations (Optimized for Immediate Appearance) */
.js-enabled .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    /* Reduced from 0.8s */
    /* will-change: opacity, transform; REMOVED FOR MOBILE STABILITY */
}

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

.js-enabled .stagger-reveal>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    /* Reduced from 0.6s */
    will-change: opacity, transform;
}

.js-enabled .stagger-reveal.is-visible>*,
.js-enabled .stagger-reveal>*.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Removed stagger delays to ensure immediate appearance */
.js-enabled .stagger-reveal.is-visible>*:nth-child(n) {
    transition-delay: 0s;
}

/* FORCE VISIBILITY ON MOBILE - CRITICAL FIX */
@media (max-width: 1024px),
(prefers-reduced-motion: reduce) {

    .js-enabled .reveal,
    .js-enabled .reveal.is-visible,
    .js-enabled .stagger-reveal>*,
    .js-enabled .stagger-reveal.is-visible>*,
    .js-enabled .stagger-reveal>*.is-visible,
    .js-enabled .difference-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        visibility: visible !important;
        will-change: auto !important;
    }
}

/* Floating Waveform */
.bg-waves {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 200px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.2;
}

.wave-line {
    fill: none;
    stroke: var(--primary-accent);
    stroke-width: 2;
    animation: waveFlow 10s infinite linear;
}

@keyframes waveFlow {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-accent);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 102, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-accent);
    margin-bottom: 1.5rem;
}

/* Grid Layouts */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 1023px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Portfolio Gallery */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    background: var(--section-bg);
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-weight: 500;
}

.filter-btn.active {
    background: var(--primary-accent);
    color: #fff;
    border-color: var(--primary-accent);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

@media (max-width: 1100px) {
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1023px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-filter {
        flex-wrap: wrap;
    }
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 180px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-info {
    opacity: 1;
}

/* Premium Site Footer */
.site-footer {
    background-color: #0F172A;
    /* Dark premium tone */
    color: #E5E7EB;
    /* Light gray text */
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    content-visibility: auto;
    contain-intrinsic-size: 0 300px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-accent);
}

.brand-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    color: #9CA3AF;
}

.brand-tagline {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--primary-accent);
    opacity: 0.9;
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-nav li a {
    color: #9CA3AF;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
}

.footer-nav li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--primary-accent);
    transition: width 0.3s ease;
}

.footer-nav li a:hover {
    color: #FFFFFF;
}

.footer-nav li a:hover::after {
    width: 100%;
}

.contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-details li {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: #9CA3AF;
}

.contact-details li i {
    color: var(--primary-accent);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.contact-details li a {
    color: #9CA3AF;
    transition: color 0.3s ease;
}

.contact-details li a:hover {
    color: #FFFFFF;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo span {
    color: #FFFFFF !important;
}

.accent-text {
    color: var(--primary-accent);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6B7280;
    font-size: 0.9rem;
}

.credit .accent-text {
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.credit .accent-text:hover {
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--primary-accent);
    transform: scale(1.1);
    color: #FFFFFF;
}

@media (max-width: 1023px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 60px 0 30px;
        text-align: center;
    }

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

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-nav,
    .contact-details,
    .social-links {
        align-items: center;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-logo {
        justify-content: center;
    }
}

/* Admin Dashboard */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: #111827;
    color: #fff;
    transition: var(--transition);
}

@media (max-width: 1023px) {
    .admin-sidebar {
        position: fixed;
        left: -260px;
        z-index: 1000;
    }

    .admin-sidebar.active {
        left: 0;
    }
}

.admin-content {
    flex: 1;
    padding: 2rem;
    overflow-x: hidden;
}

/* Products */
.product-card {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.product-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-card p {
    font-size: 0.9rem;
    color: var(--secondary-text);
}

@media (max-width: 767px) {
    .product-image {
        height: 140px;
    }
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: var(--transition);
    animation: whatsappFloat 3s infinite ease-in-out;
}

@keyframes whatsappFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px) !important;
    background-color: #128C7E;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* Difference Card */
.difference-card {
    background-color: #87CEEB !important;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateY(40px);
}

.difference-card.active {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.difference-card .feature-item {
    opacity: 0;
    transform: translateX(-20px);
}

.difference-card.active .feature-item {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.5s ease-out;
}

.difference-card.active .feature-item:nth-child(1) {
    transition-delay: 0.3s;
}

.difference-card.active .feature-item:nth-child(2) {
    transition-delay: 0.5s;
}

.difference-card.active .feature-item:nth-child(3) {
    transition-delay: 0.7s;
}

.difference-card h2,
.difference-card h4,
.difference-card p {
    color: #111827 !important;
}

/* Why Sauti Fix KE? - Interactive Redesign */
.why-sauti-section {
    background: linear-gradient(135deg, #F7F9FC 0%, #EEF2F6 100%);
}

.why-main-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    max-width: 1100px;
    /* Increased to fit single row */
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.why-card-header {
    text-align: center;
    margin-bottom: 50px;
}

.why-badge {
    background: rgba(0, 102, 255, 0.08);
    color: var(--primary-accent);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 15px;
}

.why-card-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.why-line {
    width: 60px;
    height: 3px;
    background: var(--primary-accent);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.why-card-header p {
    color: var(--secondary-text);
    max-width: 550px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.5;
}

.why-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Single row: 4 columns */
    gap: 20px;
    margin-top: 50px;
    position: relative;
}

/* Single Horizontal Connecting Line */
.why-features-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 8%;
    right: 8%;
    height: 2px;
    background: repeating-linear-gradient(90deg, #E5E7EB, #E5E7EB 5px, transparent 5px, transparent 10px);
    z-index: 0;
    transform: translateY(-50%);
}

/* Remove vertical line for single-row layout */
.why-features-grid::after {
    display: none;
}

.why-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background: transparent !important;
    border: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.why-feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    z-index: -1;
    border: 3px dashed var(--primary-accent);
    transition: all 0.4s ease;
    animation: circleSpin 15s linear infinite;
}

@keyframes circleSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.why-feature-item:nth-child(1)::before {
    background-color: #F0F9FF;
    border-color: #BAE6FD;
}

.why-feature-item:nth-child(2)::before {
    background-color: #F0FDF4;
    border-color: #BBF7D0;
}

.why-feature-item:nth-child(3)::before {
    background-color: #FFF7ED;
    border-color: #FFEDD5;
}

.why-feature-item:nth-child(4)::before {
    background-color: #FAF5FF;
    border-color: #E9D5FF;
}

.why-feature-item:hover {
    transform: scale(1.1) translateY(-8px);
}

.why-feature-item:hover::before {
    border-style: solid;
    animation-duration: 5s;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.why-icon {
    width: 45px;
    height: 45px;
    background: transparent;
    color: var(--primary-accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.why-content h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary-text);
}

.why-content p {
    font-size: 10px;
    color: var(--secondary-text);
    margin-bottom: 0;
    line-height: 1.4;
    padding: 0 10px;
}

.why-detail {
    display: none;
}

.why-card-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.why-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

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

.stat-num {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-accent);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary-text);
    font-weight: 500;
}

.why-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 991px) {
    .why-main-card {
        padding: 40px 25px;
    }

    /* Reduce vertical padding on mobile/tablet */
    .why-sauti-section,
    .portfolio-preview {
        padding: 50px 0 !important;
    }

    .why-features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Hide horizontal line on mobile stack */
    .why-features-grid::before {
        display: none;
    }

    /* Optional: Add vertical connector for mobile */
    .why-features-grid::after {
        display: block;
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 2px;
        background: repeating-linear-gradient(0deg, #E5E7EB, #E5E7EB 5px, transparent 5px, transparent 10px);
        z-index: 0;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .why-stats {
        flex-direction: column;
        gap: 30px;
    }

    .why-stat-divider {
        width: 60px;
        height: 1px;
    }
}

@media (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

/* Sound & Acoustic Solutions Section */
.sound-section {
    background-color: #0f0f0f !important;
    padding: 80px 0;
    color: #ffffff;
}

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

.sound-section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sound-section-title p {
    color: #aaaaaa;
    font-size: 1.1rem;
}

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


.sound-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}



.sound-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    transition-delay: 0s;
    /* No delay on hover */
}

.sound-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: #3498db;
    transition: transform 0.4s ease, color 0.4s ease;
}

.sound-card:hover .sound-icon {
    transform: scale(1.1);
    color: #5dade2;
}

.sound-icon svg {
    width: 100%;
    height: 100%;
}

.sound-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.sound-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .sound-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sound-grid {
        grid-template-columns: 1fr;
    }

    .sound-section {
        padding: 50px 0;
    }
}