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

body {
    font-family: 'Poppins', sans-serif;    
    background-color: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    font-weight: 100;
    text-align: center;
    padding: 3rem 2rem 1rem;
    text-align: center;
    background-color: #0a0a0a;
}

header h3 {
    font-family: "Quicksand", sans-serif;
    font-size: 2.5rem;
    font-weight: 100;
    letter-spacing: 1em;
    text-transform: uppercase;
    color: #dedede;
}

/* Navigation */
nav {
    padding: 2rem 0;
    background-color: rgba(10, 10, 10, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content:center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 3rem 0 2rem; 

}

nav a {
    color: #919191;
    text-decoration: none;
    font-size: 1.0rem;
    font-weight: 100;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block; /* Move here - on the link itself */
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #761515;
    transform: translateY(-5px);
}

nav a:hover::after {
    width: 100%;
}

nav a:hover::after {
    width: 100%;
}

a {
    text-decoration: none;
    color: #dedede;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    width: 100%;
}

.category-box {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    border-radius: 12px;
    transition: box-shadow 0.3s ease;
}

.category-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
    filter: brightness(0.7) blur(10px);
}

.category-box:hover {
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.6);
}

.category-box:hover img {
    transform: scale(1.04);
    filter: brightness(1.0);
}

.category-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
}

.category-text {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 2px 2px 20px rgba(0,0,0,0.8);
}

.category-box:hover .category-text {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Grid - All Square */
.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.gallery-item {
    width: calc(33.333% - 0.67rem);
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a;
    cursor: pointer;
    transition: transform 0.6s ease, filter 0.3s ease;
    filter: brightness(0.6);
    aspect-ratio: 1;
    opacity: 0;
    animation: fadeInDown 0.6s ease-out forwards;
    border-radius: 12px;
}

.gallery-item:hover {
    transform: scale(1.02);
    z-index: 10;
    filter: brightness(1.0);
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover img {
    filter: brightness(1.1);
}

/* Stagger animation delay based on position */
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.25s; }
.gallery-item:nth-child(5) { animation-delay: 0.3s; }
.gallery-item:nth-child(6) { animation-delay: 0.35s; }
.gallery-item:nth-child(7) { animation-delay: 0.4s; }
.gallery-item:nth-child(8) { animation-delay: 0.45s; }
.gallery-item:nth-child(9) { animation-delay: 0.5s; }
.gallery-item:nth-child(10) { animation-delay: 0.55s; }
.gallery-item:nth-child(11) { animation-delay: 0.6s; }
.gallery-item:nth-child(12) { animation-delay: 0.65s; }
.gallery-item:nth-child(13) { animation-delay: 0.7s; }
.gallery-item:nth-child(14) { animation-delay: 0.75s; }
.gallery-item:nth-child(15) { animation-delay: 0.8s; }
.gallery-item:nth-child(16) { animation-delay: 0.85s; }
.gallery-item:nth-child(17) { animation-delay: 0.9s; }
.gallery-item:nth-child(18) { animation-delay: 0.95s; }

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    background-color: rgba(10, 10, 10, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    color: #888888;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoom 0.3s;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ffffff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #761515;
}

.lightbox-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 30px;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.lightbox-nav button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.about-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    width: 100%;
    max-width: 800px;
}


.about-overlay {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(230, 220, 205, 0.3);
    backdrop-filter: blur(2px);
    padding: 2rem 4rem;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 30px;
}

.about-overlay p {
    font-family: "Quicksand", sans-serif;
    color: #eae6d2;
    font-size: 1.1rem;
    font-style: italic;
    letter-spacing: 0.05em;
    line-height: 1.8;
    text-align: center;
}

.about-img {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.validator-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.validator-badges img {
    opacity: 0.1;
    transition: opacity 0.3s ease;
    width: 20px;
    height: auto;
    filter: grayscale(100%);
}

.validator-badges img:hover {
    opacity: 0.7;
    filter: grayscale(0%);
}


/* =============== Responsive Media Queries ==================== */



@media (max-width: 968px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    header h3 {
        font-size: 2rem;
        letter-spacing: 0.6em;
    }

    nav {
        padding: 1.5rem 0;
    }

    nav ul {
        gap: 2rem;
        flex-wrap: wrap;
        padding: 0 1.5rem;
    }

    nav a {
        font-size: 0.9rem;
        letter-spacing: 0.15em;
    }

    .category-text {
        font-size: 2rem;
    }

    .gallery-item {
        width: calc(50% - 0.5rem);
    }

    .about-overlay {
        padding: 1.5rem 2rem;
        max-width: 85%;
        bottom: 1.5rem;
    }

    .about-overlay p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .about-img {
        max-height: 500px;
        object-fit: cover;
    }
    
}

@media (max-width: 640px) {
    .gallery-container {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }

    .gallery-item {
        width: calc(50% - 0.5rem);
    }

    .gallery-item:nth-child(2),
    .gallery-item:nth-child(5) {
        grid-row: span 1;
    }

    nav ul {
        gap: 1.5rem;
        justify-content: center;
        padding: 0 1rem;
    }

    nav a {
        font-size: 0.85rem;
    }
}

/* Smartphone optimization */

@media (max-width: 480px) {
    header {
        padding: 2rem 1rem 0.5rem;
    }

    header h3 {
        font-size: 1.3rem;
        letter-spacing: 0.3em;
        line-height: 1.4;
    }

    nav {
        padding: 1rem 0;
    }

    nav ul {
        gap: 1rem;
        padding: 0 0.5rem;
    }

    nav a {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }

    main {
        padding: 2rem 1rem;
    }

    .grid-container {
        gap: 1rem;
    }

    .category-text {
        font-size: 1.3rem;
        letter-spacing: 1.5px;
    }

    .gallery-item {
        width: 100%;
    }

    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 35px;
    }

    .lightbox-nav button {
        font-size: 25px;
        padding: 15px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    footer {
        padding: 1.5rem 1rem;
    }

    .about-overlay {
        padding: 1.25rem 1.75rem;
        max-width: 90%;
        bottom: 1rem;
    }

    .about-overlay p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .about-img {
        max-height: 400px;
        object-fit: cover;
    }
}

@media (max-width: 425px) {
    main {
        align-items: flex-start;
        padding: 1.5rem 1rem;
    }
    
    .about-section {
        margin-top: 0;
    }
    
    .about-img {
        max-height: 400px;
        object-fit: cover;
    }
    
    .about-overlay {
        bottom: 0%;
        transform: translate(-50%, 50%);
        padding: 1rem 1.5rem;
        max-width: none;
        width: 90%;
    }

    .about-overlay p {
        font-size: 0.85rem;
        line-height: 1.1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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