:root {
  --bg-0: #0f0a0b;
  --bg-1: #1f0b10;
  --surface: rgba(36, 18, 20, 0.72);
  --surface-soft: rgba(255, 240, 214, 0.08);
  --surface-glass: rgba(255, 246, 232, 0.06);
  --primary: #f0ba57;
  --secondary: #c83f2e;
  --accent: #e35f3a;
  --text: #fff7ec;
  --muted: #ecd8bf;
  --border: rgba(255, 223, 184, 0.24);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.28);
  --shadow-glow: 0 0 0 1px rgba(240, 186, 87, 0.16), 0 16px 34px rgba(200, 63, 46, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Tiro Devanagari Hindi", serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(240, 186, 87, 0.2), transparent 42%),
    radial-gradient(circle at 84% 72%, rgba(200, 63, 46, 0.2), transparent 34%),
    linear-gradient(165deg, var(--bg-0) 0%, var(--bg-1) 46%, #110a0c 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    radial-gradient(circle at 10% 14%, rgba(240, 186, 87, 0.1), transparent 30%),
    radial-gradient(circle at 92% 86%, rgba(200, 63, 46, 0.12), transparent 28%);
}

body::after {
  opacity: 0.07;
  background-image: repeating-radial-gradient(
    circle at 0 0,
    rgba(255, 255, 255, 0.35) 0 1px,
    rgba(0, 0, 0, 0) 1px 3px
  );
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    180deg,
    rgba(32, 10, 14, 0.88),
    rgba(19, 8, 11, 0.7)
  );
  border-bottom: 1px solid rgba(255, 215, 164, 0.2);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
}

.logo {
  margin: 0;
  font-family: "Cinzel", serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 0 24px rgba(240, 186, 87, 0.24);
}

nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.96rem;
  position: relative;
  transition: color 0.25s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.18rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

nav a:hover {
  color: var(--primary);
}

nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  --hero-progress: 0;
  position: relative;
  min-height: 86vh;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.4)),
    url("assets/images/ravi-hero.jpeg") center 28%/cover no-repeat;
  isolation: isolate;
}

.overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(240, 186, 87, 0.22), transparent 46%),
    linear-gradient(180deg, rgba(200, 63, 46, 0.08), rgba(16, 8, 9, 0.58));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.03) 0 2px,
      rgba(0, 0, 0, 0) 2px 6px
    ),
    radial-gradient(circle at 20% 90%, rgba(240, 186, 87, 0.24), transparent 48%);
  mix-blend-mode: soft-light;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: min(760px, 88%);
  margin-top: -4vh;
  padding: 1.45rem 1.25rem;
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    rgba(24, 11, 13, 0.18),
    rgba(18, 9, 10, 0.1)
  );
  border: 1px solid rgba(255, 215, 164, 0.14);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(1.5px);
  opacity: var(--hero-progress);
  transform: translateY(calc((1 - var(--hero-progress)) * 20px));
  transition: opacity 0.25s ease, transform 0.3s ease;
}

.location {
  margin: 0;
  color: #ffd08b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
}

h1,
h2,
h3 {
  font-family: "Cinzel", serif;
}

h1 {
  margin: 0.8rem auto;
  max-width: 860px;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 1.2;
  text-shadow:
    0 4px 24px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(240, 186, 87, 0.18);
}

.subtitle {
  margin: 0 auto;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.6;
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.78rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-family: "Cinzel", serif;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--primary), #f6ca77);
  color: #311402;
  box-shadow: 0 10px 24px rgba(240, 186, 87, 0.3);
}

.btn-secondary {
  background: rgba(255, 246, 232, 0.06);
  color: var(--text);
  border-color: rgba(255, 232, 200, 0.24);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary:hover {
  box-shadow: 0 14px 28px rgba(240, 186, 87, 0.38);
}

.btn-secondary:hover {
  border-color: rgba(255, 210, 145, 0.5);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.section {
  padding: 4rem 0;
  position: relative;
}

.section h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  letter-spacing: 0.02em;
  text-shadow: 0 0 20px rgba(240, 186, 87, 0.16);
}

.section-accent {
  background:
    linear-gradient(180deg, rgba(200, 63, 46, 0.12), rgba(240, 186, 87, 0.04));
  border-top: 1px solid rgba(255, 215, 164, 0.11);
  border-bottom: 1px solid rgba(255, 215, 164, 0.11);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: linear-gradient(
    180deg,
    var(--surface-glass),
    rgba(255, 240, 214, 0.03)
  );
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 210, 145, 0.45);
  box-shadow: var(--shadow-glow);
}

.section-note {
  color: var(--muted);
  line-height: 1.6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-grid figure {
  position: relative;
  margin: 0;
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 280px;
  box-shadow: var(--shadow-soft);
}

.gallery-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(30, 7, 4, 0.46) 100%),
    radial-gradient(circle at 15% 15%, rgba(240, 186, 87, 0.22), transparent 42%);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.13) saturate(1.13) sepia(0.12) brightness(0.97);
  transform: scale(1.02);
  transition: transform 0.55s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.07);
}

.video-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.video-links a {
  color: #ffd8a1;
  text-decoration: none;
  border: 1px solid rgba(255, 232, 200, 0.22);
  border-radius: 999px;
  padding: 0.56rem 0.9rem;
  background: rgba(255, 246, 232, 0.04);
  transition: border-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.video-links a:hover {
  color: var(--primary);
  border-color: rgba(255, 206, 136, 0.52);
  transform: translateY(-2px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.2rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.contact-list li {
  margin-bottom: 0.7rem;
}

.contact-list a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.contact-list a:hover {
  color: var(--primary);
}

.contact-form {
  background: linear-gradient(180deg, var(--surface-glass), rgba(255, 240, 214, 0.03));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.contact-form label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 240, 214, 0.22);
  background: rgba(8, 4, 5, 0.35);
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(240, 186, 87, 0.7);
  box-shadow: 0 0 0 3px rgba(240, 186, 87, 0.18);
  outline: none;
}

.footer {
  border-top: 1px solid rgba(255, 232, 200, 0.15);
  padding: 1rem 0;
  text-align: center;
  color: var(--muted);
  background: rgba(9, 5, 7, 0.36);
}

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

@media (max-width: 900px) {
  .cards,
  .gallery-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    display: block;
    background:
      radial-gradient(circle at 50% 24%, rgba(240, 186, 87, 0.2), transparent 50%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(16, 8, 9, 0.34)),
      url("assets/images/ravi-hero.jpeg") center top / contain no-repeat,
      linear-gradient(180deg, #220c11 0%, #13080b 100%);
    background-size: auto, auto, 100% auto, auto;
    background-position: center top, center top, center top, center top;
    padding: clamp(240px, 37vh, 320px) 0 1.2rem;
    overflow: hidden;
  }

  .hero::before {
    display: none;
  }

  .overlay {
    display: none;
  }

  .hero-content {
    max-width: min(92%, 640px);
    margin-top: 0.4rem;
    border-radius: 18px;
    padding: 1.05rem 0.9rem;
    opacity: 1;
    transform: none;
    background: linear-gradient(
      180deg,
      rgba(24, 11, 13, 0.35),
      rgba(18, 9, 10, 0.2)
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
