/* ═══════════════════════════════════════════════════════════
   MERUGU RAGHAVENDRA — Portfolio / EPK
   Dark cinematic theme with gold accents
   ═══════════════════════════════════════════════════════════ */

:root {
  --accent:      #f4a261;
  --accent-warm: #e07a3a;
  --accent-dim:  rgba(244,162,97,0.12);
  --accent-glow: rgba(244,162,97,0.22);
  --bg:          #0a0a0a;
  --bg-2:        #060606;
  --surface:     #111111;
  --surface-2:   #181818;
  --text:        #f0ede8;
  --text-dim:    #b8b4ad;
  --muted:       #777777;
  --border:      rgba(255,255,255,0.07);
  --radius:      8px;
  --radius-lg:   16px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ── Custom Cursor ─────────────────────────────────────── */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(244,162,97,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
  transform: translate(-50%, -50%);
}
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
  width: 52px; height: 52px;
  border-color: var(--accent);
}

/* ── Progress Bar ──────────────────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #e8c47a);
  z-index: 10000;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Loader ────────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-inner { text-align: center; }
.loader-bar {
  width: 180px;
  height: 2px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.loader-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  animation: loaderFill 1.4s ease forwards;
}
@keyframes loaderFill { to { width: 100%; } }
.loader-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.15em;
}

/* ── Navigation ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  z-index: 1000;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
.nav.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.danda {
  color: var(--accent);
  font-weight: 400;
  opacity: 0.6;
  font-size: 0.85em;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Utility ───────────────────────────────────────────── */
.accent { color: var(--accent); }
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section {
  padding: 7rem 0;
  position: relative;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 3rem;
}

/* ── Reveal Animation ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-2);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(0.35) saturate(0.8);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.1) 40%, rgba(10,10,10,0.7) 80%, var(--bg) 100%),
    radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(10,10,10,0.5) 70%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.hero-title span {
  display: block;
  opacity: 0;
  transform: translateY(30px);
}
.hero-tagline {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--text-dim);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
}
.hero-punch {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-style: italic;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
  opacity: 0;
  transform: translateY(20px);
}
.hero-punch-sub {
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

/* Hero word reveal animation */
.hero-content .reveal-word.animate {
  animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll Hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s 2.5s forwards;
}
.scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}
@keyframes fadeIn { to { opacity: 1; } }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: none;
  transition: all 0.35s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-full { width: 100%; }

/* ═══════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════ */
.about { background: var(--bg); }

.about-top {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 5rem;
}

/* Photo */
.photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(244,162,97,0.25);
  background: var(--surface);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.photo-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: 0.8rem;
}

.about-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.about-text p {
  color: var(--text-dim);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Stats */
.about-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-suffix {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--accent);
}
.stat-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* Info Cards */
.about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}
.info-card:hover {
  border-color: rgba(244,162,97,0.25);
  transform: translateY(-4px);
}
.info-card-icon {
  color: var(--accent);
  margin-bottom: 1rem;
}
.info-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.info-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   AWARDS — Recognition List
   ═══════════════════════════════════════════════════════════ */
.awards {
  background: var(--bg-2);
}

.recognition-list {
  margin-bottom: 5rem;
}

.recognition-item {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s;
}
.recognition-item:first-child {
  border-top: 1px solid var(--border);
}
.recognition-item:hover {
  border-bottom-color: rgba(244,162,97,0.2);
}

.recognition-year {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  opacity: 0.3;
  min-width: 110px;
  transition: opacity 0.3s;
}
.recognition-item:hover .recognition-year {
  opacity: 0.7;
}

.recognition-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

.recognition-detail h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.recognition-detail p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 500px;
}

/* ── Guru Parampara ─────────────────────────────────── */
.parampara {
  padding-top: 2rem;
}
.parampara-title {
  color: var(--text);
}

.parampara-path {
  max-width: 600px;
  margin: 0 auto;
  padding-left: 1.5rem;
}

.parampara-guru {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding-bottom: 2.5rem;
}
.parampara-guru:last-child { padding-bottom: 0; }

/* Vertical line + dot */
.parampara-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-top: 0.2rem;
}
.parampara-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  background: var(--bg-2);
  position: relative;
  z-index: 1;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.parampara-dot.dot-active {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow), 0 0 40px var(--accent-dim);
}
.parampara-line {
  width: 2px;
  flex: 1;
  min-height: 50px;
  background: linear-gradient(to bottom, var(--muted), rgba(119,119,119,0.15));
  margin-top: 0.5rem;
}
.parampara-guru:hover .parampara-dot:not(.dot-active) {
  border-color: var(--accent);
}

.parampara-phase {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.parampara-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.parampara-info p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   PERFORMANCES — Timeline
   ═══════════════════════════════════════════════════════════ */
.performances { background: var(--bg); }

.timeline {
  position: relative;
  padding-left: 2rem;
  max-width: 700px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
}

.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -0.35rem;
  top: 0.35rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  z-index: 1;
}
.timeline-year {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.timeline-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.timeline-content p {
  font-size: 0.85rem;
  color: var(--muted);
}

.tag {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: var(--accent-dim);
  color: var(--accent);
}
.tag.intl {
  background: rgba(100,180,255,0.1);
  color: #7cb8f0;
}

/* ═══════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════ */
.gallery { background: var(--bg-2); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  grid-auto-rows: 220px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: none;
}
.gallery-tall { grid-row: span 2; }

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img,
.gallery-item:hover video { transform: scale(1.05); }

.gallery-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-video {
  cursor: pointer;
}
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  transition: opacity 0.3s ease;
  z-index: 2;
}
.video-play-btn svg {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  transition: transform 0.2s ease;
}
.gallery-video:hover .video-play-btn svg {
  transform: scale(1.15);
}
.gallery-video.playing .video-play-btn {
  opacity: 0;
  pointer-events: none;
}
.gallery-video.playing:hover .video-play-btn {
  opacity: 1;
  pointer-events: auto;
}
.gallery-video.playing .video-play-btn svg polygon {
  /* Switch to pause icon shape */
}

.gallery-placeholder {
  display: none;
  width: 100%; height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  background: var(--surface);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.8) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════ */
.contact { background: var(--bg); }

.contact-centered {
  max-width: 480px;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-item svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 0.15rem;
}
.contact-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.contact-item a {
  color: var(--text);
  transition: color 0.3s;
}
.contact-item a:hover { color: var(--accent); }


/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg-2);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-right: 1rem;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-left p {
  font-size: 0.75rem;
  color: var(--muted);
}
.footer-socials {
  display: flex;
  gap: 1rem;
}
.footer-socials a {
  color: var(--muted);
  transition: color 0.3s;
}
.footer-socials a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-top {
    grid-template-columns: 260px 1fr;
    gap: 3rem;
  }
  .about-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 280px; height: 100vh;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 5rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .burger { display: flex; }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .about-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-photo {
    max-width: 280px;
    margin: 0 auto;
  }

  .recognition-item {
    flex-direction: column;
    gap: 1rem;
  }
  .recognition-year {
    min-width: unset;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }


  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
  .btn, .gallery-item, .burger, .form-group select { cursor: pointer; }
}

@media (max-width: 480px) {
  .section { padding: 5rem 0; }
  .hero-title { font-size: clamp(1.8rem, 10vw, 2.8rem); }
  .about-stats { gap: 1.5rem; }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .gallery-tall { grid-row: span 1; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-left { flex-direction: column; }
}
