@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;700;800&display=swap');

:root {
    --brand-gold: #fccb00;
    --brand-navy: #0d2e5a;
    --brand-cyan: #38bdf8;
    --bg-light: #fffdf5;
    --text-main: #0d2e5a;
    --white: #ffffff;
    --shadow: 0 10px 20px rgba(13, 46, 90, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.btn-main {
    display: inline-block;
    padding: 12px 35px;
    background-color: var(--brand-navy);
    color: var(--white);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid var(--brand-navy);
    text-transform: uppercase;
    font-size: 0.9em;
    cursor: pointer;
    text-align: center;
}

.btn-main:hover {
    background-color: var(--brand-gold); 
    color: var(--brand-navy); 
    border-color: var(--brand-gold);
    transform: translateY(-3px);
}

.btn-back {
    background-color: var(--white);
    color: var(--brand-navy);
    border: 2px solid var(--brand-navy);
    margin-bottom: 20px;
}

.btn-back:hover {
    background-color: var(--brand-navy) !important; 
    color: var(--white) !important; 
    border-color: var(--brand-navy);
    opacity: 1;
}

#login-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background-color: var(--white); 
    color: var(--brand-navy);
    border: 2px solid var(--brand-navy);
    font-weight: 800;
}
#login-btn:hover {
    background-color: var(--brand-navy);
    color: var(--white);
}

header {
    min-height: 60vh;
    background: radial-gradient(circle at center, #fdd835 0%, #fbc02d 100%);
    display: flex;
    align-items: center;
    padding: 40px 0 80px 0;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
    position: relative;
}

.header-container-flex {
    display: flex;
    align-items: center; 
    justify-content: center;
    gap: 50px;
    width: 100%;
}

.logo-placeholder {
    width: 220px; 
    height: 220px;
    border-radius: 50%;
    border: 6px solid var(--brand-navy);
    background-color: var(--white);
    overflow: hidden; 
    box-shadow: var(--shadow);
    flex-shrink: 0;
}
.header-logo-img { width: 100%; height: 100%; object-fit: cover; }

.header-content-text { text-align: left; color: var(--brand-navy); }
.header-content-text h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 4em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0px rgba(255,255,255,0.5);
    line-height: 1.1;
}
.header-content-text p { font-size: 1.5em; font-weight: 700; margin-bottom: 30px; }


.secondary-header {
    min-height: 40vh;
    background: radial-gradient(circle at center, #fdd835 0%, #fbc02d 100%);
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center;     
    text-align: center;      
    padding: 40px 20px 60px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
    width: 100%;
}

.secondary-header h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5em;
    margin-bottom: 10px;
    color: var(--brand-navy);
    line-height: 1.2;
}
.secondary-header p {
    font-size: 1.5em;
    color: var(--brand-navy);
    opacity: 0.9;
    font-weight: 600;
}

.centered-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: -30px auto 40px;
    position: relative;
    z-index: 10;
}

nav {
    background-color: var(--brand-navy);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}
.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1em;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 8px;
}
.nav-link:hover {
    color: var(--brand-gold);
    background: rgba(255,255,255,0.1);
}

#main-carousel {
    max-width: 1000px;
    margin: -60px auto 50px;
    position: relative;
    z-index: 10;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 8px solid var(--white);
    background-color: #eee;
}
.slide { display: none; width: 100%; }
.slide img { width: 100%; height: 400px; object-fit: cover; display: block; }
.slide-caption { position: absolute; bottom: 0; width: 100%; background: rgba(13, 46, 90, 0.85); color: white; text-align: center; padding: 15px; font-size: 1.2em; font-weight: bold; }
.fade { animation-name: fade; animation-duration: 1.5s; }
@keyframes fade { from {opacity: .4} to {opacity: 1} }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 50px 0; }
h2.section-title { text-align: center; font-family: 'Fredoka One', cursive; font-size: 2.8em; color: var(--brand-navy); margin-bottom: 40px; }
h2.section-title::after { content: ''; display: block; width: 80px; height: 6px; background-color: var(--brand-gold); margin: 10px auto; border-radius: 10px; }

