/* Raut Group - Premium Real Estate Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --dark-navy: #0d1b2a;
  --deep-blue: #1b263b;
  --midnight: #15202e;
  --gold: #d4a843;
  --gold-hover: #c49a38;
  --gold-light: rgba(212, 168, 67, 0.12);
  --text: #2d3436;
  --muted: #636e72;
  --bg: #ffffff;
  --light-bg: #f8f9fa;
  --border: #e9ecef;
  --success: #00b894;
  --ongoing: #0984e3;
  --radius: 12px;
  --transition: 0.3s ease;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 15px 35px rgba(212, 168, 67, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Pre-Header */
.top-bar {
  background: var(--dark-navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 0;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 101;
  position: relative;
}
.top-bar a { color: #fff; margin-left: 15px; }
.top-bar a:hover { color: var(--gold); }

/* Header */
.header {
  position: sticky; top: 0; left: 0; width: 100%; z-index: 100;
  background: #ffffff; padding: 14px 0; transition: var(--transition);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid var(--border);
}
.header.scrolled {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--dark-navy); letter-spacing: -0.5px; }
.logo span { color: var(--gold); }

.nav { display: flex; gap: 32px; align-items: center; }
.nav a { font-size: 0.95rem; font-weight: 600; color: var(--dark-navy); position: relative; }
.header.scrolled .nav a { color: var(--dark-navy); }
.nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--gold); transition: var(--transition);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a:hover, .nav a.active { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px; font-size: 0.95rem; font-weight: 600;
  border: none; cursor: pointer; transition: var(--transition); text-align: center;
}
.btn-gold { background: var(--gold); color: var(--dark-navy); }
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-dark { background: var(--dark-navy); color: #fff; }
.btn-dark:hover { background: var(--deep-blue); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border: 2px solid var(--dark-navy); color: var(--dark-navy); }
.btn-outline:hover { background: var(--dark-navy); color: #fff; transform: translateY(-2px); }

/* Mobile Menu Button */
.mobile-btn { display: none; background: none; border: none; cursor: pointer; z-index: 201; }
.mobile-btn span { display: block; width: 24px; height: 2px; background: #fff; margin: 6px 0; transition: var(--transition); }
.header.scrolled .mobile-btn span { background: var(--dark-navy); }

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 20px 80px; overflow: hidden;
  background: linear-gradient(135deg, var(--dark-navy), var(--deep-blue), var(--midnight));
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating Shapes */
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%;
  background: linear-gradient(to right, var(--gold), transparent);
  opacity: 0.1; filter: blur(60px); z-index: 1;
}
.hero::before { width: 400px; height: 400px; top: -100px; left: -100px; animation: float1 10s infinite alternate; }
.hero::after { width: 500px; height: 500px; bottom: -150px; right: -150px; animation: float2 12s infinite alternate; }
@keyframes float1 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(50px,50px) scale(1.1); } }
@keyframes float2 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-50px,-50px) scale(1.2); } }

.hero-content {
  position: relative; z-index: 2; color: #fff; max-width: 800px;
  background: rgba(255, 255, 255, 0.05); padding: 50px 40px;
  border-radius: 24px; backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; margin-bottom: 20px; line-height: 1.1; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.15rem; opacity: 0.9; margin: 0 auto 35px; max-width: 600px; font-weight: 300; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Section Utilities */
.section { padding: 100px 0; position: relative; }
.section-light { background: var(--light-bg); }
.section-title { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 700; color: var(--dark-navy); margin-bottom: 16px; position: relative; display: inline-block; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--gold); margin-top: 15px; border-radius: 2px; }
.text-center .section-title::after { margin-left: auto; margin-right: auto; }
.section-sub { color: var(--muted); margin-bottom: 50px; max-width: 600px; font-size: 1.05rem; }
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* Scroll Reveal Animations */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; will-change: opacity, transform; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Card Grid */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.card {
  background: var(--bg); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-sm); position: relative;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--gold-light); }
