/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Devanagari Sangam MN', 'Helvetica Neue', 'Helvetica', Arial, sans-serif;
    color: #fff;
    line-height: 1.6;
    background-color: #000;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.logo-section {
    text-align: center;
    padding: 50px 0 0 0;
    background-color: #000;
    position: relative;
}

.header-logo {
    height: 269px;
    width: auto;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

.sticky-header {
    position: sticky;
    top: 0;
    background-color: #000;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px 60px 40px;
}

.logo {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #fff;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav a {
    text-decoration: none;
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover,
nav a.active {
    color: #fff;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #fff;
}

/* Gallery Grid */
main {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    background-color: #111;
    border: 1px solid #222;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 40px;
    max-width: 1200px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
}

#lightbox-img {
    max-width: 90%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-info {
    text-align: center;
    color: #fff;
    max-width: 600px;
}

.lightbox-info h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.lightbox-info p {
    font-size: 16px;
    color: #ccc;
    line-height: 1.6;
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001;
}

.close:hover {
    color: #999;
}

.overlay {
    display: none;
}

/* Contact Page */
.contact-page {
    max-width: 800px;
    padding: 80px 40px;
}

.contact-content h2 {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #fff;
}

.contact-intro {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 40px;
}

.contact-info {
    margin-bottom: 60px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 16px;
}

.contact-item i {
    font-size: 20px;
    color: #ccc;
    width: 30px;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #ccc;
}

.contact-item span {
    color: #fff;
}

.contact-image {
    margin-top: 40px;
}

.contact-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Footer */
footer {
    border-top: 1px solid #333;
    padding: 40px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    font-size: 14px;
    color: #888;
}

.social-links a {
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    nav ul {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .logo-section {
        padding: 20px 0 0 0;
        overflow: hidden;
    }


    .header-logo {
    height: auto;
    width: 75vw;
    max-width: 450px;
    }

    .header-content {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    nav ul {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 11px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Lightbox Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 28px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1002;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.1); }
#lightbox-prev { left: 20px; }
#lightbox-next { right: 20px; }
@media (max-width: 768px) {
    #lightbox-prev { left: 5px; }
    #lightbox-next { right: 5px; }
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 1px solid #555;
    color: #ccc;
    cursor: pointer;
    font-size: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, color 0.3s;
    flex-shrink: 0;
}
.theme-toggle:hover { border-color: #fff; color: #fff; }

/* Light Theme */
body.light-theme { background-color: #f5f5f0; color: #111; }
body.light-theme .sticky-header,
body.light-theme .logo-section { background-color: #f5f5f0; }
body.light-theme nav a { color: #555; }
body.light-theme nav a:hover,
body.light-theme nav a.active { color: #111; }
body.light-theme nav a.active::after { background-color: #111; }
body.light-theme .logo { color: #111; }
body.light-theme .gallery-item { background-color: #e8e8e3; border-color: #ddd; }
body.light-theme .lightbox { background-color: rgba(245,245,240,0.97); }
body.light-theme .lightbox-info h2 { color: #111; }
body.light-theme .lightbox-info p { color: #555; }
body.light-theme .close,
body.light-theme .lightbox-nav { color: #111; border-color: rgba(0,0,0,0.3); }
body.light-theme footer { border-top-color: #ddd; }
body.light-theme footer p { color: #888; }
body.light-theme .social-links a { color: #111; }
body.light-theme .contact-split-text h2,
body.light-theme .contact-item a,
body.light-theme .contact-item span { color: #111; }
body.light-theme .contact-intro,
body.light-theme .contact-item i { color: #555; }
body.light-theme .about-split-text p { color: #444; }
body.light-theme .hover-overlay { background: linear-gradient(transparent, rgba(245,245,240,0.9)); }
body.light-theme .hover-title { color: #111; }
body.light-theme .hover-meta { color: #555; }

/* Invert logo in light theme */
body.light-theme .header-logo {
    filter: invert(1);
}

/* Theme toggle override for mobile */
@media (max-width: 768px) {
    .theme-toggle {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 999;
        background: rgba(0,0,0,0.7);
        border: 1px solid #555;
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    body.light-theme .theme-toggle {
        background: rgba(245,245,240,0.9);
        border-color: #aaa;
        color: #111;
    }
}