.info-grid { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; }
.info-card { flex: 1; min-width: 300px; background: var(--white); padding: 40px; border-radius: 20px; box-shadow: var(--shadow); border-top: 8px solid var(--brand-gold); }
.req-list li { padding: 12px 0; border-bottom: 1px dashed #cbd5e1; display: flex; align-items: flex-start; }
.req-list li::before { content: '✔'; color: var(--brand-navy); font-weight: bold; margin-right: 10px; }

.levels-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.level-card { background: var(--white); padding: 30px 20px; border-radius: 20px; text-align: center; box-shadow: var(--shadow); transition: transform 0.3s; border-top: 8px solid var(--brand-gold); }
.level-card:hover { transform: translateY(-5px); border-top-color: var(--brand-navy); }
.level-icon { font-size: 3.5em; color: var(--brand-gold); margin-bottom: 15px; text-shadow: 2px 2px 0 var(--brand-navy); }
.level-card h3 { font-family: 'Fredoka One'; font-size: 1.8em; color: var(--brand-navy); margin-bottom: 10px; }
.dynamic-features { margin-top: 15px; padding: 15px; background-color: #f0f9ff; border-radius: 10px; font-weight: bold; color: var(--brand-navy); min-height: 70px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.highlight-text { color: var(--brand-cyan); font-size: 1.1em; margin-top: 5px; }
.fade-in-text { animation: fadeIn 0.5s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

footer { background-color: var(--brand-navy); color: var(--brand-gold); text-align: center; padding: 30px 20px; margin-top: 40px; }

@media (max-width: 768px) {
    
    #login-btn {
        position: absolute;
        top: 12px;
        right: 15px;
        padding: 6px 12px;
        font-size: 0.8em;
        background-color: var(--brand-gold); 
        color: var(--brand-navy);
        border: none;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        z-index: 1001;
    }
    #login-btn i { font-size: 1.1em; }

    nav { 
        padding: 0; 
        background-color: var(--brand-navy); 
        position: relative !important; 
        top: auto !important;
    }

    nav ul { 
        flex-direction: column; 
        gap: 0; 
        padding: 0;
        width: 100%;
        margin: 0;
    }

    .nav-link { 
        display: block;
        width: 100%; 
        text-align: center; 
        padding: 10px 0; 
        font-size: 0.95em; 
        
        background-color: transparent !important; 
        box-shadow: none !important; 
        border-radius: 0 !important; 
        border: none !important; 
        border-bottom: 1px solid rgba(255,255,255,0.1) !important; 
        margin: 0 !important;
    }

    .nav-link:hover, .nav-link:active {
        background-color: rgba(255,255,255,0.1) !important;
        color: var(--brand-gold) !important;
        transform: none !important; 
    }

    nav ul li:last-child .nav-link { 
        border-bottom: none !important; 
    }

    header { height: auto; padding-top: 15px; padding-bottom: 30px; text-align: center; }
    .header-container-flex { flex-direction: column; gap: 15px; }
    .logo-placeholder { width: 120px; height: 120px; border-width: 3px; }
    .header-content-text { text-align: center; }
    .header-content-text h1 { font-size: 2.0em; }
    .secondary-header { padding-top: 60px; padding-bottom: 40px; min-height: auto; }
    .secondary-header h1 { font-size: 2.2em; }
    .btn-back, .centered-container { width: 90%; margin-left: auto; margin-right: auto; }
    .centered-container { margin-top: -10px; margin-bottom: 20px; display: block; }
    .btn-back { display: block; width: 100%; margin-bottom: 0; }

    .info-grid { flex-direction: column; gap: 30px; }
    .info-card { padding: 25px; width: 100%; min-width: auto; }

    #main-carousel { margin-top: -40px; border-width: 4px; width: 92%; }
    .slide img { height: 250px; }
}


.tutorial-section {
    background-color: var(--white);
}

.tutorial-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.tutorial-row:nth-child(even) {
    flex-direction: row-reverse;
}

.tuto-text {
    flex: 1;
    padding: 20px;
}

.tuto-img {
    flex: 1;
    display: flex;
    justify-content: center;
}

.tutorial-screenshot {
    width: 100%;
    max-width: 950px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(13, 46, 90, 0.2); 
    border: 4px solid var(--brand-gold); 
    transition: transform 0.3s;
}

.tutorial-screenshot:hover {
    transform: scale(1.04);
}

.step-badge {
    background-color: var(--brand-navy);
    color: var(--brand-gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fredoka One';
    font-size: 1.5em;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tuto-text h3 {
    font-family: 'Fredoka One';
    color: var(--brand-navy);
    font-size: 2em;
    margin-bottom: 15px;
}

.tuto-text p {
    font-size: 1.1em;
    color: #555;
    text-align: justify;
}

@media (max-width: 768px) {
    .tutorial-row, .tutorial-row:nth-child(even) {
        flex-direction: column; 
        gap: 20px;
        margin-bottom: 60px;
    }
    
    .tuto-text { text-align: center; }
    
    .step-badge { margin: 0 auto 15px auto; } 
    
    .tuto-text p { text-align: center; }
}