/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bs-primary: #ff4f9a; /* Pink */
    --bs-secondary: #808080; /* Grey */
    --bs-dark: #2d3748;
    --bs-light: #f8f9fa;
    --bs-white: #ffffff;
    --bs-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(45deg, #ff4f9a, #ff85c1);
    --gradient-hover: linear-gradient(45deg, #ff85c1, #ff4f9a);
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--bs-dark);
    background: var(--bs-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--bs-white);
    box-shadow: var(--bs-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bs-primary);
    text-decoration: none;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--bs-dark);
    font-weight: 600;
    transition: color 0.3s ease, background 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: linear-gradient(90deg, #fff, #fff);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--bs-white);
    background: var(--gradient-primary);
    box-shadow: 0 5px 15px rgba(255, 79, 154, 0.4);
}

/* Gallery Header */
.gallery-header {
    background: linear-gradient(135deg,
        rgba(255, 79, 154, 0.9) 0%,
        rgba(128, 128, 128, 0.8) 100%),
        url('background.jpg');
    background-size: cover;
    background-position: center;
    color: var(--bs-white);
    text-align: center;
    padding: 120px 0 80px 0;
    margin-bottom: 60px;
    border-bottom-left-radius: 50% 20%;
    border-bottom-right-radius: 50% 20%;
}

.gallery-header h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.gallery-header p {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
}

/* Video Gallery */
.video-gallery {
    padding: 60px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video-card {
    background: var(--bs-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--bs-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.video-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 79, 154, 0.3);
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16; /* portrait videos */
    overflow: hidden;
    background: var(--bs-dark);
    border-radius: 15px;
}

.gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 15px;
}

.video-card:hover .gallery-video {
    transform: scale(1.08) rotate(0.5deg);
}

/* Overlay Play Button */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 79, 154, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
    border-radius: 15px;
}

.video-container:hover .video-overlay {
    opacity: 1;
    background: rgba(255, 79, 154, 0.35);
}

.play-btn {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--bs-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(255, 79, 154, 0.4);
    animation: pulse 2s infinite;
}

.play-btn:hover {
    background: var(--gradient-hover);
    transform: scale(1.2);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.video-info {
    padding: 20px;
    text-align: center;
}

.video-info h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bs-dark);
    margin-bottom: 8px;
}

.video-info p {
    color: var(--bs-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.video-duration {
    background: var(--gradient-primary);
    color: var(--bs-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 55, 72, 0.9);
    z-index: 2000;
    backdrop-filter: blur(8px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px;
    background: var(--bs-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(255, 79, 154, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--bs-primary);
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--gradient-hover);
}

#modalVideo {
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 15px;
}

.modal-info {
    padding: 20px;
    text-align: center;
}

.modal-info h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    color: var(--bs-dark);
    margin-bottom: 10px;
}

.modal-info p {
    color: var(--bs-secondary);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--bs-dark);
    color: var(--bs-white);
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 1rem 20px;
    }

    .nav-menu {
        margin-top: 1rem;
        gap: 1rem;
    }

    .gallery-header h1 {
        font-size: 2.8rem;
    }

    .gallery-header p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-header h1 {
        font-size: 2rem;
    }

    .gallery-header p {
        font-size: 1rem;
    }

    .video-info h3 {
        font-size: 1.2rem;
    }

    .video-info p {
        font-size: 0.95rem;
    }

    .play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
}
