:root {
    --sienna: #9E4A22;
    --gold: #C9A84C;
    --noir: #0D0C0B;
    --stone: #F0EBE3;

    
}
/* ===================== TYPING CURSOR ===================== */
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.animate-blink {
    animation: cursorBlink 1s step-end infinite;
}

/* Services Dropdown */
.dropdown { position: relative; display: inline-block; padding: 10px 0; }
.dropdown-content {
    display: none; position: absolute; top: 100%; left: 0;
    background-color: var(--noir); min-width: 220px;
    border: 1px solid rgba(255,255,255,0.1); border-top: 2px solid var(--sienna);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 100;
}
.dropdown-content a {
    color: rgba(255,255,255,0.7); padding: 15px 20px; text-decoration: none;
    display: block; font-size: 0.65rem; border-bottom: 1px solid rgba(255,255,255,0.05); transition: all 0.3s;
}
.dropdown-content a:hover { background-color: rgba(158, 74, 34, 0.2); color: var(--sienna); padding-left: 25px; }
.dropdown:hover .dropdown-content { display: block; animation: fadeUp 0.3s ease; }
.dropbtn i { margin-left: 5px; font-size: 0.8em; transition: transform 0.3s; }
.dropdown:hover .dropbtn i { transform: rotate(180deg); color: var(--sienna); }

.btn-outline { border: 1px solid var(--sienna); color: var(--sienna) !important; padding: 0.75rem 2rem; border-radius: 50px; font-weight: 600; }
.btn-outline:hover { background-color: var(--sienna); color: white !important; }
.menu-toggle { display: block; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }


/* Filtering Animations */
.filter-item { transition: opacity 0.4s ease, transform 0.4s ease; }
.filter-hidden { opacity: 0; transform: scale(0.95); pointer-events: none; position: absolute; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


/* Filtering Animations navbar  */
.filter-item { transition: opacity 0.4s ease, transform 0.4s ease; }
.filter-hidden { opacity: 0; transform: scale(0.95); pointer-events: none; position: absolute; }

/* ===================== ADVANCED PROPERTY FILTER BAR ===================== */
.advanced-filter-wrapper { margin: 0 auto 4rem; max-width: 1200px; text-align: left; }
.filter-tabs { display: flex; gap: 4px; margin-bottom: 0; }
.filter-tab { 
    background: rgba(13,12,11,0.05); border: none; padding: 12px 30px; 
    font-family: var(--font-sans); font-size: 0.8rem; text-transform: uppercase; 
    letter-spacing: 0.1em; cursor: pointer; border-radius: 4px 4px 0 0; 
    transition: all 0.3s; color: var(--noir); font-weight: 600;
}
.filter-tab.active { background: var(--sienna); color: white; }

.advanced-filter-bar { 
    display: grid; grid-template-columns: repeat(5, 1fr) auto; 
    background: white; border-radius: 0 4px 4px 4px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); border: 1px solid rgba(13,12,11,0.1); 
}
.advanced-filter-bar.cols-4 { grid-template-columns: repeat(4, 1fr) auto; }

.filter-group { 
    padding: 15px 20px; border-right: 1px solid rgba(13,12,11,0.1); 
    display: flex; flex-direction: column; justify-content: center;
}
.filter-group label { 
    font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.15em; 
    color: var(--sienna); font-weight: 700; margin-bottom: 5px; 
}

.custom-select { position: relative; }
.custom-select select { 
    width: 100%; border: none; background: transparent; appearance: none; -webkit-appearance: none;
    font-family: var(--font-sans); font-size: 0.95rem; color: var(--noir); 
    cursor: pointer; outline: none; padding-right: 20px; font-weight: 500;
}
.custom-select::after { 
    content: '\f0d7'; font-family: 'Font Awesome 6 Free'; font-weight: 900; 
    position: absolute; right: 0; top: 50%; transform: translateY(-50%); 
    font-size: 0.7rem; color: var(--ash); pointer-events: none; 
}

.filter-action { padding: 10px; }
.filter-search-btn { 
    height: 100%; width: 100%; background: var(--noir); color: white; 
    border: none; padding: 0 35px; font-family: var(--font-sans); 
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; 
    cursor: pointer; transition: background 0.3s; border-radius: 2px; font-weight: 600;
}
.filter-search-btn:hover { background: var(--sienna); }

