/* =============================================================
   IBM SERVICES — style.css  (Multi-page)
   Palette : #1a2a3a · #9acd32 · #ffffff
============================================================= */

:root {
  --night:   #1a2a3a;
  --night-l: #243447;
  --night-d: #111e2b;
  --lime:    #9acd32;
  --lime-d:  #7ab228;
  --white:   #ffffff;
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body { background: var(--night); color: var(--white); overflow-x: hidden; font-family: 'Poppins', sans-serif; }

::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--night-d); }
::-webkit-scrollbar-thumb { background: var(--lime); border-radius: 4px; }

/* ── Page Loader ── */
.loader-wrap {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, #1a2a3a 0%, #111e2b 100%);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
}
.loader-logo {
  width: 120px; height: 120px; object-fit: contain; border-radius: 20px;
  animation: loader-pulse 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 24px rgba(154,205,50,0.45));
}
@keyframes loader-pulse {
  0%, 100% { transform: scale(1);   filter: drop-shadow(0 0 20px rgba(154,205,50,0.4)); }
  50%       { transform: scale(1.06); filter: drop-shadow(0 0 36px rgba(154,205,50,0.7)); }
}
.loader-bar { width: 160px; height: 4px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; margin: 20px auto 0; }
.loader-progress {
  height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, #9acd32 0%, #4a8fbf 60%, #111e2b 100%);
  animation: loader-fill 1.5s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes loader-fill { to { width: 100%; } }

/* ── Glass helpers ── */
.glass      { background: rgba(255,255,255,0.05); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.1); }
.glass-dark { background: rgba(17,30,43,0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.glass-card {
  background: rgba(255,255,255,0.035); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .35s var(--ease), background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.glass-card:hover { background: rgba(255,255,255,0.065); border-color: rgba(154,205,50,0.25); transform: translateY(-5px); box-shadow: 0 24px 50px rgba(0,0,0,0.35); }
.glass-card-lime  { background: var(--lime); border: 1px solid rgba(255,255,255,0.18); }

/* ── Header ── */
#header { transition: all .35s ease; }
#header.scrolled { background: rgba(17,30,43,0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(154,205,50,0.12); box-shadow: 0 4px 30px rgba(0,0,0,0.3); }

.nav-link { position: relative; font-family: 'Poppins', sans-serif; font-weight: 500; color: rgba(255,255,255,0.75); text-decoration: none; transition: color .3s; }
.nav-link:hover, .nav-link.active { color: var(--lime); }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--lime); border-radius: 1px; transition: width .3s var(--ease); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ── Dropdown ── */
.nav-dropdown {
  position: absolute; top: 100%; left: 50%;
  background: var(--night-d); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px;
  padding: 8px; padding-top: 20px; min-width: 230px; opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity .3s ease, transform .3s var(--ease);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
/* Invisible bridge fills the gap so cursor doesn't leave the hover zone */
.nav-dropdown::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 12px;
  background: transparent;
}
.has-dropdown:hover .nav-dropdown { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px; font-family: 'Poppins', sans-serif; font-size: 0.82rem;
  color: rgba(255,255,255,0.7); text-decoration: none; transition: background .25s, color .25s;
}
.dropdown-item:hover { background: rgba(154,205,50,0.12); color: var(--lime); }

/* CTA button */
.cta-btn { position: relative; overflow: hidden; text-decoration: none; }
.cta-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.cta-btn:hover::before { left: 160%; }

/* Mobile menu */
#mobile-menu { position: absolute; top: 100%; left: 0; right: 0; z-index: 99; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }

/* ── Hero (home) ── */
.hero-bg { will-change: transform; transform: scale(1.08); }
@keyframes scroll-bounce { 0%{transform:translateY(0);opacity:1} 80%{transform:translateY(14px);opacity:0} 100%{transform:translateY(0);opacity:0} }
.scroll-dot { animation: scroll-bounce 1.8s ease infinite; }
@keyframes float-blob { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-24px) scale(1.04)} }
.floating-blob { animation: float-blob 10s ease-in-out infinite; }

/* ── Inner page hero (banner) ── */
.page-hero {
  position: relative; min-height: 58vh; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); transition: transform 8s ease; }
.page-hero:hover .page-hero-bg { transform: scale(1.08); }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(17,30,43,0.92) 0%, rgba(26,42,58,0.75) 60%, rgba(17,30,43,0.88) 100%); }
.page-hero-content { position: relative; z-index: 2; text-align: center; padding: 100px 24px 48px; max-width: 800px; margin: 0 auto; }
@media (max-width: 640px) { .page-hero-content { padding: 80px 20px 36px; } }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); padding: 6px 16px; border-radius: 20px; margin-bottom: 20px; font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.breadcrumb a { color: var(--lime); text-decoration: none; }
.page-hero h1 { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.15; color: var(--white); margin-bottom: 16px; }
.page-hero p  { font-family: 'Poppins', sans-serif; font-size: 1.05rem; color: rgba(255,255,255,0.65); max-width: 540px; margin: 0 auto; line-height: 1.7; }

