/* ==========================================
   PART 1: TOKENS & BASE
   ========================================== */
:root {
    --amber: #c9924f;                         /* Tuscan bronze accent (replaces flat amber) */
    --amber-glow: rgba(201, 146, 79, 0.4);
    --bronze-light: #f4dcb0;
    --bronze-deep: #6b431c;
    --cypress: #5f7360;                       /* quiet secondary accent, used sparingly */
    --glass: rgba(255,255,255,0.045);
    --glass-strong: rgba(255,255,255,0.09);
    --glass-border: rgba(255,255,255,0.12);
    --dark-bg: #0a0d12;                       /* cool ink base */
    --ease-sleek: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: auto !important;
}

body {
    background-color: var(--dark-bg);
    color: #e2e8f0;
    font-family: 'Inter', system_ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Ambient background glow — soft gradients with a built-in fade-to-transparent edge.
   No filter:blur() on purpose: blurring large animated elements forces the browser to
   recompute the blur every frame, which is expensive. Only opacity is animated here
   (cheap, GPU-composited), so the page stays snappy. */
.bg-ambient {
    position: fixed;
    inset: -10%;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 12%, #2a3324 0%, rgba(42,51,36,0) 42%),
        radial-gradient(circle at 88% 88%, #3a2a12 0%, rgba(58,42,18,0) 42%),
        radial-gradient(circle at 55% 45%, #4a3418 0%, rgba(74,52,24,0) 38%);
    animation: pulsatingFade 12s ease-in-out infinite alternate;
    will-change: opacity;
}

@keyframes pulsatingFade {
    0%   { opacity: 0.35; }
    50%  { opacity: 0.75; }
    100% { opacity: 0.45; }
}

.bg-motion-canvas {
    position: fixed; inset: -50px; z-index: -1; pointer-events: none;
    background-image: radial-gradient(rgba(201, 146, 79, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}

/* ==========================================
   PART 2: NAVBAR — GLASS PILL
   ========================================== */
.navbar {
    position: fixed; top: 15px; left: 5%; width: 90%; display: flex; justify-content: space-between; align-items: center; padding: 15px 40px;
    background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-radius: 50px; border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.12); z-index: 1000;
    transition: all 0.4s var(--ease-sleek);
}
.navbar.scrolled {
    top: 0; left: 0; width: 100%; border-radius: 0; border-top: none;
    background: linear-gradient(180deg, rgba(10,13,18,0.8) 0%, rgba(10,13,18,0.65) 100%);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
}
.logo { font-size: 24px; font-weight: 500; letter-spacing: 2px; text-decoration: none; color: #fff; }
.nav-links { list-style: none; display: flex; gap: 10px; }

.nav-links a {
    display: inline-block; color: #a8b0bb; text-decoration: none; font-size: 11px; font-weight: 600; text-transform: uppercase; padding: 10px 18px;
    background: var(--glass); border-radius: 30px; border: 1px solid var(--glass-border);
    transition: background 0.2s var(--ease-sleek), border-color 0.2s var(--ease-sleek), color 0.2s var(--ease-sleek), transform 0.15s var(--ease-sleek);
}
.nav-links a:hover {
    background: var(--glass-strong);
    border-color: var(--amber) !important;
    color: #fff;
    transform: translateY(-1px);
}
.nav-links a.active, .nav-links a:active {
    background: linear-gradient(180deg, var(--bronze-deep) 0%, #2b1a0c 100%) !important;
    box-shadow: inset 0 3px 8px rgba(0,0,0,0.5) !important; color: var(--amber) !important; border-color: var(--amber) !important; transform: translateY(1px) !important;
}

/* ==========================================
   PART 3: HERO
   ========================================== */
.hero { position: relative; height: 100vh; min-height: 720px; background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7)), url('pictures/mainpict.jpg') center/cover no-repeat; display: flex; align-items: center; justify-content: center; text-align: center; }

@keyframes heroRise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-title h1 { font-size: clamp(4rem, 9.5vw, 7.8rem); font-weight: 500; line-height: 0.9; letter-spacing: -0.03em; text-shadow: 0 10px 25px rgba(0,0,0,0.9); animation: heroRise 0.9s var(--ease-sleek) both; }
.hero-title h1:nth-child(1) { animation-delay: 0.05s; }
.hero-title h1:nth-child(2) { animation-delay: 0.2s; }
.hero-title h1:nth-child(3) { animation-delay: 0.35s; }
.hero-content p { font-size: 1.4rem; color: #cbd5e1; margin: 20px auto 40px; animation: heroRise 0.9s var(--ease-sleek) both; animation-delay: 0.5s; }

.gloss-sweep { position: relative; overflow: hidden; }
.gloss-sweep::before {
    content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}
.gloss-sweep:hover::before { left: 130%; }

.cta-button {
    display: inline-block; padding: 18px 48px;
    background: linear-gradient(135deg, var(--bronze-light) 0%, var(--amber) 55%, var(--bronze-deep) 100%);
    color: #20130a; border-radius: 50px; font-size: 14px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 10px 26px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.5);
    animation: heroRise 0.9s var(--ease-sleek) both; animation-delay: 0.65s;
    transition: transform 0.35s var(--ease-sleek), box-shadow 0.35s var(--ease-sleek);
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,0.6), 0 0 30px var(--amber-glow); }

.hero-chip {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: 30px;
    background: var(--glass-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    font-size: 0.72rem; letter-spacing: 1.6px; text-transform: uppercase; color: #e8dcc8;
    animation: heroRise 0.9s var(--ease-sleek) both; animation-delay: 0.85s;
}
.hero-chip i { color: var(--amber); }

/* ==========================================
   PART 4: SECTIONS & GALLERY CARDS (GLASS)
   ========================================== */
.section { padding: 100px 5%; position: relative; }
.section-title { font-size: 2.8rem; text-align: center; margin-bottom: 60px; text-shadow: 0 0 50px var(--amber-glow); }
.floor-title { font-size: 2rem; text-align: center; margin: 80px 0 35px; color: var(--amber); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }

.card {
    position: relative;
    background: linear-gradient(180deg, var(--glass-strong) 0%, var(--glass) 100%);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-radius: 20px; overflow: hidden; cursor: pointer;
    border: 1px solid var(--glass-border); box-shadow: 0 15px 30px rgba(0,0,0,0.45);
    transition: transform 0.4s var(--ease-sleek), box-shadow 0.4s var(--ease-sleek), border-color 0.4s var(--ease-sleek);
}
.card:hover {
    transform: translateY(-10px) scale(1.015);
    border-color: var(--amber);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6), 0 0 0 1px var(--amber-glow), 0 0 34px var(--amber-glow);
}
.card-media { position: relative; overflow: hidden; border-radius: 16px; margin: 10px; }
.card img { width: 100%; height: 240px; object-fit: cover; border-radius: 16px; display: block; transition: transform 0.5s var(--ease-sleek); }
.card:hover img { transform: scale(1.12); }
.card-body { padding: 20px; text-align: center; color: #cbd5e1; background: rgba(255,255,255,0.02); border-top: 1px solid var(--glass-border); transition: color 0.3s var(--ease-sleek); }
.card:hover .card-body { color: #fff; }

/* Play icon overlay, shown on hover for video cards */
.play-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.35s var(--ease-sleek);
}
.play-overlay i {
    width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #241503; padding-left: 4px;
    background: linear-gradient(180deg, var(--bronze-light) 0%, var(--amber) 60%, var(--bronze-deep) 100%);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.6);
    transform: scale(0.8);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.card:hover .play-overlay { opacity: 1; }
.card:hover .play-overlay i { transform: scale(1); }

/* Magnifier overlay, shown on hover for picture cards */
.zoom-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.35s var(--ease-sleek);
}
.zoom-overlay i {
    width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #fff;
    background: rgba(10,12,15,0.55); border: 1px solid rgba(255,255,255,0.25); backdrop-filter: blur(4px);
    transform: scale(0.8);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.card:hover .zoom-overlay { opacity: 1; }
.card:hover .zoom-overlay i { transform: scale(1); }

/* ==========================================
   PART 5: SPEC MATRIX — GLASS ON INK
   ========================================== */
.master-dashboard-console {
    max-width: 1200px; margin: 40px auto 0; background: var(--glass); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 35px; border-radius: 32px; border: 1px solid var(--glass-border);
    box-shadow: inset 0 10px 30px rgba(0,0,0,0.5), 0 20px 50px rgba(0,0,0,0.7); display: flex; flex-direction: column; gap: 40px;
}
.console-bank { background: rgba(255,255,255,0.02); border-radius: 24px; padding: 30px; border: 1px solid var(--glass-border); }
.bank-header { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: #cbd2d9; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--glass-border); }
.indicator-dot { width: 6px; height: 6px; background-color: var(--amber); border-radius: 50%; display: inline-block; box-shadow: 0 0 8px var(--amber-glow); }
.bank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; }

.console-bank .stat-card {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--glass-strong) 0%, var(--glass) 100%);
    border: 1px solid var(--glass-border);
    padding: 40px 20px;
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s var(--ease-sleek), border-color 0.3s var(--ease-sleek);
}
.console-bank .stat-card:hover { transform: translateY(-5px); border-color: var(--amber); }

.console-bank .stat-card i { font-size: 2.2rem; color: var(--amber); margin-bottom: 12px; }
.console-bank .num { font-family: 'Courier New', Courier, monospace; font-size: 3.4rem; font-weight: 700; color: #ffffff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); margin-bottom: 5px; }
.console-bank .label { font-size: 0.85rem; font-weight: 600; letter-spacing: 1.5px; color: #a7adb5; }

/* ==========================================
   PART 6: MODAL
   ========================================== */
.modal { display: none; position: fixed; inset: 0; background: rgba(6, 7, 9, 0.8); backdrop-filter: blur(16px); align-items: center; justify-content: center; z-index: 2000; }
.modal-content { max-width: 1100px; width: 100%; background: rgba(20,22,27,0.85); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); border-radius: 24px; border: 1px solid var(--glass-border); overflow: hidden; max-height: 92vh; display: flex; flex-direction: column; }
.modal-header { padding: 20px 30px; display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.03); }
.close { font-size: 40px; cursor: pointer; color: #64748b; transition: color 0.2s var(--ease-sleek); }
.close:hover { color: var(--amber); }
#modalBody { overflow: auto; flex: 1; padding: 20px; }
footer { text-align: center; padding: 60px 20px; background: #050608; color: #6b7280; }
@media (max-width: 900px) { .navbar { width: 100%; left: 0; top: 0; border-radius: 0; padding: 15px 5%; } .nav-links { gap: 8px; } .nav-links a { padding: 8px 14px; font-size: 11px; } }

/* ==========================================
   PART 7: SKEUOMORPHIC FLOOR PLAN FOLIO
   ========================================== */
.floor-plan-wrap { display: flex; justify-content: center; padding: 10px 0 20px; }

.blueprint-folio {
    position: relative;
    display: block;
    width: 360px;
    max-width: 90vw;
    text-decoration: none;
    transform: rotate(-1.4deg);
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.55));
    transition: transform 0.35s var(--ease-sleek), filter 0.35s var(--ease-sleek);
}
.blueprint-folio:hover { transform: rotate(0deg) translateY(-8px); filter: drop-shadow(0 30px 45px rgba(0,0,0,0.7)); }
.blueprint-folio:active { transform: rotate(0deg) translateY(-2px) scale(0.985); filter: drop-shadow(0 12px 18px rgba(0,0,0,0.6)); }

.folio-clip {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%); z-index: 3;
    width: 74px; height: 28px; border-radius: 7px;
    background: linear-gradient(180deg, var(--bronze-light) 0%, var(--amber) 45%, var(--bronze-deep) 100%);
    box-shadow: 0 5px 10px rgba(0,0,0,0.55), inset 0 1px 1px rgba(255,255,255,0.55), inset 0 -3px 4px rgba(0,0,0,0.4);
}
.folio-clip::before, .folio-clip::after {
    content: ''; position: absolute; top: 50%; width: 5px; height: 5px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff6, #3a2a08); transform: translateY(-50%);
    box-shadow: inset 0 0 1px rgba(0,0,0,0.6);
}
.folio-clip::before { left: 11px; }
.folio-clip::after { right: 11px; }

.folio-paper {
    position: relative; overflow: hidden; border-radius: 16px;
    padding: 48px 30px 36px;
    background:
        repeating-linear-gradient(0deg, rgba(201,146,79,0.06) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(90deg, rgba(201,146,79,0.06) 0 1px, transparent 1px 24px),
        linear-gradient(160deg, #12161d 0%, #0c0f14 55%, #08090c 100%);
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.06), inset 0 -40px 60px rgba(0,0,0,0.5);
    text-align: center;
}
.folio-paper::after {
    content: ''; position: absolute; right: 0; bottom: 0; width: 0; height: 0;
    border-style: solid; border-width: 0 0 44px 44px; border-color: transparent transparent #171b23 transparent;
    filter: drop-shadow(-3px -3px 5px rgba(0,0,0,0.5));
}

.folio-preview {
    position: relative; width: 100%; height: 190px; margin-bottom: 22px; border-radius: 10px; overflow: hidden;
    background: #05070a;
    border: 3px solid var(--bronze-deep);
    box-shadow: 0 6px 16px rgba(0,0,0,0.5), inset 0 2px 6px rgba(0,0,0,0.65), 0 0 0 1px var(--amber-glow);
}
.folio-preview img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.9) contrast(1.05); transition: transform 0.5s var(--ease-sleek); }
.blueprint-folio:hover .folio-preview img { transform: scale(1.06); }
.folio-preview::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}
.blueprint-folio:hover .folio-preview::after { transform: translateX(100%); }

