:root {
    /* Refined Light Theme Color Palette - Based on Original */
    --primary: #2f3396;
    --primary-gradient: linear-gradient(135deg, #2f3396 0%, #3949ab 100%);
    --primary-dark: #1a1e6b;
    --primary-light: #5c6bc0;
    --accent: #00e5ff;
    --accent-dark: #00b8d4;

    --bg-white: #ffffff;
    --bg-light: #f4f7f9;
    --bg-glass: rgba(255, 255, 255, 0.7);

    --text-dark: #1a1a1a;
    --text-main: #333333;
    --text-muted: #5f6368;
    --white: #ffffff;

    /* Premium Shadows & Borders */
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 50px rgba(47, 51, 150, 0.1);
    --shadow-accent: 0 10px 30px rgba(47, 51, 150, 0.2);
    --border-glass: 1px solid rgba(255, 255, 255, 0.2);
    --border-light: 1px solid rgba(47, 51, 150, 0.08);

    /* Spacing & Radii */
    --radius-xl: 30px;
    --radius-lg: 20px;
    --radius-md: 12px;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-light);
    overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--text-dark);
    font-weight: 800;
    line-height: 1.2;
}

p {
    color: var(--text-muted);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(47, 51, 150, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid rgba(47, 51, 150, 0.1);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 4px solid var(--bg-light);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

.loader-text {
    margin-top: 20px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Header & Navigation */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

#header.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    /* White in hero, changed in scroll */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#header.scrolled .logo-text {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
}

.nav-links li a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

#header.scrolled .nav-links li a {
    color: var(--text-dark);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle Button */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.mobile-menu span {
    width: 30px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

#header.scrolled .mobile-menu span {
    background: var(--primary);
}

.mobile-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-cta {
    background: var(--white);
    color: var(--primary) !important;
    padding: 12px 28px !important;
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
}

#header.scrolled .nav-cta {
    background: var(--primary-gradient);
    color: var(--white) !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: var(--primary-gradient);
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-light.png') no-repeat center center;
    background-size: cover;
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    color: var(--white);
    margin-bottom: 25px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 750px;
    margin: 0 auto 45px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 50px;
    position: relative;
    z-index: 2;
}

.stat-number {
    display: block;
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--white);
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Common Section Styles */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--primary-gradient);
    border-radius: 10px;
}

/* About Section */
.about {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/about-light.png') no-repeat center center;
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
}

.vision-mission-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.card-enhanced {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    border: var(--border-light);
    transition: var(--transition);
}

.card-enhanced:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-premium);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
}

.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    text-align: left;
    padding: 35px;
}

.about-icon {
    width: 70px;
    height: 70px;
    background: rgba(47, 51, 150, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 20px 0;
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.about-card:hover .about-icon {
    background: var(--primary-gradient);
    color: var(--white);
    transform: scale(1.1);
}

/* Services */
.services {
    background: var(--white);
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.service-row.reverse {
    grid-template-columns: 1.1fr 1fr;
}

.service-row.reverse .service-image {
    order: 2;
}

.service-row.reverse .service-content {
    order: 1;
}

/* service-row.reverse handled via order on mobile */

.service-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 450px;
    box-shadow: var(--shadow-premium);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s;
}

.service-row:hover .service-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(47, 51, 150, 0.4) 0%, transparent 100%);
    pointer-events: none;
}

.service-icon-overlay {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    box-shadow: var(--shadow-premium);
    z-index: 2;
    transition: var(--transition);
}

.service-row:hover .service-icon-overlay {
    background: var(--primary-gradient);
    color: var(--white);
    transform: scale(1.1);
}

.service-content h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.service-features {
    list-style: none;
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 10px;
}

.service-features i {
    color: var(--primary);
    font-size: 1.1rem;
    filter: drop-shadow(0 2px 4px rgba(47, 51, 150, 0.2));
}

/* Process */
.process {
    background: var(--bg-light);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.process-step {
    background: var(--white);
    padding: 60px 30px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: var(--transition);
    border: var(--border-light);
}

.process-step:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-light);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2rem;
    color: var(--white);
    box-shadow: var(--shadow-accent);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 5rem;
    font-weight: 950;
    color: rgba(47, 51, 150, 0.03);
    z-index: 0;
    pointer-events: none;
}

.process-step h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
}

.process-step p {
    position: relative;
    z-index: 1;
}

/* Results */
.case-study-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-study {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-xl);
    border: var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.case-study:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-light);
}

.case-study-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    display: inline-block;
}

.case-metrics {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.metric-badge {
    background: rgba(47, 51, 150, 0.05);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid rgba(47, 51, 150, 0.1);
}

/* Testimonials Section Premium Styling */
.testimonials {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.testimonial-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    min-height: 450px;
}

.testimonial-card {
    background: var(--white);
    padding: 80px 60px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-premium);
    position: absolute;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.9) translateY(20px);
    border: var(--border-light);
}

