/* ===================================================
   Brand3 — Main Stylesheet
   =================================================== */

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #0ea5e9;
    --accent-color: #f59e0b;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
}

/* ─── Reset ─────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ─── Typography ─────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-bg);
    line-height: 1.25;
}

.text-gradient {
    background: linear-gradient(135deg, #818cf8, var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Navbar ─────────────────────────────────────── */
.navbar {
    padding: 1.1rem 0;
    transition: var(--transition);
    background: transparent;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
}

/* Solid white navbar once scrolled */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(79, 70, 229, 0.08);
    padding: 0.6rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* On white background (non-hero pages the navbar becomes white immediately via JS) */
.navbar-white {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.navbar-brand span {
    transition: var(--transition);
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--white) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

/* Scrolled nav links turn dark */
.navbar.scrolled .nav-link,
.navbar-white .nav-link {
    color: var(--dark-bg) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: calc(100% - 2rem);
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.navbar.scrolled .nav-link:hover,
.navbar-white .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Navbar toggler (mobile) */
.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    filter: invert(1);
}

.navbar.scrolled .navbar-toggler-icon,
.navbar-white .navbar-toggler-icon {
    filter: none;
}

/* Dropdown */
.dropdown-menu {
    border: none !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12) !important;
    padding: 0.75rem !important;
    margin-top: 0.5rem;
    animation: dropFade 0.2s ease;
}

@keyframes dropFade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    border-radius: 8px !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 1rem !important;
    transition: var(--transition);
    color: var(--text-main) !important;
}

.dropdown-item:hover {
    background: rgba(79, 70, 229, 0.07) !important;
    color: var(--primary-color) !important;
}

/* ─── Buttons ─────────────────────────────────────── */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.45);
    color: white;
}

.btn-primary-custom:active {
    transform: translateY(-1px);
}

/* ─── Hero Section ─────────────────────────────────── */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    /* default fallback — overridden inline per-page */
    background: linear-gradient(135deg, rgba(10,10,40,0.88) 0%, rgba(79,70,229,0.70) 100%),
                url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=85') center/cover no-repeat;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

/* ─── Glass Card ─────────────────────────────────── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ─── Service Cards ─────────────────────────────────── */
.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    height: 100%;
    transition: var(--transition);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    border-color: rgba(79, 70, 229, 0.2);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 58px;
    height: 58px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(-5deg) scale(1.05);
}

/* ─── Stats ─────────────────────────────────────── */
.stat-item h3 {
    font-size: 2.8rem;
    margin-bottom: 0.4rem;
    font-weight: 800;
}

/* ─── Section Spacing ─────────────────────────────── */
section {
    padding: 90px 0;
}

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

.section-title h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

/* ─── Accordion ──────────────────────────────────── */
.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.05);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}

/* ─── Footer ─────────────────────────────────────── */
footer {
    background: var(--dark-bg);
    color: #94a3b8;
    padding: 80px 0 24px;
}

footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

footer a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    padding-left: 0;
}

/* ─── Utility ─────────────────────────────────────── */
.bg-primary-subtle {
    background-color: rgba(79, 70, 229, 0.08) !important;
}

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

.max-w-600 {
    max-width: 600px;
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.2rem;
    }

    section {
        padding: 65px 0;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(14px);
        border-radius: var(--radius-md);
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: var(--shadow-lg);
    }

    .navbar-collapse .nav-link {
        color: var(--dark-bg) !important;
    }

    .navbar-collapse .btn-primary-custom {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.9rem;
    }

    .hero-section {
        padding: 140px 0 80px;
    }

    .glass-card {
        padding: 1.5rem;
    }
}