/* Reset default margins and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles with smooth font rendering */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5; /* Light mode background */
    color: #333; /* Light mode text */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark mode styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

/* Main container for centered content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header styling */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Page title */
.header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
}

/* Theme toggle button */
#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s ease;
}

#theme-toggle:hover {
    transform: scale(1.2);
}

/* Video section */
.video-section {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

/* Video player styling */
.video-player {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-in-out;
    background-color: #000; /* Ensure video background looks good in both modes */
}

/* Fade-in animation for video */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Description section */
.description {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.description p {
    font-size: 1.1rem;
    color: inherit; /* Inherit text color from body */
    padding: 1rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.8); /* Light mode background */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Dark mode description background */
body.dark-mode .description p {
    background-color: rgba(40, 40, 40, 0.8);
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .video-player {
        max-width: 100%;
    }

    .description p {
        font-size: 1rem;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header {
        flex-direction: column;
        gap: 1rem;
    }

    #theme-toggle {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
}