/* ==============================================================
   ROOTZAP INFRA PVT. LTD. — LUXURY MATTE BLACK & SEAWEED GREEN
   Where Quality Meets Commitment
   ============================================================== */

:root {
  --bg-matte: #0A0C0B;
  --bg-surface: #0E1210;
  --bg-seaweed: #131A15;
  --bg-seaweed-dark: #0A0F0C;
  --seaweed-muted: #1E2B23;
  --seaweed-accent: #2A4034;
  --seaweed-light: #3D5A4A;
  --brass-gold: #C5A059;
  --brass-light: #D8B979;
  --text-linen: #E8ECE9;
  --text-muted: #8E9C93;
  --border-line: rgba(255, 255, 255, 0.08);
  --border-seaweed: rgba(45, 74, 58, 0.4);
}

@keyframes subtle-zoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.animate-subtle-zoom {
  animation: subtle-zoom 22s ease-in-out infinite;
}

/* --------------------------------------------------
   INTRO WHITE SCREEN TEXTURES & SCANLINES (PRESERVED)
   -------------------------------------------------- */
.intro-grid-pattern {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, #000000 1px, transparent 1px),
    linear-gradient(to bottom, #000000 1px, transparent 1px);
}

.intro-scanline {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(0, 0, 0, 0.03) 50%,
    rgba(255, 255, 255, 0)
  );
  background-size: 100% 8px;
  animation: scanline 8s linear infinite;
}

@keyframes scanline {
  0% { transform: translateY(0); }
  100% { transform: translateY(100vh); }
}

/* --------------------------------------------------
   THE GLITCH EFFECT ("lets build you a home")
   Chromatic aberration, horizontal slices, jitter
   -------------------------------------------------- */
.glitch {
  position: relative;
  display: inline-block;
  color: #0c0f17;
  letter-spacing: -0.03em;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
}

.glitch::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #0c0f17;
  background: #ffffff;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  text-shadow: -2px 0 0 #00ffff, 0 0 8px rgba(0, 255, 255, 0.4);
}

.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #0c0f17;
  background: #ffffff;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  text-shadow: 2px 0 0 #ff0055, 0 0 8px rgba(255, 0, 85, 0.4);
}

.glitch-active::before {
  animation: glitch-anim-1 2.2s infinite linear alternate-reverse;
}

.glitch-active::after {
  animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}

.glitch-active {
  animation: text-flicker 0.4s infinite;
}

@keyframes glitch-anim-1 {
  0% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, -1px); }
  10% { clip-path: inset(80% 0 5% 0); transform: translate(2px, 1px); }
  20% { clip-path: inset(10% 0 75% 0); transform: translate(-2px, 2px); }
  30% { clip-path: inset(45% 0 35% 0); transform: translate(3px, -1px); }
  40% { clip-path: inset(65% 0 15% 0); transform: translate(-1px, 1px); }
  50% { clip-path: inset(15% 0 65% 0); transform: translate(2px, -2px); }
  60% { clip-path: inset(50% 0 30% 0); transform: translate(-3px, 1px); }
  70% { clip-path: inset(5% 0 85% 0); transform: translate(1px, -1px); }
  80% { clip-path: inset(70% 0 10% 0); transform: translate(-2px, 2px); }
  90% { clip-path: inset(30% 0 55% 0); transform: translate(3px, -2px); }
  100% { clip-path: inset(25% 0 60% 0); transform: translate(-1px, 1px); }
}

@keyframes glitch-anim-2 {
  0% { clip-path: inset(65% 0 15% 0); transform: translate(3px, 1px); }
  15% { clip-path: inset(10% 0 80% 0); transform: translate(-2px, -1px); }
  30% { clip-path: inset(40% 0 45% 0); transform: translate(2px, 2px); }
  45% { clip-path: inset(85% 0 5% 0); transform: translate(-3px, -2px); }
  60% { clip-path: inset(20% 0 65% 0); transform: translate(1px, 1px); }
  75% { clip-path: inset(55% 0 25% 0); transform: translate(-2px, 2px); }
  90% { clip-path: inset(5% 0 75% 0); transform: translate(3px, -1px); }
  100% { clip-path: inset(50% 0 35% 0); transform: translate(-1px, -2px); }
}

@keyframes text-flicker {
  0%, 100% { opacity: 1; }
  41.99% { opacity: 1; }
  42% { opacity: 0.8; }
  43% { opacity: 1; }
  48% { opacity: 0.9; }
  49% { opacity: 1; }
}

