/* CSS Variables */
:root {
    --primary-color: #D4AF37;
    /* Metallic Gold */
    --secondary-color: #1a1a1a;
    /* Soft Black */
    --bg-light: #f9f9f9;
    --bg-dark: #121212;
    --text-dark: #333333;
    --text-light: #f4f4f4;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

p {
    margin-bottom: 1rem;
}

.line-separator {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 0 2rem 0;
}

.line-separator.center {
    margin: 0 auto 3rem auto;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.dark-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--text-light);
}

.btn-dark {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-dark:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

/* Navbar */
#navbar {
    position: fixed;
    /* Sticky behavior */
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark color and more transparent */
    backdrop-filter: blur(10px);
    /* Blur content */
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#nav-logo {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    /* Light text for dark background */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    /* Slightly bolder for readability */
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    background-color: var(--text-light);
    /* Light hamburger for dark background */
}

/* Hero Section */
#hero {
    height: 100vh;
    background: url('assets/banner.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Darker overlay for text readability */
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    animation: fadeIn 2s ease-out;
    margin-top: -5vh;
}

.hero-logo {
    height: 180px;
    /* Made larger */
    margin: 0 auto 20px auto;
    display: block;
}

#hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

#hero p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    font-family: var(--font-heading);
    font-style: italic;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image .image-frame {
    border: 2px solid var(--primary-color);
    padding: 15px;
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

/* Loader Styles */
.gallery-item.loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 5;
}

.gallery-item.loading img {
    opacity: 0;
}

.gallery-item img {
    transition: opacity 0.5s ease, transform 0.3s ease;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Combined Gallery Item (Side-by-Side) */
.gallery-item-combined {
    display: flex;
    gap: 5px;
    height: 100%;
}

.gallery-item-combined img {
    width: 50%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item-combined:hover img {
    transform: scale(1.05);
}

.gallery-item img:not(.gallery-item-combined img) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover img:not(.gallery-item-combined img) {
    transform: scale(1.05);
}

.gallery-item .overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    bottom: 0;
}

.gallery-item h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Contact Section */
.contact-container {
    max-width: 800px;
    text-align: center;
}

#contact-form {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    background: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-status {
    margin-top: 20px;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.form-status.success {
    color: #27ae60;
    /* Green */
}

.form-status.error {
    color: #e74c3c;
    /* Red */
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

#preloader .spinner {
    animation: rotate 2s linear infinite;
    z-index: 2;
    width: 50px;
    height: 50px;
}

#preloader .path {
    stroke: var(--primary-color);
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.contact-info {
    margin-top: 40px;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Footer */
footer {
    background: #000;
    color: #888;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        background: #000;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px;
        background-color: var(--text-light);
        transition: var(--transition);
    }

    .gallery-item-combined {
        flex-direction: column;
        height: auto;
    }

    .gallery-item-combined img {
        width: 100%;
        height: auto;
    }
}

/* Modal Styles */
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    transition: var(--transition);
    justify-content: center;
    align-items: center;
    padding: 0;
    /* Removed padding to use flex centering */
    overflow: hidden;
    /* Prevent scrolling outside */
}

.modal-content {
    display: flex;
    flex-direction: column;
    /* Default to stacked (Mobile) */
    width: 90%;
    max-width: 1200px;
    height: auto;
    max-height: 90vh;
    background: transparent;
    position: relative;
    animation-name: zoom;
    animation-duration: 0.4s;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#modal-img {
    width: auto;
    max-width: 100%;
    max-height: 70vh;
    /* Max height for mobile to leave room for text */
    height: auto;
    object-fit: contain;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

#modal-caption {
    margin: 0;
    width: 100%;
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
    overflow-y: auto;
    max-height: 20vh;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--text-light);
    font-size: 40px;
    font-weight: bold;
    transition: var(--transition);
    cursor: pointer;
    z-index: 2001;
}

.close:hover,
.close:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Landscape/Desktop View */
@media (min-width: 769px) {
    .modal-content {
        flex-direction: row;
        /* Side by Side */
        text-align: left;
        gap: 40px;
        background: rgba(0, 0, 0, 0.5);
        /* Subtle background for content area */
        padding: 40px;
        border-radius: 10px;
    }

    #modal-img {
        max-width: 65%;
        max-height: 85vh;
        /* Taller image allowed in landscape */
        flex-shrink: 0;
    }

    #modal-caption {
        text-align: left;
        width: auto;
        font-size: 1.5rem;
        border-left: 2px solid var(--primary-color);
        padding-left: 20px;
        display: flex;
        align-items: center;
        max-height: 85vh;
    }

    .close {
        top: 20px;
        right: 30px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }
}