/* Dark mode filter adaptation for Commercial page */
.bg-noir .advanced-filter-bar { background: var(--noir-light); border-color: rgba(255,255,255,0.1); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.bg-noir .filter-tab { background: rgba(255,255,255,0.05); color: var(--stone); }
.bg-noir .filter-tab.active { background: var(--sienna); color: white; }
.bg-noir .filter-group { border-right-color: rgba(255,255,255,0.1); }
.bg-noir .custom-select select { color: white; }
.bg-noir .custom-select select option { color: var(--noir); } /* Keep dropdown options readable */
.bg-noir .filter-search-btn { background: var(--sienna); }
.bg-noir .filter-search-btn:hover { background: white; color: var(--noir); }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .advanced-filter-bar { grid-template-columns: repeat(3, 1fr); }
    .advanced-filter-bar.cols-4 { grid-template-columns: repeat(2, 1fr); }
    
    .filter-group:nth-child(3) { border-right: none; }
    .advanced-filter-bar.cols-4 .filter-group:nth-child(2) { border-right: none; }
    
    .filter-group { border-bottom: 1px solid rgba(13,12,11,0.1); }
    .bg-noir .filter-group { border-bottom-color: rgba(255,255,255,0.1); }
    .filter-action { grid-column: 1 / -1; padding: 20px; }
    .filter-search-btn { padding: 15px; }
}
@media (max-width: 768px) {
    .advanced-filter-bar, .advanced-filter-bar.cols-4 { grid-template-columns: 1fr; }
    .filter-group { border-right: none !important; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===================== NOISE TEXTURE ===================== */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: 9998; pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

/* ===================== PRELOADER ===================== */
#preloader {
    position: fixed; inset: 0; z-index: 100000; background: var(--noir);
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}
#preloader.hide { transform: translateY(-100%); }
.loader-text {
    overflow: hidden; display: block; height: 3rem;
}
.loader-text span {
    display: block; transform: translateY(100%); font-family: 'Cormorant Garamond', serif; 
    font-size: 2.5rem; color: #fff; font-style: italic; letter-spacing: 0.1em;
    animation: riseUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.loader-line {
    width: 0; height: 1px; background: var(--sienna); margin-top: 1rem;
    animation: extendLine 1.5s 0.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
@keyframes riseUp { to { transform: translateY(0); } }
@keyframes extendLine { to { width: 120px; } }

/* ===================== SCROLL PROGRESS ===================== */
#scroll-progress {
    position: fixed; top: 0; left: 0; height: 2px; z-index: 1000;
    background: linear-gradient(90deg, var(--sienna), var(--gold));
    transform-origin: left; transform: scaleX(0);
    transition: transform 0.1s linear;
}

/* ===================== PAGE VIEWS ===================== */
.page-view { display: none; }
.page-view.active { display: block; }

/* ===================== TEXT REVEALS ===================== */
.text-reveal-wrapper { overflow: hidden; display: block; }
.text-reveal-inner {
    display: block; transform: translateY(115%); transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform;
}
.text-reveal-wrapper.active .text-reveal-inner { transform: translateY(0); }

/* ===================== FADE UP ===================== */
.reveal-fade {
    opacity: 0; transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-fade.active { opacity: 1; transform: translateY(0); }

/* ===================== SCALE REVEAL ===================== */
.reveal-scale {
    opacity: 0; transform: scale(0.88); transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.active { opacity: 1; transform: scale(1); }

/* ===================== DELAYS ===================== */
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; } .d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; } .d6 { transition-delay: 0.6s; }

/* ===================== HERO ===================== */
.hero-bg-wrap { position: absolute; inset: 0; overflow: hidden; }
.hero-bg-wrap img { width: 100%; height: 115%; object-fit: cover; transform: scale(1.1); will-change: transform; }

@keyframes heroIn { from { transform: scale(1.2); } to { transform: scale(1.05); } }
.hero-bg-anim { animation: heroIn 8s cubic-bezier(0.25, 1, 0.3, 1) forwards; }

@keyframes heroTextIn { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: translateY(0); } }
.hero-text-anim { animation: heroTextIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
.float-anim { animation: floatY 6s ease-in-out infinite; }

/* ===================== IMAGE CURTAIN ===================== */
.img-curtain-wrapper { position: relative; overflow: hidden; }
.img-curtain-wrapper::after {
    content: ''; position: absolute; inset: 0;
    background: var(--sienna); transform: scaleX(1); transform-origin: left; z-index: 10;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}
.img-curtain-wrapper.active::after { transform: scaleX(0); transform-origin: right; }
.img-curtain-wrapper img { transform: scale(1.2); transition: transform 1.4s ease; }
.img-curtain-wrapper.active img { transform: scale(1); }

/* ===================== LINES ANIMATION ===================== */
@keyframes lineGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.line-grow { transform-origin: top; animation: lineGrow 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.sweep-line { width: 0; height: 1px; background: linear-gradient(90deg, var(--sienna), transparent); transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1); }
.sweep-line.active { width: 100%; }

/* ===================== PORTFOLIO EXPANSION ===================== */
/* ===================== PORTFOLIO EXPANSION CSS ===================== */
.portfolio-container {
    display: flex;
    width: 100%;
    height: 700px;
    overflow: hidden;
}

.portfolio-column {
    position: relative;
    flex: 1;
    transition: flex 0.9s cubic-bezier(0.25, 1, 0.3, 1);
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

/* Expands the hovered column */
@media (min-width: 1024px) {
    .portfolio-column:hover {
        flex: 3.5;
    }
}

/* Content hidden by default, slides up on hover */
.col-content {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s ease 0.15s;
}

.portfolio-column:hover .col-content {
    opacity: 1;
    transform: translateY(0);
}

/* --- IMAGE BACKGROUND FIX --- */

/* Ensure your img tags have the class="col-bg" for this to work */
.col-bg {
    transition: transform 1.4s cubic-bezier(0.25, 1, 0.3, 1), filter 0.8s ease;
    /* FIXED: Made default state brighter (0.4 -> 0.7) so it's not too muddy */
    filter: brightness(0.7) saturate(0.7);
}

.portfolio-column:hover .col-bg {
    transform: scale(1.08);
    /* FIXED: Made hover state full brightness (0.55 -> 1.0) for maximum vibrancy */
    filter: brightness(1.0) saturate(1.0);
}

/* --- VERTICAL TITLE --- */
.vertical-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    transition: opacity 0.4s;
    color: rgba(240, 235, 227, 0.45);
    letter-spacing: 0.5em;
}

.portfolio-column:hover .vertical-title {
    opacity: 0;
}
/* ===================== MARQUEE & UTILS ===================== */
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-track { animation: marquee 28s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }

@keyframes slowZoom { 0% { transform: scale(1.05); } 100% { transform: scale(1.18); } }
.slow-zoom { animation: slowZoom 18s linear infinite alternate; }

.tilt-card { transform-style: preserve-3d; transition: transform 0.4s ease; }
#particle-canvas { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; }

@keyframes countUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.underline-expand { position: relative; }
.underline-expand::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px;
    background: var(--sienna); transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.underline-expand:hover::after { width: 100%; }

.stagger-group > * { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
/* Apply the reveal to ALL children, not just the first 6 */
.stagger-group.active > * { opacity: 1 !important; transform: none !important; }
.stagger-group.active > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-group.active > *:nth-child(2) { transition-delay: 0.15s; }
.stagger-group.active > *:nth-child(3) { transition-delay: 0.25s; }
.stagger-group.active > *:nth-child(4) { transition-delay: 0.35s; }
.stagger-group.active > *:nth-child(5) { transition-delay: 0.45s; }
.stagger-group.active > *:nth-child(6) { transition-delay: 0.55s; }
/* Ensure any additional cards fade in smoothly together */
.stagger-group.active > *:nth-child(n+7) { transition-delay: 0.65s; }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 0 20px rgba(158,74,34,0.1); } 50% { box-shadow: 0 0 50px rgba(158,74,34,0.3), 0 0 80px rgba(201,168,76,0.1); } }

#mobile-menu { transform: translateX(100%); transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1); }
#mobile-menu.active { transform: translateX(0); }

html { scroll-behavior: smooth; }
#page-transition {
    position: fixed; inset: 0; z-index: 9990; pointer-events: none; background: var(--noir);
    clip-path: inset(100% 0 0 0); transition: clip-path 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}
