/* =========================
   Body & Main
========================= */

body {
    overflow: hidden;
}

main {
    overflow-y: auto;
    height: calc(100vh - 50px);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

main::-webkit-scrollbar {
    display: none;
}

/* =========================
   Hero
========================= */

.hero-cards {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.hero-card-landscape {
    width: 400px;
    height: 300px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background-color: var(--bg-surface);
    overflow: hidden;
}

.hero-card-portrait {
    width: 300px;
    height: 300px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background-color: var(--bg-surface);
    overflow: hidden;
}

.hero-card-landscape img,
.hero-card-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================
   Intro
========================= */

.intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 20px 40px;
}

.intro-subtitle {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 10px;
}

.intro-heading {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 0 0 20px;
}

.intro-body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-tertiary);
    max-width: 600px;
    font-weight: 300;
    margin: 0 auto;
}

/* =========================
   YouTube
========================= */

.youtube-section {
    width: 100%;
    padding: 48px 0;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.youtube-callout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 32px;
}

.youtube-callout h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 6px;
}

.youtube-callout p {
    font-size: 15px;
    color: var(--text-tertiary);
    font-weight: 300;
    margin: 0;
}

.youtube-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.youtube-buttons .btn-watch {
    background-color: var(--primary-600);
    color: #fff;
}

.youtube-buttons .btn-watch:hover { opacity: 0.88; }

.youtube-buttons .join-channel {
    background-color: var(--primary-100);
    color: var(--primary-900);
}

.youtube-buttons .join-channel:hover { opacity: 0.88; }

.youtube-recent-videos {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 10px;
}

.youtube-video-card {
    width: 366px;
    height: 209px;
    background-color: var(--bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
}

.youtube-video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================
   Projects Section
========================= */

.projects-section {
    padding: 60px 0;
}

.projects-header {
    text-align: center;
    margin-bottom: 36px;
}

.projects-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.projects-header p {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0;
}

.projects-track-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.projects-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    overflow: hidden;
}

.project-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card-thumb {
    aspect-ratio: 16 / 10;
    background-color: var(--bg-surface);
    border-radius: 14px;
    margin: 8px;
    width: calc(100% - 16px);
}

.project-card-body {
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.project-card-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.project-card-body p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
}

.project-btn {
    width: 100%;
    margin-top: 4px;
    font-size: 14px;
    padding: 10px;
}

.projects-nav-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--bg);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}

.projects-nav-btn:hover {
    background: var(--nav-hover-bg);
}



/* =========================
   Mobile
========================= */

@media (max-width: 767px) {
    .hero-cards {
        flex-direction: column;
        align-items: center;
    }

    .hero-card-landscape,
    .hero-card-portrait {
        width: 100%;
        height: 220px;
    }

    .youtube-recent-videos {
        flex-direction: column;
        align-items: center;
    }

    .youtube-video-card {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .projects-track {
        grid-template-columns: 1fr;
    }

    .projects-nav-btn {
        display: none;
    }
}