.testimonial-card.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    position: relative;
}

.testimonial-quote {
    color: var(--primary-light);
    font-size: 3rem;
    margin-bottom: 30px;
    opacity: 0.3;
}

.testimonial-text {
    font-size: 1.5rem;
    line-height: 1.8;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 40px;
    font-weight: 500;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.author-avatar {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: var(--shadow-accent);
}

.author-info {
    text-align: left;
}

.author-info h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary);
}

.author-info p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.rating {
    color: #ffc107;
    margin-top: 8px;
    font-size: 0.9rem;
}

.testimonial-dots {
    text-align: center;
    margin-top: 40px;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: rgba(47, 51, 150, 0.1);
    border-radius: 50%;
    display: inline-block;
    margin: 0 8px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.4);
    box-shadow: var(--shadow-accent);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-premium);
}

.lets-talk h2 {
    font-size: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    line-height: 1.2;
}

.lets-talk p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 35px;
    line-height: 1.7;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: var(--border-light);
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(47, 51, 150, 0.06);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: var(--primary-gradient);
    color: var(--white);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-light);
}

.contact-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.5;
}

.contact-form iframe {
    border-radius: var(--radius-lg);
    border: var(--border-light) !important;
    width: 100%;
}

/* Footer Premium Styling */
.footer-enhanced {
    background: var(--primary-dark);
    color: var(--white);
    padding: 100px 0 30px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-section h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--white);
    font-weight: 800;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 15px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-section ul li a:hover {
    color: var(--accent);
    padding-left: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-5px) rotate(360deg);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0, 229, 255, 0.3);
}

.footer-contact-details p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-contact-details i {
    color: var(--accent);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Responsive Optimization */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .service-row {
        gap: 60px;
    }
}

@media (max-width: 992px) {
    section {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .hero-stats,
    .vision-mission-section,
    .about-cards-grid,
    .process-timeline,
    .case-study-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .service-row {
        gap: 40px;
    }

    .contact-container {
        padding: 50px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }

    .container {
        padding: 0 16px;
    }

    /* Global mobile text — justified paragraph text fills left to right */
    p {
        text-align: justify;
        hyphens: auto;
        -webkit-hyphens: auto;
    }

    /* Section Titles — centered */
    .section-title {
        margin-bottom: 30px;
        text-align: center;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title p {
        font-size: 0.95rem;
        text-align: center;
    }

    /* Hero — centered */
    .hero {
        padding: 100px 0 50px;
    }

    .hero-content {
        text-align: center;
    }

    .hero h1 {
        font-size: 2.1rem;
        margin-bottom: 12px;
    }

    .hero p {
        font-size: 0.92rem;
        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
        padding: 20px 15px;
        margin-top: 30px;
        gap: 15px;
        text-align: left;
    }

    .stat-number {
        font-size: 1.9rem;
    }

    .stat-label {
        font-size: 0.78rem;
    }

    /* About — left-aligned */
    .vision-mission-section,
    .about-cards-grid,
    .process-timeline,
    .case-study-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card-enhanced {
        padding: 22px 18px;
    }

    .about-card {
        padding: 22px 18px;
        text-align: left;
    }

    .about-icon {
        margin: 0 0 15px 0;
        width: 58px;
        height: 58px;
    }

    .process-step {
        padding: 25px 18px;
        text-align: left;
    }

    .case-study {
        padding: 22px 18px;
        text-align: left;
    }

    .case-metrics {
        justify-content: flex-start;
    }

    /* Services — left aligned, reset reverse order */
    .service-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 35px;
    }

    /* Reset order for reversed rows on mobile */
    .service-row.reverse .service-image {
        order: 0;
    }

    .service-row.reverse .service-content {
        order: 0;
    }

    .service-row.reverse {
        grid-template-columns: 1fr;
    }

    .service-image {
        height: 220px;
    }

    .service-content {
        text-align: left;
    }

    .service-content h3 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .service-features {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 15px;
    }

    /* Testimonials — centered */
    .testimonial-slider {
        min-height: auto;
    }

    .testimonial-card {
        padding: 25px 18px;
        text-align: center;
        position: relative;
    }

    .testimonial-card .testimonial-text {
        font-size: 0.95rem;
    }

    .testimonial-author {
        justify-content: center;
    }

    /* Contact — left aligned */
    .contact-container {
        grid-template-columns: 1fr;
        padding: 22px 18px;
        gap: 25px;
    }

    .lets-talk {
        text-align: left;
    }

    .lets-talk h2 {
        font-size: 1.9rem;
        margin-bottom: 12px;
    }

    .contact-form iframe {
        height: 400px;
    }

    /* Footer — left aligned */
    .footer-enhanced {
        padding: 35px 0 18px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 22px;
        text-align: left;
        padding: 0;
    }

    .footer-section h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .footer-section h4 {
        font-size: 0.95rem;
        margin-bottom: 14px;
        letter-spacing: 1px;
    }

    .footer-section ul li {
        margin-bottom: 10px;
    }

    .social-links {
        justify-content: flex-start;
        margin-top: 12px;
    }

    .footer-contact-details p {
        justify-content: flex-start;
        font-size: 0.88rem;
        margin-bottom: 12px;
    }

    .footer-bottom {
        text-align: left;
        padding-top: 20px;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.22rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .hero-buttons {
        gap: 15px;
    }
}

/* Floating Elements Visibility */
@media (max-width: 768px) {
    .floating-element {
        display: none;
    }
}

/* Background Animations Fix */
.hero-bg-animation,
.about::before {
    pointer-events: none;
}

/* Back to Top Mobile */
@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        padding: 40px;
        z-index: 1000;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Force dark text in mobile menu - fix white-on-white */
    .nav-links li a {
        color: var(--text-dark) !important;
        font-size: 1.1rem;
        padding: 12px 0;
        border-bottom: 1px solid rgba(47, 51, 150, 0.06);
        width: 100%;
        text-align: center;
    }

    .nav-links li a::after {
        display: none;
    }

    .nav-links.active {
        right: 0;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-img {
        height: 38px;
        width: 38px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(47, 51, 150, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    text-decoration: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(47, 51, 150, 0.45);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 15px;
        font-size: 1rem;
    }
}

/* Clients Section Premium Styling */
.clients {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
    margin-top: 50px;
}

.client-card {
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    padding: 20px;
    text-align: left;
    box-shadow: var(--shadow-soft);
    border: var(--border-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 4px solid transparent;
}

.client-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    background: var(--white);
    border-color: var(--primary-light);
    border-bottom: 4px solid var(--primary);
}

.client-logo-box {
    width: 100%;
    height: 120px;
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
    overflow: hidden;
}

.text-logo-box {
    background: linear-gradient(135deg, rgba(47, 51, 150, 0.05) 0%, rgba(0, 229, 255, 0.05) 100%);
}

.client-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.client-card:hover .client-logo {
    transform: scale(1.05);
}

.client-icon {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.8;
}

.client-info {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.client-info h3 {
    font-size: 0.95rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: auto;
}

.service-tag {
    background: rgba(47, 51, 150, 0.08);
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    transition: var(--transition);
}

.client-card:hover .service-tag {
    background: var(--primary-gradient);
    color: var(--white);
}

.client-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.client-card-link .client-card {
    flex: 1;
}

.client-website {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.client-card:hover .client-website {
    height: 20px;
    opacity: 1;
}

.client-website i {
    font-size: 0.7rem;
}

@media (max-width: 1200px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .client-card {
        padding: 20px;
    }
    .client-logo-box {
        height: 140px;
    }
    .client-info h3 {
        font-size: 1rem;
        min-height: auto;
    }
}

/* Post-CSS Utilities */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Infinite Logo Marquee Premium Styling */
.clients-marquee-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

/* Gradients overlay to fade out edge cards */
.clients-marquee-container::before,
.clients-marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15vw;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}
.clients-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--white) 15%, transparent 100%);
}
.clients-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--white) 15%, transparent 100%);
}

