/*
Theme Name: Ranish Infra Ventures
Theme URI: https://ranishinfra.com
Author: Ranish Infra Ventures P. Ltd.
Author URI: https://ranishinfra.com
Description: Ultra-premium cinematic WordPress theme for commercial real estate advisory. Features GSAP animations, Three.js 3D hero, Lenis smooth scrolling, horizontal property showcases, and luxury design system.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ranish-infra
Tags: real-estate, luxury, cinematic, one-page, responsive, custom-background, custom-logo, custom-menu
*/

:root {
  --black: #0A0A0A;
  --gold: #C9A646;
  --gold-light: #E8D5A3;
  --gold-dark: #8B6914;
  --white: #FFFFFF;
  --glass: rgba(10,10,10,0.6);
}

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

html, body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; }

/* ===== LOADER ===== */
.loader {
  position: fixed; inset: 0; background: var(--black); z-index: 99999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.loader-logo-wrap {
  position: relative; width: 100px; height: 100px; margin-bottom: 32px;
}
.loader-logo-wrap img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(201,166,70,0.4));
}
.loader-shimmer {
  position: absolute; inset: -20px;
  background: radial-gradient(circle, rgba(201,166,70,0.15) 0%, transparent 70%);
  animation: shimmerPulse 2s ease-in-out infinite;
}
@keyframes shimmerPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
}
.loader-text {
  font-family: 'Playfair Display', serif; font-size: 1.5rem;
  color: var(--gold); letter-spacing: 0.25em; text-transform: uppercase;
}
.loader-sub {
  font-family: 'Inter', sans-serif; font-size: 0.65rem;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-top: 12px;
}
.loader-bar {
  width: 200px; height: 1px; background: rgba(201,166,70,0.2);
  margin-top: 32px; position: relative; overflow: hidden;
}
.loader-bar-fill {
  position: absolute; left: 0; top: 0; height: 100%; width: 0%;
  background: var(--gold); box-shadow: 0 0 10px var(--gold);
}

/* ===== CURSOR TRAIL ===== */
.cursor-trail {
  position: fixed; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
  pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}
.cursor-main {
  position: fixed; width: 40px; height: 40px;
  border: 1px solid rgba(201,166,70,0.5); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}
.cursor-main.hover {
  width: 64px; height: 64px;
  border-color: var(--gold);
  background: rgba(201,166,70,0.08);
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  opacity: 0; transform: translateY(-20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav.glass {
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(201,166,70,0.08);
}
.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
}
.nav-logo img { width: 36px; height: 36px; object-fit: contain; }
.nav-logo span {
  font-family: 'Playfair Display', serif; font-size: 1rem;
  color: var(--white); letter-spacing: 0.08em;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); text-decoration: none;
  transition: color 0.4s ease; cursor: none; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

/* ===== HERO ===== */
.hero {
  position: relative; width: 100%; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0; z-index: 1;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.5) 50%, rgba(10,10,10,0.85) 100%);
}
.hero-content {
  position: relative; z-index: 3;
  text-align: center; padding: 0 24px; max-width: 1100px;
}
.hero-tag {
  font-size: 0.7rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 2rem;
  opacity: 0; transform: translateY(20px);
}
.hero-headline {
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 500; line-height: 1.05;
  letter-spacing: -0.02em; color: var(--white);
}
.hero-headline .line { display: block; overflow: hidden; }
.hero-headline .line-inner { display: block; transform: translateY(110%); }
.hero-subline {
  font-family: 'Inter', sans-serif; font-size: 1rem;
  line-height: 1.7; color: rgba(255,255,255,0.6);
  max-width: 560px; margin: 2rem auto 0;
  opacity: 0; transform: translateY(20px);
}
.hero-buttons {
  display: flex; gap: 1.25rem; justify-content: center;
  margin-top: 3rem; opacity: 0; transform: translateY(20px);
}

