@font-face {
    font-family: 'minecraft-font';
    src: url('./assets/MinecraftRegular-Bmg3.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face{
    font-family:'geist';
    src: url('./assets/ArchivoBlack-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    color: #e0e0e0;
    background-color: #0a0e27;
    margin: 0;
}

/* ============================================
   TOP NAVIGATION
   ============================================ */
.top-nav {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 204, 255, 0.1);
    color: white;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-brand{
    font-size: 1.50rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: #eefcff;
}

.nav-menu{
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link{
    color: #a0a0a0;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-link:hover{
    color: #10a2c7;
}

.nav-link.active {
    border-bottom: 2px solid #00ccff;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.main-container {
    display: flex;
    min-height: calc(100vh - 60px);
    margin-left: 200px;
    transition: margin-left 0.3s ease;
}

.main-container.sidebar-minimized {
    margin-left: 60px;
}

.sidebar{
    width: 200px;
    background-color: rgba(14, 56, 118, 0.8);
    color: white;
    padding: 2rem 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    z-index: 50;
    transition: width 0.3s ease, left 0.3s ease;
    border-right: 1px solid rgba(0, 204, 255, 0.1);
}

.sidebar-header{
    padding: 0 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #5edbfa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar.minimized {
    width: 60px;
    padding: 1rem 0;
}

.sidebar.minimized .sidebar-header,
.sidebar.minimized .unit-name,
.sidebar.minimized .subtopic,
.sidebar.minimized .coming-soon,
.sidebar.minimized .subtopic-list {
    display: none;
}

.sidebar.minimized .unit-item {
    text-align: center;
    margin-bottom: 1rem;
}

.minimize-btn{
    width: 50px;
    right: 20px;
    position: absolute;
    padding: 0.75rem;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    background-color: transparent;
    transition: all 0.3s ease;
    border: none;
    border-radius: 0;
    font-weight: bold;
}

.minimize-btn:hover{
    background-color: rgba(0, 204, 255, 0.2);
}

.unit-list{
    list-style: none;
}

.unit-item{
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.unit-item.disabled{
    opacity: 0.4;
    cursor: not-allowed;
}

.unit-name{
    display: block;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.unit-item:not(.disabled):hover .unit-name {
    background-color: rgba(0, 204, 255, 0.2);
    padding-left: 2rem;
    color: #00ccff;
}

.unit-item.active .unit-name {
    background-color: rgba(0, 204, 255, 0.15);
    border-left: 3px solid #00ccff;
    padding-left: 1.2rem;
    color: #00ccff;
}

.coming-soon {
    display: inline-block;
    font-size: 0.65rem;
    background-color: rgba(100, 100, 100, 0.5);
    color: #999;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.homepage {
    flex: 1;
    width: 100%;
}

.hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 40px;
    background-image: url("assets/homepage-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;


}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 14, 39, 0.7) 0%,
        rgba(10, 14, 39, 0.6) 50%,
        rgba(10, 14, 39, 0.75) 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* Ensure all hero content is above the overlay */
.hero > * {
    position: relative;
    z-index: 2;
}

.hero-badge{
    font-size:15px;
    color: #00ccff;
    border: 1px solid #00ccff;
    border-radius: 20px;
    padding: 8px 20px;
    margin-bottom: 10px;
    display: inline-block;
    letter-spacing: 1.5px;
    font-weight: 600;
    background: transparent;
    align-self: flex-start;
    left: 250px;
}

h1 {
    justify-content: center;
    font-weight: 800;
    font-size: 130px;
    color: #ffffff;
    letter-spacing: -2px;
    line-height: 1.2;
    margin-bottom: 20px;
    padding: 10 15;
    text-shadow: 0px 4px 30px rgba(231, 243, 255, 0.2);
    transition: all 0.3s ease;
}

h1:hover{
        transform: translateY(-2px);
}

h1 span {
    color: #00ccff;
    display: block;
}

h3{
    font-size: 48px;
    margin-bottom: 20px;
    color: #e0e0e0;
    font-weight: 700;
    letter-spacing: 1px;
}

p {
    font-size: 25px;
    margin-top: 10px;
    line-height: 1.8;
    color: #b0b0b0;
    max-width: 900px;
    font-weight: 500;
}

.hero-buttons{
    display: flex;
    gap:30px;
    margin-top:10px;
    flex-wrap: wrap;
    flex-direction: row;
}

/* ============================================
   BUTTONS
   ============================================ */
button{
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 12px 24px;
    font-family: 'geist', sans-serif;
    font-size: 14px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button:hover {
    background-color: #0080ff;
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.5);
    background: linear-gradient(135deg, #0077dd 0%, #00aaff 100%);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary{
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover{
    border-color:rgba(255,255,255,0.6);
    background:rgba(255,255,255,0.05);
    transform: translateY(-4px);

}

/* Difficulty button active state */
.difficulty-btn.active {
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.5);
}

.difficulty-btn.active:hover {
    background: linear-gradient(135deg, #0077dd 0%, #00aaff 100%);
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.7);
}


/* SECTIONS */
.section {
    display: none;
}

.section.active {
    display: flex;
    min-height: 100vh;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 40px;
    background: #0a0e27;
    position: relative;
}

.section.active h2 {
    font-size: 56px;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section.active h2 span {
    color: #00ccff;
}

.section.active p {
    font-size: 18px;
    color: #b0b0b0;
    max-width: 600px;
    line-height: 1.6;
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
}

.feature-card {
    background: linear-gradient(
        135deg,
        rgba(0, 204, 255, 0.05) 0%,
        rgba(0, 100, 200, 0.05) 100%
    );
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 204, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    background: linear-gradient(
        135deg,
        rgba(0, 204, 255, 0.12) 0%,
        rgba(0, 100, 200, 0.12) 100%
    );
    border-color: rgba(0, 204, 255, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 204, 255, 0.15);
}

.feature-card h3{
    font-size: 24px;
    margin-bottom: 12px;
    color: #ffffff;
    font-weight: 700;
}

.feature-card p{
    font-size: 14px;
    color: #a0a0a0;
    line-height: 1.6;
    margin: 0;
}

.feature-card1 {
    background: linear-gradient(135deg, rgba(45, 181, 54, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
    border-color: rgba(76, 175, 80, 0.2);
}

.feature-card1:hover {
    border-color: rgba(76, 175, 80, 0.4);
}

/* 
.lesson-pathway {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 40px 20px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 40px auto;
}

.lesson-node {
    text-align: center;
    padding: 30px;
    background: rgba(0, 204, 255, 0.08);
    border: 1px solid rgba(0, 204, 255, 0.2);
    border-radius: 12px;
    min-width: 200px;
    transition: all 0.3s ease;
}

.lesson-node.completed {
    background: rgba(76, 175, 80, 0.12);
    border: 2px solid rgba(76, 175, 80, 0.4);
}

.lesson-node.active {
    background: rgba(0, 204, 255, 0.15);
    border: 2px solid #00ccff;
    transform: scale(1.05);
}

.lesson-node.locked {
    background: rgba(100, 100, 100, 0.08);
    border: 1px solid rgba(100, 100, 100, 0.2);
    opacity: 0.6;
}

.node-circle {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #0066cc 0%, #00ccff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: white;
}

.lesson-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    text-align: left;
}

.lesson-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
    flex-wrap: wrap;
} */

/* ============================================
   SIMULATIONS SECTION
   ============================================ */
.simulations-container {
    width: 100%;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.simulation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.simulations-card {
    background: linear-gradient(135deg, rgba(0, 204, 255, 0.08) 0%, rgba(0, 100, 200, 0.05) 100%);
    border: 1px solid rgba(0, 204, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.simulations-card:hover {
    background: linear-gradient(135deg, rgba(0, 204, 255, 0.15) 0%, rgba(0, 100, 200, 0.1) 100%);
    border-color: rgba(0, 204, 255, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 204, 255, 0.15);
}

.sim-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.2), rgba(0, 153, 255, 0.1));
    overflow: hidden;
}

.sim-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.simulations-card h4 {
    font-size: 18px;
    color: #ffffff;
    padding: 20px 20px 10px;
    margin: 0;
    font-weight: 700;
}

.simulations-card p {
    font-size: 14px;
    color: #a0a0a0;
    padding: 0 20px 20px;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .main-container {
        margin-left: 0;
    }

    .sidebar {
        position: absolute;
        width: 100%;
        top: 60px;
        max-height: 300px;
        border-bottom: 1px solid rgba(0, 204, 255, 0.1);
        z-index: 40;
        overflow-y: auto;
    }

    .sidebar.minimized {
        width: 100%;
        padding: 1rem;
    }

    .sidebar.minimized .unit-item {
        display: inline-block;
        margin-right: 1rem;
    }

    h1 {
        font-size: 48px;
        
    }

    h3 {
        font-size: 32px;
    }

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

    .hero {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        max-height: 250px;
    }

    h1 {
        font-size: 36px;
    }

    h3 {
        font-size: 24px;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 12px;
    }

    button {
        padding: 10px 16px;
        font-size: 12px;
    }
}
/* ============================================
   LOGO STYLING
   ============================================ */

.nav-brand {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: transform 0.3s ease;
}

.nav-brand img {
    height: 50px;
    width: auto;
    margin: 0;
    padding: 0;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-brand:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.nav-brand:active img {
    transform: scale(0.95);
}

/* ============================================
   SIMULATIONS CARDS - UPDATED
   ============================================ */

.simulations-card {
    background: linear-gradient(135deg, rgba(0, 204, 255, 0.08) 0%, rgba(0, 100, 200, 0.05) 100%);
    border: 1px solid rgba(0, 204, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.simulations-card:hover {
    background: linear-gradient(135deg, rgba(0, 204, 255, 0.15) 0%, rgba(0, 100, 200, 0.1) 100%);
    border-color: rgba(0, 204, 255, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 204, 255, 0.15);
}

.sim-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.2), rgba(0, 153, 255, 0.1));
    overflow: hidden;
    flex-shrink: 0;
}

.sim-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sim-image canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.simulations-card h4 {
    font-size: 18px;
    color: #ffffff;
    padding: 20px 20px 8px;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

.simulations-card p {
    font-size: 13px;
    color: #a0a0a0;
    padding: 0 20px 20px;
    margin: 0;
    line-height: 1.4;
    flex-grow: 1;
}

.simulations-card button {
    margin: 0 20px 20px 20px;
    width: auto;
    align-self: center;
    min-width: 140px;
}