/* Dark mode fallback if container background differs */
body.dark-mode .clients-marquee-container::before {
    background: linear-gradient(to right, var(--bg-dark) 15%, transparent 100%);
}
body.dark-mode .clients-marquee-container::after {
    background: linear-gradient(to left, var(--bg-dark) 15%, transparent 100%);
}

.marquee-row {
    display: flex;
    width: 100%;
    overflow: visible;
    padding: 10px 0;
}

.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll-left 45s linear infinite;
}

.marquee-row.marquee-right .marquee-track {
    animation: scroll-right 45s linear infinite;
}

/* Pause scroll when hovering over the row */
.marquee-row:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.marquee-client-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.marquee-client-card {
    flex-shrink: 0;
    width: 220px;
    height: 140px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 15px 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.marquee-client-card:hover {
    transform: translateY(-5px);
    background: var(--white);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-premium);
}

.marquee-client-logo {
    max-width: 85%;
    max-height: 55px;
    object-fit: contain;
    transition: transform 0.3s ease;
    margin-bottom: auto;
    margin-top: auto;
}

.marquee-client-card:hover .marquee-client-logo {
    transform: scale(1.05);
}

.marquee-client-info {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    border-top: 1px solid rgba(47, 51, 150, 0.04);
    padding-top: 8px;
}

.marquee-client-info h4 {
    font-size: 0.75rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.marquee-client-info span {
    font-size: 0.62rem;
    color: var(--primary);
    font-weight: 600;
    background: rgba(47, 51, 150, 0.06);
    padding: 2px 8px;
    border-radius: 50px;
    white-space: nowrap;
    transition: var(--transition);
}

.marquee-client-card:hover .marquee-client-info span {
    background: var(--primary-gradient);
    color: var(--white);
}