/* ── Section headers ── */
.section-header { opacity: 0; transform: translateY(32px); }
.section-label { display: inline-block; color: var(--lime); font-family: 'Poppins', sans-serif; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); color: var(--white); line-height: 1.2; margin-bottom: 16px; }
.section-title span { color: var(--lime); }
.section-sub { font-family: 'Poppins', sans-serif; color: rgba(255,255,255,0.55); font-size: 1.05rem; max-width: 500px; margin: 0 auto; line-height: 1.7; }

/* ── Services cards ── */
.service-card { position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--lime), transparent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.service-card:hover::before { transform: scaleX(1); }

/* Service detail page feature grid */
.feature-item { display: flex; align-items: flex-start; gap: 16px; padding: 20px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; transition: all .3s ease; }
.feature-item:hover { background: rgba(154,205,50,0.06); border-color: rgba(154,205,50,0.2); transform: translateX(4px); }
.feature-icon { width: 44px; height: 44px; background: rgba(154,205,50,0.12); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Process steps */
.step-card { text-align: center; padding: 32px 24px; }
.step-number { width: 56px; height: 56px; background: rgba(154,205,50,0.1); border: 2px solid var(--lime); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.3rem; color: var(--lime); margin: 0 auto 20px; }

/* ── Apartments ── */
.apt-card { transition: transform .35s var(--ease), box-shadow .35s ease; }
.apt-card:hover { transform: translateY(-6px); box-shadow: 0 28px 56px rgba(0,0,0,0.4); }
.apt-img-wrap { position: relative; height: 220px; overflow: hidden; }
.apt-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.apt-card:hover .apt-img-wrap img { transform: scale(1.06); }
.badge-dispo { background: var(--lime); color: var(--night); font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 0.62rem; padding: 3px 10px; border-radius: 20px; letter-spacing: .05em; }
.apt-tag { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); font-family: 'Poppins',sans-serif; font-size: 0.62rem; padding: 3px 8px; border-radius: 20px; }
.apt-cta-btn { display: block; text-align: center; background: rgba(154,205,50,0.1); color: var(--lime); border: 1px solid rgba(154,205,50,0.2); font-family: 'Poppins',sans-serif; font-weight: 500; font-size: 0.8rem; padding: 10px; border-radius: 12px; transition: all .3s ease; text-decoration: none; }
.apt-cta-btn:hover, .apt-card:hover .apt-cta-btn { background: var(--lime); color: var(--night); border-color: var(--lime); }

/* Slider */
.slider-mask { -webkit-mask-image: linear-gradient(90deg,transparent 0%,black 6%,black 94%,transparent 100%); mask-image: linear-gradient(90deg,transparent 0%,black 6%,black 94%,transparent 100%); }
#apts-slider { will-change: transform; }
.s-dot { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.25); cursor: pointer; transition: all .35s ease; }
.s-dot.active { width: 22px; background: var(--lime); }

/* Filter buttons */
.filter-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.55); cursor: pointer; transition: all .3s ease; font-family: 'Poppins',sans-serif; }
.filter-btn:hover { background: rgba(154,205,50,0.12); color: var(--lime); border-color: rgba(154,205,50,0.3); }
.filter-btn.active { background: var(--lime); color: var(--night); border-color: var(--lime); box-shadow: 0 4px 18px rgba(154,205,50,0.35); }