/* ===== MAGNETIC BUTTON ===== */
.magnetic-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2.5rem; font-family: 'Inter', sans-serif;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; text-decoration: none; cursor: none;
  overflow: hidden; transition: color 0.5s ease, border-color 0.5s ease;
  border: 1px solid rgba(255,255,255,0.25); background: transparent; color: var(--white);
}
.magnetic-btn::before {
  content: ''; position: absolute; inset: 0; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1); z-index: -1;
}
.magnetic-btn:hover::before { transform: scaleX(1); transform-origin: left; }
.magnetic-btn:hover { border-color: var(--gold); color: var(--black); }
.magnetic-btn.gold {
  border-color: var(--gold); color: var(--gold);
  box-shadow: 0 0 20px rgba(201,166,70,0.15);
}
.magnetic-btn.gold:hover { color: var(--black); box-shadow: 0 0 40px rgba(201,166,70,0.3); }

/* ===== STORYTELLING ===== */
.story-section {
  position: relative; width: 100%; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--black);
}
.story-text { text-align: center; padding: 0 24px; }
.story-line {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4.5vw, 4rem);
  font-weight: 500; line-height: 1.25; color: var(--white);
  opacity: 0.12; transform: translateY(50px);
}
.story-line .gold-word { color: var(--gold); }

/* ===== HORIZONTAL SHOWCASE ===== */
.horizontal-section {
  position: relative; width: 100%; height: 100vh;
  overflow: hidden; background: var(--black);
}
.horizontal-wrapper { display: flex; width: fit-content; height: 100%; }
.horizontal-panel {
  position: relative; width: 100vw; height: 100vh;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.panel-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.panel-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.75) 100%);
}
.panel-content {
  position: relative; z-index: 2; text-align: center; padding: 0 24px; max-width: 900px;
}
.panel-tag {
  font-size: 0.7rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
}
.panel-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 500; line-height: 1.1; color: var(--white); margin-bottom: 1.25rem;
}
.panel-desc {
  font-size: 0.95rem; line-height: 1.75;
  color: rgba(255,255,255,0.65); max-width: 580px; margin: 0 auto 2rem;
}
.panel-stats {
  display: flex; gap: 3rem; justify-content: center; margin-bottom: 2.5rem;
}
.panel-stat { text-align: center; }
.panel-stat-value {
  font-family: 'Playfair Display', serif; font-size: 2rem;
  color: var(--gold); font-weight: 600;
}
.panel-stat-label {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-top: 0.25rem;
}

/* ===== STRATEGY MAP ===== */
.strategy-section {
  position: relative; width: 100%; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--black);
}
.strategy-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0.4;
}
.strategy-overlay { position: absolute; inset: 0; background: rgba(10,10,10,0.7); }
.strategy-content {
  position: relative; z-index: 2; text-align: center; padding: 6rem 24px;
  max-width: 1200px; width: 100%;
}
.strategy-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 4rem); font-weight: 500;
  line-height: 1.1; color: var(--white); margin-bottom: 1rem;
}
.strategy-sub {
  font-size: 0.95rem; line-height: 1.7;
  color: rgba(255,255,255,0.6); max-width: 600px; margin: 0 auto 4rem;
}
.strategy-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.strategy-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,166,70,0.1);
  backdrop-filter: blur(10px);
  padding: 2.5rem 2rem; text-align: center;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.strategy-card:hover {
  border-color: rgba(201,166,70,0.3);
  background: rgba(201,166,70,0.04);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(201,166,70,0.08);
}
.strategy-icon {
  width: 48px; height: 48px; margin: 0 auto 1.25rem;
  border: 1px solid rgba(201,166,70,0.3); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: var(--gold);
}
.strategy-card h3 {
  font-family: 'Playfair Display', serif; font-size: 1.25rem;
  color: var(--white); margin-bottom: 0.5rem;
}
.strategy-card p {
  font-size: 0.8rem; line-height: 1.6;
  color: rgba(255,255,255,0.5);
}

/* ===== MARKET INTELLIGENCE ===== */
.intel-section {
  position: relative; width: 100%; padding: 8rem 24px;
  background: var(--black); text-align: center;
}
.intel-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 500;
  color: var(--white); margin-bottom: 1rem;
}
.intel-sub {
  font-size: 0.9rem; color: rgba(255,255,255,0.5);
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 4rem;
}
.intel-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  max-width: 1000px; margin: 0 auto;
}
.intel-item {
  padding: 2rem; border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.5s ease;
}
.intel-item:hover {
  border-color: rgba(201,166,70,0.2);
  background: rgba(201,166,70,0.02);
}
.intel-number {
  font-family: 'Playfair Display', serif; font-size: 3rem;
  font-weight: 600; color: var(--gold); line-height: 1;
}
.intel-label {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-top: 0.75rem;
}

