/* =========================================
   NIRVAN INFOTECH — FULLY RESPONSIVE CSS
   ========================================= */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* =========================================
   CSS CUSTOM PROPERTIES
   ========================================= */
:root {
    --primary-blue: #1565C0;
    --blue-accent: #1E88E5;
    --light-blue: #42A5F5;
    --cta-blue: #2563EB;
    --dark-blue: #0D47A1;
    --dark-bg: #080B14;
    --charcoal: #0F1424;
    --charcoal-mid: #151929;
    --light-tint: #E3F2FD;
    --white: #FFFFFF;
    --muted-text: #64748B;
    --border-div: #CBD5E1;
    --light-bg: #E3E8F0;
    --glass: rgba(255,255,255,0.04);
    --glass-border: rgba(255,255,255,0.08);

    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Fluid spacing scale */
    --space-xs:  clamp(0.5rem,  1vw, 0.75rem);
    --space-sm:  clamp(0.75rem, 1.5vw, 1rem);
    --space-md:  clamp(1rem,    2vw,   1.5rem);
    --space-lg:  clamp(1.5rem,  3vw,   2.5rem);
    --space-xl:  clamp(2rem,    4vw,   4rem);
    --space-2xl: clamp(3rem,    6vw,   6rem);

    /* Fluid type scale */
    --text-xs:   clamp(0.7rem,  1.5vw, 0.8rem);
    --text-sm:   clamp(0.8rem,  1.8vw, 0.9rem);
    --text-base: clamp(0.9rem,  2vw,   1rem);
    --text-md:   clamp(1rem,    2.5vw, 1.125rem);
    --text-lg:   clamp(1.1rem,  3vw,   1.25rem);
    --text-xl:   clamp(1.2rem,  3.5vw, 1.5rem);
    --text-2xl:  clamp(1.5rem,  4vw,   2rem);
    --text-3xl:  clamp(1.8rem,  5vw,   2.5rem);
    --text-4xl:  clamp(2.2rem,  6vw,   3.5rem);
    --text-hero: clamp(2.5rem,  7vw,   4.5rem);

    --radius-sm: 0.5rem;
    --radius-md: 0.875rem;
    --radius-lg: 1.25rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;

    --shadow-glow: 0 0 40px rgba(66,165,245,0.15);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.35);
    --shadow-lifted: 0 20px 60px rgba(0,0,0,0.45);

    --transition-fast: 0.2s ease;
    --transition-med:  0.35s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   RESET & BASE (FIXED HORIZONTAL SCROLL)
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* The core fix for mobile horizontal scroll */
    overflow-x: hidden; 
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--muted-text);
    background-color: var(--dark-bg);
    /* The core fix for mobile horizontal scroll */
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

img, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

/* =========================================
   CUSTOM SCROLLBAR
   ========================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--blue-accent); }

/* =========================================
   UTILITY CLASSES
   ========================================= */
.text-primary-blue  { color: var(--primary-blue) !important; }
.text-light-blue    { color: var(--light-blue) !important; }
.text-dark-blue     { color: var(--dark-blue) !important; }
.text-light-muted   { color: var(--border-div) !important; }
.text-muted-brand   { color: var(--muted-text) !important; }
.text-light-tint    { color: var(--light-tint) !important; }
.text-white         { color: var(--white) !important; }

.bg-primary-blue    { background-color: var(--primary-blue) !important; }
.bg-dark-bg         { background-color: var(--dark-bg) !important; }
.bg-charcoal        { background-color: var(--charcoal) !important; }
.bg-light-tint      { background-color: var(--light-tint) !important; }
.bg-border          { background-color: var(--border-div) !important; }

.section-dark  { background-color: var(--dark-bg); }
.section-light { background-color: #F1F5FB; }

/* =========================================
   SECTION SPACING (Fluid)
   ========================================= */
section {
    scroll-margin-top: 80px;
}

.py-section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    background-color: transparent;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.25rem 0;
}

