/* =========================================================
   1. RESET & BASE
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1;
    text-rendering: optimizeLegibility;

    background: 
        radial-gradient(ellipse at top, rgba(120, 120, 120, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(80, 80, 80, 0.1) 0%, transparent 50%),
        linear-gradient(
            180deg,
            #7d7d7d 0%,
            #7a7a7a 12%,
            #777777 25%,
            #737373 40%,
            #6f6f6f 55%,
            #6b6b6b 70%,
            #676767 85%,
            #636363 100%
        );
    background-attachment: fixed;

    text-shadow:
        0 1px 2px rgba(0,0,0,.85),
        0 2px 4px rgba(0,0,0,.7),
        0 3px 6px rgba(0,0,0,.5);
}


/* =========================================================
   2. HEADER / BRANDING
   ========================================================= */

/* --- Add to the very end of style.css --- */

/* Add/Update these in style.css */

/* Update/Add at the bottom of style.css */

.logo-container {
    padding: 80px 0; /* More padding to allow for the extended fireworks border */
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevents scrollbars if particles drift far */
}

.logo-wrapper {
    position: relative;
    width: 200px; 
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#fireworksCanvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    background: transparent;
    /* Blend mode "normal" is better now that we have black pixels 
       so the black doesn't disappear on dark backgrounds */
    mix-blend-mode: normal; 
}

.logo {
    max-width: 200px;
    height: auto;
    position: relative;
    z-index: 2;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0,0,0,0.5); /* Subtle shadow to lift it above the particles */
}

/* =========================================================
   3. TITLES
   ========================================================= */

.page-title,
h1 {
    text-align: center;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    line-height: 1.3;
}

.page-title {
    font-size: 1.875rem;
    margin: 3.5rem 0 4rem;
    font-weight: 250;
    position: relative;
}

.page-title::after,
h1::after {
    content: "";
    display: block;
    height: 2px;
    margin: 1.25rem auto 0;
    background: linear-gradient(
        to right, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 20%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.3) 80%,
        transparent 100%
    );
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.page-title::after { 
    width: 80px; 
    margin-top: 1.5rem;
}
h1::after { 
    width: 70px; 
    margin-top: 1.25rem;
}

h1 {
    font-size: 1.75rem;
    margin: 0 auto 3.5rem;
    padding: 5.5rem 2rem 0;
    max-width: 1440px;
    font-weight: 250;
}

/* =========================================================
   4. PRODUCT GRID (LIST VIEW)
   ========================================================= */

.grid {
    max-width: 1440px;
    margin: 0 auto;
    padding: 3.5rem 2rem 7rem;

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 3.5rem;
    align-items: start;
}

.item {
    position: relative;
    display: block;
    border-radius: 22px;
    overflow: hidden;
    overflow: clip;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    padding: 1.5px;

    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.85) 20%,
        rgba(240, 240, 240, 0.7) 40%,
        rgba(200, 200, 200, 0.5) 60%,
        rgba(150, 150, 150, 0.4) 80%,
        rgba(100, 100, 100, 0.5) 100%
    );
    box-shadow:
        0 8px 24px rgba(0,0,0,.15),
        0 4px 12px rgba(0,0,0,.1),
        0 2px 4px rgba(0,0,0,.08);

    opacity: 0;
    transform: translateY(24px) scale(0.98);
    animation: fadeUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;

    transition: 
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.5s ease;
    
    will-change: transform, box-shadow;
}

.item::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    border-radius: 20.5px;
    background: linear-gradient(
        to bottom,
        #f0f0f0 0%,
        #e8e8e8 50%,
        #e0e0e0 100%
    );
    z-index: -1;
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,.95),
        inset 0 -1px 2px rgba(0,0,0,.05);
    transition: box-shadow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 20.5px;
    transition: 
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        filter 0.5s ease,
        opacity 0.5s ease;
    will-change: transform, filter;
}

.item:hover {
    /* Lift the item up and slightly scale */
    transform: translateY(-8px) scale(1.03); 
    box-shadow:
        0 20px 40px rgba(0,0,0,0.3),
        0 12px 12px rgba(0,0,0,0.2);
    z-index: 10; /* Ensure hovered item is on top of neighbors */
}

/* Move this to the bottom of your file or the root level */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.item:hover::after {
    box-shadow: 
        inset 0 2px 6px rgba(255, 255, 255, 0.98),
        inset 0 -2px 4px rgba(255, 255, 255, 0.15),
        inset 0 0 20px rgba(255, 255, 255, 0.08);
}