#page-transition.entering { clip-path: inset(0 0 0 0); }
#page-transition.leaving { clip-path: inset(0 0 100% 0); }

.grain-overlay {
    position: absolute; inset: 0; pointer-events: none; z-index: 5;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.08;
}

#testimonialTrack { transition: transform 0.8s cubic-bezier(0.25, 1, 0.3, 1); }
.perspective-wrap { perspective: 800px; }

/* Back to top button */
/* Back to top button */
#back-to-top {
    /* Removed 'position: fixed', 'bottom', and 'right' so it stacks neatly in the flex column */
    opacity: 0; 
    transform: translateY(20px); 
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#back-to-top.visible { 
    opacity: 1; 
    transform: translateY(0); 
    pointer-events: auto; 
}
/* Form success states */
.form-success { display: none; animation: heroTextIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.form-submitted form { display: none; }
.form-submitted .form-success { display: block; }

/* Property Detail Table additions */
.detail-table th { padding: 1rem; text-align: left; font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; color: var(--sienna); border-bottom: 1px solid rgba(255,255,255,0.1); }
.detail-table td { padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); }

/* ===================== PREMIUM UI ENHANCEMENTS ===================== */
@keyframes shimmer {
    0% { transform: translateX(-150%); }
    50% { transform: translateX(150%); }
    100% { transform: translateX(150%); }
}
.shimmer-btn {
    position: relative;
    overflow: hidden;
}
.shimmer-btn::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 50%;
    transform: translateX(-150%) skewX(-15deg);
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    animation: shimmer 3s infinite;
}

