/* =========================================================
   KIC KUST — Ultra Premium Global Design System v3.0
   Color: Primary #662D91 | Secondary #FFA942
   Fonts: Montserrat, Poppins
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ─── ROOT VARIABLES ────────────────────────────────────── */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

:root {
    --primary: #662D91;
    --primary-dark: #4a1d6b;
    --primary-light: #8b42c0;
    --secondary: #FFA942;
    --secondary-dark: #e8922c;
    --dark: #0f0f1a;
    --dark-alt: #1a1a2e;
    --light: #f8f4ff;
    --white: #ffffff;
    --text-muted: #64748b;
    --border: rgba(102, 45, 145, 0.12);

    --gradient-primary: linear-gradient(135deg, #662D91 0%, #9333ea 100%);
    --gradient-secondary: linear-gradient(135deg, #FFA942 0%, #f97316 100%);
    --gradient-dark: linear-gradient(135deg, #0f0f1a 0%, #1e1040 100%);
    --gradient-hero: linear-gradient(135deg, rgba(102, 45, 145, 0.9) 0%, rgba(15, 15, 26, 0.85) 100%);

    --glass: rgba(255, 255, 255, 0.8);
    --glass-heavy: rgba(255, 255, 255, 0.95);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 10px 25px -5px rgba(102, 45, 145, 0.12);
    --shadow-lg: 0 20px 40px -10px rgba(102, 45, 145, 0.2);
    --shadow-xl: 0 30px 60px -15px rgba(102, 45, 145, 0.25);
    --shadow-glow: 0 0 40px rgba(102, 45, 145, 0.3);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-2xl: 48px;
    --radius-pill: 100px;

    --transition-fast: all 0.2s ease;
    --transition-base: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    background: var(--white);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ─── TYPOGRAPHY ────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.display-1,
.display-2,
.display-3,
.display-4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-gradient-secondary {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ─── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* ─── NAVBAR ────────────────────────────────────────────── */
.navbar {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 24px 0;
    transition: var(--transition-bounce);
    border-bottom: 1px solid transparent;
    box-shadow: none;
}

.navbar.scrolled {
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    top: 0 !important;
}

@media (min-width: 992px) {
    .navbar {
        top: 0;
    }
}


.navbar.scrolled .nav-link {
    color: #1e293b !important;
}

.navbar.scrolled .navbar-brand .brand-kic {
    color: var(--primary);
}

.navbar.scrolled .navbar-brand .brand-kust {
    color: var(--secondary-dark);
}

/* Default (Hero) state */
.navbar:not(.scrolled) .nav-link {
    color: #ffffff !important;
}

.navbar:not(.scrolled) .navbar-brand .brand-kic,
.navbar:not(.scrolled) .navbar-brand .brand-kust {
    color: #ffffff !important;
}

.navbar-brand img {
    height: 45px;
    width: auto;
    transition: var(--transition-base);
}

.navbar .logo-dark {
    display: none;
}

.navbar .logo-light {
    display: block;
}

.navbar.scrolled .logo-light {
    display: none;
}

.navbar.scrolled .logo-dark {
    display: block;
}

.nav-link {
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 8px 18px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: rgba(102, 45, 145, 0.06);
}

.nav-link.active {
    color: var(--secondary) !important;
    background: transparent;
    font-weight: 700;
}

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

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

.btn-nav-cta {
    background: var(--gradient-primary);
    color: white !important;
    padding: 10px 24px !important;
    border-radius: var(--radius-pill) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    box-shadow: 0 4px 15px rgba(102, 45, 145, 0.3);
    transition: var(--transition-bounce) !important;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 45, 145, 0.45) !important;
    color: white !important;
}

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn-premium {
    background: var(--gradient-primary);
    color: white !important;
    border: none;
    border-radius: var(--radius-pill);
    padding: 14px 36px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: var(--transition-bounce);
    box-shadow: 0 8px 25px rgba(102, 45, 145, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-premium:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(102, 45, 145, 0.45);
    color: white !important;
}

.btn-premium:hover::after {
    opacity: 1;
}

.btn-premium-secondary {
    background: var(--gradient-secondary);
    color: white !important;
    border: none;
    border-radius: var(--radius-pill);
    padding: 14px 36px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition-bounce);
    box-shadow: 0 8px 25px rgba(255, 169, 66, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-premium-secondary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(255, 169, 66, 0.45);
    color: white !important;
}

.btn-outline-premium {
    background: transparent;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-pill);
    padding: 12px 34px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-outline-premium:hover {
    background: white;
    color: var(--primary) !important;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-glass-premium {
    background: rgba(102, 45, 145, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 45, 145, 0.2);
    color: var(--primary) !important;
    border-radius: var(--radius-pill);
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-bounce);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-glass-premium:hover {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-premium-sm {
    padding: 8px 18px;
    font-size: 0.8rem;
}


/* ─── HERO SECTION ──────────────────────────────────────── */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
}

.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(10, 0, 30, 0.6) 0%,
            rgba(102, 45, 145, 0.55) 50%,
            rgba(10, 0, 30, 0.75) 100%);
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 100%;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    animation: heroFadeIn 1.2s ease forwards;
    overflow-x: hidden;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: white;
    margin-bottom: 24px;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary);
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 4.2rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: none;
    /* No blackish effect */
}

.text-yellow {
    background: linear-gradient(135deg, #FFA942 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-content .lead {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    font-weight: 300;
    opacity: 0.9;
    max-width: 680px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    padding: 0;
}

.hero-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* ─── SECTION STYLES ────────────────────────────────────── */
.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    background: rgba(102, 45, 145, 0.08);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
    border: 1px solid rgba(102, 45, 145, 0.15);
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--dark);
    margin-bottom: 16px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 0 auto 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ─── PREMIUM CARDS ───────────────────────────────────────── */
.premium-card,
.ecosystem-card,
.initiative-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.ecosystem-card {
    border-radius: 40px 10px 40px 10px;
    /* Custom shape matching screenshot1 */
    text-align: center;
    padding-top: 4rem;
}

.ecosystem-card-number {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gradient-primary);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(102, 45, 145, 0.3);
    border: 2px solid white;
}

.ecosystem-card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(102, 45, 145, 0.2);
    position: relative;
}

.ecosystem-card-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid rgba(102, 45, 145, 0.2);
    border-radius: 50%;
}

