/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f9;
    color: #2c3e50;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Header with Background */
header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    color: #fff;
    padding: 0 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('https://wallpaperaccess.com/full/3034896.jpg') no-repeat center center;
    background-size: cover;
}

header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

header .header-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 2s ease-in-out;
    min-height: 100vh;
}

header h1 {
    font-size: 4.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #deefff;
}

.small-heading {
    font-size: 1.8rem;
    color: #deefff;
    margin-bottom: 10px;
    font-weight: 500;
}

header .quote {
    font-size: 1.2rem;
    font-style: italic;
    color: #f8e9ff;
    margin-bottom: 30px;
}

header .btn-primary {
    padding: 12px 28px;
    font-size: 1.1rem;
    color: white;
    background-color: #ff6f61;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease;
}

header .btn-primary:hover {
    background-color: #e74c3c;
    transform: scale(1.05);
}

html {
    scroll-behavior: smooth;
}

/* YouTube Container */
.youtube-container {
    position: fixed;
    top: 20px; /* Position it from the top */
    left: 20px; /* Position it from the left */
    width: 300px; /* Default width for larger screens */
    height: 170px; /* Default height for larger screens */
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.youtube-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

/* About Section */
.about {
    max-width: 900px;
    margin: 50px auto;
    padding: 40px;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.05);
}

.about h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.about p {
    font-size: 1.1rem;
    color: #636e72;
}

/* Image Gallery */
.gallery {
    padding: 50px 0;
    background-color: #f4f4f9;
    text-align: center;
}

.gallery h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #2c3e50;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
}

.gallery-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-container img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    padding: 20px;
    background-color: #2c3e50;
    color: white;
    text-align: center;
    border-top: 3px solid #ff6f61;
}

footer p {
    font-size: 1.2rem;
}

footer .social-icons {
    margin-top: 10px;
}

footer .social-icons img {
    width: 30px;
    margin: 0 10px;
    transition: transform 0.3s;
}

footer .social-icons img:hover {
    transform: scale(1.2);
}

/* Keyframes for fade-in animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    header {
        background-position: -70px center;
    }

    header h1 {
        font-size: 2.5rem;
    }
    
    .small-heading {
        font-size: 1.2rem;
    }
    
    header .btn-primary {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .youtube-container {
        width: 250px;
        height: 140px;
        top: 10px;
        left: 10px;
    }
    
    .about h2 {
        font-size: 2rem;
    }
    
    .about p {
        font-size: 1rem;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .gallery-container img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    header {
        background-position: -70px center;
    }

    header h1 {
        font-size: 2rem;
    }
    
    .small-heading {
        font-size: 1rem;
    }
    
    header .btn-primary {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .youtube-container {
        width: 200px;
        height: 120px;
        top: 5px;
        left: 5px;
    }
    
    .about h2 {
        font-size: 1.8rem;
    }
    
    .about p {
        font-size: 0.9rem;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .gallery-container img {
        width: 100%;
        height: auto;
    }
}
