/* ====================================
   DHANUVARSINI — PORTFOLIO
   Fully corrected & final CSS
   All fonts: min 12px, weight 400+
   ==================================== */

:root {
  --ink: #1a1510;
  --warm-white: #f7f3ee;
  --cream: #ede8e0;
  --gold: #b8975a;
  --gold-light: #d4b87a;
  --muted: #6a5f54;
  --divider: rgba(26,21,16,0.12);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--warm-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============================
   NAVIGATION
   ============================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  background: transparent;
  transition: background 0.4s ease, padding 0.4s ease;
}
.nav.scrolled {
  background: rgba(247,243,238,0.96);
  backdrop-filter: blur(8px);
  padding: 16px 48px;
  border-bottom: 1px solid var(--divider);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--ink);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}
.nav-links a {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.nav-links a:hover,
.nav-links a.active { opacity: 1; }
.nav-links a.active { border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--warm-white);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 40px;
  font-style: italic;
  color: var(--ink);
  letter-spacing: 2px;
}

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--warm-white);
}
.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(100px, 18vw, 260px);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(26,21,16,0.06);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 60px;
  animation: fadeUp 1.2s ease both;
}
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 20px;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 130px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero-name em {
  font-style: italic;
  color: var(--gold);
}
.hero-tagline {
  font-size: 17px;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 48px;
  line-height: 2;
  font-weight: 400;
}
.hero-cta {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: color 0.3s, letter-spacing 0.3s;
}
.hero-cta:hover { color: var(--gold); letter-spacing: 4px; }

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  animation: bounce 2s infinite;
}

/* ============================
   WORK SECTION
   ============================ */
.work-section {
  padding: 80px 48px 100px;
  max-width: 1400px;
  margin: 0 auto;
}
.section-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 56px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--divider);
}
.section-label {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.5px;
}

/* ============================
   PROJECT GRID
   ============================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.project-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  animation: fadeUp 0.8s ease both;
}
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
.project-card--wide { grid-column: span 2; }

.project-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
}
.project-card--wide .project-img { aspect-ratio: 16/7; }

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
  display: block;
}
.project-card:hover .project-img img { transform: scale(1.04); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,21,16,0.0);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  transition: background 0.4s ease;
}
.project-overlay span {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  color: white;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
}
.project-card:hover .project-overlay { background: rgba(26,21,16,0.35); }
.project-card:hover .project-overlay span { opacity: 1; transform: translateY(0); }

.project-info {
  padding: 20px 24px 28px;
  background: var(--warm-white);
  border-top: 1px solid var(--divider);
  flex: 1;
}
.project-number {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}
.project-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 6px;
}
.project-desc {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.3px;
  margin-bottom: 12px;
  font-weight: 400;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-tags span {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--divider);
  padding: 3px 8px;
  font-weight: 500;
}

/* ============================
   QUOTE STRIP
   ============================ */
.quote-strip {
  background: var(--ink);
  color: var(--warm-white);
  text-align: center;
  padding: 64px 24px;
}
.quote-strip p {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 34px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.5px;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 48px;
  border-top: 1px solid var(--divider);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1px;
}
.footer-sub {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.footer-right a {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  transition: color 0.2s;
}
.footer-right a:hover { color: var(--gold); }

/* ============================
   ABOUT PAGE
   ============================ */
.page-hero { padding-top: 100px; }

.about-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
}
.about-text { padding-top: 40px; }
.about-name {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 400;
  line-height: 0.95;
  margin: 16px 0 28px;
}
.about-name em { font-style: italic; color: var(--gold); }
.about-intro {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  margin-bottom: 20px;
  font-weight: 400;
}
.btn-primary {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--ink);
  color: var(--warm-white);
  padding: 14px 32px;
  transition: background 0.3s;
}
.btn-primary:hover { background: var(--gold); }
.btn-full { width: 100%; text-align: center; }

.about-portrait { position: relative; }
.portrait-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--cream);
}
.portrait-placeholder svg { width: 100%; height: 100%; }
.portrait-caption {
  text-align: right;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 10px;
  font-weight: 400;
}

/* SKILLS */
.skills-section {
  background: var(--cream);
  padding: 80px 48px;
}
.skills-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}
.skills-heading {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  margin-bottom: 32px;
}
.skills-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.skills-list li { display: flex; align-items: center; gap: 16px; }
.skill-name {
  font-size: 15px;
  letter-spacing: 0.3px;
  min-width: 190px;
  font-weight: 500;
}
.skill-bar {
  flex: 1;
  height: 2px;
  background: var(--divider);
  position: relative;
}
.skill-bar span {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: var(--gold);
  transition: width 1.5s ease;
}

