/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #008000;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Password Overlay */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #008000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.password-modal {
    text-align: center;
    background: rgba(0, 100, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.password-modal h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.password-modal p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.pw-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
}

#pw {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    outline: none;
    font-size: 16px;
    box-sizing: border-box;
    height: 44px;
    min-width: 0;
    flex: 1 1 auto;
}

#pw::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.enter {
    margin-top: 0;
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.enter:hover {
    background: rgba(255, 255, 255, 0.18);
}

.enter:active {
    transform: translateY(1px);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

#pw.shake {
    animation: shake 0.3s ease;
}

@media (max-width: 420px) {
    .pw-row {
        flex-direction: column;
    }
    #pw {
        width: 100%;
        height: auto;
    }
    .enter {
        width: 100%;
        height: auto;
    }
    .password-modal {
        padding: 2rem 1.5rem;
    }
    .password-modal h1 {
        font-size: 2rem;
    }
}

/* Navigation */
.navbar {
    background: rgba(0, 100, 0, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-logo:hover {
    color: #90ee90;
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link:hover:after {
    width: 100%;
}

/* Page Header */
.page-header {
    padding: 8rem 2rem 3rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 100, 0, 0.5) 0%, transparent 100%);
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Gallery Section */
.gallery-section {
    padding: 3rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.photo-card {
    animation: fadeInUp 0.6s ease backwards;
}

.photo-card:nth-child(1) { animation-delay: 0.1s; }
.photo-card:nth-child(2) { animation-delay: 0.2s; }
.photo-card:nth-child(3) { animation-delay: 0.3s; }
.photo-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.photo-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    background: #006400;
}

.photo-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.photo-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.photo-wrapper:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-wrapper:hover .photo-overlay {
    transform: translateY(0);
}

.photo-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    display: block;
}

/* Footer */
.footer {
    padding: 3rem 2rem;
    text-align: center;
}

.back-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .photo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }

    .page-header {
        padding: 6rem 1rem 2rem;
    }

    .navbar {
        padding: 1rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
}
