/* 
   Color Palette:
   Jet Black: #1A1A1A - Text / Background
   Graphite: #333333 - Secondary text
   Greige: #C7C7C7 - Borders / UI elements
   Warm White: #F5F3F0 - Background
   Burnt Amber: #C77B30 - Highlight / CTA
   
   Font Options (choose one):
   Option 1: Cormorant Garamond (Editorial Elegance)
   Option 2: Space Grotesk (Modern Cinematic) 
   Option 3: Syne (Artistic & Bold)
*/

/* Import Google Fonts - All three options */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Space+Grotesk:wght@300;400;500;600&family=Syne:wght@400;500;600;700&display=swap');

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

:root {
    --jet-black: #1A1A1A;
    --graphite: #333333;
    --greige: #C7C7C7;
    --warm-white: #F5F3F0;
    --burnt-amber: #6B7F4C;
    
    /* Choose your font - uncomment one option */
    /* Option 1: Editorial */
    /* --font-main: 'Cormorant Garamond', serif; */
    
    /* Option 2: Modern - uncomment to use */
    /* --font-main: 'Space Grotesk', sans-serif; */
    
    /* Option 3: Artistic - ACTIVE */
    --font-main: 'Syne', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Fix for mobile viewport height (accounts for browser address bar) */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
}

body {
    font-family: var(--font-main);
    background-color: var(--warm-white);
    color: var(--jet-black);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Hide default cursor for custom cursor */
}

/* Restore normal cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto !important;
    }
}

/* Custom Magnetic Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--burnt-amber);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    width: 60px;
    height: 60px;
    border-color: var(--warm-white);
    background: rgba(199, 123, 48, 0.2);
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--burnt-amber);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease;
    transform: translate(-50%, -50%);
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor,
    .custom-cursor-dot {
        display: none !important;
    }
}

/* Side Navigation */
.side-nav {
    position: fixed;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.nav-dot {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
}

.nav-dot .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--greige);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.nav-dot .dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--burnt-amber);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-dot.active .dot {
    border-color: var(--burnt-amber);
    background: rgba(199, 123, 48, 0.2);
}

.nav-dot.active .dot::before {
    transform: translate(-50%, -50%) scale(1);
}

.nav-dot:hover .dot {
    border-color: var(--burnt-amber);
    transform: scale(1.3);
}

.nav-label {
    position: absolute;
    left: 2rem;
    white-space: nowrap;
    color: var(--warm-white);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    background: var(--jet-black);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid rgba(199, 199, 199, 0.2);
}

.nav-dot:hover .nav-label {
    opacity: 1;
    transform: translateX(0);
}

/* Hide side nav on mobile and tablets */
@media (max-width: 1024px) {
    .side-nav {
        display: none;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
    background-color: var(--warm-white);
}

@media (max-width: 768px) {
    .hero {
        padding: 1.5rem;
        min-height: 100svh; /* Use small viewport height on mobile */
    }
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1.2s ease-out;
}

.hero-name {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--jet-black);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--graphite);
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 2s ease-out;
}

.scroll-indicator span {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    color: var(--graphite);
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--burnt-amber), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

