:root {
    --bg: #f8f9fa;
    --text: #1a1a1a;
    --primary: #0047ab;
    --secondary: #6c757d;
    --accent: #c5a059;
    --white: #ffffff;

    /* Belt Colors */
    --b-white-yellow: linear-gradient(90deg, #fff 50%, #ffdf00 50%);
    --b-yellow: #ffdf00;
    --b-yellow-orange: linear-gradient(90deg, #ffdf00 50%, #ff8c00 50%);
    --b-orange: #ff8c00;
    --b-orange-green: linear-gradient(90deg, #ff8c00 50%, #2e8b57 50%);
    --b-green: #2e8b57;
    --b-green-blue: linear-gradient(90deg, #2e8b57 50%, #0000ff 50%);
    --b-blue: #0000ff;
    --b-blue-brown: linear-gradient(90deg, #0000ff 50%, #8b4513 50%);
    --b-brown: #8b4513;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header & Nav */
.main-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s;
}

.logo-link:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.brand-logo {
    height: 50px;
    width: auto;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    margin-left: 0;
    align-items: flex-start;
    justify-content: center;
}

.brand-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 26px;
    color: #ee1c25;
    line-height: 1;
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #4a4a4a;
    line-height: 1.2;
    margin-top: 2px;
}

.belt-nav {
    display: flex;
    gap: 8px;
}

.belt-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ddd;
    transition: transform 0.2s, border-color 0.2s;
}

.belt-dot:hover {
    transform: scale(1.2);
    border-color: var(--primary);
}

.white-yellow {
    background: var(--b-white-yellow);
}

.yellow {
    background: var(--b-yellow);
}

.yellow-orange {
    background: var(--b-yellow-orange);
}

.orange {
    background: var(--b-orange);
}

.orange-green {
    background: var(--b-orange-green);
}

.green {
    background: var(--b-green);
}

.green-blue {
    background: var(--b-green-blue);
}

.blue {
    background: var(--b-blue);
}

.blue-brown {
    background: var(--b-blue-brown);
}

.brown {
    background: var(--b-brown);
}

/* Hero */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.hero-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Belt Sections */
.belt-section {
    padding: 80px 0 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    border-radius: 4px;
}

#ukemi .section-title::before {
    background: #6c757d;
}

#white-yellow .section-title::before {
    background: var(--b-white-yellow);
}

#yellow .section-title::before {
    background: var(--b-yellow);
}

#yellow-orange .section-title::before {
    background: var(--b-yellow-orange);
}

#orange .section-title::before {
    background: var(--b-orange);
}

#orange-green .section-title::before {
    background: var(--b-orange-green);
}

#green .section-title::before {
    background: var(--b-green);
}

#green-blue .section-title::before {
    background: var(--b-green-blue);
}

#blue .section-title::before {
    background: var(--b-blue);
}

#brown .section-title::before {
    background: var(--b-brown);
}

/* Technique Grid */
.technique-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tech-card {
    background: var(--white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tech-card .type {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 12px;
}

.standing .type {
    background: #e7f0ff;
    color: var(--primary);
}

.ground .type {
    background: #fffcf0;
    color: #b7791f;
}

.kata .type {
    background: #f0fff4;
    color: #2f855a;
}

.ukemi-card .type {
    background: #fff0f0;
    color: #c53030;
}

.tech-card h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.video-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.video-link:hover {
    background: #00308a;
    transform: scale(1.02);
}

.video-link svg {
    width: 18px;
    height: 18px;
}

.video-link.empty {
    background: #eee;
    color: #bbb;
    pointer-events: none;
}


/* Footer */
.main-footer {
    padding: 60px 20px;
    text-align: center;
    background: var(--primary);
    color: white;
    margin-top: 80px;
}


/* Responsive */

@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .belt-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        height: 50vh;
    }
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    background-color: #000;
    width: 100%;
    max-width: 900px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2010;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--accent);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}