.curtain-slide-up {
  transform: translateY(-100%) !important;
  transition: transform 1.1s cubic-bezier(0.77, 0, 0.175, 1) !important;
}

/* --------------------------------------------------
   CUSTOM RANGE SLIDERS (CRISP BRASS / MATTE)
   -------------------------------------------------- */
#plot-size-slider::-webkit-slider-thumb,
#buy-loan-amt::-webkit-slider-thumb,
#buy-rate::-webkit-slider-thumb,
#buy-tenure::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 0;
  background: #C5A059;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
  border: 1px solid #ffffff;
}

#plot-size-slider::-moz-range-thumb {
  height: 16px;
  width: 16px;
  border-radius: 0;
  background: #C5A059;
  cursor: pointer;
  border: 1px solid #ffffff;
}

/* --------------------------------------------------
   CUSTOM SCROLLBAR
   -------------------------------------------------- */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #0A0C0B;
}

::-webkit-scrollbar-thumb {
  background: #1E2B23;
}

::-webkit-scrollbar-thumb:hover {
  background: #C5A059;
}


/* ==============================================================
   PAGE TRANSITION OVERLAY (MATTE BLACK & DEEP SEAWEED)
   ============================================================== */
#page-transition-curtain {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background-color: #080D0A;
  background-image: 
    linear-gradient(rgba(197, 160, 89, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 160, 89, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translateY(100%);
  border-top: 1px solid rgba(197, 160, 89, 0.7);
  box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.95), 0 -2px 25px rgba(197, 160, 89, 0.2);
  transition: transform 0.75s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

#page-transition-curtain::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  width: 20px;
  height: 20px;
  border-top: 1px solid rgba(197, 160, 89, 0.4);
  border-left: 1px solid rgba(197, 160, 89, 0.4);
  pointer-events: none;
}

#page-transition-curtain::after {
  content: "";
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 20px;
  height: 20px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.4);
  border-right: 1px solid rgba(197, 160, 89, 0.4);
  pointer-events: none;
}

#page-transition-curtain.curtain-in {
  pointer-events: all !important;
  transform: translateY(0%) !important;
}

#page-transition-curtain.curtain-out {
  pointer-events: none !important;
  transform: translateY(-100%) !important;
}

#page-transition-curtain.curtain-reset {
  transition: none !important;
  transform: translateY(100%) !important;
}

.transition-progress-bar {
  width: 220px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.transition-progress-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 45%;
  background: linear-gradient(90deg, transparent, #C5A059, #D8B979, transparent);
  animation: transitionSlide 1.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes transitionSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(320%); }
}

.page-enter-fade {
  animation: pageContentEnter 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageContentEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================================================
   LUXURY SCROLL REVEALS & EDITORIAL IMAGE ANIMATIONS
   "Loads as we go" with deliberate architectural physics
   ============================================================== */

/* Base content reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(3px);
  transition: 
    opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.95s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Stagger delays for sibling items */
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }
.reveal-delay-5 { transition-delay: 0.60s; }

/* --------------------------------------------------
   SIGNATURE LUXURY IMAGE REVEAL (.reveal-img)
   Architectural veil wipe + scale deceleration
   -------------------------------------------------- */
.reveal-img {
  position: relative;
  overflow: hidden;
  background-color: #0E1410;
}

.reveal-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  filter: contrast(105%) brightness(0.8);
  opacity: 0;
  transition: 
    transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.8s ease;
  will-change: transform, filter, opacity;
}

/* The architectural shimmer veil */
.reveal-img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, #0A0F0C 0%, #131A15 50%, #1E2B23 100%);
  transform: translateY(0%);
  transition: transform 1.05s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
  pointer-events: none;
}

/* Thin brass hairline trailing the veil */
.reveal-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #C5A059, transparent);
  z-index: 3;
  transform: translateY(0%);
  transition: transform 1.05s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
  pointer-events: none;
}

.reveal-img.is-revealed::before {
  transform: translateY(-101%);
}

.reveal-img.is-revealed::after {
  transform: translateY(-101%);
}

.reveal-img.is-revealed img {
  opacity: 1;
  transform: scale(1);
  filter: contrast(100%) brightness(1);
}

