:root {
  --cream: #fff0cc;
  --cream-soft: #f7dfab;
  --saffron: #ff8a00;
  --saffron-deep: #d75700;
  --maroon: #68130d;
  --red: #9b1d12;
  --gold: #d7a84b;
  --brown: #2a130b;
  --ink: #130804;
  --muted: #7c4f2b;
  --line: rgba(157, 88, 20, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  line-height: 1.7;
}

img {
  width: 100%;
  display: block;
}

a,
button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

#royal-canvas {
  position: fixed;
  inset: 0;
  z-index: -4;
}

.aura {
  position: fixed;
  inset: 0;
  z-index: -5;
  /* removed saffron/orange overlays to neutralize home background */
  background: linear-gradient(135deg, #fff4d8, #efe6d0 70%, #130804 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.13;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.45) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(60,20,0,0.22) 0 1px, transparent 1px);
  background-size: 42px 42px, 58px 58px;
  mix-blend-mode: overlay;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 15;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 70px);
  background: rgba(255, 240, 204, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(61, 23, 4, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--maroon);
  text-decoration: none;
  font-family: "Cinzel", serif;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--cream);
  border-radius: 50%;
  background: radial-gradient(circle, var(--saffron), var(--maroon));
  box-shadow: 0 0 24px rgba(255, 138, 0, 0.38);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: rgba(42, 19, 11, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-links a:hover {
  color: var(--saffron-deep);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 138, 0, 0.12);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 6px auto;
  background: var(--maroon);
}

.section {
  position: relative;
  padding: 120px clamp(18px, 6vw, 92px);
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--cream);
  text-align: center;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(44, 12, 4, 0.24), rgba(19, 8, 4, 0.78)),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Raigad%20Fort%20Palace%20Ruins.jpg") center/cover;
  transform: scale(1.08);
  animation: heroBreath 14s ease-in-out infinite alternate;
  z-index: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* removed orange radial/highlight to reduce orange tint on hero background */
  background:
    linear-gradient(90deg, rgba(104, 19, 13, 0.9), rgba(19, 8, 4, 0.35)),
    linear-gradient(to top, var(--ink), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.flag-scene {
  position: absolute;
  top: 22%;
  right: clamp(20px, 6vw, 96px);
  z-index: 2;
  width: 230px;
  height: 230px;
  filter: drop-shadow(0 22px 32px rgba(0,0,0,0.35));
}

.flag-pole {
  position: absolute;
  left: 16px;
  top: 6px;
  width: 7px;
  height: 220px;
  background: linear-gradient(90deg, #5b2a12, #f4c76a, #6d3515);
  border-radius: 99px;
}

.maratha-flag {
  position: absolute;
  left: 22px;
  top: 14px;
  width: 178px;
  height: 110px;
  background: linear-gradient(135deg, #ff9d00, #d94d00);
  clip-path: polygon(0 0, 100% 0, 78% 50%, 100% 100%, 0 100%);
  transform-origin: left center;
  animation: flagWave 1.65s ease-in-out infinite;
  box-shadow: inset 0 0 42px rgba(104, 19, 13, 0.2);
}

.maratha-flag span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.22), transparent, rgba(104,19,13,0.18));
  opacity: 0.7;
  animation: flagLight 1.65s ease-in-out infinite;
}

.maratha-flag span:nth-child(2) {
  animation-delay: 0.24s;
  opacity: 0.38;
}

.maratha-flag span:nth-child(3) {
  animation-delay: 0.48s;
  opacity: 0.28;
}

.maratha-flag strong {
  position: absolute;
  left: 22px;
  top: 42px;
  color: #5b1307;
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  text-shadow: 0 1px rgba(255,255,255,0.3);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1060px;
  padding-top: 70px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--saffron-deep);
  font-family: "Cinzel", serif;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero .eyebrow {
  color: #ffd17d;
}

h1,
h2,
h3 {
  font-family: "Cinzel", serif;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3rem, 9vw, 8.4rem);
  color: #fff4d8;
  text-shadow: 0 0 38px rgba(255, 138, 0, 0.42), 0 8px 0 rgba(104, 19, 13, 0.35);
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.3rem, 5vw, 5rem);
  color: var(--maroon);
}

h3 {
  color: var(--brown);
  font-size: 1.35rem;
}

.subtitle {
  max-width: 780px;
  margin: 24px auto 0;
  color: rgba(255, 240, 204, 0.88);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

blockquote {
  max-width: 740px;
  margin: 34px auto 0;
  padding: 22px;
  color: #ffd17d;
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  border-top: 1px solid rgba(255, 209, 125, 0.36);
  border-bottom: 1px solid rgba(255, 209, 125, 0.36);
}

blockquote span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 240, 204, 0.72);
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid rgba(104, 19, 13, 0.28);
  color: var(--cream);
  text-decoration: none;
  font-weight: 800;
  transition: 0.3s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--maroon), var(--saffron));
  box-shadow: 0 0 32px rgba(255, 138, 0, 0.24);
}