.folio-title { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: #fff; margin-bottom: 6px; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.folio-sub { font-size: 0.78rem; letter-spacing: 1.8px; text-transform: uppercase; color: #9aa5ad; margin-bottom: 24px; }

.folio-cta {
    display: inline-flex; align-items: center; gap: 10px; padding: 13px 28px; border-radius: 30px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.6px; color: #2b1a04;
    background: linear-gradient(180deg, var(--bronze-light) 0%, var(--amber) 60%, var(--bronze-deep) 100%);
    box-shadow: 0 6px 14px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.75), inset 0 -3px 5px rgba(0,0,0,0.3);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.blueprint-folio:active .folio-cta {
    box-shadow: inset 0 3px 8px rgba(0,0,0,0.55);
    transform: translateY(1px);
}

/* ==========================================
   PART 8: CUSTOM VIDEO PLAYER
   ========================================== */
.custom-player { position: relative; width: 100%; background: #000; border-radius: 12px; overflow: hidden; line-height: 1; }
.custom-video { width: 100%; max-height: 70vh; display: block; background: #000; cursor: pointer; object-fit: contain; }

/* When the player itself is the fullscreen element, let it and its video actually
   fill the screen instead of staying capped at the modal's max-height. */
.custom-player:fullscreen,
.custom-player:-webkit-full-screen {
    width: 100vw; height: 100vh; border-radius: 0;
    display: flex; align-items: center; justify-content: center;
}
.custom-player:fullscreen .custom-video,
.custom-player:-webkit-full-screen .custom-video {
    width: 100vw; height: 100vh; max-height: 100vh;
}

.player-overlay-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 74px; height: 74px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #241503;
    background: linear-gradient(180deg, var(--bronze-light) 0%, var(--amber) 60%, var(--bronze-deep) 100%);
    box-shadow: 0 10px 24px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.6);
    opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease-sleek);
}
.player-overlay-btn.show { opacity: 0.95; }

