:root {
    --emerald: #10b981;
    --emerald-dark: #059669;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-100: #f1f5f9;
    --sky: #0ea5e9;
    --white: #ffffff;
    --radius-lg: 24px;
    --radius-md: 16px;
}

body {
    font-family: "Outfit", sans-serif;
    background-color: var(--white);
    color: var(--slate-900);
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
.fw-bold {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* --- 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);
}

/* --- Navbar --- */
.navbar {
    padding: 20px 0;
    background: transparent;
    transition: 0.4s;
}
.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid var(--slate-100);
}
.nav-link {
    font-weight: 500;
    color: var(--slate-800) !important;
    margin: 0 12px;
    transition: 0.3s;
}
.nav-link:hover {
    color: var(--emerald) !important;
}

.btn-emerald {
    background-color: var(--emerald);
    color: white;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    border: none;
    transition: 0.3s;
}
.btn-emerald:hover {
    background-color: var(--slate-900) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

/* --- Hero --- */
.hero {
    padding: 160px 0 100px;
    background: radial-gradient(
        circle at 80% 20%,
        rgba(16, 185, 129, 0.05) 0%,
        transparent 40%
    );
    overflow: hidden;
}
.hero-title {
    font-size: calc(2.8rem + 1.8vw);
    line-height: 1.1;
    margin-bottom: 25px;
}
.text-gradient {
    background: linear-gradient(90deg, var(--emerald), var(--sky)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.hero-img-stack {
    position: relative;
}
.hero-img-stack img {
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}
.floating-card {
    position: absolute;
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: float 5s infinite ease-in-out;
    z-index: 10;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* --- Features --- */
.feature-card {
    padding: 40px;
    border-radius: var(--radius-md);
    background: var(--slate-100);
    border: 1px solid transparent;
    transition: 0.3s;
}
.feature-card:hover {
    background: white;
    border-color: var(--emerald);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}
.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    color: var(--emerald);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* --- Courses --- */
.courses-section {
    padding: 100px 0;
    background-color: #fafbfc;
}
.course-card-v5 {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid #edf2f7;
    overflow: hidden;
    transition: 0.4s;
    height: 100%;
}
.course-card-v5:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 50px rgba(15, 23, 42, 0.08);
}
.course-img-v5 {
    height: 220px;
    position: relative;
}
.course-img-v5 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.course-chip {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--emerald);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}

/* --- Bento Categories --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* grid-template-rows: repeat(2, 200px); */
    gap: 20px;
}
.bento-item {
    background: var(--slate-900);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
}
.bento-item:hover {
    transform: scale(1.02);
}
.bento-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    z-index: 1;
}
.bento-content {
    position: relative;
    z-index: 2;
}
.bento-1 {
    grid-column: span 2;
    background: linear-gradient(45deg, #10b981, #3b82f6);
}
.bento-2 {
    grid-column: span 1;
    background: #1e293b;
}
.bento-3 {
    grid-column: span 1;
    background: #334155;
}
.bento-4 {
    grid-column: span 1;
    background: #0ea5e9;
}
.bento-5 {
    grid-column: span 2;
    background: #6366f1;
}
.bento-6 {
    grid-column: span 1;
    background: #ec4899;
}

/* --- Instructor --- */
.instructor-v5 {
    padding: 120px 0;
    background: var(--slate-900);
    color: white;
    border-radius: 60px;
    margin: 40px 20px;
}

/* --- Footer --- */
.footer-v5 {
    padding: 100px 0 40px;
    background: #f8fafc;
    color: var(--slate-800);
}
.footer-title-v5 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--slate-900);
}
.footer-link-v5 {
    color: var(--slate-800);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: 0.2s;
}
.footer-link-v5:hover {
    color: var(--emerald);
    padding-left: 5px;
}

.nav-pills-v5 .nav-link {
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    color: var(--slate-800);
    font-weight: 600;
}
.nav-pills-v5 .nav-link.active {
    background: var(--emerald);
    color: white;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .bento-1,
    .bento-5 {
        grid-column: span 2;
        height: 200px;
    }
    .bento-item {
        height: 200px;
    }
}
