@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Montserrat:wght@300;400&family=EB+Garamond:wght@400&display=swap');

:root {
  --midnight: #121212;
  --gold: #DBC1AC;
  --onyx: #080808;
  --marble: #F2F2F2;
  --cashmere: #A39D9E;
  --smoke: rgba(255,255,255,0.03);
  --success: #88A08F;
  --alert: #A67C7C;
  --font-h1: 'Cormorant Garamond', serif;
  --font-h2: 'Cormorant Garamond', serif;
  --font-h3: 'Montserrat', sans-serif;
  --font-body: 'EB Garamond', serif;
  --font-meta: 'Montserrat', sans-serif;
  --font-number: 'Cormorant Garamond', serif;
  --font-btn: 'Montserrat', sans-serif;
}

/* Scroll Progress */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gold);
    z-index: 9999;
    box-shadow: 0 0 10px var(--gold);
}

/* Base resets */
body {
  background-color: var(--onyx);
  color: var(--marble);
  font-family: var(--font-body);
  overflow-x: hidden;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1, .h1 { font-family: var(--font-h1); font-weight: 700; line-height: 1.1; }
h2, .h2 { font-family: var(--font-h2); font-weight: 600; }
h3, .h3 { font-family: var(--font-h3); font-weight: 300; }
.meta { font-family: var(--font-meta); font-weight: 300; }
.number { font-family: var(--font-number); font-weight: 700; }
.btn-text { font-family: var(--font-btn); font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--onyx); }
::-webkit-scrollbar-thumb { background: var(--midnight); border: 1px solid var(--gold); border-radius: 3px; }

/* Velvet Rope Reveal */
#velvet-rope-container {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    pointer-events: none;
    transition: opacity 1s ease 2s;
}
.velvet-left, .velvet-right {
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, #121212 0%, #080808 100%);
    border-right: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    transition: transform 1.5s cubic-bezier(0.8, 0, 0.2, 1) 0.5s;
    box-shadow: inset -20px 0 50px rgba(0,0,0,0.8);
}
.velvet-right {
    border-right: none;
    border-left: 2px solid var(--gold);
    justify-content: flex-start;
    background: linear-gradient(-90deg, #121212 0%, #080808 100%);
    box-shadow: inset 20px 0 50px rgba(0,0,0,0.8);
}
.rope-center {
    width: 4px;
    height: 100%;
    background: var(--gold);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--gold);
    transition: opacity 0.3s ease 0.4s;
}
/* Rope handle */
.rope-handle {
    width: 20px;
    height: 100px;
    background: linear-gradient(to bottom, #FFDF73, #D4AF37, #8A6D17);
    border-radius: 20px;
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}
.velvet-right .rope-handle {
    left: -10px;
    right: auto;
}

body.loaded .velvet-left {
    transform: translateX(-100%);
}
body.loaded .velvet-right {
    transform: translateX(100%);
}
body.loaded .rope-center {
    opacity: 0;
}
body.loaded #velvet-rope-container {
    opacity: 0;
}

/* Gold Ink Bleed */
.gold-ink-bleed {
    color: var(--gold);
    position: relative;
    display: inline-block;
    transition: color 0.4s ease, text-shadow 0.4s ease;
}
.gold-ink-bleed:hover {
    color: var(--marble);
    text-shadow: 0 0 20px var(--gold), 0 0 40px rgba(219, 193, 172, 0.5);
}
/* For headings */
h1 .gold-ink-bleed, h2 .gold-ink-bleed {
    background: linear-gradient(135deg, #E5E5E5, #DBC1AC, #8C7A6D);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.5s ease;
}
h1:hover .gold-ink-bleed, h2:hover .gold-ink-bleed {
    filter: drop-shadow(0 0 15px rgba(219, 193, 172, 0.4));
    -webkit-text-fill-color: var(--marble);
}

/* Glassmorphism & Liquid Glass */
.glass-panel {
    background: var(--smoke);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid rgba(212, 175, 55, 0.3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 10px 30px rgba(0,0,0,0.5);
}

/* Primary Button */
.btn-primary {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 12px 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    font-family: var(--font-btn);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gold);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}
.btn-primary:hover::before {
    width: 300%;
    height: 300%;
}
.btn-primary:hover, .btn-primary.hover-active {
    color: var(--onyx);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

/* Secondary Button */
.btn-secondary {
    color: var(--gold);
    background: transparent;
    border: none;
    position: relative;
    padding-bottom: 4px;
    font-family: var(--font-btn);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s ease;
}
.btn-secondary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.btn-secondary:hover::after {
    width: 100%;
}

/* Spotlight Border Card */
.spotlight-card {
    position: relative;
    background: var(--onyx);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}
.spotlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    border-color: rgba(212, 175, 55, 0.4);
}
.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 175, 55, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}
.spotlight-card:hover::before {
    opacity: 1;
}
.spotlight-card img {
    transition: filter 0.3s ease;
}
.spotlight-card:hover img {
    filter: sepia(0.3) hue-rotate(-20deg) brightness(1.1);
}

