@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background-image: url("/img/1.png");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0; 
    
    color: white;
    font-family: 'Montserrat', sans-serif;
    transition: background-image 0.6s ease-in-out, background-color 0.6s ease-in-out, color 0.4s ease;
}

body.dark-mode {
    background-image: url("/img/2.png");
    background-color: #1a1a1a;
    color: #ffffff;
}

.site-main {
    flex: 1 0 auto;
    width: 100%;
}

nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: white;
    opacity: 0.8;
    transition: 0.3s;
}

nav a.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 1;
    letter-spacing: 0.2px;
}

nav a:hover {
    opacity: 1;
}

.nav-theme-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 10px;
    outline: none;
}

.nav-theme-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.nav-theme-btn i {
    font-size: 1.1rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section {
    padding: 120px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 40px; 
    width: 100%;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    text-align: center;
}

.section.show {
    opacity: 1;
    transform: translateY(0);
}

.video-container {
    max-width: 800px;
    min-width: 280px;
    flex-shrink: 0;  
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16 / 9;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.gallery-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    overflow-x: hidden;
    padding: 10px;
}

.gallery-box {
    width: 100%;
    padding: 30px;
    border-radius: 25px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
    
    opacity: 0;
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.9s ease;
}

body.dark-mode .gallery-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-box.slide-left {
    transform: translateX(-100px);
}

.gallery-box.slide-right {
    transform: translateX(100px);
}

.gallery-box.active {
    opacity: 1;
    transform: translateX(0);
}

.gallery-box img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 15px;
    display: block;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-box p {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0.95;
}

footer {
    flex-shrink: 0;
    text-align: center;
    padding: 40px;
    opacity: 0.6;
}


@media (max-width: 1024px) {
    .video-container {
        max-width: 90% !important;
        margin-top: 120px !important;
    }

    .gallery-container {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    nav {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        padding: 15px 20px;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 40px;
        gap: 25px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body.dark-mode nav ul {
        background: rgba(0, 0, 0, 0.4);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    nav:hover ul {
        right: 0;
    }

    nav::after {
        content: "\f0c9";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        transition: opacity 0.2s;
    }

    nav:hover::after {
        opacity: 0;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
        padding: 5px 0;
    }

    .nav-theme-btn {
        margin-left: 0;
        margin-top: 10px;
        background: rgba(255, 255, 255, 0.15);
    }

    .section {
        padding: 0 15px 40px 15px;
        gap: 30px;
    }

    .video-container {
        margin-top: 100px !important;
        margin-bottom: 10px !important;
    }

    .gallery-box {
        padding: 20px;
        gap: 20px;
    }

    .gallery-box.slide-left,
    .gallery-box.slide-right {
        transform: translateX(0); 
        opacity: 0;
        transform: translateY(40px);
    }

    .gallery-box.active {
        opacity: 1;
        transform: translateY(0);
    }

    .gallery-box p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    nav a.nav-brand {
        font-size: 1.2rem;
    }

    .video-container {
        border-radius: 15px;
    }

    .gallery-box {
        padding: 15px;
        border-radius: 20px;
    }

    .gallery-box img {
        border-radius: 10px;
        margin-bottom: 15px;
    }

    .gallery-box p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