.navbar.navbar-scrolled {
    background-color: rgba(8, 11, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.7rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.6);
    border-bottom: 1px solid var(--glass-border);
}

.navbar-brand img {
    height: clamp(36px, 5vw, 45px);
    width: auto;
    transition: transform var(--transition-med);
}
.navbar-brand:hover img { transform: scale(1.05); }

.navbar-dark .navbar-nav .nav-link {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(203, 213, 225, 0.85);
    padding: 0.5rem 0.75rem;
    position: relative;
    letter-spacing: 0.01em;
    transition: color var(--transition-fast);
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, var(--light-blue), var(--cta-blue));
    border-radius: var(--radius-full);
    transition: all var(--transition-med);
    transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--white);
}
.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 70%;
}

/* Mobile nav */
@media (max-width: 991.98px) {
    .navbar {
        background-color: var(--dark-bg);
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--glass-border);
    }

    .navbar-collapse {
        background: rgba(8, 11, 20, 0.98);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-md);
        margin-top: 0.75rem;
        padding: 1rem;
        backdrop-filter: blur(20px);
    }

    .navbar-dark .navbar-nav .nav-link {
        padding: 0.65rem 1rem;
        border-radius: var(--radius-sm);
        font-size: var(--text-base);
    }
    .navbar-dark .navbar-nav .nav-link:hover {
        background: var(--glass);
    }

    .btn-cta.ms-lg-3 {
        width: 100%;
        text-align: center;
        margin-top: 0.75rem !important;
    }

    .navbar-toggler {
        border-color: var(--glass-border);
        padding: 0.4rem 0.6rem;
    }
    .navbar-toggler:focus { box-shadow: none; }
}

/* =========================================
   CTA BUTTON
   ========================================= */
.btn-cta {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--cta-blue), var(--primary-blue));
    color: var(--white);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-med);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    /* background: linear-gradient(135deg, var(--blue-accent), var(--cta-blue)); */
    opacity: 0;
    transition: opacity var(--transition-med);
}

.btn-cta:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37,99,235,0.5);
}
.btn-cta:hover::before { opacity: 1; }
.btn-cta > * { position: relative; z-index: 1; }

/* =========================================
   SECTION TITLE
   ========================================= */
.section-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.title-underline {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    border-radius: var(--radius-full);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    background: linear-gradient(145deg, var(--dark-bg) 0%, #0C1028 50%, var(--charcoal) 100%);
    min-height: 100svh;
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: clamp(300px, 50vw, 700px);
    height: clamp(300px, 50vw, 700px);
    background: radial-gradient(circle, rgba(21,101,192,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section h1 {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--white);
}

.hero-section .lead {
    font-size: var(--text-md);
    font-weight: 300;
    line-height: 1.75;
    color: rgba(203, 213, 225, 0.8);
}

.hero-img-glow {
    border-radius: var(--radius-xl);
    box-shadow: 0 0 60px rgba(66,165,245,0.18), var(--shadow-lifted);
    transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
    transition: transform var(--transition-slow);
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}
.hero-img-glow:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    color: var(--border-div);
    font-size: var(--text-sm);
    font-weight: 500;
    backdrop-filter: blur(8px);
    transition: all var(--transition-med);
    white-space: nowrap;
}
.stat-badge:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(66,165,245,0.3);
    color: var(--white);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}
@media (min-width: 992px) {
    .hero-stats { justify-content: flex-start; }
}
@media (max-width: 575.98px) {
    .hero-stats { gap: 0.5rem; }
    .stat-badge {
        font-size: var(--text-xs);
        padding: 0.4rem 0.8rem;
    }
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-card {
    border: 1px solid rgba(21,101,192,0.12);
    transition: all var(--transition-med);
    background: var(--white);
}
.about-card:hover {
    border-color: rgba(21,101,192,0.35);
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(21,101,192,0.08);
}

.about-card i {
    flex-shrink: 0;
    transition: transform var(--transition-med);
}
.about-card:hover i { transform: scale(1.15) rotate(-5deg); }

/* =========================================
   SERVICES SECTION
   ========================================= */
.service-card {
    background: var(--charcoal-mid);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-med);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    transform: scaleX(0);
    transition: transform var(--transition-med);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(66,165,245,0.25);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), var(--shadow-glow);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card i {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--light-blue);
    transition: transform var(--transition-med);
}
.service-card:hover i { transform: scale(1.1) translateY(-4px); }

