/* ===== HSPD - HS Property Developers Ltd. ===== */
/* ===== Custom Styles ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0d0d0d; }
::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, #d4952a, #b37321); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #e5b036; }

/* Selection */
::selection { background: rgba(212, 149, 42, 0.3); color: #fff; }

/* ===== NAV STYLES ===== */
.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #b0b0b0;
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: #e5b036; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #d4952a, #e5b036);
  border-radius: 1px;
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 60%; }

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: #b0b0b0;
  text-decoration: none;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}
.mobile-nav-link:hover { color: #e5b036; background: rgba(212, 149, 42, 0.05); }

/* Navbar scrolled state */
.navbar-scrolled {
  background: rgba(13, 13, 13, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(212, 149, 42, 0.08);
}

/* ===== HERO STYLES ===== */
.hero-gradient {
  background: radial-gradient(ellipse at 20% 50%, rgba(212, 149, 42, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(179, 115, 33, 0.1) 0%, transparent 50%);
}

.grid-pattern {
  background-image: linear-gradient(rgba(212, 149, 42, 0.1) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(212, 149, 42, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
}

.clip-diagonal { clip-path: polygon(40% 0, 100% 0, 100% 100%, 20% 100%); }

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
.floating-animation { animation: float 6s ease-in-out infinite; }

@keyframes spin-very-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin-very-slow { animation: spin-very-slow 20s linear infinite; }

@keyframes pulse-slow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}
.animate-pulse-slow { animation: pulse-slow 4s ease-in-out infinite; }

/* Scroll animations */
[data-animate] {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-animate="fade-up"] { transform: translateY(40px); }
[data-animate="fade-down"] { transform: translateY(-40px); }
[data-animate="fade-right"] { transform: translateX(-40px); }
[data-animate="fade-left"] { transform: translateX(40px); }
[data-animate].animated {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* ===== PROJECT FILTER ===== */
.project-filter {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #888;
  background: transparent;
  border: 1px solid rgba(136, 136, 136, 0.2);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.project-filter:hover { color: #e5b036; border-color: rgba(229, 176, 54, 0.3); }
.project-filter.active {
  color: #0d0d0d;
  background: linear-gradient(to right, #d4952a, #e5b036);
  border-color: transparent;
  font-weight: 600;
}

.project-item { transition: opacity 0.5s ease, transform 0.5s ease; }
.project-item.hidden-project { opacity: 0; transform: scale(0.8); position: absolute; pointer-events: none; }

/* ===== STAT CARD ===== */
.stat-card {
  background: rgba(26, 26, 26, 0.5);
  border: 1px solid rgba(79, 79, 79, 0.3);
  transition: all 0.4s ease;
}
.stat-card:hover {
  border-color: rgba(212, 149, 42, 0.2);
  background: rgba(26, 26, 26, 0.8);
  transform: translateY(-4px);
}

/* ===== PARTICLES ===== */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: particle-float linear infinite;
}
@keyframes particle-float {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  10% { opacity: 1; }
  90% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-100vh) scale(1); }
}

/* ===== FORM STATUS ===== */
.form-success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); color: #10b981; }
.form-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #ef4444; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-gradient {
    background: radial-gradient(ellipse at 50% 50%, rgba(212, 149, 42, 0.12) 0%, transparent 70%);
  }
}

/* ===== CURSOR GLOW (desktop only) ===== */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 149, 42, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

/* Text gradient shimmer */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.text-shimmer {
  background: linear-gradient(90deg, #d4952a, #f2db94, #e5b036, #d4952a);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* ===== CINEMATIC HERO SHOWCASE ===== */
.hero-showcase {
  position: relative;
  width: 540px;
  height: 580px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(212,149,42,0.15),
    0 25px 80px -12px rgba(0,0,0,0.8),
    0 0 60px rgba(212,149,42,0.06);
}

.showcase-slides {
  position: absolute;
  inset: 0;
}

.showcase-slide {
  position: absolute;
  inset: -20px; /* extra space for parallax movement */
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
  transform: translate(var(--parallax-x, 0px), var(--parallax-y, 0px));
}

.showcase-slide.active {
  opacity: 1;
}

/* ===== KEN BURNS VARIANTS ===== */
.showcase-slide.kb-zoom-in-left {
  animation: kb-zoom-in-left 7s ease-out forwards;
}
.showcase-slide.kb-zoom-in-right {
  animation: kb-zoom-in-right 7s ease-out forwards;
}
.showcase-slide.kb-zoom-out-center {
  animation: kb-zoom-out-center 7s ease-out forwards;
}
.showcase-slide.kb-pan-left {
  animation: kb-pan-left 7s ease-out forwards;
}

@keyframes kb-zoom-in-left {
  0%   { transform: scale(1) translate(var(--parallax-x, 0px), var(--parallax-y, 0px)); }
  100% { transform: scale(1.12) translate(calc(-10px + var(--parallax-x, 0px)), calc(5px + var(--parallax-y, 0px))); }
}
@keyframes kb-zoom-in-right {
  0%   { transform: scale(1) translate(var(--parallax-x, 0px), var(--parallax-y, 0px)); }
  100% { transform: scale(1.1) translate(calc(10px + var(--parallax-x, 0px)), calc(-5px + var(--parallax-y, 0px))); }
}
@keyframes kb-zoom-out-center {
  0%   { transform: scale(1.15) translate(var(--parallax-x, 0px), var(--parallax-y, 0px)); }
  100% { transform: scale(1) translate(var(--parallax-x, 0px), var(--parallax-y, 0px)); }
}
@keyframes kb-pan-left {
  0%   { transform: scale(1.08) translate(calc(15px + var(--parallax-x, 0px)), var(--parallax-y, 0px)); }
  100% { transform: scale(1.08) translate(calc(-15px + var(--parallax-x, 0px)), var(--parallax-y, 0px)); }
}

/* ===== OVERLAY GRADIENTS ===== */
.showcase-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(5,5,5,0.4) 0%, transparent 50%),
    linear-gradient(to top, rgba(5,5,5,0.6) 0%, transparent 35%),
    linear-gradient(to right, rgba(5,5,5,0.3) 0%, transparent 25%);
  z-index: 2;
  pointer-events: none;
}

/* ===== GOLDEN BOKEH PARTICLES ===== */
.showcase-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.bokeh-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(0.5px);
}

@keyframes bokeh-float {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) translateX(0);
  }
  15% {
    opacity: 1;
  }
  50% {
    transform: translateY(-30px) translateX(var(--drift, 10px));
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(15px) translateX(calc(var(--drift, 10px) * -0.5));
  }
}

/* ===== FLOATING INFO CARDS ===== */
.showcase-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212,149,42,0.15);
  border-radius: 24px;
  font-size: 11px;
  font-weight: 500;
  color: #d1d1d1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.15s ease-out;
  pointer-events: none;
}

.showcase-card.visible {
  opacity: 1;
}

.showcase-card-1 {
  top: 10%;
  right: 5%;
}
.showcase-card-2 {
  bottom: 25%;
  left: -2%;
}
.showcase-card-3 {
  top: 48%;
  right: -3%;
}

/* ===== PROGRESS DOTS ===== */
.showcase-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.showcase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(212,149,42,0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 0;
}

.showcase-dot:hover {
  background: rgba(212,149,42,0.3);
  border-color: rgba(212,149,42,0.8);
}

.showcase-dot.active {
  background: #d4952a;
  border-color: #d4952a;
  width: 24px;
  border-radius: 4px;
}

/* ===== DECORATIVE BORDER ===== */
.showcase-border {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212,149,42,0.08);
  border-radius: 16px;
  z-index: 6;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
  .hero-showcase {
    width: 460px;
    height: 500px;
  }
}
@media (max-width: 1024px) {
  .hero-showcase {
    display: none;
  }
}
