/* ---- VARIABLES & COLORS ---- */
:root {
    --primary-gradient: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
    --bg-light: #f8f9fa;
    --dark: #1e1e24;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: #495057;
    background-color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .btn {
    font-family: var(--font-heading);
}

/* ---- NAVBAR ---- */
.navbar-logo {
    height: 100px;
    width: auto;
    mix-blend-mode: screen;
    filter: brightness(1.2);
}

/* FIX: Reduce logo size on mobile to avoid overflow */
@media (max-width: 991px) {
    .navbar-logo {
        height: 60px;
    }
}

.navbar {
    padding: 20px 0;
    transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
    background: transparent;
    border: none;
}

/* Scrolled state — solid dark background */
.navbar.scrolled {
    background: rgba(10, 10, 20, 0.96) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 10px 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* ---- MOBILE NAV DROPDOWN ---- */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(8, 8, 18, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255,255,255,0.08);
        border-radius: 0 0 20px 20px;
        padding: 16px 20px 24px;
        margin-top: 10px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    }

    .navbar-nav {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
        width: 100%;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-link {
        display: block;
        width: 100%;
        padding: 12px 16px !important;
        font-size: 1rem;
        color: rgba(255,255,255,0.85) !important;
        border-radius: 10px;
        transition: background 0.2s, color 0.2s;
    }
    .navbar-nav .nav-link:hover {
        background: rgba(67,97,238,0.12);
        color: #fff !important;
    }

    .nav-link::after { display: none; }

    .navbar-nav .btn-white-glass {
        display: block;
        width: 100%;
        text-align: center;
        margin: 8px 0 0 !important;
        padding: 12px 16px !important;
        border-radius: 10px !important;
        background: var(--primary-gradient) !important;
        border-color: transparent !important;
        color: #fff !important;
        font-weight: 700;
    }

    .navbar-toggler {
        padding: 6px 10px;
    }
    .navbar-toggler:focus {
        box-shadow: none;
    }
    .navbar-toggler i {
        font-size: 1.3rem;
        color: #fff !important;
    }
}

.nav-link {
    font-weight: 500;
    transition: 0.3s;
    font-size: 1.05rem;
    position: relative;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: #fff; transition: 0.3s;
}
.nav-link:hover::after { width: 100%; }


/* ---- HERO SECTION ---- */
.hero-section {
    min-height: 100vh;
    padding-top: 0;
    position: relative;
    background-color: #000;
}

/* Mobile hero button fix */
@media (max-width: 575px) {
    .hero-section .d-flex.gap-3 {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 12px !important;
    }

    .hero-section .btn {
        flex: 1;
        min-width: 0;
        padding: 14px 10px !important;
        font-size: 0.88rem !important;
        white-space: nowrap;
        text-align: center;
    }
}

/* ---- BACKGROUND VIDEO — SEAMLESS LOOP ---- */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    filter: saturate(1.4) contrast(1.1);
    will-change: transform;
    backface-visibility: hidden;
}

/* ---- OVERLAY 1: Static dark layer for text readability ---- */
.hero-overlay-static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* ---- OVERLAY 2: Gradient fade at bottom for smooth section transition ---- */
.hero-overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

/* ---- GLASS BADGE ---- */
.glass-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* TYPOGRAPHY */
.fw-900 { font-weight: 900 !important; letter-spacing: -2px; }

