/* =============================================
   SAUNAV KAUSHIK — PORTFOLIO STYLESHEET
   Navy + Slate + Gold | Professional & Sharp
   ============================================= */

:root {
  --navy:      #0d1b2a;
  --navy-mid:  #162236;
  --slate:     #f0f4f8;
  --gold:      #c9a84c;
  --gold-lt:   #f0e0b0;
  --white:     #ffffff;
  --ink:       #1a2332;
  --muted:     #7a8a9a;
  --border:    #e2e8f0;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-w: 1080px;
  --radius: 8px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ── CONTAINER ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem 2rem;
  background: var(--navy);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  margin-right: auto;
}
nav ul { list-style: none; display: flex; gap: 1.75rem; }
nav ul a {
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
nav ul a:hover { color: var(--gold); }
.btn-nav {
  background: var(--gold); color: var(--navy);
  font-size: 0.8rem; font-weight: 600;
  padding: 0.5rem 1.2rem; border-radius: var(--radius);
  white-space: nowrap;
  transition: opacity 0.2s;
}
.btn-nav:hover { opacity: 0.85; }

/* ── HERO ── */
.hero {
  background: var(--navy);
  min-height: 90vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 4rem 2rem;
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto; width: 100%;
  position: relative; z-index: 2;
}
.hero-tag {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  line-height: 1.0; color: var(--white);
  margin-bottom: 1.5rem;
}
.hero h1 span { color: var(--gold); }
.hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,0.6);
  max-width: 460px; margin-bottom: 2.5rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Graphic rings */
.hero-graphic {
  position: absolute; right: 6%; top: 50%;
  transform: translateY(-50%);
  width: 360px; height: 360px;
}
.graphic-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.25);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.r1 { width: 360px; height: 360px; }
.r2 { width: 250px; height: 250px; border-color: rgba(201,168,76,0.4); }
.r3 { width: 140px; height: 140px; border-color: rgba(201,168,76,0.6); background: rgba(201,168,76,0.06); }
.graphic-dot {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold);
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--gold); color: var(--navy);
  font-weight: 600; font-size: 0.88rem;
  border-radius: var(--radius);
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: transparent; transform: translateY(-1px); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.82rem; }
.btn-disabled {
  background: var(--border); color: var(--muted);
  pointer-events: none; cursor: default;
}

/* ── SECTIONS ── */
.section { padding: 5.5rem 0; }
.section-dark {
  background: var(--navy);
  padding: 5.5rem 0;
}
.section-mid {
  background: var(--slate);
  padding: 5.5rem 0;
}

.section-label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.6rem;
}
.section-label.light { color: var(--gold); }

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: var(--ink); margin-bottom: 2.5rem; line-height: 1.2;
}
h2.light { color: var(--white); }
.muted-text { color: rgba(255,255,255,0.55); margin-bottom: 2rem; }

/* ── ABOUT ── */
.about-grid {
  display: grid; grid-template-columns: 1fr 280px; gap: 4rem; align-items: start;
}
.about-grid p { color: var(--muted); margin-bottom: 1rem; max-width: 520px; }
.about-grid h2 { margin-bottom: 1.5rem; }
.stat-stack { display: flex; flex-direction: column; gap: 1rem; }
.stat-card {
  background: var(--slate); border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--gold);
  display: flex; flex-direction: column; gap: 0.2rem;
}
.stat-num {
  font-family: var(--font-display); font-size: 2rem;
  color: var(--navy); line-height: 1;
}
.stat-desc { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* ── EDUCATION ── */
.edu-timeline { display: flex; flex-direction: column; gap: 1.5rem; }
.edu-card {
  display: grid; grid-template-columns: 130px 1fr;
  gap: 1.5rem; align-items: start;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 1.75rem;
  border-left: 3px solid var(--gold);
}
.edu-year {
  font-size: 0.78rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.04em;
  padding-top: 0.2rem;
}
.edu-body h3 { font-size: 1.05rem; color: var(--white); margin-bottom: 0.3rem; }
.edu-inst { font-size: 0.9rem; color: rgba(255,255,255,0.55); margin-bottom: 0.3rem; }
.edu-detail { font-size: 0.85rem; color: rgba(255,255,255,0.4); }

/* ── SKILLS ── */
.skills-grid { display: flex; flex-direction: column; gap: 2rem; }
.skill-group h4 {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); margin-bottom: 0.75rem;
}
.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill {
  background: var(--slate); border: 1.5px solid var(--border);
  border-radius: 100px; padding: 0.4rem 1.1rem;
  font-size: 0.85rem; font-weight: 500; color: var(--ink);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: default;
}
.pill:hover { background: var(--navy); border-color: var(--navy); color: var(--gold); }

/* ── PROJECTS ── */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: box-shadow 0.25s, transform 0.2s;
}
.project-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); transform: translateY(-3px); }
.project-card.wip { opacity: 0.72; }
.project-header { display: flex; justify-content: space-between; align-items: center; }

