:root {
    --midnight: #050816;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --neon-cyan: #06b6d4;
    --neon-purple: #a855f7;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1; /* Brightened for better legibility on dark background (Slate 300) */
    --radius: 24px;
}

body {
    font-family: "Outfit", sans-serif;
    background-color: var(--midnight);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* --- Global Text Overrides --- */
.text-muted {
    color: var(--text-muted) !important;
    opacity: 1 !important; /* Ensure Bootstrap default opacity doesn't hide text */
}

/* --- Scroll Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Glassmorphism Elements --- */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}

.btn-neon {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: white;
    border-radius: 100px;
    padding: 14px 36px;
    font-weight: 700;
    border: none;
    transition: 0.4s;
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.2);
}
.btn-neon:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(168, 85, 247, 0.4);
    color: white;
}

/* --- Navbar --- */
.navbar {
    padding: 1.2rem 0;
    background: rgba(5, 8, 22, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}
.nav-link {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-main) !important;
    margin: 0 15px;
    transition: 0.3s;
}
.nav-link:hover {
    color: var(--neon-cyan) !important;
}

/* --- Hero --- */
.hero {
    padding: 200px 0 140px;
    position: relative;
    text-align: center;
}
.hero::before {
    content: "";
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(168, 85, 247, 0.15) 0%,
        transparent 70%
    );
    z-index: -1;
    filter: blur(60px);
}
.hero-title {
    font-size: calc(3.5rem + 1vw);
    line-height: 1;
    margin-bottom: 2rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.hero-title span {
    background: linear-gradient(to right, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: var(--neon-cyan);
    -webkit-text-fill-color: transparent;
}

/* --- Stats --- */
.stats-row {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: 40px;
}
.stat-card h2 {
    font-size: 42px;
    background: linear-gradient(to bottom, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-card p {
    font-size: 12px;
    font-weight: 800;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Categories --- */
.category-grid {
    padding: 100px 0;
}
.cat-card {
    padding: 40px;
    border-radius: var(--radius);
    transition: 0.4s;
    text-align: left;
    position: relative;
    overflow: hidden;
}
.cat-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--neon-cyan);
    transform: translateY(-10px);
}
.cat-icon {
    font-size: 32px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cat-card::after {
    content: "";
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--neon-cyan);
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(30px);
}

/* --- Courses --- */
.course-card {
    border-radius: var(--radius);
    overflow: hidden;
    transition: 0.5s;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}
.course-card:hover {
    transform: scale(1.03);
    border-color: var(--neon-purple);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.course-img-box {
    height: 240px;
    position: relative;
}
.course-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: 0.5s;
}
.course-card:hover .course-img-box img {
    opacity: 1;
}
.course-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--midnight);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
}
.nav-pills-cyber .nav-link {
    border-radius: 50px;
    padding: 10px 30px;
    margin: 0 8px;
    font-weight: 700;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: transparent;
    transition: 0.3s;
}
.nav-pills-cyber .nav-link.active {
    background: var(--neon-cyan) !important;
    color: white !important;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

/* --- Instructor --- */
.instructor-banner {
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    border-radius: 40px;
    padding: 100px 60px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.instructor-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("https://www.transparenttextures.com/patterns/carbon-fibre.png");
    opacity: 0.1;
}

/* --- Insights --- */
.blog-card {
    border-radius: var(--radius);
    overflow: hidden;
    transition: 0.4s;
    height: 100%;
}
.blog-card img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    opacity: 0.7;
}
.blog-card:hover img {
    opacity: 1;
}
.blog-tag {
    color: var(--neon-purple);
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: block;
}
