/* Photography Template - Artisan Studios - Elegant Minimalist Design */

/* === CSS Custom Properties === */
:root {
    /* Elegant Minimalist Color Palette */
    --primary-cream: #f8f6f1;
    --secondary-sage: #a8b5a0;
    --accent-charcoal: #2d3436;
    --text-dark: #1a1a1a;
    --text-light: #6c7b7f;
    --white: #ffffff;
    --gallery-overlay: rgba(26, 26, 26, 0.85);
    --subtle-border: #e8e6e1;
    --focus-gold: #d4a574;
    
    /* Typography */
    --font-primary: 'Cormorant Garamond', serif;
    --font-secondary: 'Work Sans', sans-serif;
    --font-accent: 'Dancing Script', cursive;
    
    /* Spacing System */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;
    
    /* Layout */
    --container-max: 1400px;
    --border-radius: 0; /* Minimalist sharp edges */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === Global Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 18px; /* Larger base for elegance */
}

body {
    font-family: var(--font-secondary);
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--primary-cream);
    overflow-x: hidden;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: var(--space-md);
    letter-spacing: 0.02em;
}

h1 {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
}

h3 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

h4 {
    font-size: 1.5rem;
    font-family: var(--font-secondary);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
}

.accent-text {
    font-family: var(--font-accent);
    font-size: 1.5em;
    color: var(--secondary-sage);
}

.large-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* === Layout Components === */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.grid {
    display: grid;
    gap: var(--space-lg);
}

.section {
    padding: var(--space-xxl) 0;
}

.section-minimal {
    padding: var(--space-xl) 0;
}

/* === Navigation - Minimalist Side Navigation === */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100px;
    height: 100vh;
    background: rgba(248, 246, 241, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--subtle-border);
}

.nav-logo {
    position: absolute;
    top: var(--space-lg);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: 0.2em;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
}

.nav-link {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: var(--transition);
    padding: var(--space-sm);
}

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

.nav-contact {
    position: absolute;
    bottom: var(--space-lg);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    background: var(--accent-charcoal);
    color: var(--white);
    padding: var(--space-md) var(--space-sm);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: var(--transition);
}

.nav-contact:hover {
    background: var(--secondary-sage);
}

/* === Hero Section - Full Screen Gallery === */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-right: 100px; /* Account for side nav */
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
    height: 100%;
}

.hero-text {
    padding: var(--space-xxl);
    max-width: 600px;
}

.hero-title {
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: var(--space-lg);
    color: var(--accent-charcoal);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.hero-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    height: 500px;
    padding: var(--space-lg);
}

.hero-image {
    position: relative;
    background: var(--accent-sage-green);
    border-radius: 0;
    border: 3px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0.7;
    transition: all 0.8s ease;
    cursor: pointer;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-image.active {
    opacity: 1;
    transform: scale(1.02);
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-image .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--accent-sage-green), transparent);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.hero-image:hover .image-overlay {
    opacity: 0.1;
}

.hero-image i {
    font-size: 3rem;
    color: var(--white);
    opacity: 0.5;
    position: relative;
    z-index: 3;
}


/* === Gallery Grid - Masonry Style === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2px;
    padding: 0;
    margin: 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.gallery-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: var(--background-cream);
}

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

.gallery-image img.loaded {
    opacity: 1;
}

.gallery-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-cream);
    color: var(--secondary-sage);
}

.gallery-placeholder i {
    opacity: 0.3;
    font-size: 3rem;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: var(--space-lg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-info h3 {
    color: var(--white);
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.gallery-info p {
    color: var(--white);
    opacity: 0.9;
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
}

.gallery-price {
    color: var(--secondary-sage);
    font-weight: 600;
    font-size: 0.9rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:nth-child(odd) {
    aspect-ratio: 3/4;
}

.gallery-item:nth-child(even) {
    aspect-ratio: 4/3;
}

.gallery-item:nth-child(3n) {
    aspect-ratio: 1/1;
}

.gallery-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-sage), var(--focus-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-image i {
    font-size: 3rem;
    color: var(--white);
    opacity: 0.6;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gallery-overlay);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: var(--space-xs);
    text-align: center;
}

.gallery-category {
    font-size: 0.9rem;
    color: var(--focus-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* === About Section - Split Layout === */
.about {
    background: var(--white);
    padding: var(--space-xxl) 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-xxl);
    align-items: start;
}

.about-text {
    position: sticky;
    top: var(--space-xxl);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-lg);
    border: 1px solid var(--subtle-border);
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--accent-charcoal);
    display: block;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.about-image {
    aspect-ratio: 3/4;
    background: linear-gradient(45deg, var(--secondary-sage), var(--text-light));
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image:nth-child(even) {
    margin-top: var(--space-xl);
}

.about-image i {
    font-size: 4rem;
    color: var(--white);
    opacity: 0.4;
}

/* === Services - Minimal Cards === */
.services {
    padding: var(--space-xxl) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 0;
    border: 1px solid var(--subtle-border);
}

.service-card {
    padding: var(--space-xxl);
    background: var(--white);
    border-right: 1px solid var(--subtle-border);
    border-bottom: 1px solid var(--subtle-border);
    transition: var(--transition);
}

.service-card:hover {
    background: var(--primary-cream);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-sage);
    margin-bottom: var(--space-lg);
}

