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

:root {
    /* Light Theme */
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --accent: #06b6d4;
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: rgba(226, 232, 240, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    /* Dark Theme */
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --accent: #22d3ee;
    --bg-main: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(51, 65, 85, 0.5);
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 8rem;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes float {

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

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

/* Header & Hero */
header {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(6, 182, 212, 0.8)),
        url('it_education_hero_1777210615537.png') no-repeat center center / cover;
    color: white;
    padding: 10rem 1rem 14rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    clip-path: ellipse(150% 100% at 50% 0%);
    pointer-events: none;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(15, 23, 42, 0.4) 100%);
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease-out;
    pointer-events: auto;
}

header p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    pointer-events: auto;
}

/* Theme Toggle */
.theme-switch {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.theme-switch:hover {
    transform: scale(1.1);
}

/* Navigation */
nav {
    position: sticky;
    top: 1.5rem;
    z-index: 9000;
    max-width: 1200px;
    margin: -4rem auto 0;
    padding: 0 1.5rem;
}

.nav-container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 0.4rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    box-shadow: var(--shadow);
    flex-wrap: nowrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.nav-link,
.dropdown-btn {
    background: transparent;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover,
.dropdown-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: fixed;
    top: auto;
    left: auto;
    background: #ffffff;
    min-width: 260px;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    transform: translateY(8px);
    padding: 0.5rem;
    z-index: 9999;
    border: 1px solid #e2e8f0;
    pointer-events: none;
}

[data-theme="dark"] .dropdown-content {
    background: #1e293b;
    border-color: #334155;
}

.dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #1e293b;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

[data-theme="dark"] .dropdown-content a {
    color: #f1f5f9;
}

.dropdown-content a:hover {
    background: var(--primary);
    color: #ffffff;
    padding-left: 1.4rem;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

section, .section-intro {
    scroll-margin-top: 5rem;
}

.section-intro {
    text-align: center;
    margin-bottom: 6rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.section-intro h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-intro p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 750px;
    margin: 0 auto;
}

/* Stream Sections */
section {
    margin-bottom: 8rem;
}

.stream-heading {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.stream-heading h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.25rem;
    color: var(--text-main);
    white-space: nowrap;
}

.stream-heading i {
    font-size: 2rem;
    color: var(--primary);
}

.stream-heading::after {
    content: '';
    height: 2px;
    background: linear-gradient(to right, var(--primary), transparent);
    flex-grow: 1;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 2.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card h3 i {
    color: var(--primary);
}

.card-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-links a {
    text-decoration: none;
    color: var(--text-main);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: rgba(var(--primary), 0.05);
    transition: var(--transition);
    font-size: 0.95rem;
    border: 1px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.4;
}

.card-links a::before {
    content: '→';
    color: var(--primary);
    font-weight: bold;
    transition: var(--transition);
}

.card-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
    border-color: var(--primary);
}

.card-links a:hover::before {
    color: white;
    transform: translateX(3px);
}

/* Footer */
footer {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    color: var(--text-muted);
    padding: 6rem 1rem;
    text-align: center;
    margin-top: 10rem;
    border-top: 1px solid var(--border);
}

footer p {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 6rem 1.5rem 8rem;
    }

    .nav-container {
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }

    .nav-link,
    .dropdown-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .section-intro h2 {
        font-size: 2.25rem;
    }
}