.btn.ghost {
  background: rgba(255, 240, 204, 0.12);
  border-color: rgba(255, 240, 204, 0.36);
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(104, 19, 13, 0.28);
}

.music-toggle {
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  bottom: 34px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 240, 204, 0.34);
  background: rgba(19, 8, 4, 0.58);
  color: var(--cream);
  backdrop-filter: blur(10px);
}

.music-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b28a52;
}

.music-toggle.active .music-dot {
  background: var(--saffron);
  box-shadow: 0 0 18px var(--saffron);
}

.cream-band {
  background:
    linear-gradient(180deg, rgba(255, 240, 204, 0.95), rgba(255, 224, 153, 0.72)),
    radial-gradient(circle at top right, rgba(255, 138, 0, 0.22), transparent 34%);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
}

.reverse {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
  background: linear-gradient(135deg, #fff0cc, #ffd689);
}

.section-copy p,
.section-heading p,
.legacy-inner p {
  max-width: 780px;
  color: rgba(42, 19, 11, 0.76);
  margin-bottom: 18px;
}

.image-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 248, 229, 0.72);
  box-shadow: 0 24px 70px rgba(104, 19, 13, 0.18);
}

.image-card img {
  height: 410px;
  object-fit: cover;
  filter: sepia(0.15) saturate(1.12) contrast(1.05);
  transition: 0.55s ease;
}

.image-card:hover img {
  transform: scale(1.06);
}

.image-card div {
  padding: 24px;
}

.image-card p {
  color: var(--muted);
}

.war-section {
  color: var(--cream);
  background:
    radial-gradient(circle at 48% 45%, rgba(255, 138, 0, 0.28), transparent 22%),
    linear-gradient(180deg, #210905, #5c130c 48%, #130804);
}

.war-section h2,
.war-section h3 {
  color: #fff0cc;
}

.war-section .section-heading p {
  color: rgba(255, 240, 204, 0.75);
}

.war-stage {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 209, 125, 0.24);
  box-shadow: inset 0 0 90px rgba(0,0,0,0.44), 0 28px 90px rgba(0,0,0,0.3);
}

.war-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.fort-silhouette,
.torch {
  z-index: 2;
}

.fort-silhouette {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 170px;
  background:
    linear-gradient(90deg, transparent 0 8%, #130804 8% 18%, transparent 18% 22%, #130804 22% 42%, transparent 42% 48%, #130804 48% 70%, transparent 70% 75%, #130804 75% 94%, transparent 94%),
    linear-gradient(to top, #130804, #2a0b05);
  clip-path: polygon(0 58%, 8% 48%, 14% 52%, 18% 34%, 22% 46%, 29% 36%, 35% 50%, 43% 38%, 50% 54%, 58% 35%, 64% 48%, 72% 31%, 78% 49%, 86% 38%, 100% 58%, 100% 100%, 0 100%);
}

.torch {
  position: absolute;
  bottom: 58px;
  width: 22px;
  height: 98px;
  background: linear-gradient(#6d3515, #1b0904);
}

.torch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -48px;
  width: 58px;
  height: 70px;
  border-radius: 52% 48% 50% 50%;
  background: radial-gradient(circle, #fff0ad 0 10%, #ff8a00 38%, rgba(155,29,18,0) 72%);
  transform: translateX(-50%);
  animation: flame 0.9s ease-in-out infinite alternate;
}

.torch-left {
  left: 16%;
}

.torch-right {
  right: 16%;
}

.battle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.battle-card {
  min-height: 270px;
  padding: 30px;
  border: 1px solid rgba(255, 209, 125, 0.22);
  background:
    linear-gradient(150deg, rgba(255, 138, 0, 0.18), rgba(255,255,255,0.035)),
    rgba(19, 8, 4, 0.72);
  transition: 0.35s ease;
}

.battle-card span {
  color: #ffd17d;
  font-family: "Cinzel", serif;
  font-size: 2.6rem;
  font-weight: 900;
}

.battle-card p {
  margin-top: 18px;
  color: rgba(255, 240, 204, 0.74);
}

.battle-card:hover {
  transform: translateY(-8px);
  border-color: var(--saffron);
  box-shadow: 0 22px 60px rgba(255, 138, 0, 0.22);
}

.legacy {
  min-height: 78vh;
  display: grid;
  place-items: center;
  color: var(--cream);
  text-align: center;
  background:
    linear-gradient(rgba(19, 8, 4, 0.58), rgba(19, 8, 4, 0.88)),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Jagdishwar%20temple.jpg") center/cover fixed;
}

.legacy h2 {
  color: #ffd17d;
}

.legacy p {
  color: rgba(255, 240, 204, 0.8);
}

.legacy-inner {
  max-width: 900px;
}

.timeline-section {
  background: linear-gradient(180deg, #fff0cc, #ffdb91);
}

.timeline-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}

.timeline-track {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at center, rgba(255, 138, 0, 0.18), transparent 38%),
    rgba(255, 248, 229, 0.78);
  box-shadow: 0 28px 80px rgba(104, 19, 13, 0.16);
}

.timeline-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 40px;
  text-align: center;
  opacity: 0;
  transform: translateX(36px) scale(0.96);
  transition: 0.55s ease;
}

.timeline-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.timeline-slide span {
  color: var(--saffron-deep);
  font-family: "Cinzel", serif;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 900;
  line-height: 1;
}

.timeline-slide h3 {
  margin: 16px 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.timeline-slide p {
  max-width: 560px;
  color: var(--muted);
}

.carousel-btn {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--maroon), var(--saffron));
  color: var(--cream);
  font-size: 2.4rem;
  line-height: 1;
  transition: 0.25s ease;
}