.service-title {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    margin-bottom: var(--space-md);
    color: var(--accent-charcoal);
}

.service-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.service-price {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--focus-gold);
    font-weight: 400;
}

/* === Contact Section - Elegant Form === */
.contact {
    background: var(--accent-charcoal);
    color: var(--white);
    padding: var(--space-xxl) 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
}

.contact-info h2,
.contact-form h3 {
    color: var(--white);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-detail i {
    font-size: 1.5rem;
    color: var(--focus-gold);
    width: 24px;
}

/* === Contact Form Styles === */
.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xxl);
    align-items: start;
}

.contact-form-wrapper {
    background: var(--white);
    padding: var(--space-xxl);
    border: 1px solid rgba(168, 181, 160, 0.15);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.contact-form-wrapper h2 {
    font-family: var(--font-heading);
    color: var(--accent-charcoal);
    margin-bottom: var(--space-md);
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.contact-form-wrapper .large-text {
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
    font-size: 1.1rem;
}

.contact-form {
    max-width: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--accent-charcoal);
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--background-cream);
    background: var(--background-cream);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 0;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-sage);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(168, 181, 160, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
    font-family: var(--font-body);
}

.form-checkbox {
    display: flex;
    align-items: start;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 2px;
    accent-color: var(--secondary-sage);
}

.form-checkbox label {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
    cursor: pointer;
}

.form-submit {
    background: var(--secondary-sage);
    color: var(--white);
    border: none;
    padding: var(--space-md) var(--space-xxl);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    margin-top: var(--space-lg);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.form-submit:hover {
    background: var(--accent-charcoal);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.form-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.form-submit:disabled {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
    box-shadow: none;
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: var(--space-md);
    line-height: 1.5;
}

.contact-info {
    padding: var(--space-xl);
}

.contact-card {
    background: var(--white);
    padding: var(--space-xl);
    border: 1px solid rgba(168, 181, 160, 0.2);
}

.contact-card h3 {
    font-family: var(--font-heading);
    color: var(--accent-charcoal);
    margin-bottom: var(--space-md);
    font-size: 1.8rem;
}

.contact-card > p {
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.contact-details {
    margin-bottom: var(--space-xl);
}

.contact-item {
    display: flex;
    align-items: start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary-sage);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-text strong {
    display: block;
    color: var(--accent-charcoal);
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.contact-text p {
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.social-connect {
    border-top: 1px solid rgba(168, 181, 160, 0.2);
    padding-top: var(--space-lg);
}

.social-connect h4 {
    color: var(--accent-charcoal);
    margin-bottom: var(--space-md);
    font-family: var(--font-body);
    font-weight: 600;
}

.social-connect .social-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.social-connect .social-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.social-connect .social-link:hover {
    color: var(--secondary-sage);
}

.social-connect .social-link i {
    width: 20px;
    color: var(--secondary-sage);
}

/* Responsive contact form */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-wrapper,
    .contact-card {
        padding: var(--space-lg);
    }
}

/* === Footer - Minimal === */
.footer {
    background: var(--white);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--subtle-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xxl);
}

.footer-brand {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--accent-charcoal);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--accent-charcoal);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-charcoal);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-sage);
    color: var(--white);
}

/* === Responsive Design === */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-gallery {
        height: 50vh;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }
    
    .navbar {
        width: 80px;
    }
    
    .hero {
        padding-right: 80px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }
}

/* === Lightbox Modal === */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--focus-gold);
}

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

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

/* === Page Header for Internal Pages === */
.page-header {
    height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-cream), var(--white));
    padding-right: 100px;
}

.page-title {
    font-size: 4rem;
    color: var(--accent-charcoal);
    margin-bottom: var(--space-md);
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
}

/* === Breadcrumb === */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: var(--space-lg);
}

.breadcrumb a {
    color: var(--secondary-sage);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent-charcoal);
}

/* === Special Effects === */
.parallax {
    transform: translateZ(0);
    transition: transform 0.1s ease-out;
}

.blur-load {
    filter: blur(5px);
    transition: filter 0.3s;
}

.blur-load.loaded {
    filter: blur(0);
}

/* === Print Styles === */
@media print {
    .navbar,
    .lightbox {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* === Additional Gallery & Filter Styles === */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xxl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--space-sm) var(--space-lg);
    border: 2px solid var(--secondary-sage);
    background: transparent;
    color: var(--secondary-sage);
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--secondary-sage);
    color: var(--white);
}

