:root {
  --black: #0a0a0a;
  --gold: #d4af37;
  --cream: #f5e9d0;
  --burg: #6d0f23;
  --glass: rgba(255, 255, 255, 0.06);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: radial-gradient(circle at 20% 0, #1c0a10, var(--black) 60%);
  color: var(--cream);
  font-family: "Segoe UI", Latha, "Noto Sans Tamil", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
#sparkles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
nav,
.hero,
.sec,
footer {
  position: relative;
  z-index: 1;
}
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gold);
  flex-wrap: wrap;
}
.logo {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}
#menu {
  display: flex;
  gap: 14px;
  list-style: none;
  flex-wrap: wrap;
}
#menu a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.85rem;
}
#menu a:hover {
  color: var(--gold);
}
#burger {
  display: none;
  background: none;
  border: 0;
  color: var(--gold);
  font-size: 1.6rem;
}
#lang {
  background: linear-gradient(135deg, var(--gold), #a67c00);
  border: 0;
  border-radius: 20px;
  padding: 6px 14px;
  font-weight: 700;
  cursor: pointer;
}
.hero {
  min-height: 90vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
  perspective: 900px;
}
.hero-in {
  max-width: 760px;
  animation: float 6s ease-in-out infinite;
  transform-style: preserve-3d;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.8rem);
  background: linear-gradient(90deg, var(--gold), #fff1b8, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
  margin: 14px 0;
}
.badge {
  display: inline-block;
  border: 1px solid var(--gold);
  padding: 4px 16px;
  border-radius: 20px;
  background: var(--burg);
}
@keyframes float {
  50% {
    transform: translateY(-12px) rotateX(4deg);
  }
}
.btn {
  display: inline-block;
  margin: 14px 6px 0;
  padding: 12px 26px;
  border-radius: 30px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, var(--gold), #a67c00);
  color: #000;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s;
}
.btn.ghost {
  background: transparent;
  color: var(--gold);
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.45);
}
.sec {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}
.sec h2 {
  color: var(--gold);
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  margin-bottom: 16px;
}
.sec h3 {
  color: var(--cream);
  margin: 30px 0 14px;
  border-left: 4px solid var(--burg);
  padding-left: 10px;
}
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: 1s;
}
.reveal.show {
  opacity: 1;
  transform: none;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  perspective: 1000px;
}
.card,
.tilt,
.owner {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.15s,
    box-shadow 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}
.card:hover {
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.25);
}
.card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, var(--burg), #000);
}
.card .b {
  padding: 12px;
}
.card h4 {
  color: var(--gold);
  font-size: 1rem;
  transform: translateZ(30px);
}
.card a {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 20px;
  background: #25d366;
  color: #000;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}
.areas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.areas span {
  padding: 8px 20px;
  color: var(--gold);
}
.owner {
  display: flex;
  gap: 20px;
  padding: 18px;
  align-items: center;
  max-width: 720px;
}
.owner img {
  width: 200px;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--burg);
}
details {
  background: var(--glass);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
}
summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 600;
}
iframe {
  width: 100%;
  height: 340px;
  border: 2px solid var(--gold);
  border-radius: 14px;
  margin: 14px 0;
}
.builder {
  display: grid;
  gap: 12px;
  max-width: 480px;
}
input,
select {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--gold);
  background: #111;
  color: var(--cream);
}
footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid var(--gold);
  color: var(--gold);
}
#floatWa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  text-decoration: none;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
}
@media (max-width: 860px) {
  #burger {
    display: block;
  }
  #menu {
    display: none;
    width: 100%;
    flex-direction: column;
  }
  #menu.open {
    display: flex;
  }
  .owner {
    flex-direction: column;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .card img {
    height: 120px;
  }
  input,select{
    width: 95%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