/* ===== PARALLAX ===== */
.parallax-section {
  position: relative; width: 100%; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--black);
}
.parallax-bg {
  position: absolute; inset: -15%;
  background-size: cover; background-position: center;
  will-change: transform;
}
.parallax-overlay { position: absolute; inset: 0; background: rgba(10,10,10,0.6); }
.parallax-content { position: relative; z-index: 2; text-align: center; padding: 0 24px; }
.parallax-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem); font-weight: 500;
  line-height: 1.1; color: var(--white); margin-bottom: 1.5rem;
}
.parallax-sub {
  font-size: 1rem; line-height: 1.7;
  color: rgba(255,255,255,0.65); max-width: 600px; margin: 0 auto;
}

/* ===== FINAL CTA ===== */
.cta-section {
  position: relative; width: 100%; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--black); overflow: hidden;
}
.cta-glow {
  position: absolute; width: 600px; height: 600px;
  border-radius: 50%; background: radial-gradient(circle, rgba(201,166,70,0.08) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-content { text-align: center; padding: 0 24px; max-width: 900px; position: relative; z-index: 2; }
.cta-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 5.5rem); font-weight: 500;
  line-height: 1.05; color: var(--white); margin-bottom: 1.5rem;
}
.cta-sub {
  font-size: 1rem; line-height: 1.7;
  color: rgba(255,255,255,0.6); max-width: 500px; margin: 0 auto 3rem;
}
.cta-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 1.25rem 4rem; font-family: 'Inter', sans-serif;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.25em;
  text-transform: uppercase; text-decoration: none; cursor: none;
  overflow: hidden; color: var(--gold);
  border: 1px solid var(--gold); background: transparent;
  transition: color 0.6s ease, box-shadow 0.6s ease;
  box-shadow: 0 0 30px rgba(201,166,70,0.1);
}
.cta-btn::before {
  content: ''; position: absolute; inset: 0; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1); z-index: -1;
}
.cta-btn:hover::before { transform: scaleX(1); transform-origin: left; }
.cta-btn:hover { color: var(--black); box-shadow: 0 0 60px rgba(201,166,70,0.25); }

/* ===== STICKY WHATSAPP ===== */
.sticky-wa {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: none; text-decoration: none;
}
.sticky-wa:hover {
  transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.5);
}
.sticky-wa svg { width: 28px; height: 28px; fill: white; }

/* ===== LEAD FORM MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,10,10,0.9);
  backdrop-filter: blur(10px); z-index: 10001;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: rgba(20,20,20,0.95);
  border: 1px solid rgba(201,166,70,0.15);
  padding: 3rem; max-width: 480px; width: 90%;
  position: relative;
}
.modal-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 32px; height: 32px; border: 1px solid rgba(255,255,255,0.1);
  background: transparent; color: rgba(255,255,255,0.6);
  font-size: 1.25rem; cursor: none; display: flex;
  align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.modal-close:hover { border-color: var(--gold); color: var(--gold); }
.modal h3 {
  font-family: 'Playfair Display', serif; font-size: 1.5rem;
  color: var(--white); margin-bottom: 0.5rem;
}
.modal p {
  font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 2rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.65rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.875rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white); font-family: 'Inter', sans-serif;
  font-size: 0.85rem; outline: none;
  transition: border-color 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%; padding: 1rem;
  background: var(--gold); color: var(--black);
  border: none; font-family: 'Inter', sans-serif;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  cursor: none; transition: all 0.4s ease;
}
.form-submit:hover {
  background: var(--gold-light); box-shadow: 0 0 30px rgba(201,166,70,0.3);
}

/* ===== MOTION BLUR OVERLAY ===== */
.motion-blur {
  position: fixed; inset: 0; z-index: 9998;
  background: var(--black); opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .strategy-grid { grid-template-columns: 1fr; }
  .intel-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-stats { flex-direction: column; gap: 1.5rem; }
  .sticky-wa { bottom: 1rem; right: 1rem; }
}
