/* ============================================================
   GLOBAL STYLE ENGINE — HOUSE5 APARTMENT
   ENGINEERED BY SELMCOEP
   Architecture: High-Motion Luxury
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;700&display=swap');

:root {
  --bg-dark:        #060608;
  --bg-surface:     #0d0d10;
  --metal-gradient: linear-gradient(135deg, #f0ece4 0%, #b0a898 40%, #6a6460 70%, #2c2a28 100%);
  --gold-gradient:  linear-gradient(135deg, #d4af7a 0%, #a8894e 50%, #7a6535 100%);
  --silver-text:    #c8c4ba;
  --gold:           #c9a96e;
  --text-dim:       rgba(255,255,255,0.5);
  --text-mid:       rgba(255,255,255,0.75);
  --glass:          rgba(6,6,8,0.88);
  --blur:           blur(20px);
  --transition:     all 0.65s cubic-bezier(0.23,1,0.32,1);
  --radius-card:    32px;
  --radius-pill:    50px;
  --font-display:   'Cormorant Garamond', Georgia, serif;
  --font-body:      'Montserrat', sans-serif;
}

/* ─── Reset ─── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: #fff;
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); }

/* ─── Loader ─── */
.loader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 28px;
}

.loader-logo {
  height: 72px;
  filter: brightness(1.1);
  opacity: 0;
  animation: loaderLogoFade 0.6s 0.2s ease forwards;
}

@keyframes loaderLogoFade { to { opacity: 1; } }

.loader-bar-container {
  width: 160px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.loader-bar {
  width: 0;
  height: 100%;
  background: var(--gold);
}

/* ─── Video Background ─── */
.video-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.video-asset {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6,6,8,0.95) 0%,
    rgba(6,6,8,0.15) 45%,
    rgba(6,6,8,0.85) 100%
  );
}

/* ─── Navigation ─── */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 38px 5%;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(6,6,8,0.92);
  backdrop-filter: var(--blur);
  padding: 18px 5%;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 48px;
}

.nav-links.left  { justify-content: flex-end;  padding-right: 56px; }
.nav-links.right { justify-content: flex-start; padding-left:  56px; }

.nav-links a {
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  transition: 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-logo-center img {
  height: 70px;
  width: auto;
  transition: var(--transition);
}

.navbar.scrolled .nav-logo-center img {
  height: 46px;
}

/* ─── Mobile Nav Toggle ─── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: #fff;
  margin: 6px 0;
  transition: var(--transition);
}

/* ─── Buttons ─── */
.btn-metallic {
  background: var(--metal-gradient);
  color: #1a1814;
  padding: 15px 38px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-metallic::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.75) 50%, transparent 100%);
  transform: rotate(30deg);
  animation: shimmer 3.5s infinite linear;
}

.btn-metallic:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201,169,110,0.25);
}

@keyframes shimmer { 0% { left: -100%; } 100% { left: 200%; } }

.btn-outline {
  border: 1px solid rgba(200,196,186,0.5);
  color: #fff;
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.23,1,0.32,1);
}

.btn-outline:hover {
  color: #0a0a0c;
  border-color: #fff;
}

.btn-outline:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-outline span { position: relative; z-index: 1; }

/* ─── Floating Action Button ─── */
.floating-book-btn {
  position: fixed;
  bottom: 36px;
  right: 36px;
  z-index: 2000;
  box-shadow: 0 16px 50px rgba(0,0,0,0.7);
}

/* ─── Hero ─── */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-inner { position: relative; z-index: 1; }

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.hero-heading {
  overflow: hidden;
}

.hero-heading .line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8.5rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: 4px;
  overflow: hidden;
}

.hero-heading .line.italic {
  font-style: italic;
  letter-spacing: 6px;
}