.item:hover img {
    transform: scale(1.03);
    filter: brightness(1.1) saturate(1.12) contrast(1.06);
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .item:hover {
        transform: translateY(-4px) scale(1.02);
    }
    
    .item:active {
        transform: translateY(-2px) scale(1.01);
    }
}

/* Product Label - Refined Styling */
.item .label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.75rem;
    z-index: 2;
    
    background: linear-gradient(
        to top,
        rgba(60, 60, 60, 0.85) 0%,
        rgba(80, 80, 80, 0.75) 40%,
        rgba(100, 100, 100, 0.6) 70%,
        rgba(120, 120, 120, 0) 100%
    );
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.5;
    
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.9),
        0 1px 4px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(0, 0, 0, 0.3);
    
    opacity: 0;
    transform: translateY(12px);
    transition: 
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    pointer-events: none;
    border-bottom-left-radius: 20.5px;
    border-bottom-right-radius: 20.5px;
}

.item:hover .label {
    opacity: 1;
    transform: translateY(0);
}

/* Luxury New Arrival Sash - Add to style.css */
.luxury-sash {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
    z-index: 5;
    pointer-events: none;
}

.sash-text {
    position: absolute;
    display: block;
    width: 170px;
    padding: 8px 0;
    /* 5-point Gold Gradient to match branding */
    background: linear-gradient(
        135deg, 
        #b8962e 0%, 
        #f6e27a 45%, 
        #fef9db 50%, 
        #f6e27a 55%, 
        #b8962e 100%
    );
    background-size: 200% auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    
    color: #4a3703; /* Deep espresso text for luxury contrast */
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.15em;
    
    left: -15px;
    top: 30px;
    transform: rotate(45deg);
    
    /* Shimmering light animation */
    animation: sashGlow 3s linear infinite;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes sashGlow {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* Interaction with your existing .item:hover */
.item:hover .sash-text {
    filter: brightness(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* =========================================================
   5. DETAIL VIEW
   ========================================================= */

.viewer {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem 5rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;

    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.detail {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 24px;

    background: linear-gradient(
        to bottom,
        #f5f5f5 0%,
        #eeeeee 50%,
        #e8e8e8 100%
    );
    border: 1.5px solid rgba(255,255,255,.9);
    box-shadow: 
        0 12px 32px rgba(0,0,0,.18),
        0 6px 16px rgba(0,0,0,.12),
        0 2px 4px rgba(0,0,0,.08),
        inset 0 1px 0 rgba(255,255,255,.95);

    cursor: zoom-in;
    touch-action: pan-y pinch-zoom;
    display: block;
    transition: 
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s ease;
    will-change: transform;
}

.detail:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 16px 40px rgba(0,0,0,.22),
        0 8px 20px rgba(0,0,0,.15),
        0 4px 8px rgba(0,0,0,.1),
        inset 0 1px 0 rgba(255,255,255,.98);
}


/* =========================================================
   6. NAVIGATION
   ========================================================= */

/* Back button styles removed - now using floating-back-btn */


/* =========================================================
   DETAIL HEADER ACTIONS
   ========================================================= */

/* Detail header removed - using floating back button instead */

/* =========================================================
   DETAIL ACTIONS (RIGHT SIDE CTA)
   ========================================================= */

.detail-actions {
    max-width: 1440px;
    margin: 0 auto 2.5rem;
    padding: 0 2rem;

    display: flex;
    justify-content: flex-end;
}


/* =========================================================
   FLOATING BUTTONS (BACK & EMAIL)
   ========================================================= */

.floating-back-btn,
.floating-email-btn,
.floating-about-btn {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 999;
    
    width: 64px;
    height: 64px;
    border-radius: 50%;
    
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.12) 100%
    );
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    
    color: #ffffff;
    cursor: pointer;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    
		transition: 
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), 
        box-shadow 0.4s ease, 
        background 0.4s ease, 
        border-color 0.4s ease, 
        opacity 0.4s ease !important;
    
    will-change: transform;
}

.floating-back-btn:hover,
.floating-email-btn:hover,
.floating-about-btn:hover {
    transform: scale(1.12) translateY(-2px) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.28) 0%,
        rgba(255, 255, 255, 0.2) 100%
    ) !important;
    box-shadow: 
        0 16px 46px rgba(0, 0, 0, 0.45),
        0 8px 22px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 0 30px rgba(255, 255, 255, 0.15) !important;
}