/* About Me Section */
.about {
    padding: 8rem 2rem 6rem;
    background-color: var(--warm-white);
    position: relative;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-paragraph {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    color: var(--graphite);
    font-weight: 300;
    letter-spacing: 0.01em;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.about-paragraph:nth-child(1) {
    animation-delay: 0.1s;
    font-size: clamp(1.125rem, 2.2vw, 1.25rem);
    color: var(--jet-black);
}

.about-paragraph:nth-child(2) {
    animation-delay: 0.2s;
}

.about-paragraph:nth-child(3) {
    animation-delay: 0.3s;
}

.about-paragraph:nth-child(4) {
    animation-delay: 0.4s;
}

@media (max-width: 768px) {
    .about {
        padding: 4rem 1.5rem 3rem;
    }
    
    .about-text {
        gap: 1.25rem;
    }
    
    .about-paragraph {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .about-paragraph:nth-child(1) {
        font-size: 1.0625rem;
    }
}

/* Gallery Section - Clean Grid, Full Images Visible */
.gallery {
    padding: 4rem 2rem;
    background-color: var(--warm-white);
    position: relative;
}

/* Parallax Background Effect */
.gallery::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 150%;
    background: radial-gradient(circle at 30% 50%, rgba(199, 123, 48, 0.03) 0%, transparent 50%);
    pointer-events: none;
    will-change: transform;
}

/* Gallery Preview Strip */
.gallery-preview {
    max-width: 1400px;
    margin: 0 auto 3rem;
    text-align: center;
}

.gallery-expand-btn {
    background: transparent;
    color: var(--graphite);
    border: 1px solid rgba(199, 199, 199, 0.3);
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 400;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
    font-family: var(--font-main);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}

.gallery-expand-btn:hover {
    background: rgba(199, 123, 48, 0.05);
    color: var(--burnt-amber);
    border-color: rgba(199, 123, 48, 0.4);
    opacity: 1;
    transform: translateY(-2px);
}

.gallery-expand-btn svg {
    transition: transform 0.4s ease;
}

.gallery-thumbnails-preview {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.03);
    border-radius: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--burnt-amber) transparent;
}

.gallery-thumbnails-preview::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails-preview::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-thumbnails-preview::-webkit-scrollbar-thumb {
    background: var(--burnt-amber);
    border-radius: 3px;
}

.gallery-preview-thumb {
    flex-shrink: 0;
    width: 200px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    opacity: 0.6;
    position: relative;
}

.gallery-preview-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(26, 26, 26, 0.5));
    transition: opacity 0.4s ease;
}

.gallery-preview-thumb:hover {
    opacity: 1;
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(26, 26, 26, 0.2);
    z-index: 10;
}

.gallery-preview-thumb:hover::after {
    opacity: 0;
}

.gallery-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Hide full gallery by default */
.gallery-masonry {
    max-width: 1400px;
    margin: 0 auto;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery-masonry.expanded {
    display: grid;
    animation: fadeInUp 0.6s ease-out;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background-color: var(--warm-white);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 4px;
    aspect-ratio: 2/3;
    transform-style: preserve-3d;
    perspective: 1000px;
    opacity: 0;
    transform: translateY(30px);
}

/* Staggered load animation will be applied via JS */
.gallery-item.loaded {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover {
    box-shadow: 0 20px 40px rgba(26, 26, 26, 0.25);
    transform: translateY(-8px);
    z-index: 10;
}

/* Ripple effect container */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(199, 123, 48, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
    background-color: var(--warm-white);
    will-change: transform;
}

/* Color Grading on Hover - Warmer tones */
.gallery-item:hover img {
    filter: contrast(1.05) saturate(1.1) brightness(1.02);
}

/* 3D Tilt + Zoom effect on hover */
.gallery-item:hover img {
    transform: scale(1.08);
}

/* Featured TikTok Section */
.featured-content {
    padding: 8rem 2rem;
    background-color: var(--warm-white);
    position: relative;
}

.featured-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--burnt-amber), transparent);
}

.featured-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.featured-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--jet-black);
}

.featured-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--graphite);
    margin-bottom: 4rem;
    letter-spacing: 0.02em;
}

/* Instagram Grid */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.instagram-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 650px;
}

.instagram-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26, 26, 26, 0.2);
}

.instagram-media {
    margin: 0 !important;
    border-radius: 12px !important;
    width: 100% !important;
    height: 650px !important;
    max-height: 650px !important;
    overflow: hidden !important;
}

/* Clean up Instagram embed styling */
.instagram-card blockquote {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
}

.instagram-card iframe {
    max-height: 650px !important;
}

/* TikTok Grid */
.tiktok-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.tiktok-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    justify-content: center;
}

.tiktok-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26, 26, 26, 0.2);
}

