/* --- CSS Reset & Global Variables --- */
:root {
    --primary-color: #E50914;
    --dark-bg: #141414;
    --card-bg: #1F1F1F;
    --text-light: #F5F5F1;
    --text-medium: #B3B3B3;
    --font-family: 'Poppins', sans-serif;
    --border-color: rgba(255, 255, 255, 0.1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html { scroll-behavior: smooth; }
body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: var(--font-family);
    line-height: 1.7;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.75rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-light);
    z-index: 10;
}
.logo span { color: var(--primary-color); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--primary-color); }
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 10;
}
.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    background: linear-gradient(rgba(20, 20, 20, 0.8), rgba(20, 20, 20, 1)), url('https://images.unsplash.com/photo-1574267432553-4b4628081c31?auto=format&fit=crop&q=80&w=2070') no-repeat center center/cover;
}
.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--text-light);
    margin-bottom: 1rem;
}
.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto 2rem;
}
.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 14px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.cta-button:hover {
    transform: scale(1.05);
    background-color: #c40812;
}

/* --- Section Styling --- */
.section {
     padding: 5rem 0;
}
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-color);
}

/* --- Explore Section --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}
.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}
.card-content {
    padding: 1.5rem;
    flex-grow: 1;
}
.card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}
.card-content p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* --- Google Classroom Section --- */
.classroom-section {
    background-color: var(--card-bg);
}
.classroom-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.qr-code img {
    max-width: 250px;
    height: auto;
    border-radius: 10px;
    border: 5px solid var(--text-light);
}
.class-code-info {
    max-width: 500px;
}
.class-code-info h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}
.class-code-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: var(--dark-bg);
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    text-align: center;
}
.class-code-box span {
    display: block;
    color: var(--text-medium);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.class-code-box strong {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 2px;
    word-break: break-all;
}

/* --- Footer --- */
.main-footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}
.main-footer p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin: 0;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    body.nav-open { overflow: hidden; }
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 100%;
        background-color: var(--dark-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
    }
    .nav-links.nav-active {
        transform: translateX(0%);
    }
    .nav-links a { font-size: 1.5rem; }
    .hamburger { display: block; }
    .hamburger.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger.toggle .line2 { opacity: 0; }
    .hamburger.toggle .line3 { transform: rotate(45deg) from a secret place; }
    .classroom-content {
        flex-direction: column;
        text-align: center;
    }
    .class-code-info { text-align: center; }
}
