:root {
  --g: #16a34a;
  --gd: #0b3d1e;
  --y: #facc15;
  --bg: #07140c;
  --card: #0f2a18;
  --t: #eafbea;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}
body {
  font-family: "Poppins", "Noto Sans Tamil", sans-serif;
  background: var(--bg);
  color: var(--t);
  line-height: 1.7;
  overflow-x: hidden;
}
body.ta {
  font-family: "Noto Sans Tamil", "Poppins", sans-serif;
}
#bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4%;
  background: rgba(7, 20, 12, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1d4d2c;
}
.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--y);
}
nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
nav a {
  font-size: 0.9rem;
  transition: 0.3s;
}
nav a:hover {
  color: var(--y);
  transform: translateY(-2px);
}
.lang button,
.maptype button {
  background: #12351f;
  color: var(--t);
  border: 1px solid var(--g);
  padding: 5px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
}
.lang button:first-child {
  border-radius: 20px 0 0 20px;
}
.lang button:last-child {
  border-radius: 0 20px 20px 0;
}
.lang .on,
.maptype .on {
  background: var(--g);
  color: #fff;
}
.burger {
  display: none;
  background: none;
  border: 0;
  color: var(--t);
  font-size: 1.7rem;
  cursor: pointer;
}
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 30px;
  padding: 110px 6% 50px;
}
.tag {
  color: var(--y);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.2;
  margin: 10px 0 16px;
  background: linear-gradient(90deg, #fff, var(--y), #4ade80);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--g), #15803d);
  color: #fff;
  padding: 12px 26px;
  border-radius: 30px;
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    0 8px 0 #0b5d2a,
    0 14px 25px rgba(0, 0, 0, 0.5);
  transition: 0.2s;
}
.btn:hover {
  transform: translateY(4px);
  box-shadow:
    0 4px 0 #0b5d2a,
    0 8px 15px rgba(0, 0, 0, 0.5);
}
.btn.alt {
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow:
    0 8px 0 #0a6b5c,
    0 14px 25px rgba(0, 0, 0, 0.5);
}
.scene {
  perspective: 900px;
  display: flex;
  justify-content: center;
}
.cube {
  width: 200px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  animation: spin 14s linear infinite;
}
.face {
  position: absolute;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: rgba(22, 163, 74, 0.25);
  border: 2px solid var(--y);
  backdrop-filter: blur(3px);
  box-shadow: inset 0 0 40px rgba(250, 204, 21, 0.3);
}
.f1 {
  transform: translateZ(100px);
}
.f2 {
  transform: rotateY(180deg) translateZ(100px);
}
.f3 {
  transform: rotateY(90deg) translateZ(100px);
}
.f4 {
  transform: rotateY(-90deg) translateZ(100px);
}
.f5 {
  transform: rotateX(90deg) translateZ(100px);
}
.f6 {
  transform: rotateX(-90deg) translateZ(100px);
}
@keyframes spin {
  to {
    transform: rotateX(360deg) rotateY(360deg);
  }
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 0 6% 40px;
  perspective: 1000px;
}
.stat {
  background: var(--card);
  border: 1px solid #1d4d2c;
  border-radius: 16px;
  padding: 22px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 2rem;
  color: var(--y);
}
.sec {
  padding: 70px 6%;
  perspective: 1200px;
}
.sec > h2 {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 34px;
  color: var(--y);
}
.sec > h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--g);
  margin: 10px auto 0;
  border-radius: 4px;
}
.tilt {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
}
.owner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: auto;
}
.photo {
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid var(--y);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}
.photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.owner h3 {
  font-size: 1.8rem;
}
.owner small {
  color: var(--y);
  font-size: 0.9rem;
}
.ticks {
  list-style: none;
  margin: 14px 0 20px;
}
.ticks li::before {
  content: "✔ ";
  color: var(--g);
}
.cat {
  margin-bottom: 50px;
}
.cat h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: #4ade80;
}
.cat > p {
  opacity: 0.8;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
  perspective: 1000px;
}
.item {
  background: var(--card);
  border: 1px solid #1d4d2c;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(40px) rotateX(-12deg);
  transition:
    opacity 0.6s,
    transform 0.6s;
}
.item.show {
  opacity: 1;
  transform: none;
}
.item img,
.item .ph {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: linear-gradient(135deg, #14532d, #0b3d1e);
}
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
}
.item h4 {
  padding: 12px;
  text-align: center;
  font-size: 0.95rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}
.card {
  background: var(--card);
  border: 1px solid #1d4d2c;
  border-radius: 18px;
  padding: 26px;
  text-align: center;
  display: block;
}
.ic {
  font-size: 2.4rem;
}
.card h4 {
  color: var(--y);
}
.faq {
  max-width: 800px;
  margin: auto;
}
details {
  background: var(--card);
  border: 1px solid #1d4d2c;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details p {
  margin-top: 8px;
  opacity: 0.9;
}
.form {
  max-width: 600px;
  margin: auto;
  display: grid;
  gap: 14px;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid #1d4d2c;
  background: #0c2214;
  color: var(--t);
  font: inherit;
}
.maptype {
  text-align: center;
  margin-bottom: 14px;
}
.maptype button {
  border-radius: 20px;
  margin: 0 4px;
}
.mapbox {
  max-width: 1000px;
  margin: auto;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid var(--g);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}
.mapbox iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}
.addr {
  text-align: center;
  margin-top: 14px;
}
footer {
  text-align: center;
  padding: 26px;
  background: #04100a;
  border-top: 1px solid #1d4d2c;
  font-size: 0.9rem;
}
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  z-index: 60;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  100% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
}
@media (max-width: 860px) {
  .burger {
    display: block;
  }
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #07140c;
    padding: 18px;
    gap: 14px;
    display: none;
    border-bottom: 1px solid #1d4d2c;
  }
  nav.open {
    display: flex;
  }
  .hero,
  .owner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero {
    padding-top: 100px;
  }
  .cube,
  .face {
    width: 150px;
    height: 150px;
  }
  .face {
    font-size: 3.5rem;
  }
  .f1 {
    transform: translateZ(75px);
  }
  .f2 {
    transform: rotateY(180deg) translateZ(75px);
  }
  .f3 {
    transform: rotateY(90deg) translateZ(75px);
  }
  .f4 {
    transform: rotateY(-90deg) translateZ(75px);
  }
  .f5 {
    transform: rotateX(90deg) translateZ(75px);
  }
  .f6 {
    transform: rotateX(-90deg) translateZ(75px);
  }
  .btns {
    justify-content: center;
  }
  .photo {
    max-width: 300px;
    margin: auto;
  }
  .mapbox iframe {
    height: 320px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}


.gotomap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #1a73e8;
  color: #ffffff;
  text-decoration: none;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.25);
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

/* Hover and click states */
.gotomap:hover {
  background-color: #1557b0;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(26, 115, 232, 0.35);
}

.gotomap:active {
  transform: translateY(0);
}

/* Optional location pin icon */
.gotomap::before {
  content: "📍";
  font-size: 16px;
}

/* Display English text by default */



