﻿/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #EDE9FE; /* Pastel purple */
    color: #4C1D95; /* Deep violet text */
    line-height: 1.6;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    padding: 20px 50px;
    background: linear-gradient(135deg, #D8B4FE 0%, #F9A8D4 100%); /* Purple-to-pink gradient */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(108, 33, 168, 0.3); /* Violet shadow */
}

.logo img {
    height: 40px;
    filter: drop-shadow(0 0 6px #F3E8FF); /* Sparkling glow */
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-content: center;
}

.nav a {
    color: #4C1D95; /* Deep violet */
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s, text-shadow 0.3s;
}

    .nav a:hover {
        color: #F472B6; /* Vivid pink */
        text-shadow: 0 0 8px #F3E8FF; /* Glow effect */
    }

.user-menu .subscribe-btn {
    color: #4C1D95;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #F472B6; /* Vivid pink */
    border-radius: 20px;
    background-color: #FCE7F3; /* Soft pink */
    transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
}

    .user-menu .subscribe-btn:hover {
        background-color: #C084FC; /* Bright purple */
        color: #ffffff;
        box-shadow: 0 0 10px #F3E8FF; /* Sparkling glow */
    }

/* Hero Section */
.hero {
    height: calc(100vh - 80px); /* Adjust height to account for header */
    margin-top: 80px; /* Offset for header height */
    position: relative;
    background: url('assets/images/background.jpg') no-repeat center center/cover, linear-gradient(135deg, #6B21A8 0%, #F9A8D4 100%); /* Default background with fallback */
    transition: background-image 0.5s ease-in-out; /* Smooth background transition */
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(108, 33, 168, 0.2); /* Subtle violet overlay */
        z-index: 1;
    }

.hero-content {
    position: absolute;
    top: 20px; /* Space from top of hero section */
    left: 20px; /* Space from left */
    max-width: 33.33%; /* At most 1/3 width */
    min-width: 250px; /* Prevent overflow */
    z-index: 2;
    text-align: left; /* Left-align text */
    padding: 20px;
    background: rgba(252, 231, 243, 0.9); /* Slightly more opaque soft pink */
    border-radius: 10px;
    box-shadow: 0 0 15px #F3E8FF; /* Glowing effect */
    transition: opacity 0.3s ease-in-out; /* Smooth text transition */
}

.hero h1 {
    font-size: 36px; /* Compact layout */
    margin-bottom: 15px;
    text-shadow: 0 0 12px #F3E8FF; /* Sparkling glow */
}

.hero p {
    font-size: 18px;
    margin-bottom: 20px;
}

.cta-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #F472B6; /* Vivid pink */
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

    .cta-btn:hover {
        background-color: #C084FC; /* Bright purple */
        box-shadow: 0 0 12px #F3E8FF; /* Glow effect */
    }

.thumbnail-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.thumbnail-btn {
    background: none;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    padding: 5px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

    .thumbnail-btn img {
        width: 80px;
        height: 45px; /* 16:9 aspect ratio */
        object-fit: cover;
        border-radius: 5px;
    }

    .thumbnail-btn.active {
        border-color: #F472B6; /* Vivid pink highlight */
        box-shadow: 0 0 10px #F3E8FF; /* Glowing effect */
    }

    .thumbnail-btn:hover {
        border-color: #C084FC; /* Bright purple on hover */
    }

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        margin-top: 160px; /* Larger offset for taller header on mobile */
        height: calc(100vh - 160px); /* Adjust height */
    }

    .hero-content {
        max-width: 80%; /* Wider on mobile */
        min-width: 200px; /* Adjusted for smaller screens */
        top: 10px;
        left: 10px;
        padding: 15px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .thumbnail-container {
        bottom: 10px;
        right: 10px;
        flex-direction: column; /* Stack thumbnails vertically on mobile */
        gap: 8px;
    }

    .thumbnail-btn img {
        width: 60px;
        height: 33.75px; /* Maintain 16:9 aspect ratio */
    }
}
/* Videos Section */
.videos {
    padding: 80px 50px;
    text-align: center;
    background-color: #EDE9FE; /* Pastel purple */
}

    .videos h2 {
        font-size: 36px;
        margin-bottom: 40px;
        text-shadow: 0 0 8px #F3E8FF; /* Subtle glow */
    }

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-card {
    background-color: #FCE7F3; /* Soft pink */
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .video-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 0 15px #D8B4FE; /* Purple glow */
    }

.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%;
    }

.video-card h3 {
    font-size: 24px;
    margin: 20px 0 10px;
    color: #4C1D95; /* Deep violet */
}

.video-card p {
    padding: 0 20px;
    color: #6B21A8; /* Slightly lighter violet */
}

.card-btn {
    display: inline-block;
    margin: 20px;
    padding: 10px 20px;
    background-color: #F472B6; /* Vivid pink */
    color: #ffffff;
    text-decoration: none;
    border-radius: 20px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

    .card-btn:hover {
        background-color: #C084FC; /* Bright purple */
        box-shadow: 0 0 10px #F3E8FF; /* Glow effect */
    }

/* Footer */
.footer {
    background-color: #FCE7F3; /* Soft pink */
    padding: 40px 50px;
    text-align: center;
}

    .footer p {
        margin-bottom: 20px;
        color: #4C1D95; /* Deep violet */
    }

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

    .footer-links a {
        color: #4C1D95;
        text-decoration: none;
        transition: color 0.3s, text-shadow 0.3s;
    }

        .footer-links a:hover {
            color: #F472B6; /* Vivid pink */
            text-shadow: 0 0 8px #F3E8FF; /* Glow effect */
        }

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        padding: 15px 20px; /* Smaller padding on mobile */
    }

    .nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        margin-top: 160px; /* Larger offset for taller header on mobile */
        height: calc(100vh - 160px); /* Adjust height */
    }

    .hero-content {
        max-width: 80%; /* Wider on mobile */
        min-width: 200px; /* Adjusted for smaller screens */
        top: 10px;
        left: 10px;
        padding: 15px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .videos {
        padding: 40px 20px;
    }

        .videos h2 {
            font-size: 28px;
        }
}