.floating-back-btn:active,
.floating-email-btn:active,
.floating-about-btn:active {
    transform: scale(1.05) translateY(0) !important;
}

.floating-back-btn svg,
.floating-email-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-back-btn:hover svg,
.floating-email-btn:hover svg {
    transform: scale(1.1);
}

/* Back button specific positioning */
.floating-back-btn {
    top: 2.5rem;
    left: 2.5rem;
    bottom: auto;
    right: auto;
    text-decoration: none;
}

@keyframes fadeInFloat {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.85) rotate(-5deg);
    }
    60% {
        transform: translateY(-4px) scale(1.05) rotate(2deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}


/* =========================================================
   FLOATING ABOUT BUTTON & ABOUT MODAL
   ========================================================= */

.custom-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);

    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;

    opacity: 0;
    visibility: hidden;
    transition: 
        opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.6s ease;
}

.custom-modal.active {
    opacity: 1;
    visibility: visible;
}

.about-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, #d4af37 0%, #b8962e 70%);
    box-shadow:
        0 0 10px rgba(212,175,55,.8),
        0 0 20px rgba(212,175,55,.5);
    transition: transform .4s ease, box-shadow .4s ease;
}

.floating-about-btn {
    position: fixed;
    top: 2.5rem;
    right: 2.5rem;
    z-index: 999;

    width: 56px;
    height: 56px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    text-decoration: none;

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.22),
        rgba(255,255,255,0.08)
    );
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);

    border: 1.5px solid rgba(255,255,255,0.35);

    box-shadow:
        0 10px 30px rgba(0,0,0,.35),
        0 4px 12px rgba(0,0,0,.25),
        inset 0 1px 0 rgba(255,255,255,.4),
        inset 0 -1px 0 rgba(0,0,0,.15);

    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;

    transition:
        transform .5s cubic-bezier(0.34,1.56,0.64,1),
        box-shadow .4s ease,
        background .4s ease,
        border-color .4s ease;
}

.floating-about-btn svg {
    filter: drop-shadow(0 0 6px rgba(212,175,55,.35));
}

.floating-about-btn:hover {
    transform: scale(1.12) translateY(-2px);
    border-color: rgba(255,255,255,0.55);
    box-shadow:
        0 16px 46px rgba(0,0,0,.45),
        0 8px 22px rgba(0,0,0,.35),
        inset 0 1px 0 rgba(255,255,255,.6),
        0 0 30px rgba(255,255,255,.15);
}

.floating-about-btn:hover .about-dot {
    transform: scale(1.3);
    box-shadow:
        0 0 16px rgba(212,175,55,.9),
        0 0 30px rgba(212,175,55,.6);
}

.about-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: transform 0.3s ease;
}

.about-close:hover {
    transform: scale(1.1) rotate(90deg);
    color: #d4af37;
}

.about-dialog > * {
    opacity: 0;
    transform: translateY(18px);
}

.about-dialog {
    position: relative;
    will-change: transform, opacity;
    background: 
        linear-gradient(145deg, rgba(42, 42, 42, 0.9), rgba(26, 26, 26, 0.9)),
        url('assets/about logo.png') no-repeat center center;
    background-size: 75% auto;
    padding: 3rem;
    max-width: 500px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    text-align: center;
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-modal.active .about-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.custom-modal.active .about-dialog > * {
    animation: aboutReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.custom-modal.active .about-dialog > *:nth-child(1) { animation-delay: 0.15s; }
.custom-modal.active .about-dialog > *:nth-child(2) { animation-delay: 0.3s; }
.custom-modal.active .about-dialog > *:nth-child(3) { animation-delay: 0.45s; }
.custom-modal.active .about-dialog > *:nth-child(4) { animation-delay: 0.6s; }
.custom-modal.active .about-dialog > *:nth-child(5) { animation-delay: 0.75s; }

@keyframes aboutReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.luxury-label {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.7rem;
    color: #d4af37;
    display: block;
    margin-bottom: 1rem;
}

.divider {
    width: 40px;
    height: 2px;
    background: #d4af37;
    margin: 1.5rem auto;
}


/* =========================================================
   CONTACT MODAL (EMAIL FORM)
   ========================================================= */

#contact-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.8);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    overflow: hidden;
    padding: 1rem;
}

#contact-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Core modal box: always within viewport, 10% top/bottom */
.contact-dialog {
    display: flex;
    flex-direction: column;

    position: relative;
    width: 100%;
    max-width: 560px;
		max-height: 85vh;

    margin: 0; /* centered by flex on parent */

    padding: 2rem 2.5rem 1.5rem;

    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        linear-gradient(145deg, 
            rgba(40, 40, 46, 0.98) 0%, 
            rgba(34, 34, 39, 0.98) 25%,
            rgba(28, 28, 33, 0.98) 50%,
            rgba(24, 24, 29, 0.98) 75%,
            rgba(20, 20, 25, 0.98) 100%);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border-radius: 32px;
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    box-shadow: 
        0 32px 96px rgba(0, 0, 0, 0.75),
        0 16px 48px rgba(0, 0, 0, 0.6),
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 3px 0 rgba(255, 255, 255, 0.2),
        inset 0 -3px 0 rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.12);

    opacity: 0;
    transform: scale(0.92) translateY(48px) rotateX(3deg);
    transition: 
        opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    overflow: hidden; /* container itself doesn't scroll; inner form does */
}