.service-card .card-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}
.service-card .card-text {
    font-size: var(--text-sm);
    color: rgba(203,213,225,0.7);
    line-height: 1.7;
}

/* =========================================
   WHY CHOOSE US
   ========================================= */
.why-us-list li {
    transition: transform var(--transition-fast);
}
.why-us-list li:hover { transform: translateX(6px); }

.why-us-number {
    width: clamp(36px, 5vw, 44px);
    height: clamp(36px, 5vw, 44px);
    font-size: var(--text-sm);
    flex-shrink: 0;
    font-family: var(--font-display);
    font-weight: 700;
    transition: all var(--transition-med);
}
.why-us-list li:hover .why-us-number {
    box-shadow: 0 0 16px rgba(37,99,235,0.5);
    transform: scale(1.1);
}

/* =========================================
   PORTFOLIO
   ========================================= */
.filter-btn {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    background: transparent;
    border: 1px solid rgba(100,116,139,0.5);
    color: var(--border-div);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-full);
    margin: 0 0.25rem 0.5rem;
    transition: all var(--transition-fast);
    cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}

.portfolio-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--charcoal-mid);
    transition: all var(--transition-med);
}
.portfolio-card:hover {
    transform: translateY(-6px);
    border-color: rgba(66,165,245,0.2);
    box-shadow: var(--shadow-lifted), var(--shadow-glow);
}

.portfolio-img {
    width: 100%;
    height: clamp(170px, 20vw, 220px);
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.portfolio-card:hover .portfolio-img { transform: scale(1.06); }

.portfolio-card .card-body {
    padding: var(--space-md);
}
.portfolio-card .card-title {
    font-family: var(--font-display);
    font-size: var(--text-md);
    color: var(--white);
}
.portfolio-card .card-text {
    font-size: var(--text-sm);
    color: rgba(203,213,225,0.65);
}

/* =========================================
   TEAM SECTION
   ========================================= */
.team-card {
    border-radius: var(--radius-lg);
    transition: all var(--transition-med);
    border: 1px solid transparent;
}
.team-card:hover {
    transform: translateY(-10px);
    border-color: rgba(21,101,192,0.15);
    box-shadow: 0 20px 50px rgba(21,101,192,0.1);
}

.team-member-img {
    width: clamp(90px, 12vw, 110px);
    height: clamp(90px, 12vw, 110px);
    object-fit: cover;
    border: 3px solid var(--light-tint);
    transition: all var(--transition-med);
}
.team-card:hover .team-member-img {
    border-color: var(--primary-blue);
    box-shadow: 0 0 20px rgba(37,99,235,0.3);
}

.team-card h5 {
    font-family: var(--font-display);
    font-size: var(--text-md);
}
.team-card .text-primary-blue {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--light-bg);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--muted-text);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}
.social-icon:hover {
    background: var(--primary-blue);
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(37,99,235,0.35);
}

/* =========================================
   PROCESS TIMELINE
   ========================================= */
.process-timeline {
    gap: var(--space-md);
    flex-wrap: nowrap;
}

.timeline-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    top: 40px !important;
    z-index: 0;
}

.process-step {
    min-width: 0;
    flex: 1 1 0;
}

.step-icon {
    width: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border: 2px solid rgba(66,165,245,0.2);
    transition: all var(--transition-med);
    position: relative;
}
.step-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid transparent;
    transition: border-color var(--transition-med);
}

.process-step:hover .step-icon {
    transform: scale(1.12);
    box-shadow: 0 0 30px rgba(66,165,245,0.4);
    border-color: var(--light-blue);
}
.process-step:hover .step-icon::after {
    border-color: rgba(66,165,245,0.2);
}