.text-gradient {
  background: var(--metal-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.italic { font-style: italic; }

.hero-sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-dim);
  margin: 28px 0 50px;
  text-transform: uppercase;
  letter-spacing: 5px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ─── Ticker ─── */
.ticker-wrap {
  position: absolute;
  bottom: 36px;
  left: 0;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0.5;
  user-select: none;
}

.ticker {
  display: inline-flex;
  animation: scrollTicker 55s linear infinite;
}

.ticker span {
  margin: 0 40px;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--silver-text);
  letter-spacing: 3px;
  text-transform: uppercase;
}

@keyframes scrollTicker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Section Titles ─── */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

.section-title-xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 2px;
}

.section-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-top: 12px;
}

/* ─── Footer ─── */
.main-footer {
  padding: 100px 10% 48px;
  background: rgba(0,0,0,0.97);
  backdrop-filter: var(--blur);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.04);
  position: relative;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.3;
}

.footer-logo { height: 46px; margin: 0 auto 28px; opacity: 0.85; }

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 40px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 44px;
  margin-bottom: 60px;
}

.footer-links a {
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.45);
  transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.copyright  { font-size: 0.55rem; color: #333; letter-spacing: 1px; }
.dev-credit { font-size: 0.55rem; color: #222; text-transform: uppercase; letter-spacing: 2px; }

/* ─── Grain Texture ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  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)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #0a0a0c; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

/* ─── Mobile ─── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-container {
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
  }
  .nav-logo-center {
    justify-self: center;
    grid-column: 2;
    grid-row: 1;
  }
  .nav-toggle {
    display: block;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  .floating-book-btn { right: 20px; bottom: 86px; padding: 13px 26px; font-size: 0.6rem; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 600px) {
  .hero-heading .line { font-size: clamp(2.8rem, 14vw, 5rem); }
  .footer-links { flex-wrap: wrap; gap: 24px; }
}

/* ─── Mobile Nav Overlay ─── */
@media (max-width: 1024px) {
  .nav-links.show {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100dvh;
    background: rgba(6,6,8,0.98);
    backdrop-filter: blur(24px);
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 998;
    animation: navFadeIn 0.4s ease forwards;
  }

  .nav-links.show li a {
    font-size: 0.85rem;
    letter-spacing: 5px;
    opacity: 0;
    transform: translateY(20px);
    animation: navItemSlide 0.5s ease forwards;
  }

  .nav-links.show li:nth-child(1) a { animation-delay: 0.1s; }
  .nav-links.show li:nth-child(2) a { animation-delay: 0.2s; }
  .nav-links.show li:nth-child(3) a { animation-delay: 0.3s; }
  .nav-links.show li:nth-child(4) a { animation-delay: 0.4s; }

  .nav-toggle { z-index: 999; position: relative; }
}

@keyframes navFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes navItemSlide {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Hamburger → X Animation ─── */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Custom Cursor ─── */
.h5-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(201,169,110,0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.35s ease, height 0.35s ease, border-color 0.35s ease;
  mix-blend-mode: difference;
  will-change: transform;
}

.h5-cursor.hover {
  width: 58px; height: 58px;
  border-color: var(--gold);
  background: rgba(201,169,110,0.06);
}

.h5-cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* ─── Select Arrow ─── */
.input-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a96e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

/* ─── Page Transition Fade ─── */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 9990;
  pointer-events: none;
  opacity: 0;
}

/* ─── WhatsApp Float (Mobile) ─── */
.whatsapp-float {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 50px; height: 50px;
  background: #25D366;
  border-radius: 50%;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
  transition: transform 0.3s ease;
}

.whatsapp-float:hover { transform: scale(1.1); }

.whatsapp-float svg { width: 26px; height: 26px; fill: #fff; }

@media (max-width: 1024px) {
  .whatsapp-float { display: flex; }
}

/* ─── Inner Page Header Divider ─── */
.page-divider {
  width: 60px;
  height: 1px;
  background: var(--gold-gradient);
  margin: 24px auto 0;
  opacity: 0.6;
}

/* ─── Reveal utility (scroll-triggered via GSAP) ─── */
.reveal { opacity: 0; }

