/* Base Styles */
:root {
    --primary: #3498db;
    --secondary: #2ecc71;
    --accent: #e74c3c;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

.main-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

section {
    padding: 60px 0;
}

h1,
h2,
h3 {
    margin-bottom: 15px;
}

/* Header */
.head-container {
    margin-top: 7%;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.head-container h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Hero Slider */
.slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.slides {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    padding: 30px;
    text-align: center;
}

.slide-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* Gallery Filter */
.gallery-header {
    text-align: center;
    margin-bottom: 30px;
}

.gallery-header h2 {
    font-size: 2.2rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.gallery-header h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--accent);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.gallery-header p {
    color: var(--dark);
    max-width: 700px;
    margin: 0 auto;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 250px;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Lightbox Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.modal img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.modal-caption {
    color: var(--white);
    text-align: center;
    margin-top: 20px;
    max-width: 700px;
}

.modal-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--accent);
    transform: rotate(90deg);
}



/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}




/* Gallery video section styling */

.video-grid {
    background-color: #e9ecee;
    display: flex;
    flex-direction: row;
    gap: 35px;
    justify-content: space-around;
    width: 100%;
    color: black;
    padding: 20px;
}

.video-container {
    padding: 10px;
    box-shadow: 0px 0px 5px black;
    border-radius: 10px;
}

.video-container > video{
    width: 100%;
}

.video-container>p {
    font-size: 1rem;
    font-family: 'Times New Roman', Times, serif;
    font-style: oblique;
    text-align: center;
}

.video-container>button {
    background-color: #e74c3c;
    padding: 10px;
    color: white;
    font-weight: 600;
    border-radius: 10px;
}



/* Responsive Design */
@media (max-width: 992px) {
    .slider-container {
        height: 400px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .video-grid {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .slider-container {
        height: 350px;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .gallery-header h2 {
        font-size: 1.8rem;
    }

    .close-btn {
        font-size: 24px;
        top: 20px;
        right: 20px;
    }

    .video-grid {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .video-grid {
        flex-direction: column;
    }

    .slider-container {
        height: 300px;
    }

    .slide-content {
        padding: 15px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Add to your existing CSS */
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}