/* ── Contact / Form ── */
.form-label { display: block; font-family: 'Poppins',sans-serif; font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.form-input { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); color: var(--white); font-family: 'Poppins',sans-serif; font-size: 0.85rem; padding: 12px 16px; border-radius: 12px; outline: none; transition: all .3s ease; -webkit-appearance: none; }
.form-input::placeholder { color: rgba(255,255,255,0.22); }
.form-input:focus { border-color: var(--lime); background: rgba(255,255,255,0.07); box-shadow: 0 0 0 3px rgba(154,205,50,0.12); }
.form-input.is-error { border-color: rgba(239,68,68,0.6); }
select.form-input { background-color: var(--night-l); cursor: pointer; color: var(--white); }
select.form-input option { background-color: var(--night-l); color: var(--white); }
.error-msg { display: none; font-family: 'Poppins',sans-serif; font-size: 0.7rem; color: #f87171; margin-top: 4px; }
.error-msg.visible { display: block; }
.submit-btn { position: relative; overflow: hidden; cursor: pointer; border: none; }
.submit-btn::after { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: rgba(255,255,255,0.22); border-radius: 50%; transform: translate(-50%,-50%); transition: width .7s ease, height .7s ease, opacity .7s ease; opacity: 0; }
.submit-btn:hover::after { width: 500px; height: 500px; opacity: 1; }

/* ── WhatsApp floating ── */
@keyframes wa-pulse-anim { 0%{transform:scale(1);opacity:.75} 100%{transform:scale(1.9);opacity:0} }
.wa-btn { position: relative; }
.wa-pulse { position: absolute; inset: 0; animation: wa-pulse-anim 2.2s ease-out infinite; z-index: -1; }

/* ── CTA Band ── */
.cta-band { background: linear-gradient(135deg, var(--lime) 0%, var(--lime-d) 100%); }

/* ── Info card ── */
.info-card { display: flex; align-items: center; gap: 16px; padding: 20px 24px; }
.info-icon { width: 48px; height: 48px; background: rgba(154,205,50,0.1); border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── Testimonials ── */
.testimonial-card { padding: 28px; border-radius: 20px; }
.stars { color: var(--lime); font-size: 0.9rem; margin-bottom: 14px; }

/* ── Stats band ── */
.stat-item { text-align: center; padding: 24px 16px; }
.stat-value { font-family: 'Montserrat',sans-serif; font-weight: 900; font-size: 2.5rem; color: var(--lime); line-height: 1; }
.stat-label { font-family: 'Poppins',sans-serif; font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-top: 6px; }

/* ── Footer ── */
.footer-link { font-family: 'Poppins',sans-serif; font-size: 0.82rem; color: rgba(255,255,255,0.45); text-decoration: none; transition: color .3s; display: block; padding: 3px 0; }
.footer-link:hover { color: var(--lime); }
.footer-title { font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 0.85rem; color: rgba(255,255,255,0.8); margin-bottom: 16px; letter-spacing: 0.05em; text-transform: uppercase; }

/* ── Virtual Tour Modal ─────────────────────────────────── */
#tour-modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 16px;
}
#tour-overlay {
  position: absolute; inset: 0;
  background: rgba(10,18,26,0.93); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
#tour-card {
  position: relative; z-index: 1;
  background: rgba(20,35,50,0.98); border: 1px solid rgba(154,205,50,0.2); border-radius: 24px;
  width: 100%; max-width: 900px; max-height: 92vh; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 40px 80px rgba(0,0,0,0.65);
}
.tour-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); flex-shrink: 0; }
.tour-tabs  { display: flex; gap: 8px; }
.tour-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 20px; font-family: 'Poppins',sans-serif; font-size: 0.8rem; font-weight: 500; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); cursor: pointer; transition: all .3s ease; }
.tour-tab:hover { background: rgba(154,205,50,0.12); color: var(--lime); }
.tour-tab.tour-tab-active { background: var(--lime); color: var(--night); border-color: var(--lime); font-weight: 600; }
.tour-panel { flex: 1; overflow: hidden; }

#tour-poster {
  width: 100%; height: 460px; background-size: cover; background-position: 50% 50%;
  background-color: var(--night-d); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px;
}
#tour-poster::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(17,30,43,0.35), rgba(17,30,43,0.75)); }
.play-ring { position: relative; z-index: 1; width: 80px; height: 80px; background: rgba(154,205,50,0.18); border: 2px solid var(--lime); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .3s ease; }
.play-ring:hover { background: var(--lime); transform: scale(1.1); box-shadow: 0 0 30px rgba(154,205,50,0.5); }
.play-ring:hover i { color: var(--night) !important; }
.poster-info { position: relative; z-index: 1; text-align: center; }

#matterport-frame { width: 100%; height: 460px; border: none; display: block; background: var(--night-d); }

.tour-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(154,205,50,0.1); border: 1px solid rgba(154,205,50,0.25); color: var(--lime); font-family: 'Poppins',sans-serif; font-size: 0.62rem; font-weight: 600; padding: 3px 8px; border-radius: 20px; }
.tour-card-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; background: linear-gradient(135deg,rgba(154,205,50,0.12),rgba(154,205,50,0.05)); border: 1px solid rgba(154,205,50,0.25); color: var(--lime); font-family: 'Poppins',sans-serif; font-weight: 600; font-size: 0.78rem; padding: 9px; border-radius: 12px; cursor: pointer; transition: all .3s var(--ease); margin-bottom: 8px; }
.tour-card-btn:hover { background: var(--lime); color: var(--night); border-color: var(--lime); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(154,205,50,0.3); }

#close-tour { width: 36px; height: 36px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: rgba(255,255,255,0.7); transition: all .3s; }
#close-tour:hover { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.4); color: #f87171; }
.tour-footer { padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 12px; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .slider-mask { -webkit-mask-image: none; mask-image: none; }
  .page-hero h1 { font-size: 2rem; }
  #tour-poster, #matterport-frame { height: 260px; }
  .tour-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}
