/* Siddharth Jadhav — Cinematic portfolio
   Deep indigo/black with amber/gold; Cormorant + Outfit */

:root {
  --bg: #0f0e1a;
  --bg-elevated: #1a1a2e;
  --bg-warm: #16213e;
  --surface: #1e1b3a;
  --surface-glow: rgba(99, 102, 241, 0.06);
  --text: #e8e7f0;
  --text-muted: #9ca3b8;
  --accent: #c4b5fd;
  --accent-dim: #a78bfa;
  --accent-glow: rgba(196, 181, 253, 0.35);
  --border: rgba(196, 181, 253, 0.15);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* One clean, cool gradient for the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    160deg,
    #0f0e1a 0%,
    #1a1a2e 25%,
    #16213e 50%,
    #1a1535 75%,
    #0d0b18 100%
  );
  pointer-events: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #ddd6fe;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, rgba(15, 14, 26, 0.9) 0%, transparent 100%);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(15, 14, 26, 0.95);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-elevated);
    flex-direction: column;
    padding: 4rem 2rem 2rem;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid var(--border);
  }
  .nav-links.open {
    transform: translateX(0);
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    165deg,
    #1a1a2e 0%,
    #16213e 35%,
    #1e1b3a 60%,
    #0f0e1a 100%
  );
}
.hero-bg::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(
    ellipse at center,
    rgba(196, 181, 253, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 1.5rem;
}

.hero-content {
  text-align: left;
}
.hero-content .hero-tag {
  animation: hero-fade 0.8s ease-out both;
}
.hero-content .hero-title {
  animation: hero-fade 0.8s ease-out 0.1s both;
}
.hero-content .hero-subtitle {
  animation: hero-fade 0.8s ease-out 0.2s both;
}
.hero-content .btn {
  animation: hero-fade 0.8s ease-out 0.35s both;
}
@keyframes hero-fade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(196, 181, 253, 0.06);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 0.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-title .accent {
  display: inline-block;
  color: var(--accent);
  font-style: italic;
  background: linear-gradient(135deg, #c4b5fd, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title::after {
  content: "";
  display: block;
  width: 4rem;
  height: 4px;
  margin-top: 0.5rem;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: var(--accent);
  margin: 0 0 2rem;
  font-style: italic;
  letter-spacing: 0.02em;
  opacity: 0.95;
}

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: hero-fade 1s ease-out 0.2s both;
}
.hero-image-wrap::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(196, 181, 253, 0.2), transparent 50%);
  opacity: 0.5;
  z-index: -1;
  filter: blur(24px);
}
.hero-image-wrap {
  width: 80%;
  max-width: 336px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}
.hero-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--border);
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(196, 181, 253, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hero-image-wrap:hover .hero-image {
  transform: translateY(-4px);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(196, 181, 253, 0.15);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-content {
    text-align: center;
  }
  .hero-title::after {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-image-wrap {
    max-width: 224px;
  }
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.25rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: rgba(196, 181, 253, 0.08);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 30px var(--accent-glow);
}
.btn-primary {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Sections */
.section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 5rem;
  position: relative;
}
.section:nth-child(even) {
  background: linear-gradient(180deg, transparent 0%, var(--surface-glow) 30%, transparent 100%);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 2.9rem);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}
.section-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 60ch;
}
.section-intro a {
  text-decoration: underline;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.about-image-wrap {
  position: sticky;
  top: 6rem;
}
.about-image {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(196, 181, 253, 0.08);
}
.about-text .lead {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.about-text p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}
.about-personal {
  margin-top: 1.5rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-image-wrap {
    position: static;
  }
}

/* Filmography */
.films-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.tab {
  padding: 0.65rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  background: linear-gradient(145deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
}
.tab:hover {
  color: var(--text);
  border-color: var(--accent-dim);
  box-shadow: 0 0 16px rgba(196, 181, 253, 0.1);
}
.tab.active {
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-dim) 100%);
  border-color: var(--accent);
  color: var(--bg);
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* Filmography timeline */
.timeline-wrap {
  position: relative;
}
.timeline {
  position: relative;
  padding-left: 0;
}
.timeline.hidden {
  display: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 2.75rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--border), transparent);
  border-radius: 1px;
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1rem 0;
  min-height: 3rem;
}
.timeline-item:first-child { padding-top: 0; }
.timeline-item--summary .timeline-year { opacity: 0.5; }
.timeline-year {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg);
  flex-shrink: 0;
}
.timeline-content {
  padding-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  transition: color 0.2s ease;
}
.timeline-item:hover .timeline-content {
  color: var(--text);
}
.timeline-content em {
  color: var(--text);
  font-style: normal;
  font-weight: 500;
}
.timeline-content strong {
  color: var(--accent);
  font-weight: 600;
}
@media (max-width: 600px) {
  .timeline::before {
    left: 1.5rem;
  }
  .timeline-item {
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
  }
  .timeline-year {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.75rem;
    box-shadow: 0 0 0 3px var(--bg);
  }
}

/* Stage & TV */
.stage-tv .section-intro {
  margin-bottom: 1.75rem;
}
.stage-tv-subtitle {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1rem;
}
.stage-timeline + .stage-tv-subtitle {
  margin-top: 2.5rem;
}
.stage-tv-subtitle + .tv-groups {
  margin-top: 1rem;
}

/* Stage timeline */
.stage-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 32rem;
  margin-bottom: 0;
}
.stage-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}
.stage-item:last-child {
  border-bottom: none;
}
.stage-item:hover {
  background: linear-gradient(90deg, var(--surface-glow) 0%, transparent 100%);
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 8px;
}
.stage-year {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.stage-content {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}
.stage-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}
.stage-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Television groups */
.tv-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}
.tv-group {
  background: linear-gradient(145deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.tv-group:hover {
  border-color: rgba(196, 181, 253, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(196, 181, 253, 0.08);
}
.tv-group-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tv-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tv-list li {
  padding: 0.35rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.tv-list li em {
  color: var(--text);
  font-style: normal;
}
.tv-meta {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.9;
}

@media (max-width: 600px) {
  .stage-item {
    grid-template-columns: 3.5rem 1fr;
    gap: 1rem;
  }
  .stage-year {
    font-size: 1rem;
  }
  .stage-title {
    font-size: 1.1rem;
  }
  .tv-groups {
    grid-template-columns: 1fr;
  }
}

/* Awards */
.awards-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 55ch;
}
.awards-list li {
  padding: 0.6rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
}
.awards-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-glow);
}
.awards-list li em {
  color: var(--text);
  font-style: normal;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.gallery-item {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item:hover {
  border-color: rgba(196, 181, 253, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(196, 181, 253, 0.1);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}

/* Contact */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.contact-link {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(145deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 500;
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.contact-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
  border-radius: 4px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Footer */
.site-footer {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-dev {
  margin-top: 1.25rem;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.9rem;
}
.footer-dev-label {
  color: var(--text-muted);
  font-weight: 400;
}
.footer-dev-name {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.footer-dev-name:hover {
  color: #ddd6fe;
  text-shadow: 0 0 20px var(--accent-glow);
}
.footer-dev-links {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-dev-link {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  color: var(--text-muted);
  background: rgba(196, 181, 253, 0.08);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.footer-dev-link:hover {
  color: var(--accent);
  border-color: rgba(196, 181, 253, 0.35);
  background: rgba(196, 181, 253, 0.12);
}