.contact-dialog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.2) 80%,
        transparent 100%);
    pointer-events: none;
}

#contact-modal.active .contact-dialog {
    opacity: 1;
    transform: scale(1) translateY(0);
    animation: modalEntrance 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalEntrance {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(40px) rotateX(5deg);
    }
    50% {
        transform: scale(1.02) translateY(-5px) rotateX(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0deg);
    }
}

.contact-dialog h2 {
    /* Reduced margin and font size to save vertical space */
    margin: 0 0 1.25rem 0;
    font-size: 1.3rem; 
    font-weight: 200;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    line-height: 1.1;

    /* Tightened bottom padding for the decorative line */
    position: relative;
    padding-bottom: 1.4rem;

    /* Luxury Gradient Text Effect */
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Animation and Shadows */
    animation: titleGlow 4s ease-in-out infinite;
    text-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 255, 255, 0.1);
}

/* Ensure the decorative line under the H2 also moves up */
.contact-dialog h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px; /* Slightly narrower line */
    height: 2px; /* Thinner line */
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.4), 
        transparent);
}

.contact-dialog h2::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%);
}

@keyframes titleGlow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.1);
    }
}

.contact-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: 
        radial-gradient(circle at center, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
    font-weight: 300;
    
    /* Box Shadow - Base State */
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);

    /* Transitions - Including 'color' for the gold effect */
    transition: 
        background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        color 0.4s ease;
}

.contact-close:hover {
    /* No rotation - only a slight premium scale */
    transform: scale(1.12);
    
    /* Transition text color to Gold */
    color: #d4af37;
    
    /* Transition border and background to subtle gold tones */
    border-color: rgba(212, 175, 55, 0.5);
    background: 
        radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    
    /* Golden shadow/glow effect */
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 20px rgba(212, 175, 55, 0.2);
}

.contact-close:active {
    /* Pressed state remains gold but shrinks */
    transform: scale(0.96);
    color: #b8962e; /* Darker gold when pressed */
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Scrollable form area inside fixed-height dialog */
.contact-dialog form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
    min-height: 0;
    padding-bottom: 0.5rem;
}

.contact-dialog label {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.98);
    font-weight: 600;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.4),
        0 0 10px rgba(255, 255, 255, 0.05);
    position: relative;
    padding-left: 0.25rem;
}

.contact-dialog label::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.35rem;
    width: 3px;
    height: 0.8rem;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.2) 100%);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-dialog label:focus-within::before {
    opacity: 1;
}

.contact-dialog input,
.contact-dialog textarea {
    background: 
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px) saturate(190%);
    -webkit-backdrop-filter: blur(14px) saturate(190%);
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.96rem;
    padding: 0.9rem 1.25rem;
    line-height: 1.5;
    transition: 
        all 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.5s ease,
        border-color 0.5s ease,
        transform 0.3s ease;
    resize: vertical;
    text-align: left;
    box-shadow: 
        inset 0 4px 8px rgba(0, 0, 0, 0.28),
        inset 0 2px 0 rgba(255, 255, 255, 0.1),
        0 2px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    will-change: transform, box-shadow;
}

.contact-dialog textarea {
    min-height: 100px;
    max-height: 25vh;
}

.contact-dialog input::placeholder,
.contact-dialog textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.contact-dialog input:focus,
.contact-dialog textarea:focus {
    outline: none;
    background: 
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 
        0 0 0 6px rgba(255, 255, 255, 0.12),
        0 6px 16px rgba(0, 0, 0, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.15),
        inset 0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.18),
        0 2px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.contact-dialog input.error,