.tiktok-embed {
    margin: 0 !important;
    border-radius: 12px;
}

/* Clean up TikTok embed styling */
.tiktok-card blockquote {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* TikTok Section Overlay (after videos play) - Elegant & Subtle */
.tiktok-section-overlay {
    position: absolute;
    inset: 0;
    background: rgba(245, 243, 240, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
    z-index: 5;
    padding: 2rem;
}

.tiktok-section-overlay.show {
    opacity: 1;
    pointer-events: none; /* Allow clicks to pass through to button below */
}

.tiktok-overlay-content {
    text-align: center;
    max-width: 400px;
    padding: 0;
    background-color: transparent;
    pointer-events: auto; /* Allow arrow button to be clickable */
}

.tiktok-overlay-title {
    font-size: 1rem;
    font-weight: 300;
    color: var(--jet-black);
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.tiktok-overlay-message {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--graphite);
    margin-bottom: 0;
    line-height: 1.6;
    letter-spacing: 0.02em;
    opacity: 0.7;
    display: inline-flex;
    align-items: center;
    gap: 0;
    pointer-events: none; /* Text is not clickable */
    white-space: nowrap;
    flex-wrap: nowrap;
}

.tiktok-overlay-arrow-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    margin: 0 0.3rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: bounce 2.5s ease-in-out infinite;
    vertical-align: middle;
    pointer-events: auto; /* Arrow button is clickable */
    flex-shrink: 0;
}

.tiktok-overlay-arrow-inline:hover {
    transform: translateY(-3px);
}

.tiktok-overlay-arrow-inline svg {
    width: 20px;
    height: 20px;
    stroke: var(--burnt-amber);
    stroke-width: 2px;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.view-more {
    text-align: center;
    margin-top: 3rem;
    position: relative;
    z-index: 10;
}

.view-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: var(--jet-black);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border: 2px solid var(--burnt-amber);
    border-radius: 50px;
    transition: all 0.4s ease;
}

.view-more-link:hover {
    background-color: var(--burnt-amber);
    color: var(--warm-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(199, 123, 48, 0.3);
}

.view-more-link svg {
    transition: transform 0.4s ease;
}

.view-more-link:hover svg {
    transform: translateX(5px);
}

@media (max-width: 1024px) {
    .instagram-grid,
    .tiktok-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .instagram-card {
        height: 600px;
    }
    
    .instagram-media {
        height: 600px !important;
        max-height: 600px !important;
    }
    
    .instagram-card iframe {
        max-height: 600px !important;
    }
}

@media (max-width: 768px) {
    .featured-content {
        padding: 6rem 1.5rem;
    }
    
    .instagram-grid,
    .tiktok-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .instagram-card {
        height: auto;
        min-height: 500px;
    }
    
    .instagram-media {
        height: auto !important;
        min-height: 500px !important;
        max-height: 700px !important;
    }
    
    .instagram-card iframe {
        max-height: 700px !important;
    }
    
    .tiktok-card {
        max-width: 100%;
    }
    
    .featured-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .featured-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .tiktok-overlay-content {
        padding: 0;
        max-width: 90%;
    }
    
    .tiktok-overlay-message {
        font-size: 0.8125rem;
    }
    
    .tiktok-overlay-arrow-inline {
        width: 18px;
        height: 18px;
    }
    
    .tiktok-overlay-arrow-inline svg {
        width: 18px;
        height: 18px;
    }
}

/* Contact Section - Modern Hipster Coffee Shop Style */
.contact {
    background: #E8E3D9;
    color: var(--jet-black);
    padding: 10rem 2rem 6rem;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 80px,
            rgba(107, 127, 76, 0.03) 80px,
            rgba(107, 127, 76, 0.03) 81px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 80px,
            rgba(107, 127, 76, 0.03) 80px,
            rgba(107, 127, 76, 0.03) 81px
        );
    pointer-events: none;
    opacity: 0.4;
}

.contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(107, 127, 76, 0.3), transparent);
}