.player-controls {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; gap: 14px; padding: 14px 18px 12px;
    background: linear-gradient(0deg, rgba(5,6,8,0.85) 0%, rgba(5,6,8,0.45) 65%, transparent 100%);
}

.player-btn {
    background: none; border: none; color: #f5e6c8; font-size: 1rem; cursor: pointer; padding: 6px;
    display: flex; align-items: center; justify-content: center;
    transition: color 0.2s var(--ease-sleek), transform 0.15s var(--ease-sleek);
}
.player-btn:hover { color: var(--amber); transform: scale(1.15); }

.player-time { font-family: 'Courier New', monospace; font-size: 0.75rem; color: #c8d0d8; min-width: 38px; text-align: center; }

.player-progress {
    position: relative; flex: 1; height: 6px; border-radius: 4px; cursor: pointer;
    background: rgba(255,255,255,0.15);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.6);
}
.player-progress-fill {
    position: absolute; top: 0; left: 0; height: 100%; width: 0%; border-radius: 4px;
    background: linear-gradient(90deg, var(--amber), var(--bronze-light));
}
.player-progress-handle {
    position: absolute; top: 50%; left: 0%; width: 13px; height: 13px; border-radius: 50%;
    transform: translate(-50%,-50%);
    background: linear-gradient(180deg, var(--bronze-light), var(--amber));
    box-shadow: 0 2px 6px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.6);
}