.process-step h5 {
    font-family: var(--font-display);
    font-size: var(--text-sm);
}
.process-step p {
    font-size: var(--text-xs);
    color: rgba(203,213,225,0.6);
}

@media (max-width: 991.98px) {
    .process-timeline {
        flex-direction: column;
        align-items: center;
        gap: var(--space-lg);
    }
    .process-step {
        flex: unset;
        width: min(100%, 340px);
    }
    .timeline-line { display: none !important; }
}


/* =========================================
   TESTIMONIALS
   ========================================= */
.carousel-item .lead {
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    font-weight: 300;
    line-height: 1.8;
    font-style: italic;
}
.carousel-item {
    padding: 0 var(--space-md) var(--space-xl);
}
.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--muted-text);
    border: none;
    opacity: 1;
    transition: all var(--transition-med);
}
.carousel-indicators .active {
    background-color: var(--primary-blue) !important;
    transform: scale(1.3);
}

/* =========================================
   CLIENTS MARQUEE
   ========================================= */
.marquee-container {
    height: 70px;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
    animation: scroll 25s linear infinite;
    white-space: nowrap;
    will-change: transform;
    display: flex;
    align-items: center;
    gap: 3.5rem;
    padding-right: 3.5rem;
}
.marquee-track h4 {
    font-family: var(--font-display);
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    color: var(--muted-text);
    opacity: 0.5;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: opacity var(--transition-fast);
}
.marquee-track h4:hover { opacity: 0.85; }
.marquee-container:hover .marquee-track { animation-play-state: paused; }

@keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   STATS SECTION
   ========================================= */
.stats-section {
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 50%, #1E3A5F 100%);
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-section .col i {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: rgba(255,255,255,0.85);
    margin-bottom: 0.5rem;
}
.stats-section h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--white);
}
.stats-section p {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.7);
    margin-top: 0.25rem;
}

/* =========================================
   BLOG / INSIGHTS
   ========================================= */
.blog-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-med);
    border: 1px solid transparent;
}
.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(21,101,192,0.15);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.blog-card img {
    width: 100%;
    height: clamp(160px, 18vw, 210px);
    object-fit: cover;
    transition: transform 0.6s ease;
}
.blog-card:hover img { transform: scale(1.04); }

.blog-card .card-title {
    font-family: var(--font-display);
    font-size: var(--text-md);
    line-height: 1.35;
}
.blog-card .card-text { font-size: var(--text-sm); }

/* =========================================
   CONTACT ICON PERFECT CIRCLE FIX
   ========================================= */
#contact .bg-primary-blue.rounded-circle {
    width: 55px !important;
    height: 55px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0 !important; /* This stops flexbox from squishing it into an oval */
    padding: 0 !important; /* Overrides the Bootstrap p-3 class */
}

/* =========================================
   CONTACT SECTION
   ========================================= */
#contact h2 {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--white);
}
#contact .lead {
    font-size: var(--text-md);
    font-weight: 300;
    color: rgba(203,213,225,0.75);
}

.contact-info-icon {
    width: clamp(44px, 6vw, 52px);
    height: clamp(44px, 6vw, 52px);
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    transition: all var(--transition-med);
}
.contact-info-icon:hover {
    background: var(--blue-accent);
    box-shadow: 0 6px 20px rgba(37,99,235,0.4);
    transform: scale(1.05);
}

.custom-input {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    background: var(--charcoal) !important;
    border: 1px solid rgba(100,116,139,0.35) !important;
    color: var(--white) !important;
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    transition: all var(--transition-fast);
}
.custom-input::placeholder { color: rgba(100,116,139,0.6); }
.custom-input:focus {
    background: rgba(30,34,55,0.8) !important;
    border-color: var(--light-blue) !important;
    box-shadow: 0 0 0 3px rgba(66,165,245,0.18) !important;
    color: var(--white) !important;
    outline: none;
}