.card-img { height: 240px; position: relative; overflow: hidden; background: var(--midnight); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-img img { transform: scale(1.08); }
.card-body { padding: 25px; }
.card-body h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--dark-navy); font-weight: 600; }
.card-body p { font-size: 0.95rem; color: var(--muted); margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Badges */
.badge {
  position: absolute; top: 15px; left: 15px;
  padding: 6px 14px; border-radius: 50px; font-size: 0.75rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15); z-index: 2; backdrop-filter: blur(4px);
}
.badge-completed { background: rgba(0, 184, 148, 0.9); color: #fff; border: 1px solid var(--success); }
.badge-ongoing { background: rgba(9, 132, 227, 0.9); color: #fff; border: 1px solid var(--ongoing); }
.badge-upcoming { background: rgba(212, 168, 67, 0.9); color: var(--dark-navy); border: 1px solid var(--gold); }

.meta { font-size: 0.85rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.loc { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; display: flex; align-items: center; gap: 6px; }

/* Stats Section */
.stats-section {
  background: linear-gradient(to right, var(--dark-navy), var(--deep-blue));
  padding: 80px 0; color: #fff; position: relative; overflow: hidden;
}
.stats-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(212, 168, 67, 0.1) 0%, transparent 70%);
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; position: relative; z-index: 2; }
.stat-item { padding: 20px; }
.stat-number { font-size: 3rem; font-weight: 700; color: var(--gold); margin-bottom: 10px; display: block; line-height: 1; }
.stat-label { font-size: 1rem; color: rgba(255, 255, 255, 0.8); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* Why Choose Us Section */
.why-section .grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.why-card { text-align: center; padding: 40px 20px; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); transition: var(--transition); }
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold-light); }
.why-icon { width: 70px; height: 70px; margin: 0 auto 20px; background: var(--gold-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--gold); transition: var(--transition); }
.why-card:hover .why-icon { background: var(--gold); color: #fff; transform: rotateY(180deg); }
.why-card h4 { font-size: 1.2rem; margin-bottom: 10px; color: var(--dark-navy); }
.why-card p { color: var(--muted); font-size: 0.95rem; }

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, var(--dark-navy) 0%, var(--deep-blue) 100%);
  padding: 160px 0 80px; text-align: center; color: #fff; position: relative;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px; opacity: 0.3;
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin-bottom: 12px; }
.page-hero p { opacity: 0.85; font-size: 1.1rem; }
.breadcrumb { margin-top: 20px; font-size: 0.95rem; opacity: 0.7; }
.breadcrumb a { color: var(--gold); font-weight: 500; }
.breadcrumb a:hover { color: #fff; }

/* Project Detail */
.meta-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px; margin: 40px 0;
}
.meta-box {
  background: var(--light-bg); padding: 20px; border-radius: var(--radius); 
  border: 1px solid var(--border); transition: var(--transition);
}
.meta-box:hover { background: var(--bg); box-shadow: var(--shadow-sm); border-color: var(--gold-light); }
.meta-box label { display: block; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.5px; }
.meta-box strong { font-size: 1.1rem; color: var(--dark-navy); font-weight: 600; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; margin: 30px 0; }
.gallery img { 
  border-radius: 8px; height: 200px; width: 100%; object-fit: cover; 
  cursor: pointer; transition: var(--transition); 
}
.gallery img:hover { transform: scale(1.02); box-shadow: var(--shadow-md); opacity: 0.9; }

/* Contact Form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 8px; color: var(--dark-navy); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 18px; border: 1px solid var(--border); background: var(--light-bg);
  border-radius: var(--radius); font-size: 1rem; font-family: inherit; transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold); background: var(--bg); box-shadow: 0 0 0 4px var(--gold-light);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.info-item { display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start; }
.info-item .icon {
  width: 50px; height: 50px; background: var(--gold-light); color: var(--gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0; transition: var(--transition);
}
.info-item:hover .icon { background: var(--gold); color: #fff; transform: scale(1.1); }
.info-item div h4 { font-size: 1.1rem; color: var(--dark-navy); margin-bottom: 4px; }
.info-item div p { color: var(--muted); font-size: 0.95rem; }

/* Footer */
.footer { background: var(--dark-navy); color: rgba(255,255,255,0.7); padding: 80px 0 30px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 24px; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--gold); }
.footer p { font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; }
.footer a { display: block; margin-bottom: 12px; font-size: 0.95rem; color: rgba(255,255,255,0.7); transition: var(--transition); }
.footer a:hover { color: var(--gold); padding-left: 5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px;
  display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem;
}
.social-icons { display: flex; gap: 15px; }
.social-icons a { display: inline-flex; width: 36px; height: 36px; background: rgba(255,255,255,0.05); border-radius: 50%; align-items: center; justify-content: center; padding: 0; margin: 0; }
.social-icons a:hover { background: var(--gold); color: var(--dark-navy); padding-left: 0; }

/* WhatsApp Float */
.wa-float {
  position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
  background: #25d366; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: #fff; z-index: 99; transition: var(--transition);
}
.wa-float::before {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid #25d366; opacity: 0; animation: ripple 2s infinite ease-out;
}
@keyframes ripple {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 10px 25px rgba(37,211,102,0.4); }

/* Mobile Menu */
.mobile-menu {
  position: fixed; top: 0; right: -320px; width: 320px; height: 100vh;
  background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
  z-index: 200; padding: 100px 30px 40px; transition: 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.1); overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  display: block; padding: 16px 0; font-size: 1.15rem; font-weight: 500;
  border-bottom: 1px solid var(--border); color: var(--dark-navy); transition: var(--transition);
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--gold); padding-left: 10px; }
.overlay {
  position: fixed; inset: 0; background: rgba(13, 27, 42, 0.6); backdrop-filter: blur(3px);
  z-index: 150; opacity: 0; visibility: hidden; transition: 0.4s ease;
}
.overlay.open { opacity: 1; visibility: visible; }

/* Responsive */
@media (max-width: 1024px) {
  .nav { gap: 20px; }
  .grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .nav { display: none; }
  .mobile-btn { display: block; }
  .hero { padding: 100px 20px 60px; }
  .hero h1 { font-size: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 80px 0; }
  .meta-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
  .grid-3 { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