/* === Featured Collections === */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.collection-card {
    background: var(--white);
    border: 1px solid var(--subtle-border);
    transition: all 0.3s ease;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.collection-card.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.collection-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--background-cream);
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.collection-image img[style*="opacity: 1"] {
    opacity: 1;
}

.collection-card:hover .collection-image img {
    transform: scale(1.05);
}

.collection-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-cream);
}

.collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    padding: var(--space-lg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.collection-card:hover .collection-overlay {
    opacity: 1;
}

.collection-info {
    color: var(--white);
    width: 100%;
}

.collection-category {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
    display: block;
    margin-bottom: var(--space-xs);
}

.collection-count {
    font-size: 0.9rem;
    font-weight: 600;
}

.collection-content {
    padding: var(--space-lg);
}

.collection-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-charcoal);
    margin-bottom: var(--space-sm);
    font-weight: 400;
}

.collection-content p {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.collection-stats {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.collection-stats span {
    font-size: 0.85rem;
    color: var(--text-light);
    padding: var(--space-xs) var(--space-sm);
    background: var(--background-cream);
    border-radius: 2px;
}

.collection-view-btn {
    background: var(--secondary-sage);
    color: var(--white);
    border: none;
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    width: 100%;
    justify-content: center;
}

.collection-view-btn:hover {
    background: var(--accent-charcoal);
    transform: translateY(-2px);
}

/* === Collection Lightbox === */
.collection-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.collection-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.collection-lightbox-content {
    width: 95%;
    max-width: 1400px;
    height: 90%;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-xl);
    border-bottom: 1px solid var(--subtle-border);
    background: var(--background-cream);
}

.collection-title-info h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-charcoal);
    margin-bottom: var(--space-sm);
    font-weight: 400;
}

.collection-title-info p {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    max-width: 600px;
}

.collection-meta {
    display: flex;
    gap: var(--space-lg);
}

.collection-meta span {
    font-size: 0.9rem;
    color: var(--text-light);
    padding: var(--space-xs) var(--space-sm);
    background: var(--white);
    border-radius: 2px;
}

.collection-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--accent-charcoal);
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection-close:hover {
    background: var(--secondary-sage);
    color: var(--white);
}

.collection-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: var(--space-lg);
    padding: var(--space-lg);
    overflow: hidden;
}

.collection-main-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-cream);
    border-radius: 4px;
    overflow: hidden;
}

.collection-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.collection-nav-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 var(--space-lg);
    pointer-events: none;
}

.collection-prev,
.collection-next {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    color: var(--accent-charcoal);
}

.collection-prev:hover,
.collection-next:hover {
    background: var(--secondary-sage);
    color: var(--white);
    transform: scale(1.1);
}

.collection-image-counter {
    position: absolute;
    bottom: var(--space-lg);
    right: var(--space-lg);
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
    font-size: 0.9rem;
}

.collection-thumbnails {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    overflow-y: auto;
    padding-right: var(--space-xs);
}

.collection-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.collection-thumbnail.active {
    border-color: var(--secondary-sage);
}

.collection-thumbnail:hover {
    border-color: var(--focus-gold);
    transform: scale(1.05);
}

.collection-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Collection Lightbox Mobile Styles */
@media (max-width: 768px) {
    .collection-lightbox-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .collection-header {
        padding: var(--space-lg);
    }
    
    .collection-title-info h2 {
        font-size: 1.5rem;
    }
    
    .collection-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        gap: var(--space-md);
    }
    
    .collection-thumbnails {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: var(--space-xs);
    }
    
    .collection-thumbnail {
        min-width: 80px;
        width: 80px;
    }
    
    .collection-nav-arrows {
        padding: 0 var(--space-md);
    }
    
    .collection-prev,
    .collection-next {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .collections-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .collection-header {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .collection-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* === Testimonial Carousel === */
.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slide {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
    display: none;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    display: block;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.testimonial-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--text-light);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-btn.active {
    background: var(--secondary-sage);
    opacity: 1;
}

/* === Message Overlay === */
.message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.message-overlay.active {
    opacity: 1;
    visibility: visible;
}

.message-content {
    background: var(--white);
    padding: var(--space-xxl);
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.message-icon {
    margin-bottom: var(--space-lg);
}

.message-icon i {
    font-size: 3rem;
    color: var(--secondary-sage);
}

.message-content h3 {
    margin-bottom: var(--space-md);
    color: var(--accent-charcoal);
}

.message-content p {
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.message-close {
    background: var(--secondary-sage);
    color: var(--white);
    border: none;
    padding: var(--space-sm) var(--space-lg);
    cursor: pointer;
    transition: background 0.3s ease;
}

.message-close:hover {
    background: var(--accent-charcoal);
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* === Loading States === */
.loading {
    opacity: 0;
}

.gallery-item img {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item img[loading="lazy"] {
    opacity: 0;
}

.gallery-item img.loaded {
    opacity: 1;
}