.tool-badge {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--navy); color: var(--gold);
  padding: 0.22rem 0.65rem; border-radius: 4px;
}
.tool-badge.pbi { background: #1a3a5c; }
.tool-badge.python { background: #2b5b3f; color: #a8e6b8; }

.status-badge {
  font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem; border-radius: 4px;
}
.status-badge.done { background: #d1fae5; color: #065f46; }
.status-badge.wip  { background: #fef3c7; color: #92400e; }

.project-card h3 {
  font-family: var(--font-display); font-size: 1.3rem; color: var(--ink);
}
.project-card p { font-size: 0.88rem; color: var(--muted); }
.project-tags {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.project-tags li {
  font-size: 0.72rem; font-weight: 500;
  color: var(--muted); background: var(--slate);
  padding: 0.2rem 0.6rem; border-radius: 4px;
}
.project-footer {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── CONTACT ── */
.contact-wrap { text-align: center; }
.contact-wrap h2 { margin-bottom: 0.75rem; }
.contact-links {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center; margin-top: 2rem;
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner {
  display: flex; justify-content: space-between;
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
}

/* ── RESPONSIVE ── */
/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy);
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  nav ul.open { display: flex; }
  nav ul li { width: 100%; }
  nav ul a {
    display: block;
    padding: 0.9rem 2rem;
  }

  .hero-graphic { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .stat-stack { flex-direction: row; flex-wrap: wrap; }
  .edu-card { grid-template-columns: 1fr; gap: 0.5rem; }
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}

.section-experience {
  background: #e8edf2;
}

.project-screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  border-radius: 6px;
  overflow: hidden;
  margin: 0.5rem 0;
}
.project-screenshots img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.project-screenshots.single img {
  height: 200px;
}

/* ── PROJECT ANALYSIS BULLETS ── */
.project-analysis {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.25rem 0 0.5rem;
}
.project-analysis li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: var(--ink);
  line-height: 1.5;
}
.project-analysis li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ── FEATURED PROJECT CARD ── */
.project-featured {
  border: 1.5px solid var(--gold);
  background: linear-gradient(180deg, var(--white) 0%, var(--slate) 100%);
  position: relative;
}
.project-featured::before {
  content: "Centerpiece";
  position: absolute;
  top: -0.65rem;
  left: 1.5rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
}

/* ── PROJECTS FOOTNOTE (link to fun page) ── */
.projects-footnote {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.projects-footnote a {
  color: var(--gold);
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
}

/* ── FUN PAGE HERO VARIANT ── */
.fun-hero .hero-tag { color: var(--gold-lt); }

/* ── FUN PAGE PROFILE PHOTO ── */
.hero-photo-wrap {
  border-radius: 50%;
  overflow: hidden;
  width: 340px;
  height: 340px;
  border: 3px solid var(--gold);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
@media (max-width: 768px) {
  .hero-photo-wrap { display: none; }
}

/* ── FUN PAGE HERO PHOTO OVERRIDE ── */
.fun-hero .hero-photo-wrap {
  width: 400px;
  height: 400px;
  right: 12%;
}
/* ── ABOUT SECTION WITH PHOTO (fun page) ── */
.about-photo-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: center;
}
.about-photo-grid p {
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 520px;
}
.about-photo-grid h2 { margin-bottom: 1.5rem; }

.about-photo-frame {
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

@media (max-width: 768px) {
  .about-photo-grid { grid-template-columns: 1fr; }
  .about-photo-frame { height: 320px; }
}

/* ── CONTACT: split layout (buttons + form) ── */

.contact-find-me {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 0.9rem;
}

.contact-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  margin-top: 1.5rem;
  line-height: 1.5;
  border-left: 2px solid var(--gold);
  padding-left: 0.9rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.btn-icon svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-gold-cv {
  background: var(--gold);
  color: var(--navy);
  border: 1.5px solid var(--gold);
}
.btn-gold-cv:hover { opacity: 0.88; color: var(--navy); transform: translateY(-1px); }

.contact-flex {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  margin-top: 2.5rem;
  text-align: left;
  align-items: start;
}
.contact-links-vertical {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0;
  flex-wrap: nowrap;
}
.contact-links-vertical .btn { text-align: center; }

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.contact-form-card label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.75rem;
}
.contact-form-card input,
.contact-form-card textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--slate);
  color: var(--ink);
  resize: vertical;
}
.contact-form-card input:focus,
.contact-form-card textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-submit-btn {
  margin-top: 1.25rem;
  border: none;
  font-family: var(--font-body);
}
.contact-submit-btn:disabled { opacity: 0.6; cursor: default; }
.contact-form-status {
  font-size: 0.85rem;
  margin-top: 0.6rem;
  min-height: 1.2em;
}
.contact-form-status.success { color: #065f46; }
.contact-form-status.error { color: #b91c1c; }

@media (max-width: 768px) {
  .contact-flex { grid-template-columns: 1fr; }
  .contact-wrap { text-align: center; }
  .contact-flex { text-align: left; }
}
