/* 1. Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 2. Body */
body {
    font-family:'Courier New', Courier, monospace;
    background-color:#f5f5f5;
    line-height: 1.6;
}

/* 3. Header */
header {
    background-color: #333;
    color:white;
    padding: 1rem 2rem;
    position: sticky;
    top:0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* 4. Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color:white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #f0ff6a;
}

/*5. Sections */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
}

/* 6. Hero Section */
#hero {
    background-color: #d3d0c9;
    color: rgb(70, 70, 70);
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content:center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: rgb(70, 70, 70);
}

.hero-content p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* 8. About Section */
#about {
    background-color: white;
}

#about p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #555;
}

/* Price */


/* Contact Section */
#contact {
    background-color: white;
    text-align: center;
}

#contact p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: #555;
}

/* 10. Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem;
}

footer p {
    font-size: 0.9rem;
}

/*11. Responsive Design */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/*Scroll Padding*/
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

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

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox .close:hover {
    color: #ff6b6b;
}

/* Previous and Next buttons */
.lightbox .prev,
.lightbox .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.3s ease;
}

.lightbox .prev:hover,
.lightbox .next:hover {
    color: #ff6b6b;
}

.lightbox .prev {
    left: 20px;
}

.lightbox .next {
    right: 20px;
}

/* Thumbnail Strip */
.thumbnail-strip {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    max-width: 90%;
    overflow-x: auto;
    z-index: 3;
}

/* Hide scrollbar but keep functionality */
.thumbnail-strip::-webkit-scrollbar {
    height: 5px;
}

.thumbnail-strip::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

.thumbnail-strip::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Individual thumbnails */
.thumbnail-strip img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-strip img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Active thumbnail */
.thumbnail-strip img.active {
    opacity: 1;
    border: 2px solid #ff6b6b;
    transform: scale(1.05);
}

/* Mobile - smaller thumbnails */
@media (max-width: 768px) {
    .thumbnail-strip {
        bottom: 10px;
        gap: 5px;
        padding: 5px;
    }
    
    .thumbnail-strip img {
        width: 60px;
        height: 45px;
    }
}

/* Hamburger Menu Button - Hidden by default */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Hamburger Animation when active */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Show hamburger button on mobile */
    .hamburger {
        display: flex;
    }

    /* Update header layout */
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Hide navigation by default on mobile */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #333;
        transition: right 0.3s ease;
        z-index: 100;
        padding-top: 80px;
    }

    /* Show navigation when active */
    nav.active {
        right: 0;
    }

    /* Stack menu items vertically */
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul li a {
        display: block;
        width: 100%;
        padding: 1rem;
    }

    /* Overlay when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 99;
    }
}