/* ========== RESET & GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: "Comic Relief", system-ui;
    font-style: normal;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image: url("../img/background.jpgroom.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 200, 124, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: -1;
}

/* ========== NAVIGATION ========== */
.navbar {
    background: linear-gradient(
        135deg,
        rgba(220, 20, 60, 0.95) 0%,
        rgba(178, 34, 34, 0.95) 100%
    );
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
}

.nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-menu li a.active {
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ========== MAIN CONTENT ========== */
.main-content {
    padding: 60px 20px 80px 20px;
    min-height: calc(100vh - 200px);
}

/* ========== GALLERY CONTAINER ========== */
.gallery-container {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(
        135deg,
        rgba(255, 228, 196, 0.95) 0%,
        rgba(255, 237, 213, 0.95) 100%
    );
    padding: 50px 40px;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.8s ease-in;
}

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

.gallery-title {
    text-align: center;
    font-size: 42px;
    color: #ff8c42;
    margin: 0 0 15px 0;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.gallery-subtitle {
    text-align: center;
    font-size: 18px;
    color: #ff6f00;
    margin: 0 0 40px 0;
    line-height: 1.6;
}

/* ========== SLIDER CONTAINER ========== */
.slider-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.slider-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 140, 66, 0.3);
}

.slider-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
    background: white;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
    background: white;
}

.image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 140, 66, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ========== SLIDER BUTTONS ========== */
.slider-btn {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6f00 100%);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.slider-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 140, 66, 0.6);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-btn span {
    line-height: 1;
    margin-top: -5px;
}

/* ========== IMAGE DESCRIPTION ========== */
.image-description {
    text-align: center;
    margin-bottom: 30px;
}

.image-description p {
    font-size: 20px;
    color: #ff8c42;
    font-weight: 600;
    margin: 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.2);
}

/* ========== THUMBNAIL NAVIGATION ========== */
.thumbnail-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.2);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.4);
}

.thumbnail:hover img {
    transform: scale(1.1);
}

.thumbnail.active {
    border-color: #ff8c42;
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.5);
}

/* ========== PINTEREST STYLE GRID ========== */
.pinterest-grid {
    column-count: 3;
    column-gap: 20px;
    margin-top: 30px;
}

.pinterest-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(214, 51, 132, 0.25);
    background: white;
}

.pinterest-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(255, 140, 66, 0.4);
}

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

.pinterest-item:hover img {
    transform: scale(1.05);
}

/* ========== IMAGE MODAL ========== */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(255, 140, 66, 0.5);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #ff8c42;
    transform: scale(1.2);
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(
        135deg,
        rgba(220, 20, 60, 0.95) 0%,
        rgba(178, 34, 34, 0.95) 100%
    );
    padding: 30px 20px;
    text-align: center;
    margin-top: 60px;
}

.footer-content p {
    color: white;
    margin: 0;
    font-size: 16px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .gallery-container {
        padding: 30px 20px;
    }

    .gallery-title {
        font-size: 32px;
    }

    .gallery-subtitle {
        font-size: 16px;
    }

    .slider-container {
        flex-direction: column;
        gap: 15px;
    }

    .slider-btn {
        width: 50px;
        height: 50px;
        font-size: 32px;
    }

    .prev-btn {
        order: 2;
    }

    .slider-wrapper {
        order: 1;
    }

    .next-btn {
        order: 3;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .thumbnail-container {
        gap: 8px;
    }

    .pinterest-grid {
        column-count: 2;
        column-gap: 15px;
    }

    .pinterest-item {
        margin-bottom: 15px;
    }

    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-menu li a {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .gallery-title {
        font-size: 26px;
    }

    .gallery-subtitle {
        font-size: 14px;
    }

    .image-description p {
        font-size: 16px;
    }

    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 28px;
    }

    .thumbnail {
        width: 50px;
        height: 50px;
    }

    .pinterest-grid {
        column-count: 1;
        column-gap: 10px;
    }

    .pinterest-item {
        margin-bottom: 12px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }

    .modal-close {
        top: -35px;
        font-size: 35px;
    }

    .minecraft-fox {
        bottom: 10px;
        left: 10px;
    }

    .fox-image {
        width: 100px;
    }
}

/* ========== MINECRAFT FOX ========== */
.minecraft-fox {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    animation: foxBounce 3s ease-in-out infinite;
}

@keyframes foxBounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fox-image {
    width: 150px;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.fox-image:hover {
    transform: scale(1.1);
}