.glass-badge {
    background: rgba(158, 74, 34, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(158, 74, 34, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), inset 0 0 15px rgba(158, 74, 34, 0.2);
}

.glass-badge-stone {
    background: rgba(240, 235, 227, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(240, 235, 227, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), inset 0 0 15px rgba(240, 235, 227, 0.2);
}

.ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

/* ===================== MOBILE-ONLY PREMIUM OVERRIDES ===================== */
@media (max-width: 1024px) {
    /* NAVIGATION */
    #nav {
        padding: 1rem 1.5rem !important;
        background: rgba(13, 12, 11, 0.95) !important;
        backdrop-filter: blur(20px) !important;
    }

    /* PORTFOLIO CATEGORIES MOBILE FIX */
 /* ==================================================
       PORTFOLIO CATEGORIES MOBILE FIX - PREMIUM SWIPE 
       ================================================== */
    .portfolio-container { 
        flex-direction: row; 
        height: 480px; 
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 20px; /* Aligns the snap perfectly */
        gap: 16px;
        padding: 0 20px 30px 20px;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scrollbar-width: none; /* Hides scrollbar in Firefox */
    }
    
    /* Hides scrollbar in Chrome/Safari/Edge */
    .portfolio-container::-webkit-scrollbar { 
        display: none; 
    }
    
    .portfolio-column { 
        flex: 0 0 85%; /* Shows 85% of the card, leaving a "peek" of the next one so users know to swipe */
        height: 100%; 
        border: 1px solid rgba(255,255,255,0.08); 
        border-radius: 16px; /* Soft app-like edges */
        scroll-snap-align: center;
    }
    
    .portfolio-column .col-bg { 
        filter: brightness(0.65) saturate(1) !important; 
        transform: scale(1) !important;
        border-radius: 16px;
    }

    /* Adjust the inner padding so content isn't cramped */
    .portfolio-column > .z-20 {
        padding: 1.5rem !important; 
    }

    .portfolio-column .col-content { 
        opacity: 1 !important; 
        transform: translateY(0) !important; 
        /* Removing the squished glass box to let the text breathe */
        background: transparent !important;
        backdrop-filter: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    /* Scale down massive typography for mobile */
    .portfolio-column .text-7xl {
        font-size: 3.5rem !important; 
    }
    .col-content h4 {
        font-size: 2rem !important;
    }
    .col-content p {
        font-size: 0.85rem !important;
        /* Truncates long text to 2 lines so it doesn't overflow */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .vertical-title { display: none !important; }
    .vertical-title { display: none !important; }

    /* CARDS & GRIDS */
    .prop-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .prop-card {
        border-color: rgba(158, 74, 34, 0.2) !important;
        box-shadow: 0 15px 30px rgba(0,0,0,0.3) !important;
    }
    .prop-img-wrap img {
        filter: brightness(0.9) saturate(1) !important;
    }
    .prop-title {
        color: var(--sienna) !important;
        font-size: 1.75rem !important;
    }

    /* HERO */
    .hero-title {
        font-size: clamp(3rem, 12vw, 5rem) !important;
    }
    .hero-bg-wrap img {
        filter: brightness(0.5) !important;
    }

    /* GENERAL INTERACTIVITY HINTS */
    .glass-badge, .glass-badge-stone {
        background: rgba(158, 74, 34, 0.4) !important;
        border-color: rgba(158, 74, 34, 0.6) !important;
    }
    
    .mag-btn {
        transform: none !important; /* Disable magnetic movement on mobile */
    }
}


/* Parallax Hero */
.parallax-hero {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* floating icons */
/* ===================== PREMIUM FLOATING CONTACT BUTTONS ===================== */
@keyframes softFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* We apply different delays so they don't move exactly at the same time, making it look organic */
.float-icon-1 { 
    animation: softFloat 4s ease-in-out infinite; 
}

.float-icon-2 { 
    animation: softFloat 4s ease-in-out infinite; 
    animation-delay: 2s; 
}

/* Pause the floating animation when the user hovers over them */
.float-icon-1:hover, .float-icon-2:hover {
    animation-play-state: paused;
}

/* contact deatails */

 body::before {
            content: ''; position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0.03;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
            background-repeat: repeat; background-size: 128px 128px;
        }

        /* Form success states */
        .form-success { display: none; animation: heroTextIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
        .form-submitted form { display: none; }
        .form-submitted .form-success { display: block; }

        /* Animations */
        @keyframes heroTextIn { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: translateY(0); } }
        
        .reveal-fade {
            opacity: 0; transform: translateY(40px);
            transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
        }
        .reveal-fade.active { opacity: 1; transform: translateY(0); }
        .d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; } .d3 { transition-delay: 0.3s; }

        /* Floating Widgets */
        @keyframes softFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }
        .float-icon-1 { animation: softFloat 4s ease-in-out infinite; }
        .float-icon-2 { animation: softFloat 4s ease-in-out infinite; animation-delay: 2s; }
        .float-icon-1:hover, .float-icon-2:hover { animation-play-state: paused; }
        
        #back-to-top {
            opacity: 0; transform: translateY(20px); pointer-events: none;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }
        #back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

        /* Custom Bento Hover Effects */
        .bento-card {
            transition: transform 0.4s cubic-bezier(0.25, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
        }
        .bento-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.5);
            border-color: rgba(158, 74, 34, 0.3);
        }

        /* ===================== GALLERY FILTER ANIMATIONS ===================== */
.gallery-item {
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 1;
    transform: scale(1);
}

/* State when item is animating out */
.gallery-item.hiding {
    opacity: 0 !important;
    transform: scale(0.8) !important;
    pointer-events: none;
}

/* State when item is completely removed from grid layout */
.gallery-item.hidden-completely {
    display: none !important;
}


/* Swiper Coverflow Styling */
        .swiper-coverflow-container { width: 100%; padding-bottom: 3rem; }
        .mySwiper .swiper-slide {
            width: 80%; /* Controls how wide the center image is */
            aspect-ratio: 3/4;
            border-radius: 4px;
            overflow: hidden;
            box-shadow: 0 15px 35px rgba(0,0,0,0.5);
        }
        .mySwiper .swiper-pagination-bullet { background: rgba(255,255,255,0.5); opacity: 1; }
        .mySwiper .swiper-pagination-bullet-active { background: #9E4A22; /* Sienna */ width: 24px; border-radius: 8px; transition: all 0.3s ease;}