.contact-dialog textarea.error,
.contact-dialog input:invalid:not(:placeholder-shown),
.contact-dialog textarea:invalid:not(:placeholder-shown) {
    border-color: rgba(255, 120, 120, 0.6);
    background: 
        radial-gradient(circle at top left, rgba(255, 100, 100, 0.1) 0%, transparent 50%),
        rgba(255, 100, 100, 0.06);
    box-shadow: 
        0 0 0 4px rgba(255, 100, 100, 0.1),
        inset 0 3px 6px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: errorShake 0.4s ease;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Send button pinned at bottom of dialog, always visible */
.send-btn {
    flex-shrink: 0;
    margin-top: 0.5rem;
    align-self: center;

    padding: 0.8rem 2.5rem;
    background: 
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.22) 0%, transparent 50%),
        linear-gradient(135deg, 
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.16) 40%,
            rgba(255, 255, 255, 0.14) 60%,
            rgba(255, 255, 255, 0.12) 100%);
    backdrop-filter: blur(14px) saturate(190%);
    -webkit-backdrop-filter: blur(14px) saturate(190%);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    color: #ffffff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    cursor: pointer;
    transition: 
        background 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        color 0.4s ease;
    font-weight: 700;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.25),
        inset 0 3px 0 rgba(255, 255, 255, 0.28),
        inset 0 -2px 0 rgba(0, 0, 0, 0.35),
        inset 0 1px 2px rgba(255, 255, 255, 0.18);
    text-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.5),
        0 1px 3px rgba(0, 0, 0, 0.4);
    position: relative;
    will-change: transform, box-shadow;
}

.send-btn:hover {
    background: 
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.28) 0%, transparent 50%),
        linear-gradient(135deg, 
            rgba(255, 255, 255, 0.25) 0%,
            rgba(255, 255, 255, 0.2) 40%,
            rgba(255, 255, 255, 0.18) 60%,
            rgba(255, 255, 255, 0.16) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 
        0 14px 42px rgba(0, 0, 0, 0.55),
        0 8px 20px rgba(0, 0, 0, 0.45),
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 3px 0 rgba(255, 255, 255, 0.38),
        inset 0 -2px 0 rgba(0, 0, 0, 0.35),
        inset 0 1px 2px rgba(255, 255, 255, 0.22),
        0 0 40px rgba(255, 255, 255, 0.18);
}

.send-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 6px 18px rgba(0, 0, 0, 0.45),
        0 3px 10px rgba(0, 0, 0, 0.35),
        inset 0 2px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Form Success Animation */
.contact-dialog form.form-success {
    animation: formSuccessPulse 0.6s ease forwards;
}

.contact-dialog form.form-success input,
.contact-dialog form.form-success textarea {
    border-color: rgba(100, 255, 100, 0.4);
    background: 
        radial-gradient(circle at top left, rgba(100, 255, 100, 0.12) 0%, transparent 50%),
        rgba(100, 255, 100, 0.08);
    transition: all 0.5s ease;
}

/* Simple responsive tweaks */
@media (max-width: 768px) {
.contact-dialog {
        padding: 1.5rem 1.25rem;
        max-height: 90vh;
    }
    .contact-dialog h2 {
        font-size: 1.2rem;
    }
    .contact-dialog input,
    .contact-dialog textarea {
        padding: 0.5rem 0.8rem;
    }
}

/* --- SUPER DE LUXE ZOOM SYSTEM --- */

.zoom-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 2rem;
}

.detail-zoom-base {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 32px; /* All round cornered */
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
}

/* The Magnifying Glass Circle */
.zoom-lens {
    position: absolute;
    border: 1px solid #d4af37;
    background: rgba(212, 175, 55, 0.15);
    width: 160px;
    height: 160px;
    display: none;
    pointer-events: none; /* Voorkomt haperen van de muis */
    z-index: 10;
    border-radius: 4px;
}

/* The Zoom Detail Preview Window */
.zoom-preview-window {
    position: absolute;
    top: 0;
    left: 105%; /* Positioneert rechts van de foto */
    width: 500px;
    height: 500px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background-repeat: no-repeat;
    display: none;
    z-index: 1000;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    background-color: #2a2a2a;
}

/* Responsiviteit voor het zoom-venster */
@media (max-width: 1400px) {
    .zoom-preview-window {
        left: 0;
        top: 105%;
        width: 100%;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .zoom-lens, 
    .zoom-preview-window { 
        display: none !important; 
    }
}