/* Art Deco Color Palette */
:root {
    --primary-gold: #D4AF37;
    --secondary-gold: #FFD700;
    --deep-brown: #4A3C2C;
    --honey-amber: #FFA000;
    --cream: #F5E6D3;
    --dark-text: #2C1810;
    --light-text: #F5E6D3;
    --accent-red: #8B0000;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--cream);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--deep-brown);
}

/* Navigation */
.navbar {
    background: var(--deep-brown);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.logo-link:hover h1 {
    color: var(--secondary-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.logo h1 {
    color: var(--primary-gold);
    font-size: 1.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-gold);
    transition: all 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: 
        /* Dark gradient overlay */
        linear-gradient(
            rgba(74, 60, 44, 0.85), 
            rgba(74, 60, 44, 0.7)
        ),
        /* Gold accent overlay */
        linear-gradient(
            45deg,
            rgba(212, 175, 55, 0.2) 0%,
            rgba(212, 175, 55, 0.1) 50%,
            rgba(212, 175, 55, 0.2) 100%
        ),
        /* Base image */
        url('images/med3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    margin-top: -80px;
    position: relative;
}

/* Add a subtle Art Deco pattern overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            rgba(212, 175, 55, 0.05) 0px,
            rgba(212, 175, 55, 0.05) 1px,
            transparent 1px,
            transparent 10px
        );
    pointer-events: none;
}

.hero-content {
    position: relative;
    padding: 3rem;
    background: rgba(74, 60, 44, 0.85);
    border: 2px solid var(--primary-gold);
    max-width: 800px;
    backdrop-filter: blur(5px);
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-gold), transparent 70%);
    z-index: -1;
    opacity: 0.3;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--cream) 0%, #fff 100%);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--deep-brown);
    position: relative;
}

.about h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--primary-gold);
    margin: 1rem auto;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border: 1px solid var(--primary-gold);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-box {
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-gold);
    background: rgba(212, 175, 55, 0.1);
}

.feature-box h4 {
    color: var(--deep-brown);
    margin-bottom: 1rem;
}

/* Award Section */
.award-section {
    margin: 2.5rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(255, 255, 255, 0.9) 100%);
    border: 1px solid var(--primary-gold);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.award-text {
    padding-right: 1rem;
}

.award-text h4 {
    color: var(--deep-brown);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 0.5rem;
}

.award-text p {
    color: var(--dark-text);
    line-height: 1.6;
}

.award-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.certificate-image {
    max-width: 100%;
    height: auto;
    border: 3px solid var(--primary-gold);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.certificate-image:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .award-section {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .award-text {
        padding-right: 0;
    }

    .award-image {
        order: -1;
    }
}

/* Gallery Section */
.gallery {
    padding: 5rem 0;
    background: var(--deep-brown);
}

.gallery h2 {
    text-align: center;
    color: var(--primary-gold);
    margin-bottom: 3rem;
}

.gallery-filters {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-btn {
    background: none;
    border: 2px solid var(--primary-gold);
    color: var(--light-text);
    padding: 0.5rem 1.5rem;
    margin: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-gold);
    color: var(--deep-brown);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 3px solid var(--primary-gold);
    aspect-ratio: 1;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 90%;
    max-height: 80vh;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 2rem;
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--primary-gold);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-gold);
    transform: scale(1.1);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

/* Lightbox Slider */
.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    z-index: 1010;
}

.slider-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-gold);
    width: 0;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-gold);
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(45deg, var(--deep-brown) 0%, var(--honey-amber) 100%);
    color: var(--light-text);
}

.contact-section h2 {
    text-align: center;
    color: var(--primary-gold);
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    color: var(--primary-gold);
    font-size: 1.5rem;
}

.map-container {
    height: 400px;
    border: 3px solid var(--primary-gold);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    background: var(--deep-brown);
    color: var(--light-text);
    text-align: center;
    padding: 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Menu Toggle for Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-gold);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--deep-brown);
        padding: 1rem;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
        width: 100%;
        padding: 1rem;
        background: var(--deep-brown);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links a {
        padding: 0.8rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Hero Section */
    .hero-content {
        margin: 0 1rem;
        padding: 2rem;
    }

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

    /* About Section */
    .story-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .award-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .award-text {
        order: 2;
        padding: 0;
    }

    .award-image {
        order: 1;
    }

    .feature-box {
        margin: 1.5rem 0;
        padding: 1.2rem;
    }

    /* Gallery Section */
    .gallery-filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .filter-btn {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
        width: calc(50% - 0.5rem);
        white-space: nowrap;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.8rem;
        padding: 0.8rem;
    }

    /* Contact Section */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .contact-info {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }

    .map-container {
        height: 300px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .filter-btn {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.6rem;
        padding: 0.6rem;
    }

    .award-text h4 {
        font-size: 1.3rem;
    }

    .lightbox-image {
        width: 90%;
        height: auto;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 0.8rem;
    }

    .slider-controls {
        width: 90%;
        bottom: 10px;
    }
}

/* Tablet Devices */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        max-width: 90%;
    }

    .story-content {
        max-width: 90%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .contact-grid {
        gap: 2rem;
    }
}

/* Ensure Desktop Layout Remains Intact */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
        padding: 0 2rem;
    }

    .nav-links {
        display: flex !important;
        position: static;
        width: auto;
        background: none;
        box-shadow: none;
    }

    .menu-toggle {
        display: none !important;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Fix for iOS Safari 100vh Issue */
@supports (-webkit-touch-callout: none) {
    .hero {
        height: -webkit-fill-available;
    }
}