.hero-title {
    line-height: 1.05;
    text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.text-stroke-white {
    -webkit-text-stroke: 2px rgba(255,255,255,0.85);
    color: transparent;
    transition: 0.5s;
}

/* Utils */

/*
 * FIX: text-gradient — added a plain color fallback before the webkit properties
 * so text is never invisible in browsers that don't support background-clip: text.
 * The color: #4361ee acts as the fallback; the gradient overrides it where supported.
 */
.text-gradient {
    color: #4361ee; /* fallback for browsers without -webkit-background-clip: text support */
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient { background: var(--primary-gradient) !important; }
.bg-light-gradient { background: linear-gradient(180deg, #f8f9fa 0%, #eef2ff 100%); }
.max-w-700 { max-width: 700px; }
.ls-2 { letter-spacing: 2px; }
.z-index-2 { z-index: 2; }
.text-white-75 { color: rgba(255,255,255,0.8); }

/* ---- ABOUT SECTION ---- */
.about-section {
    background: #fff;
    overflow: visible;
}

.about-img-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 28px 28px 28px 20px;
}

/* FIX: Constrain floating badges so they don't overflow on small screens */
@media (max-width: 575px) {
    .about-img-wrapper {
        padding: 40px 16px 40px 16px;
    }
    .about-float-badge {
        font-size: 0.72rem !important;
        padding: 6px 10px !important;
    }
    .badge-years .badge-num {
        font-size: 1rem !important;
    }
}

.about-glow-ring {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 85%; height: 85%;
    border-radius: 24px;
    background: var(--primary-gradient);
    opacity: 0.1; filter: blur(36px); z-index: 0;
    animation: pulseGlow 4s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { opacity: 0.10; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 0.18; transform: translate(-50%, -50%) scale(1.06); }
}

.about-main-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: unset;
    border-radius: 20px !important;
    display: block;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    animation: floatImage 6s ease-in-out infinite;
    box-shadow: 0 20px 50px rgba(67, 97, 238, 0.18) !important;
}
.about-main-img:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 30px 70px rgba(67, 97, 238, 0.26) !important;
}
@keyframes floatImage {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

/* Floating badges */
.about-float-badge {
    position: absolute; z-index: 3;
    background: #fff;
    box-shadow: 0 6px 24px rgba(67, 97, 238, 0.16);
    font-family: var(--font-heading); font-weight: 700;
    color: var(--dark); display: flex; align-items: center;
    gap: 4px; white-space: nowrap;
}
.badge-years {
    bottom: 14px; left: 4px;
    flex-direction: column; gap: 0;
    padding: 10px 16px;
    border-radius: 14px; text-align: center;
    border-left: 4px solid #4361ee;
}
.badge-years .badge-num {
    font-size: 1.3rem; font-weight: 900; line-height: 1;
    background: var(--primary-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.badge-years .badge-label { font-size: 0.7rem; color: #888; font-weight: 500; }
.badge-projects {
    top: 14px; right: 4px;
    font-size: 0.82rem;
    padding: 8px 14px;
    border-radius: 50px;
    border-right: 4px solid #7209b7; color: #4361ee;
}
.badge-projects i { color: #7209b7; }

@keyframes floatBadge      { 0%,100%{transform:translateY(0)}  50%{transform:translateY(-7px)} }
@keyframes floatBadgeDelay { 0%,100%{transform:translateY(0)}  50%{transform:translateY(-5px)} }
.animate-float       { animation: floatBadge 3.5s ease-in-out infinite; }
.animate-float-delay { animation: floatBadgeDelay 4.2s ease-in-out 0.8s infinite; }

.stat-box {
    background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
    border: 1px solid rgba(67, 97, 238, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-box:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(67,97,238,0.12); }
.stat-box h3 { font-size: 1.4rem; }

/* Buttons */
.btn-white-glass {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}
.btn-white-glass:hover {
    background: white;
    color: var(--dark);
}

/*
 * FIX: btn-gradient-glow hover — removed scale(1.05) which caused layout
 * jitter on surrounding elements. translateY(-3px) alone gives a clean lift
 * effect without affecting the button's footprint in the flow.
 */
.btn-gradient-glow {
    background: linear-gradient(135deg, #4361ee 0%, #f72585 100%);
    color: white !important;
    border: none;
    box-shadow: 0 0 20px rgba(67, 97, 238, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-gradient-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(247, 37, 133, 0.55);
    color: white;
}
.btn-outline-light:hover { background: #fff; color: #000; }

/* ---- SERVICES DARK SECTION ---- */
.services-dark-section {
    background: #0a0a0f;
    position: relative;
    overflow: hidden;
}

/* Subtle dot-grid background */
.svc-grid-bg {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(67,97,238,0.12) 1px, transparent 1px);
    background-size: 36px 36px;
    z-index: 0;
    pointer-events: none;
}

/* Ambient blobs */
.services-dark-section::before,
.services-dark-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.services-dark-section::before {
    width: 500px; height: 500px;
    background: rgba(67,97,238,0.15);
    top: -100px; left: -150px;
}
.services-dark-section::after {
    width: 400px; height: 400px;
    background: rgba(114,9,183,0.12);
    bottom: -100px; right: -100px;
}

/* Section eyebrow label */
.svc-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: #4361ee;
    text-transform: uppercase;
    border: 1px solid rgba(67,97,238,0.35);
    padding: 5px 16px;
    border-radius: 50px;
    background: rgba(67,97,238,0.08);
}

.svc-subtext {
    color: rgba(255,255,255,0.45);
    font-size: 1rem;
    max-width: 520px;
}

/* ---- SERVICE CARD ---- */
.svc-card {
    position: relative;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 44px 36px 36px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.23,1,0.32,1),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
    height: 100%;
}

.svc-card:hover {
    transform: translateY(-10px);
    border-color: rgba(67,97,238,0.5);
    box-shadow: 0 24px 60px rgba(67,97,238,0.2), 0 0 0 1px rgba(67,97,238,0.15);
}

/* Card number top-right */
.svc-num {
    position: absolute;
    top: 20px; right: 24px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.1);
    transition: color 0.4s;
}
.svc-card:hover .svc-num { color: rgba(67,97,238,0.5); }

/* Laser line that sweeps across on hover */
.svc-laser {
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4361ee, #a855f7, transparent);
    transition: left 0.6s cubic-bezier(0.23,1,0.32,1);
    z-index: 2;
}
.svc-card:hover .svc-laser { left: 100%; }

/* Corner glow */
.svc-corner-glow {
    position: absolute;
    bottom: -60px; right: -60px;
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(67,97,238,0.25), transparent 70%);
    border-radius: 50%;
    transition: opacity 0.4s, transform 0.4s;
    opacity: 0;
    transform: scale(0.6);
}
.svc-card:hover .svc-corner-glow {
    opacity: 1;
    transform: scale(1);
}

/* Icon wrapper */
.svc-icon-wrap {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, rgba(67,97,238,0.15), rgba(114,9,183,0.15));
    border: 1px solid rgba(67,97,238,0.25);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 24px;
    transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
    background-clip: padding-box;
}
.svc-icon-wrap i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.svc-card:hover .svc-icon-wrap {
    transform: scale(1.12) rotate(-4deg);
    background: linear-gradient(135deg, rgba(67,97,238,0.3), rgba(114,9,183,0.3));
    box-shadow: 0 0 20px rgba(67,97,238,0.3);
}

/* Card title & description */
.svc-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.svc-desc {
    color: rgba(255,255,255,0.45);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Explore link */
.svc-link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    gap: 4px;
    transition: gap 0.3s ease;
}
.svc-link:hover { gap: 10px; }
.svc-link i { -webkit-text-fill-color: #7209b7; font-size: 0.8rem; }

/* ---- PORTFOLIO SECTION ---- */
.portfolio-section {
    background: #f8f9ff;
    overflow: hidden;
}

.port-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: #4361ee;
    text-transform: uppercase;
    border: 1px solid rgba(67,97,238,0.3);
    padding: 5px 16px;
    border-radius: 50px;
    background: rgba(67,97,238,0.07);
}

/* ---- FILTER TABS ---- */
.port-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.port-filter-btn {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 9px 22px;
    border-radius: 50px;
    border: 1.5px solid rgba(67,97,238,0.2);
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    letter-spacing: 0.3px;
}
.port-filter-btn:hover {
    border-color: #4361ee;
    color: #4361ee;
    background: rgba(67,97,238,0.05);
    transform: translateY(-2px);
}
.port-filter-btn.active {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(67,97,238,0.3);
}

/* ---- PORTFOLIO GRID — CSS COLUMNS (masonry-like) ---- */
.port-grid {
    columns: 3;
    column-gap: 20px;
}

@media (max-width: 991px) { .port-grid { columns: 2; } }
@media (max-width: 575px) { .port-grid { columns: 1; } }

/* ---- PORTFOLIO ITEM ---- */
.port-item {
    break-inside: avoid;
    margin-bottom: 20px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/*
 * FIX: Removed fixed height override on wide items.
 * In a CSS columns masonry layout, forcing a fixed height
 * creates awkward whitespace gaps in adjacent columns.
 * Let images use the natural aspect ratio via object-fit: cover
 * with a slightly taller default height instead.
 */
.port-wide .port-img-wrap img {
    height: 280px;
}

/* Hidden state for filter */
.port-item.hidden {
    display: none;
}

/* ---- PORTFOLIO CARD ---- */
.port-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.port-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.port-img-wrap img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    /* FIX: Added loading="lazy" equivalent via CSS content-visibility for
       offscreen images. Also add loading="lazy" to img tags directly in HTML. */
    transition: transform 0.5s cubic-bezier(0.23,1,0.32,1);
}

.port-card:hover .port-img-wrap img {
    transform: scale(1.08);
}

/* Overlay */
.port-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,30,0.92) 0%, rgba(10,10,30,0.3) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.port-card:hover .port-overlay { opacity: 1; }

.port-cat-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.port-overlay h4 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.port-overlay p {
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
    margin: 0 0 12px;
}

/* View icon button */
.port-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    color: #fff;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
    align-self: flex-start;
}
.port-view-btn:hover {
    background: #4361ee;
    border-color: #4361ee;
    color: #fff;
    transform: scale(1.1);
}

/* ANIMATIONS */
.animate-fade-up {
    opacity: 0; transform: translateY(30px);
    transition: 0.8s ease-out;
}
.animate-fade-up.visible { opacity: 1; transform: translateY(0); }

.btn-gradient { background: var(--primary-gradient); color: white; border: none; }
.btn-outline-gradient { border: 2px solid #4361ee; color: #4361ee; background: transparent; }
.btn-outline-gradient:hover { background: var(--primary-gradient); color: white; }

/* ===================================================
   CONTACT SECTION
=================================================== */
.contact-section {
    background: #07070f;
    position: relative;
    overflow: hidden;
}

.contact-grid-bg {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(67,97,238,0.1) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none; z-index: 0;
}

/* Ambient blobs */
.contact-section::before,
.contact-section::after {
    content: ''; position: absolute;
    border-radius: 50%; filter: blur(90px);
    pointer-events: none; z-index: 0;
}
.contact-section::before {
    width: 450px; height: 450px;
    background: rgba(67,97,238,0.14);
    top: -80px; right: -80px;
}
.contact-section::after {
    width: 350px; height: 350px;
    background: rgba(114,9,183,0.12);
    bottom: -60px; left: -80px;
}

.contact-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 4px; color: #4361ee;
    text-transform: uppercase;
    border: 1px solid rgba(67,97,238,0.35);
    padding: 5px 16px; border-radius: 50px;
    background: rgba(67,97,238,0.08);
}

/* ---- Info Cards ---- */
.contact-info-stack { display: flex; flex-direction: column; gap: 16px; }

.contact-info-card {
    display: flex; align-items: center; gap: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px; padding: 18px 20px;
    transition: border-color 0.3s, transform 0.3s;
}
.contact-info-card:hover {
    border-color: rgba(67,97,238,0.4);
    transform: translateX(6px);
}

.ci-icon {
    width: 46px; height: 46px; flex-shrink: 0;
    background: linear-gradient(135deg, rgba(67,97,238,0.18), rgba(114,9,183,0.18));
    border: 1px solid rgba(67,97,238,0.25);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    background-clip: padding-box;
}
.ci-icon i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ci-label {
    font-size: 0.72rem; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase; color: rgba(255,255,255,0.35);
    margin: 0 0 3px;
}
.ci-value {
    font-family: var(--font-heading); font-size: 0.92rem;
    font-weight: 600; color: #fff; margin: 0;
}

/* Social icons in contact */
.contact-socials { display: flex; gap: 10px; }
.csocial-btn {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5); font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}
.csocial-btn:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #fff; transform: translateY(-3px);
}