/* Contact form card */
#contact .col-lg-7 .bg-dark {
    background: var(--charcoal-mid) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-xl) !important;
    padding: clamp(1.5rem, 4vw, 2.5rem) !important;
}

/* Google Maps embed */
.map-container {
    height: clamp(160px, 20vw, 220px);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.map-container iframe { border-radius: var(--radius-md); }

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: #040608;
    border-top: 1px solid var(--glass-border);
}
footer h5 {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
}
footer p {
    font-size: var(--text-sm);
    color: rgba(203,213,225,0.5);
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: rgba(203,213,225,0.6);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}
.footer-social:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(37,99,235,0.35);
}

.footer-links a {
    font-size: var(--text-sm);
    color: rgba(203,213,225,0.5);
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-fast);
}
.footer-links a:hover {
    color: var(--light-blue);
    transform: translateX(4px);
}

.hover-white:hover { color: var(--white) !important; }

/* =========================================
   NEWSLETTER FORM FIX
   ========================================= */
footer form.d-flex {
    align-items: stretch; /* Ensures button and input are exactly the same height */
}

/* Newsletter Input */
footer .form-control {
    font-size: var(--text-sm);
    background: var(--glass) !important;
    border: 1px solid var(--glass-border) !important;
    border-right: none !important; /* Removes the border between input and button */
    color: var(--white) !important;
    transition: all var(--transition-fast);
    
    /* Force Pill on Left, Flat on Right */
    border-top-left-radius: 50rem !important;
    border-bottom-left-radius: 50rem !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

footer .form-control:focus {
    border-color: var(--light-blue) !important;
    box-shadow: 0 0 0 3px rgba(66,165,245,0.15) !important;
}

footer .form-control::placeholder { 
    color: rgba(100,116,139,0.5); 
}

/* Newsletter Subscribe Button */
footer form .btn-cta {
    font-size: 0.85rem !important; /* Keeps text slightly smaller */
    font-weight: 600;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    
    /* Force Flat on Left, Pill on Right (Overrides .btn-cta global radius) */
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 50rem !important;
    border-bottom-right-radius: 50rem !important;
}
/* =========================================
   SCROLL TO TOP BUTTON
   ========================================= */
#scrollTopBtn {
    z-index: 1050;
    width: clamp(42px, 6vw, 50px);
    height: clamp(42px, 6vw, 50px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-med);
    font-size: 1rem;
}
#scrollTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================================
   CANVAS PARTICLES
   ========================================= */
#hero-particles {
    pointer-events: none;
    z-index: 0;
}

/* =========================================
   AOS OVERRIDE
   ========================================= */
[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
}

/* =========================================
   RESPONSIVE — TABLETS (768px – 991px)
   ========================================= */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding-top: 90px;
        text-align: center;
    }
    .hero-section .d-flex.gap-3 {
        justify-content: center;
    }
    .hero-section .hero-stats {
        justify-content: center;
    }

    .about-card { padding: 0.875rem !important; }

    .service-card { padding: 1.25rem; }

    .portfolio-img { height: 190px; }

    .stats-section h2 { font-size: clamp(2rem, 5vw, 2.8rem); }

    #contact .row.g-5 > .col-lg-5,
    #contact .row.g-5 > .col-lg-7 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    footer .col-lg-4,
    footer .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* =========================================
   RESPONSIVE — MOBILE LARGE (576px – 767px)
   ========================================= */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        text-align: center;
        padding-top: 85px;
    }
    .hero-section .d-flex.flex-sm-row {
        flex-direction: row !important;
    }
    .hero-section .justify-content-lg-start {
        justify-content: center !important;
    }

    .section-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }

    .portfolio-img { height: 200px; }

    .team-member-img {
        width: 90px;
        height: 90px;
    }

    .process-step {
        width: min(100%, 260px);
    }

    .stats-section .row {
        row-gap: 1.5rem;
    }

    .blog-card img { height: 180px; }
}