.ecosystem-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.initiative-card {
    padding: 3rem;
}

.initiative-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.initiative-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.initiative-list li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: #4b5563;
    display: flex;
    align-items: center;
}

.initiative-list li i {
    color: #10b981;
    font-size: 1.1rem;
}

.initiative-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(102, 45, 145, 0.2);
}

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

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

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

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(102, 45, 145, 0.25);
    transition: var(--transition-bounce);
}

.premium-card:hover .card-icon,
.glass-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ─── STATS ─────────────────────────────────────────────── */
.stat-item {
    text-align: center;
    padding: 32px 24px;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ─── PROGRAM CARDS ─────────────────────────────────────── */
.program-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

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

.program-card-header {
    background: var(--gradient-primary);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.program-card-header::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.program-card-body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── STARTUP CARD ──────────────────────────────────────── */
.startup-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition-base);
}

.startup-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(102, 45, 145, 0.2);
}

.startup-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.startup-card-logo {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: white;
    padding: 4px;
    box-shadow: var(--shadow-sm);
}

/* ─── TEAM CARD ─────────────────────────────────────────── */
.team-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.team-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: center;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 45, 145, 0.1);
    background: white;
    border-color: rgba(102, 45, 145, 0.15);
}

.team-card:hover::after {
    transform: scaleX(1);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid white;
    margin-bottom: 20px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.team-card:hover .team-avatar {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(102, 45, 145, 0.2);
}

.team-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(102, 45, 145, 0.07);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition-base);
    margin: 0 4px;
}

.team-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ─── GALLERY ───────────────────────────────────────────── */
.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(102, 45, 145, 0.85), transparent);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ─── FORMS ─────────────────────────────────────────────── */
.form-premium .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #334155;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.form-premium .form-control,
.form-premium .form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 12px 18px;
    font-size: 0.9rem;
    color: var(--dark);
    transition: var(--transition-fast);
    background: white;
}