.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.contact-content {
    text-align: center;
    margin-bottom: 5rem;
}

.contact-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    margin-bottom: 0.5rem;
    letter-spacing: 0.15em;
    color: var(--jet-black);
    text-transform: uppercase;
    opacity: 0.9;
}

.contact-subtitle {
    font-size: 0.8125rem;
    color: var(--burnt-amber);
    margin-bottom: 4rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

.email-contact-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 0;
    background: transparent;
    border: none;
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.4s ease;
    position: relative;
}

.email-contact-wrapper::before {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--burnt-amber);
    opacity: 0;
    transition: all 0.4s ease;
}

.email-contact-wrapper:hover::before {
    opacity: 0.5;
    width: 80px;
}

.email-link {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--jet-black);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.85;
}

.email-link::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--burnt-amber);
    transition: width 0.4s ease;
}

.email-link:hover::after {
    width: 100%;
}

.email-link:hover {
    color: var(--burnt-amber);
    opacity: 1;
}

.copy-email-btn {
    background: transparent;
    border: 1px solid rgba(26, 26, 26, 0.2);
    color: var(--jet-black);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    opacity: 0.5;
}

.copy-email-btn:hover {
    background: transparent;
    border-color: var(--burnt-amber);
    color: var(--burnt-amber);
    transform: rotate(15deg) scale(1.05);
    opacity: 1;
}

.copy-email-btn:active {
    transform: scale(0.95);
}

.copy-feedback {
    position: absolute;
    top: -40px;
    right: 50%;
    transform: translateX(50%);
    background: var(--burnt-amber);
    color: var(--jet-black);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.copy-feedback.show {
    opacity: 1;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(107, 127, 76, 0.3), transparent);
    margin: 5rem 0 3rem;
    opacity: 0.5;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-left {
    flex: 1;
}

.footer-name {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--jet-black);
    margin-bottom: 0.25rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}

.footer-tagline {
    font-size: 0.6875rem;
    color: var(--burnt-amber);
    letter-spacing: 0.12em;
    opacity: 0.5;
    font-weight: 300;
    text-transform: uppercase;
}

.footer-right {
    text-align: right;
}

.footer-right p {
    font-size: 0.6875rem;
    color: var(--graphite);
    letter-spacing: 0.12em;
    opacity: 0.5;
    font-weight: 300;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .contact {
        padding: 6rem 2rem 3rem;
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
    
    .email-contact-wrapper {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1rem;
    }
    
    .email-link {
        font-size: 1.125rem;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-left,
    .footer-right {
        text-align: center;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.98);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
    flex-direction: column;
}

.lightbox img {
    max-width: 90%;
    max-height: 70vh;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin: auto;
    z-index: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.lightbox img.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.lightbox img.fade-in {
    opacity: 1;
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--warm-white);
    font-size: 3rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    z-index: 10;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--burnt-amber);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--warm-white);
    font-size: 4rem;
    cursor: pointer;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 10;
}

.lightbox-nav:hover {
    color: var(--burnt-amber);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-counter {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--warm-white);
    font-size: 1rem;
    font-weight: 500;
    background: rgba(26, 26, 26, 0.8);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    letter-spacing: 0.05em;
    z-index: 10;
}

.lightbox-play-pause {
    position: absolute;
    top: 2rem;
    right: 5rem;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--warm-white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex; /* Visible on both desktop and mobile */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.lightbox-play-pause:hover {
    background: rgba(26, 26, 26, 0.95);
    border-color: var(--burnt-amber);
    color: var(--burnt-amber);
    transform: scale(1.1);
}

.lightbox-play-pause svg {
    transition: opacity 0.3s ease;
}

.lightbox-play-pause .play-icon {
    position: absolute;
    opacity: 0;
}

.lightbox-play-pause .pause-icon {
    position: absolute;
    opacity: 0;
}

.lightbox-play-pause .play-icon.active,
.lightbox-play-pause .pause-icon.active {
    opacity: 1;
}

/* Auto-play progress bar (mobile only) */
.lightbox-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 15;
}