/* TIMELINE */
.timeline-section {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.timeline-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.timeline { display: flex; flex-direction: column; gap: 32px; margin-top: 16px; }
.timeline-item { padding-left: 20px; border-left: 2px solid var(--divider); }
.tl-year {
  display: block;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 4px;
  font-weight: 500;
}
.tl-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 2px;
}
.tl-place {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

/* ============================
   CONTACT PAGE
   ============================ */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 48px;
}
.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 400;
  line-height: 1;
  margin: 16px 0 20px;
}
.contact-heading em { font-style: italic; color: var(--gold); }
.contact-sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.8;
  font-weight: 400;
}
.contact-links { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--ink);
  font-weight: 400;
  transition: color 0.2s;
}
.contact-link:hover { color: var(--gold); }
.cl-icon {
  width: 32px;
  height: 32px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  font-weight: 500;
}
.contact-availability {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 400;
}
.avail-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4caf6a;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

/* FORM */
.contact-form-wrap {
  background: var(--cream);
  padding: 40px;
}
.form-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 28px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  background: var(--warm-white);
  border: 1px solid var(--divider);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-note {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  font-weight: 400;
}

/* Form feedback */
.form-feedback {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  margin-top: 12px;
}
.form-feedback--success {
  background: #eef4eb;
  color: #3a6b30;
  border-left: 3px solid #5a7a4e;
}
.form-feedback--error {
  background: #fdf0f0;
  color: #8b2020;
  border-left: 3px solid #c0392b;
}

/* ============================
   PROJECT DETAIL PAGE
   ============================ */
.pd-hero {
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  padding-top: 100px;
}
.pd-hero-inner {
  padding: 60px 60px 48px;
  max-width: 900px;
}
.pd-number {
  font-size: 13px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.8);
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
}
.pd-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 400;
  color: white;
  line-height: 1;
  margin-bottom: 12px;
}
.pd-subtitle {
  font-size: 17px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
}
.pd-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  padding: 60px;
  max-width: 1200px;
  margin: 0 auto;
}
.pd-section { margin-bottom: 36px; }
.pd-section h3 {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 500;
}
.pd-section p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  font-weight: 400;
}

/* Gallery */
.pd-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  margin-top: 40px;
}
.gallery-item {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--cream);
}
.gallery-item--img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
  display: block;
}
.gallery-item--img:hover img { transform: scale(1.04); }

/* Sidebar */
.pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 32px;
}
.pd-tags span {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--divider);
  padding: 4px 10px;
  color: var(--muted);
  font-weight: 500;
}
.pd-specs { display: flex; flex-direction: column; gap: 16px; }
.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--divider);
}
.spec-key {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.spec-val {
  font-size: 15px;
  color: var(--ink);
  font-weight: 400;
}
.pd-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--divider);
}
.pd-nav-link, .pd-nav-center {
  padding: 32px 48px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s;
  border-right: 1px solid var(--divider);
}
.pd-nav-link:last-child { border-right: none; text-align: right; }
.pd-nav-center { text-align: center; }
.pd-nav-link:hover, .pd-nav-center:hover { color: var(--gold); background: var(--cream); }

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .nav { padding: 20px 24px; }
  .nav.scrolled { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .work-section { padding: 60px 24px 80px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card--wide { grid-column: span 1; }
  .project-card--wide .project-img { aspect-ratio: 4/3; }

  .about-hero-inner { grid-template-columns: 1fr; padding: 60px 24px; }
  .about-portrait { order: -1; max-width: 320px; }
  .skills-section { padding: 60px 24px; }
  .skills-inner { grid-template-columns: 1fr; gap: 40px; }
  .skill-name { min-width: 150px; }
  .timeline-section { padding: 60px 24px; }
  .timeline-inner { grid-template-columns: 1fr; gap: 40px; }

  .contact-inner { grid-template-columns: 1fr; padding: 60px 24px; gap: 40px; }
  .contact-form-wrap { padding: 24px; }

  .footer { padding: 32px 24px; }
  .footer-right { align-items: flex-start; }

  .pd-hero-inner { padding: 40px 24px 32px; }
  .pd-body { grid-template-columns: 1fr; padding: 32px 24px; gap: 40px; }
  .pd-gallery { grid-template-columns: 1fr 1fr; }
  .pd-nav { grid-template-columns: 1fr; }
  .pd-nav-link, .pd-nav-center {
    border-right: none;
    border-bottom: 1px solid var(--divider);
    padding: 20px 24px;
  }
  .pd-nav-link:last-child { text-align: left; }
}

@media (max-width: 600px) {
  .hero-name { font-size: 60px; }
  .pd-gallery { grid-template-columns: 1fr; }
  .projects-grid { gap: 1px; }
}
