/* Reset and Base Styles */
:root {
    --primary-color: #D4AF37; /* Gold */
    --primary-light: #e6c55c;
    --dark-bg: #1A1A1A; /* Charcoal */
    --light-bg: #F9F9F9; /* Off-White */
    --white: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation-fill-mode: both;
}

.fade-in-up.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Typography styles */
.section-subtitle {
    font-size: 0.85rem;
    color: var(--primary-color);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-padding {
    padding: 6rem 5%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    border-radius: 2px;
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn-outline:hover {
    color: var(--white);
}

.btn-outline:hover::before {
    width: 100%;
}

.btn-solid {
    background: var(--dark-bg);
    color: var(--white);
    border: 1px solid var(--dark-bg);
}

.btn-solid:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 5%;
    background: rgba(26, 26, 26, 0.9); /* Semi-transparent dark background */
    backdrop-filter: blur(15px); /* Stronger blur for separation */
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2); /* Subtle gold border */
    transition: all 0.5s ease;
}

header.scrolled {
    background: rgba(61, 60, 15, 0.98); /* matching #3D3C0F with slight transparency */
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 0.8rem 5%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-right {
    display: flex;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--white);
    transition: var(--transition-smooth);
}

.logo span {
    color: var(--primary-color);
}

header.scrolled .logo {
    color: var(--white);
}

nav {
    display: flex;
    gap: 3rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    position: relative;
    text-transform: uppercase;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
}


/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('images/Bis1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 0 10%;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 650px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content .subtitle {
    font-size: 0.85rem;
    color: var(--primary-color);
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.hero-content .description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #3D3C0F;
    transition: var(--transition-smooth);
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-card:hover {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
    transform: translateY(-10px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-image-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-round-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.service-card:hover .service-round-image {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.service-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* Portfolio */
.portfolio {
    background-color: transparent;
}

.portfolio .section-header {
    background-color: #3D3C0F;
    padding: 2.5rem 4rem;
    margin: 0 auto 4rem auto;
    display: table;
    border-radius: 4px;
}

.portfolio .section-header h2,
.portfolio .section-subtitle {
    color: var(--white);
}

/* Modern Luxury Portfolio */
.portfolio {
    background-color: #fdfbf7; /* Soft cream background */
}

.section-header-modern {
    text-align: center;
    margin-bottom: 5rem;
}

.section-subtitle-gold {
    color: var(--primary-color);
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.editorial-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: #3D3C0F; /* Deep olive */
    font-weight: 400;
    font-style: italic;
}

.gallery-filters {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.filter-item {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #666;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    padding-bottom: 5px;
}

.filter-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.filter-item.active, .filter-item:hover {
    color: #3D3C0F;
}

.filter-item.active::after {
    width: 100%;
}

.editorial-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background-color: #3D3C0F;
    border-radius: 4px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Asymmetrical Spans */
.large-tall {
    grid-column: span 2;
    grid-row: span 3;
}

.large-wide {
    grid-column: span 2;
    grid-row: span 2;
}

.medium {
    grid-column: span 1;
    grid-row: span 2;
}

.small {
    grid-column: span 1;
    grid-row: span 1;
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(61, 60, 15, 0.4); /* Subtle olive overlay */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

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

.item-cat {
    color: var(--primary-color);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.item-title {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    transform: translateY(20px);
    transition: transform 0.5s ease 0.1s;
}

.gallery-item:hover .item-cat,
.gallery-item:hover .item-title {
    transform: translateY(0);
}

.view-btn {
    margin-top: 1.5rem;
    color: var(--white);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--white);
    width: fit-content;
    padding-bottom: 2px;
}

/* Mobile Responsive Gallery */
@media (max-width: 992px) {
    .editorial-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 300px;
    }
    .large-tall, .large-wide {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (max-width: 576px) {
    .editorial-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 400px;
    }
    .large-tall, .large-wide, .medium, .small {
        grid-column: span 1;
        grid-row: span 1;
    }
    .editorial-title { font-size: 2.5rem; }
}

/* Testimonials */
.testimonials {
    background: var(--light-bg);
}

.testimonials .section-header {
    background-color: #3D3C0F;
    padding: 2.5rem 4rem;
    margin: 0 auto 4rem auto;
    display: table;
    border-radius: 4px;
}

.testimonials .section-header h2,
.testimonials .section-subtitle {
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: #3D3C0F;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    border-radius: 4px;
}

.testimonial-card .quote {
    font-style: italic;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.testimonial-card hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

.client-info strong {
    display: block;
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.client-info span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* CTA Section */
.cta {
    text-align: center;
    background: var(--white);
}

.cta-inner {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* Footer */
footer {
    background: #3D3C0F;
    color: var(--white);
    padding: 5rem 5% 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.footer-col.brand p {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-col ul li {
    margin-bottom: 0.85rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-col.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.socials a {
    color: var(--white);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.socials a:hover {
    color: var(--primary-color);
}

.logo-footer {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
}

.gold {
    color: var(--primary-color);
}

/* Lightbox Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

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

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-modal:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.portfolio-item, .service-image-container, .clickable-image {
    cursor: pointer;
}

/* Responsive Optimization */
@media (max-width: 1200px) {
    .hero-content { padding: 0 5%; }
}

@media (max-width: 992px) {
    html { font-size: 15px; }
    .hero-content h1 { font-size: 3.5rem; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-contact {
        display: none;
    }
    .section-padding { padding: 4rem 5%; }
    header { padding: 1rem 5%; }
    
    .nav-container { 
        flex-direction: row; 
        justify-content: space-between;
    }
    
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    #nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        display: none; /* Controlled by active class */
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }
    
    #nav-links.active {
        display: flex;
    }
    
    .nav-link {
        margin-left: 0;
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }
}
    
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content .description { font-size: 1.8rem; padding: 0.8rem 1.2rem; }
    
    .portfolio-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; gap: 2.5rem; }
    
    .services-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    
    .portfolio .section-header,
    .testimonials .section-header {
        padding: 2rem;
        width: 100%;
        display: block;
    }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content .description { font-size: 1.4rem; }
    .btn { padding: 0.8rem 1.8rem; width: 100%; text-align: center; }
}