/* Gentle hover micro-zoom on revealed images */
.reveal-img.is-revealed:hover img {
  transform: scale(1.035);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==============================================================
   FLEXIBLE ACCORDION EXPANSION (HOVER FOCUS & COMPRESSION)
   Hovering one panel expands it while others gracefully compress
   ============================================================== */
.luxury-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  transition: all 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .luxury-accordion {
    flex-direction: row;
    height: 480px;
  }
}

.accordion-panel {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 140px;
  background-color: #0E1410;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 
    flex 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    min-height 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s ease,
    opacity 0.6s ease,
    border-color 0.4s ease;
  will-change: flex, min-height, filter;
  cursor: pointer;
}

.accordion-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(105%) brightness(0.75);
  transform: scale(1.05);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

/* Shading gradient for legibility */
.accordion-panel .panel-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 12, 11, 0.95) 0%, rgba(10, 12, 11, 0.4) 50%, rgba(10, 12, 11, 0.1) 100%);
  pointer-events: none;
}

/* Active / Focused expansion */
@media (min-width: 768px) {
  .luxury-accordion:hover .accordion-panel:not(:hover) {
    filter: brightness(0.55) grayscale(30%);
    opacity: 0.65;
  }

  .luxury-accordion .accordion-panel:hover {
    flex: 3.2;
    border-color: rgba(197, 160, 89, 0.5);
    filter: brightness(1) grayscale(0%);
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .luxury-accordion .accordion-panel:hover,
  .luxury-accordion .accordion-panel:focus-within {
    min-height: 280px;
    border-color: rgba(197, 160, 89, 0.5);
  }
}

.accordion-panel:hover img {
  transform: scale(1.0);
  filter: contrast(100%) brightness(0.9);
}

/* Hidden details that slide up when expanded */
.accordion-panel .panel-details {
  opacity: 0;
  max-height: 0;
  transform: translateY(12px);
  transition: 
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.accordion-panel:hover .panel-details,
.accordion-panel:focus-within .panel-details {
  opacity: 1;
  max-height: 160px;
  transform: translateY(0);
  transition-delay: 0.15s;
}

/* ==============================================================
   SET A: MINIMALIST TEXT LINKS & HAIRLINE ANIMATION
   ============================================================== */
.luxury-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C5A059;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.luxury-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: #C5A059;
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-link:hover {
  color: #ffffff;
}

.luxury-link:hover::after {
  width: 100%;
}

.luxury-link .luxury-arrow {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-link:hover .luxury-arrow {
  transform: translateX(4px);
}

/* ==============================================================
   TACTILE FILM GRAIN TEXTURE (NON-AI ARTISANAL FEEL)
   ============================================================== */
.luxury-film-grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99995;
  opacity: 0.024;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ==============================================================
   CUSTOM MINIMAL CURSOR RING
   ============================================================== */
#luxury-cursor-dot,
#luxury-cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transition: opacity 0.3s ease;
}

#luxury-cursor-dot {
  width: 4px;
  height: 4px;
  background-color: #C5A059;
}

#luxury-cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(197, 160, 89, 0.4);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

body.cursor-hover #luxury-cursor-ring {
  width: 52px;
  height: 52px;
  border-color: rgba(197, 160, 89, 0.85);
  background-color: rgba(197, 160, 89, 0.05);
}

@media (pointer: coarse) {
  #luxury-cursor-dot,
  #luxury-cursor-ring {
    display: none !important;
  }
}

/* Blueprint CAD Crosshair */
.crosshair-corner {
  position: relative;
}

.crosshair-corner::before {
  content: "+";
  position: absolute;
  top: -8px;
  left: -5px;
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  color: rgba(197, 160, 89, 0.45);
  line-height: 1;
  pointer-events: none;
}

/* ==============================================================
   ARCHITECTURAL INDEX TABLE & CURSOR-FOLLOWING PREVIEW
   ============================================================== */
.index-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.index-row:hover {
  background-color: rgba(197, 160, 89, 0.04);
  border-bottom-color: rgba(197, 160, 89, 0.4);
}

#floating-preview {
  position: fixed;
  width: 320px;
  height: 220px;
  pointer-events: none;
  z-index: 99990;
  overflow: hidden;
  border: 1px solid rgba(197, 160, 89, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  background-color: #0E1410;
}

#floating-preview.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

#floating-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==============================================================
   ROTATING ARCHITECTURAL WATERMARK SEAL
   ============================================================== */
.rotating-seal {
  animation: rotateSeal 28s linear infinite;
}

@keyframes rotateSeal {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
