:root {
    --primary-color: #ffde59;
    --secondary-color: #000000;
    --text-color: #333333;
    --background-color: #ffffff;
    --light-bg: #fafafa;
    --border-color: #e8e8e8;
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Montserrat', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3 {
    font-family: var(--font-primary);
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.85rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--secondary-color);
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-decoration-thickness: 2px;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
    text-decoration-color: var(--secondary-color);
}

/* Main Navigation */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid var(--primary-color);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px 20px;
    gap: 10px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--background-color);
    background: rgba(255, 222, 89, 0.1);
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid transparent;
    min-width: 100px;
}

.nav-item:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 222, 89, 0.4);
    border-color: var(--primary-color);
}

.nav-item:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-icon {
    font-size: 1.8rem;
    transition: var(--transition);
}

.nav-item:hover .nav-icon {
    transform: scale(1.15);
}

.nav-text {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-external {
    background: rgba(255, 222, 89, 0.15);
    border-color: var(--primary-color);
}

.nav-external:hover {
    background: linear-gradient(135deg, var(--primary-color), #ffd700);
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Header Styles */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 222, 89, 0.03) 10px,
        rgba(255, 222, 89, 0.03) 20px
    );
    pointer-events: none;
}

.header img {
    max-width: 120px;
    height: auto;
    margin-right: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(255, 222, 89, 0.3);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.header img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(255, 222, 89, 0.5);
}

.header h1 {
    color: var(--primary-color);
    margin: 0;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 40px;
}

/* Section Styles */
section {
    margin-bottom: 60px;
}

.intro, .about {
    margin-bottom: 50px;
    line-height: 1.7;
    text-align: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.intro {
    background: linear-gradient(to bottom, var(--light-bg), var(--background-color));
    padding: 35px 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary-color);
}

.intro h2 {
    font-size: 1.85rem;
    margin-bottom: 1.25rem;
    color: var(--secondary-color);
}

.intro p {
    font-size: 1rem;
    margin-bottom: 1.15rem;
}

.intro strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.about {
    padding: 30px;
    background: var(--background-color);
    border-radius: 12px;
}

.about h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.about h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.about p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.about ul {
    list-style-type: none;
    padding-left: 0;
    margin: 30px auto;
    max-width: 700px;
}

.about ul li {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.about ul li:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

/* Video Gallery */
.video-gallery {
    padding: 40px 0;
}

.video-gallery h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
    color: var(--secondary-color);
}

.video-gallery h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 12px auto 0;
    border-radius: 3px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
}

/* Video Cards */
.video-item {
    background-color: var(--background-color);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    position: relative;
}

.video-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ffd700);
    opacity: 0;
    transition: var(--transition);
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.video-item:hover::before {
    opacity: 1;
}

.thumbnail-link {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background: var(--secondary-color);
}

.thumbnail-link::after {
    content: '\25B6';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.thumbnail-link:hover::after {
    opacity: 0.9;
}

.thumbnail-link img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.thumbnail-link:hover img {
    opacity: 0.7;
    transform: scale(1.05);
}

.video-item-title {
    padding: 16px;
    font-weight: 600;
    font-family: var(--font-secondary);
    color: var(--secondary-color);
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Toggle Description Button */
.toggle-desc-btn {
    background: linear-gradient(135deg, var(--primary-color), #ffd700);
    color: var(--secondary-color);
    border: none;
    padding: 14px 20px;
    cursor: pointer;
    font-family: var(--font-secondary);
    font-weight: 600;
    width: 100%;
    transition: var(--transition);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.toggle-desc-btn:hover {
    background: linear-gradient(135deg, #ffd700, var(--primary-color));
    transform: none;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1);
}

.toggle-desc-btn:active {
    transform: scale(0.98);
}

/* Video Description */
.video-description {
    display: none;
    padding: 16px;
    background: linear-gradient(to bottom, var(--light-bg), var(--background-color));
    border-top: 2px solid var(--primary-color);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.video-description p {
    margin: 0;
    white-space: pre-wrap;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
}

.video-description.show {
    display: block;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 40px;
    margin-top: 60px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 100%);
    color: var(--background-color);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ffd700, var(--primary-color));
}

.footer p {
    margin: 10px 0;
    font-size: 1rem;
}

.footer a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    font-weight: 600;
}

.footer a:hover {
    color: #ffd700;
    text-decoration-color: #ffd700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 10px 15px;
        gap: 8px;
    }

    .nav-item {
        padding: 10px 12px;
        min-width: 80px;
    }

    .nav-icon {
        font-size: 1.5rem;
    }

    .nav-text {
        font-size: 0.7rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header img {
        max-width: 80px;
        margin-right: 15px;
    }

    .container {
        padding: 40px 20px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .video-gallery h2 {
        font-size: 1.5rem;
    }

    .intro h2, .about h2 {
        font-size: 1.4rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Accessibility improvements */
.toggle-desc-btn:focus,
a:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .toggle-desc-btn {
        display: none;
    }

    .video-description {
        display: block !important;
    }
}