/* ---- Contact Form Card ---- */
.contact-form-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

/* FIX: Reduce padding on small screens so form doesn't clip */
@media (max-width: 575px) {
    .contact-form-card {
        padding: 24px 18px;
    }
}

.cf-label {
    font-family: var(--font-heading); font-size: 0.8rem;
    font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

/*
 * FIX: Service pills on mobile — allow wrapping and reduce
 * padding so they fit on narrow screens without overflowing.
 */
.service-selector {
    display: flex; flex-wrap: wrap; gap: 8px;
}

.svc-pill {
    cursor: pointer;
}
.svc-pill span {
    display: inline-flex; align-items: center;
    font-family: var(--font-heading); font-size: 0.82rem;
    font-weight: 600; color: rgba(255,255,255,0.55);
    padding: 8px 14px; border-radius: 50px;
    border: 1.5px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    transition: all 0.25s ease; cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.svc-pill span i { opacity: 0.7; }

/*
 * FIX: The original code had a JS-driven pill-active class
 * conflicting with this CSS :checked selector. The JS toggle
 * has been removed — this CSS rule is now the single source
 * of truth for pill selected state.
 */
.svc-pill input:checked + span {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #fff; font-weight: 700;
    box-shadow: 0 4px 16px rgba(67,97,238,0.35);
}
.svc-pill input:checked + span i { opacity: 1; }
.svc-pill span:hover {
    border-color: rgba(67,97,238,0.4);
    color: rgba(255,255,255,0.9);
}

/* Form inputs */
.cf-field {
    position: relative;
}
.cf-input {
    width: 100%; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 14px 18px;
    color: #fff; font-family: var(--font-body);
    font-size: 0.92rem; outline: none;
    transition: border-color 0.3s, background 0.3s;
    -webkit-appearance: none;
}
.cf-input::placeholder { color: rgba(255,255,255,0.3); }
.cf-input:focus {
    border-color: rgba(67,97,238,0.6);
    background: rgba(67,97,238,0.06);
}

/*
 * FIX: cf-select — -webkit-appearance: none hides the native
 * dropdown arrow. Add a custom SVG arrow via background-image
 * so users can tell it's a select element on all browsers.
 */
.cf-select {
    cursor: pointer;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.cf-select option { background: #111; color: #fff; }
.cf-textarea { resize: vertical; min-height: 110px; }

/* Focus underbar animation */
.cf-focus-bar {
    position: absolute; bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: width 0.4s ease, left 0.4s ease;
}
.cf-input:focus ~ .cf-focus-bar {
    width: 100%; left: 0;
}

/* Submit button loading state */
#contactSubmitBtn.loading .btn-text::after {
    content: '...'; animation: dots 1s infinite;
}
@keyframes dots {
    0%   { content: '.'; }
    33%  { content: '..'; }
    66%  { content: '...'; }
}


/* ===================================================
   FOOTER
=================================================== */
.site-footer {
    background: #050508;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-top {
    padding: 70px 0 50px;
}

.footer-logo {
    height: 48px; width: auto;
    filter: brightness(1.3);
    mix-blend-mode: screen;
}

.footer-tagline {
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem; line-height: 1.7;
    max-width: 300px;
}

/* Footer social icons */
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.fsocial-btn {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.4); font-size: 0.85rem;
    text-decoration: none; transition: all 0.3s;
}
.fsocial-btn:hover {
    background: var(--primary-gradient);
    border-color: transparent; color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(67,97,238,0.35);
}

/* Column headings */
.footer-col-title {
    font-family: var(--font-heading); font-size: 0.8rem;
    font-weight: 800; letter-spacing: 3px;
    text-transform: uppercase; color: #fff;
    margin-bottom: 20px;
}

/* Footer nav links */
.footer-links {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.footer-links a {
    color: rgba(255,255,255,0.4); font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
    display: inline-block;
}
.footer-links a:hover {
    color: #fff;
    padding-left: 6px;
}

/* Newsletter */
.footer-newsletter-text {
    color: rgba(255,255,255,0.4);
    font-size: 0.87rem; margin-bottom: 14px;
}
.footer-newsletter {
    display: flex; gap: 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px; overflow: hidden;
    transition: border-color 0.3s;
}
.footer-newsletter:focus-within {
    border-color: rgba(67,97,238,0.5);
}
.fn-input {
    flex: 1; background: transparent; border: none;
    outline: none; padding: 12px 18px;
    color: #fff; font-size: 0.87rem;
}
.fn-input::placeholder { color: rgba(255,255,255,0.3); }
.fn-btn {
    width: 44px; height: 44px; flex-shrink: 0;
    background: var(--primary-gradient);
    border: none; cursor: pointer;
    color: #fff; font-size: 0.9rem;
    border-radius: 50px; margin: 2px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.fn-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(67,97,238,0.5);
}
.footer-newsletter-note {
    color: rgba(255,255,255,0.22); font-size: 0.75rem;
}

/* Divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.08) 30%, rgba(255,255,255,0.08) 70%, transparent);
    margin: 0 24px;
}

/* Bottom bar */
.footer-bottom {
    padding: 20px 0;
}
.footer-copy {
    color: rgba(255,255,255,0.3); font-size: 0.85rem;
}
.footer-legal-links {
    display: flex; align-items: center; gap: 10px;
    color: rgba(255,255,255,0.2); font-size: 0.82rem;
}
.footer-legal-links a {
    color: rgba(255,255,255,0.35); text-decoration: none;
    transition: color 0.2s;
}
.footer-legal-links a:hover { color: #fff; }


/* ---- SERVICE PAGE HERO ---- */
.service-hero {
    position: relative;
    height: 60vh;
    min-height: 450px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/*
 * FIX: service-hero text centering on mobile.
 * The inner container div needs explicit text alignment
 * to stay centered when Bootstrap's column stacking kicks in.
 */
.service-hero .container {
    text-align: center;
}
.service-hero .container p {
    margin-left: auto;
    margin-right: auto;
}

/* Ensure video covers the shorter area */
.service-hero .hero-video {
    height: 100%;
    width: 100%;
    object-fit: cover;
}