@media (hover: hover) and (pointer: fine) {
    /* Hide progress bar on desktop */
    .lightbox-progress-bar {
        display: none !important;
    }
}

.lightbox-progress-fill {
    height: 100%;
    background: var(--burnt-amber);
    width: 100%;
    transform-origin: left;
}

@keyframes progressSlide {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.lightbox-thumbnails {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(26, 26, 26, 0.9);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    max-width: 90%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--burnt-amber) transparent;
    z-index: 10;
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: var(--burnt-amber);
    border-radius: 2px;
}

.lightbox-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.lightbox-thumb:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.lightbox-thumb.active {
    border-color: var(--burnt-amber);
    opacity: 1;
    box-shadow: 0 0 20px rgba(199, 123, 48, 0.4);
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scrollLine {
    0%, 100% {
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-masonry {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    /* Improve tap targets for mobile */
    .lightbox-nav {
        font-size: 2.5rem;
        padding: 1rem 1.5rem;
        min-width: 60px;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .lightbox-prev {
        left: 0.5rem;
    }
    
    .lightbox-next {
        right: 0.5rem;
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
        min-width: 50px;
        min-height: 50px;
    }
    
    .lightbox-counter {
        top: 1rem;
        font-size: 0.875rem;
        padding: 0.4rem 1rem;
    }
    
    .lightbox-play-pause {
        top: 1rem;
        right: 4rem;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-thumbnails {
        bottom: 1rem;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }
    
    .lightbox-thumb {
        width: 60px;
        height: 45px;
        min-width: 60px;
    }
    
    .lightbox img {
        max-width: 95%;
        max-height: 80vh;
        filter: none !important; /* Natural colors on mobile */
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    }
    
    /* Disable 3D transforms on mobile for better performance */
    .gallery-item {
        transform: none !important;
        transform-style: flat !important;
        perspective: none !important;
    }
    
    .gallery-item:hover {
        transform: none !important;
    }
    
    /* Simplify hover effects on mobile */
    .gallery-item img {
        will-change: auto;
    }
    
    /* Better button tap targets */
    .gallery-expand-btn {
        padding: 1rem 2.5rem;
        min-height: 50px;
    }
    
    .copy-email-btn {
        min-width: 50px;
        min-height: 50px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1201px) {
    .gallery-masonry {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Loading state for images */
.gallery-item img {
    opacity: 0;
    animation: imageLoad 0.6s ease-out forwards;
}

@keyframes imageLoad {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    /* Smoother scrolling on mobile */
    html {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent text selection on tap (better UX) */
    .gallery-item,
    .lightbox-nav,
    .gallery-expand-btn {
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Better image rendering on mobile */
    img {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Gallery preview thumbnails on mobile */
    .gallery-preview-thumb {
        width: 150px;
        height: 225px;
        filter: grayscale(0.3) brightness(0.8);
    }
    
    /* Center/active thumbnail has natural colors (same size) */
    .gallery-preview-thumb.center-active {
        filter: none !important;
        opacity: 1 !important;
        box-shadow: 0 10px 30px rgba(199, 123, 48, 0.3);
    }
    
    .gallery-thumbnails-preview {
        padding: 1rem;
        scroll-behavior: smooth;
        /* Auto-scroll animation on mobile */
        animation: autoScrollGallery 30s linear infinite;
    }
    
    /* Pause auto-scroll on touch */
    .gallery-thumbnails-preview.paused {
        animation-play-state: paused;
    }
    
    @keyframes autoScrollGallery {
        0% {
            scroll-behavior: auto;
        }
        100% {
            scroll-behavior: auto;
        }
    }
    
    /* Gallery section padding */
    .gallery {
        padding: 3rem 1.5rem;
    }
    
    /* Safe area insets for notched devices (iPhone X, etc.) */
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .lightbox {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .custom-cursor,
    .custom-cursor-dot {
        display: none !important;
    }
}

