/* Global Root Variables - Premium Corporate Theme */
:root {
    /* Brand Colors - Sophisticated Palette */
    --primary-color: #0F172A;
    /* Slate 900 - Deep, professional dark */
    --primary-light: #334155;
    /* Slate 700 */
    --accent-color: #3B82F6;
    /* Blue 500 - Vibrant Trust Blue */
    --accent-hover: #2563EB;
    /* Blue 600 */

    /* Neutral Colors */
    --bg-white: #ffffff;
    --bg-light: #F8FAFC;
    /* Slate 50 - Very subtle cool gray */
    --bg-dark: #020617;
    /* Slate 950 */

    --text-dark: #0F172A;
    /* Slate 900 */
    --text-body: #475569;
    /* Slate 600 */
    --text-muted: #94A3B8;
    /* Slate 400 */
    --text-white: #ffffff;

    /* Borders & Dividers */
    --border-color: #E2E8F0;
    /* Slate 200 */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --section-padding: 80px 0;
    --card-radius: 16px;

    /* Effects */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* 1. Global Resets */
body {
    background-color: var(--bg-white);
    color: var(--text-body);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 76px;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

/* 2. Utility Classes */
.text-primary {
    color: var(--accent-color) !important;
}

.bg-primary {
    background-color: var(--accent-color) !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

/* Ensure this overrides BS */
.text-white {
    color: var(--text-white) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.section-padding {
    padding: var(--section-padding);
}

.ls-1 {
    letter-spacing: 0.05em;
}

.ls-wide {
    letter-spacing: 0.1em;
}

/* 3. Button Styles */
.btn {
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    /* Modern Pill Shape */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--accent-color);
    border: none;
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

.btn-outline-primary {
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2);
}

/* Button Glow Effect */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-glow:hover::after {
    left: 100%;
}

/* 4. Navbar Styles */
.navbar {
    background-color: var(--glass-bg);
    /* Use the variable */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 12px 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    color: var(--primary-color) !important;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

.nav-link {
    font-family: var(--font-body);
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 8px;
    font-size: 0.95rem;
    position: relative;
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--accent-color) !important;
}

/* 5. Hero Section */
.hero-section {
    padding: 100px 0 140px;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.05) 0%, transparent 40%);
    position: relative;
    overflow: hidden;
}

.hero-subtitle {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 4.5rem;
    /* Larger */
    line-height: 1.1;
    /* Tight */
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    color: var(--primary-color);
}

.hero-section .lead {
    font-size: 1.25rem;
    color: var(--text-body);
    font-weight: 400;
    max-width: 540px;
}

/* 6. Card Styles */
.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 40px 32px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Mentor Profile Card */
.mentor-card {
    background: var(--bg-white);
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
    padding: 32px;
}

.mentor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
}

.mentor-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 3px solid rgba(59, 130, 246, 0.1);
}

/* Feature/Tilt Card */
.feature-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    text-align: left;
    /* Changed to left align for cleaner look */
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
}

/* 7. FAQ Accordion */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--bg-white);
    box-shadow: var(--card-shadow);
}

.accordion-button {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    padding: 24px;
    background: var(--bg-white);
    box-shadow: none !important;
    /* Remove default BS shadow */
}

.accordion-button:not(.collapsed) {
    color: var(--accent-color);
    background: rgba(59, 130, 246, 0.05);
}

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

.accordion-body {
    padding: 24px;
    padding-top: 0;
    color: var(--text-body);
}

/* 8. Glassmorphism & Forms */
.glass-form-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.form-control-glass {
    background: rgba(255, 255, 255, 0.9);
    /* More opaque for readability */
    border: 1px solid transparent;
    color: var(--text-dark);
    border-radius: 12px;
    padding: 16px 20px;
}

.form-control-glass::placeholder {
    color: var(--text-muted);
}

.form-control-glass:focus {
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    color: var(--text-dark);
}

.form-floating label {
    padding-left: 20px;
    color: var(--text-muted) !important;
}

/* 9. Footer */
footer {
    background: var(--bg-dark);
    /* Dark Slate */
    color: var(--text-muted);
    padding-top: 80px;
    padding-bottom: 40px;
    font-size: 0.9rem;
}

footer h5 {
    color: #fff;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

footer a {
    color: var(--text-muted);
}

footer a:hover {
    color: var(--accent-color);
}

/* 10. Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 11. Responsive */
@media (max-width: 991px) {
    :root {
        --section-padding: 60px 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-section {
        padding: 60px 0;
        text-align: center;
    }

    .hero-section .row {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .hero-section .lead {
        margin: 0 auto 2rem;
    }

    .navbar-collapse {
        background: #fff;
        padding: 24px;
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        margin-top: 15px;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
}

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

    .btn {
        width: 100%;
        margin-bottom: 12px;
    }

    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0 !important;
    }
}

/* Grayscale Hover Effect */
.grayscale-hover {
    transition: all 0.3s ease;
}

.grayscale-hover>* {
    transition: all 0.3s ease;
    cursor: default;
}

.grayscale-hover>*:hover {
    opacity: 1 !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* 12. Vertical Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
}

/* The vertical line */
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    border-radius: 3px;
}

.timeline-container {
    padding: 10px 50px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 40px;
}

/* Horizontal Connector Line */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 45px;
    /* Aligns with badge center */
    width: 30px;
    height: 3px;
    background-color: var(--accent-color);
    opacity: 0.3;
    z-index: 1;
}

/* Left side items */
.timeline-left {
    left: 0;
    text-align: right;
}

.timeline-left::before {
    right: 20px;
    /* Connects to center line */
}

.timeline-left .service-card {
    margin-right: 0;
}

/* Right side items */
.timeline-right {
    left: 50%;
    text-align: left;
}

.timeline-right::before {
    left: 20px;
    /* Connects to center line */
}

.timeline-right .service-card {
    margin-left: 0;
}

/* The dots */
.timeline-badge {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: var(--bg-white);
    border: 4px solid var(--accent-color);
    border-radius: 50%;
    z-index: 2;
    top: 20px;
    /* Aligned with Card Title area */
    right: -25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.8);
    /* Halo effect */
}

.timeline-right .timeline-badge {
    left: -25px;
    right: auto;
}

.timeline-badge i {
    font-size: 1.2rem;
}

/* Mobile Responsive Timeline */
@media (max-width: 767px) {
    .timeline::after {
        left: 30px;
    }

    .timeline-container {
        width: 100%;
        padding-left: 80px;
        padding-right: 15px;
        margin-bottom: 30px;
    }

    .timeline-container::before {
        left: 30px;
        width: 30px;
    }

    .timeline-left,
    .timeline-right {
        left: 0%;
        text-align: left;
    }

    .timeline-left::before,
    .timeline-right::before {
        display: block;
        /* Show connector on mobile too */
    }

    .timeline-left .service-card,
    .timeline-right .service-card {
        margin: 0;
    }

    .timeline-left .timeline-badge,
    .timeline-right .timeline-badge {
        left: 5px;
        right: auto;
    }
}