.form-premium .form-control:focus,
.form-premium .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 45, 145, 0.12);
    outline: none;
}

/* ─── CTA SECTION ───────────────────────────────────────── */
.cta-section {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102, 45, 145, 0.4), transparent);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 169, 66, 0.2), transparent);
    border-radius: 50%;
}

/* ─── FOOTER ────────────────────────────────────────────── */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 32px;
}

footer h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

footer p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.88rem;
    padding: 5px 0;
    transition: var(--transition-base);
}

.footer-link:hover {
    color: var(--secondary);
    padding-left: 8px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 4px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition-fast);
}

.footer-links li a:hover {
    color: var(--secondary);
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-bounce);
    font-size: 0.9rem;
    margin-right: 8px;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 45, 145, 0.4);
}

footer hr {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 48px 0 28px;
}

.footer-logo {
    max-height: 50px;
    margin-bottom: 16px;
}

.footer-copy {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ─── PAGE HEADER ───────────────────────────────────────── */
.page-header {
    background: var(--gradient-dark);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102, 45, 145, 0.5), transparent);
    border-radius: 50%;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 169, 66, 0.25), transparent);
    border-radius: 50%;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb {
    justify-content: center;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb-item {
    font-size: 0.85rem;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.page-header .breadcrumb-item.active {
    color: var(--secondary);
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.3);
}

/* ─── BADGE STYLES ──────────────────────────────────────── */
.badge-primary {
    background: rgba(102, 45, 145, 0.1);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-secondary {
    background: rgba(255, 169, 66, 0.12);
    color: var(--secondary-dark);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
}

/* ─── UTILITIES ─────────────────────────────────────────── */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.bg-light-purple {
    background: rgba(102, 45, 145, 0.04);
}

.border-top-accent {
    border-top: 4px solid var(--primary);
}

.hover-lift {
    transition: var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

/* ─── ANIMATIONS ────────────────────────────────────────── */
@keyframes float {

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

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

.floating {
    animation: float 4s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ─── ANIMATIONS ────────────────────────────────────────── */
@keyframes typing {
    from {
        width: 0;
        opacity: 1;
    }

    to {
        width: 100%;
        opacity: 1;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--secondary);
    }
}

.hero-typewriter {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--secondary);
    width: 0;
    animation: typing 3.5s steps(60, end) 1s forwards, blink-caret 0.75s step-end infinite 1s;
    vertical-align: bottom;
    opacity: 0;
}

.hero-typewriter-container {
    height: 1.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.marquee-content-text {
    animation: marquee-text 15s linear infinite !important;
    /* Faster speed */
}

.stat-item i {
    animation: pulse-subtle 3s infinite ease-in-out;
}

@keyframes pulse-subtle {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.25;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.4;
    }
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2.2rem !important;
        margin-bottom: 20px;
    }

    .hero-typewriter-container {
        height: auto;
        margin-bottom: 1.5rem;
    }

    .hero-typewriter {
        font-size: 1rem;
        white-space: normal;
        width: 100% !important;
        animation: none !important;
        opacity: 1 !important;
        border-right: none !important;
        text-align: center;
    }

    .stat-number {
        font-size: 2.2rem !important;
    }

    .stat-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .page-header {
        padding: 90px 0 60px;
    }

    .premium-card,
    .glass-card {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem !important;
    }
    
    .hero-badge {
        font-size: 0.7rem !important;
        padding: 6px 15px !important;
        letter-spacing: 1px !important;
        max-width: 100%;
    }
    
    .stat-number {
        font-size: 1.6rem !important;
    }
    
    .stat-label {
        font-size: 0.6rem !important;
    }
}

/* ─── STATS ENHANCEMENTS ────────────────────────────────── */
.stat-item {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    background: transparent;
}

.stat-item:hover {
    transform: translateY(-8px);
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    z-index: 5;
    border-radius: 20px;
}

.stat-icon-wrapper {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, rgba(102, 45, 145, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon-wrapper {
    background: rgba(255, 169, 66, 0.15);
    color: #FFA942;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(255, 169, 66, 0.2);
}

.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

@media (max-width: 767.98px) {
    .stat-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        margin-bottom: 20px;
    }
}