/* ==========================================
   PART 9: DIMMED NAVBAR PARTICLES
   ========================================== */
.navbar-particles {
    position: absolute; inset: 0; overflow: hidden; border-radius: inherit;
    pointer-events: none; z-index: 0;
}
.navbar-particles .particle {
    position: absolute; bottom: -6px; width: 3px; height: 3px; border-radius: 50%;
    background: var(--amber);
    opacity: 0;
    animation: floatParticle 7s linear infinite;
}
.navbar-particles .particle:nth-child(3n) { background: var(--cypress); }
.navbar-particles .particle:nth-child(1)  { left: 6%;  animation-duration: 6.5s; animation-delay: 0s;   }
.navbar-particles .particle:nth-child(2)  { left: 16%; animation-duration: 8s;   animation-delay: -2s;  }
.navbar-particles .particle:nth-child(3)  { left: 27%; animation-duration: 7s;   animation-delay: -4.5s;}
.navbar-particles .particle:nth-child(4)  { left: 38%; animation-duration: 9s;   animation-delay: -1s;  }
.navbar-particles .particle:nth-child(5)  { left: 49%; animation-duration: 6s;   animation-delay: -3s;  }
.navbar-particles .particle:nth-child(6)  { left: 60%; animation-duration: 7.5s; animation-delay: -5s;  }
.navbar-particles .particle:nth-child(7)  { left: 71%; animation-duration: 8.5s; animation-delay: -2.5s;}
.navbar-particles .particle:nth-child(8)  { left: 82%; animation-duration: 6.8s; animation-delay: -6s;  }
.navbar-particles .particle:nth-child(9)  { left: 91%; animation-duration: 7.8s; animation-delay: -3.8s;}
.navbar-particles .particle:nth-child(10) { left: 48%; animation-duration: 9.5s; animation-delay: -7s;  }

@keyframes floatParticle {
    0%   { transform: translateY(0);     opacity: 0; }
    12%  { opacity: 0.3; }
    50%  { opacity: 0.4; }
    88%  { opacity: 0; }
    100% { transform: translateY(-46px); opacity: 0; }
}

.navbar .logo, .navbar .nav-links { position: relative; z-index: 1; }