.carousel-btn:hover {
  transform: translateY(-3px);
}

.carousel-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 10px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(104, 19, 13, 0.24);
}

.carousel-dots button.active {
  background: var(--saffron-deep);
  box-shadow: 0 0 14px rgba(255, 138, 0, 0.5);
}

.gallery-section {
  background: linear-gradient(180deg, #4c120c, #130804);
  color: var(--cream);
}

.gallery-section h2 {
  color: #ffd17d;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border: 1px solid rgba(255, 209, 125, 0.24);
  background: transparent;
}

.gallery-item img {
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
  transition: 0.5s ease;
}

.gallery-item::after {
  content: "View Heritage";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(19, 8, 4, 0.46);
  color: #ffd17d;
  font-family: "Cinzel", serif;
  opacity: 0;
  transition: 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover::after {
  opacity: 1;
}

.contact-section {
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 138, 0, 0.24), transparent 30%),
    linear-gradient(180deg, #fff0cc, #f4cc7a);
}

.contact-form {
  display: grid;
  gap: 18px;
  max-width: 760px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  background: rgba(255, 248, 229, 0.74);
  box-shadow: 0 28px 80px rgba(104, 19, 13, 0.14);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--brown);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(104, 19, 13, 0.22);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  padding: 14px 15px;
  outline: none;
  transition: 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--saffron-deep);
  box-shadow: 0 0 0 4px rgba(255, 138, 0, 0.15);
}

.contact-form .btn {
  border: 0;
}

.form-status {
  min-height: 24px;
  color: var(--maroon);
  font-weight: 700;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 30px;
  background: rgba(19, 8, 4, 0.92);
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 82vh;
  object-fit: contain;
  border: 1px solid rgba(255, 209, 125, 0.3);
  box-shadow: 0 0 70px rgba(255, 138, 0, 0.22);
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 26px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 209, 125, 0.3);
  background: rgba(255,255,255,0.06);
  color: var(--cream);
  font-size: 2rem;
}

.footer {
  padding: 70px 24px;
  color: var(--cream);
  text-align: center;
  background: #130804;
}

.footer p {
  color: #ffd17d;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.footer span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 240, 204, 0.64);
  font-size: 0.86rem;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
}

@keyframes heroBreath {
  to {
    transform: scale(1.15) translateY(-12px);
  }
}

@keyframes flagWave {
  0%, 100% {
    transform: perspective(520px) rotateY(-10deg) skewY(0deg);
  }
  50% {
    transform: perspective(520px) rotateY(18deg) skewY(2deg);
  }
}

@keyframes flagLight {
  0%, 100% {
    transform: translateX(-26px);
  }
  50% {
    transform: translateX(28px);
  }
}

@keyframes pulseLight {
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 0.76;
  }
}

@keyframes flame {
  to {
    transform: translateX(-50%) scale(1.12) rotate(2deg);
  }
}

@media (max-width: 1000px) {
  .gallery-grid,
  .battle-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flag-scene {
    opacity: 0.62;
    transform: scale(0.78);
    transform-origin: top right;
  }
}

@media (max-width: 820px) {
  .nav-links {
    position: fixed;
    top: 76px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    background: rgba(255, 240, 204, 0.96);
    border: 1px solid var(--line);
    box-shadow: 0 20px 60px rgba(61, 23, 4, 0.2);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .split,
  .reverse,
  .battle-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    place-items: end start;
    text-align: left;
    padding-bottom: 112px;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  blockquote {
    margin-left: 0;
  }

  .music-toggle {
    left: 18px;
    right: auto;
  }

  .timeline-carousel {
    grid-template-columns: 42px 1fr 42px;
    gap: 8px;
  }

  .carousel-btn {
    width: 42px;
    height: 48px;
    font-size: 2rem;
  }

  .gallery-item,
  .gallery-item img {
    min-height: 280px;
  }
}

@media (max-width: 540px) {
  .section {
    padding: 92px 18px;
  }

  .nav {
    padding: 14px 18px;
  }

  .brand span:last-child {
    max-width: 190px;
    font-size: 0.82rem;
  }

  .hero-content {
    padding-top: 96px;
  }

  .flag-scene {
    top: 16%;
    right: -38px;
    transform: scale(0.58);
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .timeline-track {
    min-height: 360px;
  }
}