/* Typography styles */
.divider-gold {
    height: 1px;
    background: var(--gold);
    opacity: 0.2;
    width: 100%;
}

.input-field {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--marble);
    padding: 12px 0;
    width: 100%;
    font-family: var(--font-body);
    font-size: 16px;
    transition: all 0.3s ease;
}
.input-field:focus {
    outline: none;
    border-bottom-color: var(--gold);
    box-shadow: 0 10px 10px -10px rgba(212, 175, 55, 0.2);
}
.input-field::placeholder {
    color: rgba(245, 241, 233, 0.3);
}

/* Select */
select.input-field {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 16px;
    cursor: pointer;
}
select.input-field option {
    background: var(--onyx);
    color: var(--marble);
}

/* Modal */
.custom-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.custom-modal.active {
    display: flex;
    opacity: 1;
}
.modal-content {
    background: var(--midnight);
    border: 1px solid rgba(212, 175, 55, 0.2);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}
.custom-modal.active .modal-content {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--gold);
    cursor: pointer;
    font-size: 24px;
    z-index: 1001;
    background: none; border: none;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--onyx);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Map Pulse */
.map-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
}
.map-dot::after {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}

/* Scroll reveals */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image zoom effect */
.img-zoom-container {
    overflow: hidden;
}
.img-zoom-container img {
    transition: transform 3s ease;
    transform-origin: center;
    width: 100%; height: 100%;
    object-fit: cover;
}
.img-zoom-container:hover img {
    transform: scale(1.03);
}

/* Hero bg */
#hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}
.hero-bg {
    background-image: url('images/hk-skyline-gold.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: absolute;
    inset: 0;
    z-index: -2;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--onyx) 0%, rgba(10,10,10,0.5) 50%, rgba(10,10,10,0.8) 100%);
    z-index: -1;
}

/* Navigation */
.nav-link {
    position: relative;
    color: var(--marble);
    font-family: var(--font-btn);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: var(--gold);
}
.nav-link::after {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    opacity: 1;
}

/* Chat */
.chat-msg-user {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    align-self: flex-end;
    border-radius: 12px 12px 0 12px;
    color: var(--marble);
    padding: 12px 16px;
    margin-bottom: 8px;
    max-width: 80%;
}
.chat-msg-concierge {
    background: var(--midnight);
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    border-radius: 12px 12px 12px 0;
    color: var(--cashmere);
    padding: 12px 16px;
    margin-bottom: 8px;
    max-width: 80%;
}

.calendar-day {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    cursor: pointer; border: 1px solid transparent;
    transition: all 0.2s;
}
.calendar-day:hover { border-color: rgba(212, 175, 55, 0.4); }
.calendar-day.available { position: relative; }
.calendar-day.available::after {
    content: ''; position: absolute; bottom: 4px; width: 4px; height: 4px; background: var(--gold); border-radius: 50%;
}
.calendar-day.selected { border-color: var(--gold); box-shadow: 0 0 10px rgba(212, 175, 55, 0.2); color: var(--gold); }

/* Back to top */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold);
    color: var(--gold);
    background: var(--onyx);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 100;
}
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
#back-to-top:hover {
    background: var(--gold);
    color: var(--onyx);
    transform: translateY(-5px);
}
