/* =============================================
   ROHIT RAVIKUMAR — PERSONAL SITE
   Easy-edit guide: change --color-* variables
   for colours, update font-family for fonts.
   ============================================= */

/* ── DESIGN TOKENS ── */
:root {
  --color-cream:    #FFF6EF;
  --color-red:      #8B0000;
  --color-tan-lt:   #C7BCB4;
  --color-tan-md:   #8E8279;
  --color-text:     #2D0808;
  --color-white:    #FFFFFF;

  --font-title:  'Azeret Mono', monospace;
  --font-body:   'Questrial', sans-serif;
  --font-head:   'DM Sans', sans-serif;

  --max-w: 1080px;
  --pad-x: clamp(24px, 5vw, 80px);
  --pad-y: clamp(60px, 8vw, 110px);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-cream);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: underline; }
a:hover { opacity: 0.75; }

/* ── UTILITY ── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ── SECTION BACKGROUNDS ── */
.section--cream  { background-color: var(--color-cream); }
.section--red    { background-color: var(--color-red);   color: var(--color-white); }
.section--tan-lt { background-color: var(--color-tan-lt);}
.section--tan-md { background-color: var(--color-tan-md);}

.section--cream,
.section--red,
.section--tan-lt,
.section--tan-md { padding-block: var(--pad-y); }

/* ── SECTION HEADINGS ── */
.section-heading {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}
.section-heading--red   { color: var(--color-red); }
.section-heading--white { color: var(--color-white); }
.section-sub {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-style: italic;
  opacity: 0.8;
  margin-bottom: 2rem;
}

/* ══════════════════════════════
   HEADER
══════════════════════════════ */
.site-header {
  background-color: var(--color-cream);
  padding: 24px var(--pad-x) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.site-title-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
}

.site-title-text {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.12em;
  color: var(--color-text);
}

.site-icon svg {
  width: 36px;
  height: 36px;
  fill: var(--color-text);
}

.site-nav {
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-style: italic;
  opacity: 0.75;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

/* ══════════════════════════════
   ABOUT ME
══════════════════════════════ */
#about .container {
  max-width: 800px;
}
#about .section-heading {
  margin-bottom: 2rem;
}
.about-text p {
  font-size: 1.2rem;
  line-height: 1.85;
  margin-bottom: 0.5rem;
}

/* ══════════════════════════════
   BACKGROUND / TIMELINE
══════════════════════════════ */
#background .section-heading {
  color: var(--color-text);
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.timeline-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}
.timeline-date {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}
.timeline-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2px;
}
.timeline-org {
  font-size: 0.95rem;
  opacity: 0.85;
}
.timeline-right p {
  font-size: 1.1rem;
  line-height: 1.8;
}
.timeline-right p em { font-style: italic; }

/* ══════════════════════════════
   HERO PHOTOS (full-bleed pair)
══════════════════════════════ */
.hero-photos {
  width: 100%;
  overflow: hidden;
}
.hero-photos-grid {
  display: grid;
  grid-template-columns: 65fr 35fr;
  height: clamp(380px, 50vw, 680px);
}
.hero-photos-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ══════════════════════════════
   SHOWCASE / GALLERY
══════════════════════════════ */
#showcase .section-heading {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
}
.showcase-intro {
  max-width: 800px;
  margin-bottom: 3rem;
}
.showcase-intro p {
  margin-bottom: 1rem;
}

.photo-collage {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.1fr;
  grid-template-rows: 280px 280px;
  gap: 8px;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}
.photo-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collage-img--1 { grid-column: 1; grid-row: 1 / 3; }
.collage-img--2 { grid-column: 2; grid-row: 1;     }
.collage-img--3 { grid-column: 2; grid-row: 2;     }
.collage-img--4 { grid-column: 3; grid-row: 1 / 3; }

/* ══════════════════════════════
   PHOTOGRAPHY
══════════════════════════════ */
#photography .container {
  max-width: 700px;
}
.photography-text p {
  margin-bottom: 0.7rem;
}
.photography-text a {
  font-weight: 600;
}

/* ══════════════════════════════
   FILM-MAKING: COLLABORATIVE
══════════════════════════════ */
.collab-text {
  max-width: 760px;
  margin-bottom: 3rem;
}
.collab-text p {
  margin-bottom: 0.9rem;
}
.collab-text a {
  font-weight: 600;
  color: var(--color-text);
}
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.channel-card {
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0,0,0,0.08);
}
.channel-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* ══════════════════════════════
   FILM-MAKING: PERSONAL PROJECTS
══════════════════════════════ */
.project-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}
.project-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.project-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.project-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--color-red);
  color: var(--color-white);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.project-text p {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  line-height: 1.7;
}
.project-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.project-images img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 4px;
}
.project-images.single-img img {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}

/* ══════════════════════════════
   WRITING & BLOGS
══════════════════════════════ */
#writing .container {
  max-width: 780px;
}
.writing-intro {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}
.writing-intro p { margin-bottom: 0.6rem; }
.blog-excerpt {
  border-left: 4px solid var(--color-text);
  padding-left: 1.5rem;
  margin-top: 2rem;
  opacity: 0.9;
}
.blog-excerpt blockquote {
  font-size: 1.05rem;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1rem;
}
.blog-excerpt .read-more {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ══════════════════════════════
   SKILLS
══════════════════════════════ */
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.skills-list {
  list-style: none;
}
.skills-list li {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-style: italic;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.skills-list li:last-child { border-bottom: none; }
.app-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: center;
}
.app-icons img {
  width: 100%;
  max-width: 80px;
  border-radius: 20%;
  margin-inline: auto;
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.site-footer {
  background-color: var(--color-red);
  padding-block: 60px;
  text-align: center;
}
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-bottom: 24px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #1A1A1A;
  text-decoration: none;
  transition: opacity 0.2s;
}
.social-links a:hover { opacity: 0.65; }
.social-links svg {
  width: 32px;
  height: 32px;
  fill: #1A1A1A;
}
.footer-email {
  color: var(--color-white);
  font-size: 0.9rem;
  opacity: 0.75;
}
.footer-email a { text-decoration: none; }
.footer-email a:hover { text-decoration: underline; }

/* ══════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════ */
@media (max-width: 768px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .hero-photos-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .hero-photos-grid .hero-photo--portrait {
    display: none;
  }
  .photo-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  .collage-img--1 { grid-column: 1; grid-row: 1 / 3; }
  .collage-img--2 { grid-column: 2; grid-row: 1;     }
  .collage-img--3 { grid-column: 2; grid-row: 2;     }
  .collage-img--4 { grid-column: 1 / 3; grid-row: 3; }
  .project-block {
    grid-template-columns: 1fr;
  }
  .skills-layout {
    grid-template-columns: 1fr;
  }
  .channels-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════ */
@media (max-width: 480px) {
  .photo-collage {
    grid-template-columns: 1fr;
    grid-template-rows: 220px 220px 220px 220px;
  }
  .collage-img--1,
  .collage-img--2,
  .collage-img--3,
  .collage-img--4 {
    grid-column: 1;
    grid-row: auto;
  }
  .project-images {
    grid-template-columns: 1fr;
  }
  .app-icons {
    grid-template-columns: repeat(2, 1fr);
  }
}