/* =========================================
   RESPONSIVE — MOBILE SMALL (< 576px)
   ========================================= */
@media (max-width: 575.98px) {
    .hero-section {
        text-align: center;
        padding-top: 80px;
        padding-bottom: 2rem;
    }
    .hero-section h1 {
        font-size: clamp(2rem, 10vw, 2.6rem);
        margin-bottom: 0.75rem !important;
    }
    .hero-section .lead {
        font-size: var(--text-base);
        margin-bottom: 1.25rem !important;
    }
    .hero-section .d-flex.gap-3 {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem !important;
    }
    .hero-section .btn {
        width: 100%;
        max-width: 260px;
    }

    .section-title { font-size: clamp(1.5rem, 8vw, 2rem); }

    .about-card { padding: 0.75rem !important; }
    .about-card i { font-size: 1.5rem !important; }

    .service-card {
        padding: var(--space-md);
        border-radius: var(--radius-md);
    }
    .service-card i { font-size: 1.75rem !important; }

    #portfolio .text-center.mb-5 .filter-btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
        margin: 0 0.15rem 0.4rem;
    }

    .portfolio-img { height: 180px; }

    .team-member-img {
        width: 80px;
        height: 80px;
    }
    .team-card h5 { font-size: 0.9rem; }

    .step-icon {
        width: 56px;
        height: 56px;
    }
    .step-icon i { font-size: 1.1rem; }

    .process-step {
        width: 100%;
        max-width: 280px;
    }

    .stats-section .row { row-gap: 1.75rem; }
    .stats-section .col { flex: 0 0 50%; max-width: 50%; }
    .stats-section h2 { font-size: clamp(1.8rem, 9vw, 2.4rem); }

    .carousel-item .lead {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
    .carousel-item .w-75 {
        width: 95% !important;
    }

    .marquee-container { height: 55px; }
    .marquee-track { gap: 2.5rem; }
    .marquee-track h4 { font-size: 0.8rem; }

    .blog-card img { height: 165px; }

    #contact h2 { font-size: clamp(1.5rem, 8vw, 2rem); }
    #contact .col-lg-7 .bg-dark {
        padding: 1.25rem !important;
        border-radius: var(--radius-lg) !important;
    }
    .custom-input { font-size: 0.85rem; }

    #contact .d-flex.align-items-start {
        gap: 0.75rem;
        flex-wrap: nowrap;
    }
    .contact-info-icon {
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
    }
    #contact h5 { font-size: 0.9rem; }
    #contact p.text-light-muted { font-size: 0.8rem; }

    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    footer h5 { margin-bottom: 0.6rem; }
    footer .d-flex.gap-3 { gap: 0.5rem !important; }

    #scrollTopBtn {
        width: 42px;
        height: 42px;
        margin: 0.75rem !important;
    }
}

/* =========================================
   RESPONSIVE — VERY SMALL (< 360px)
   ========================================= */
@media (max-width: 359.98px) {
    .hero-section h1 { font-size: 1.85rem; }
    .section-title { font-size: 1.4rem; }
    .filter-btn { font-size: 0.7rem; padding: 0.25rem 0.6rem; }
    .stat-badge { font-size: 0.7rem; padding: 0.35rem 0.65rem; }
    .stats-section .col { flex: 0 0 50%; max-width: 50%; }
    .team-member-img { width: 70px; height: 70px; }
}

/* =========================================
   RESPONSIVE — DESKTOP LARGE (≥ 1400px)
   ========================================= */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    .hero-section h1 { font-size: 5rem; }
    .service-card { padding: 2.25rem; }
    .process-step p { font-size: 0.875rem; }
}

/* =========================================
   ACCESSIBILITY
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

:focus-visible {
    outline: 2px solid var(--light-blue);
    outline-offset: 3px;
    border-radius: 3px;
}

/* =========================================
   PRINT MEDIA
   ========================================= */
@media print {
    .navbar,
    #scrollTopBtn,
    #hero-particles,
    .marquee-container {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}