/* ============================================================
   PRAPTHI AGARWALA — Portfolio
   Light pastel theme, butter yellow core
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Inter:wght@300;400;500&display=swap');

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

:root {
  --yellow:        #F7E98E;
  --yellow-dark:   #EDD84A;
  --yellow-light:  #FDF6CC;
  --peach:         #FDDCB5;
  --sage:          #D4E8D0;
  --lavender:      #E5E0F5;
  --sky:           #D0E8F5;
  --bg:            #FEFDF7;
  --card:          #FFFFFF;
  --border:        #F0EDE3;
  --text:          #1C1C1E;
  --text-muted:    #6B6B6F;
  --text-light:    #9A9A9F;
  --radius:        16px;
  --radius-sm:     10px;
  --shadow:        0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover:  0 8px 32px rgba(0,0,0,0.10);
  --transition:    0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.25;
}

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

/* ── Layout ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 96px 0; }

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 253, 247, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: 1080px;
  margin: 0 auto;
}

.nav-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.nav-logo span {
  display: inline-block;
  background: var(--yellow);
  padding: 2px 10px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

/* ── Hero ── */
#hero {
  padding: 112px 0 80px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: #6B5800;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  width: fit-content;
}

.hero-tag .dot {
  width: 7px; height: 7px;
  background: #D4A800;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-headline {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
  color: var(--text);
}

.hero-headline .accent {
  background: linear-gradient(135deg, #D4A800, #F7E98E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--text);
  color: #fff;
}

.btn-primary:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

/* ── Section Header ── */
.section-header {
  margin-bottom: 48px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
}

/* ── Hero Photo ── */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: center;
}

.hero-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo-bg {
  position: absolute;
  width: 340px;
  height: 420px;
  background: var(--yellow);
  border-radius: 32px;
  transform: rotate(3deg);
  z-index: 0;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 320px;
  height: 400px;
  object-fit: cover;
  object-position: center top;
  border-radius: 28px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
}

.hero-photo:hover {
  transform: rotate(0deg) scale(1.01);
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-photo-wrap {
    order: -1;
  }
  .hero-photo, .hero-photo-bg {
    width: 260px;
    height: 320px;
  }
  .hero-photo-bg {
    width: 280px;
    height: 340px;
  }
}

/* ── About ── */
#about { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-text strong { color: var(--text); font-weight: 600; }

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.about-card-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow-light);
  border-radius: 10px;
}

.about-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.about-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ── Impact Numbers ── */
#impact { background: var(--yellow); }

.impact-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
  color: #5C4600;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.impact-card {
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--radius);
  padding: 28px 24px;
  backdrop-filter: blur(6px);
}

.impact-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #5C4600;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 8px;
}

.impact-desc {
  font-size: 13px;
  color: #7A6000;
  line-height: 1.5;
  font-weight: 500;
}

/* ── Case Studies ── */
#work { }

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  cursor: default;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.case-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.case-org {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-light);
  text-transform: uppercase;
}

.case-period {
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
  flex-shrink: 0;
}

.case-accent {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.accent-yellow { background: var(--yellow-light); }
.accent-peach  { background: var(--peach); opacity: 0.9; }
.accent-sage   { background: var(--sage); }
.accent-lavender { background: var(--lavender); }

.case-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.3;
}

.case-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.case-impact {
  background: var(--yellow-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: #7A6000;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.case-impact::before { content: "📊"; font-size: 14px; flex-shrink: 0; }

.case-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: var(--bg);
}

/* ── About Fun Row ── */
.about-fun {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.about-fun span {
  background: var(--yellow-light);
  border: 1px solid #EDD84A55;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  color: #5C4600;
  font-weight: 500;
}

.about-fun a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Philosophy ── */
#philosophy { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.philosophy-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--transition);
}

.philosophy-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--yellow-dark);
}

.philosophy-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow-dark);
  letter-spacing: 1px;
}

.philosophy-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.philosophy-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Thinking About ── */
#thinking { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.thinking-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
}

.thinking-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.thinking-item:last-child { border-bottom: none; }

.thinking-arrow {
  font-size: 18px;
  color: var(--yellow-dark);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.thinking-item p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Contracting Card ── */
.contracting-card {
  background: var(--yellow-light);
  border: 1.5px solid #EDD84A88;
  border-radius: var(--radius);
  padding: 24px 28px;
  width: 100%;
  text-align: left;
}

.contracting-label {
  font-size: 13px;
  font-weight: 700;
  color: #5C4600;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.contracting-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contracting-chips span {
  background: rgba(255,255,255,0.7);
  border: 1px solid #EDD84A99;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #7A6000;
}

/* ── Projects ── */
#projects { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition);
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--yellow-dark);
}

.project-icon {
  font-size: 26px;
}

.project-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.project-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.project-meta {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

/* ── Skills ── */
#skills { }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.skill-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.skill-card-title {
  font-size: 15px;
  font-weight: 700;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}

.chip:hover {
  background: var(--yellow);
  border-color: var(--yellow-dark);
  color: #5C4600;
}

/* ── Experience Timeline ── */
#experience { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  gap: 28px;
  padding-bottom: 36px;
  position: relative;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--yellow-dark);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  position: relative;
  z-index: 1;
}

.timeline-content {
  padding-top: 8px;
  flex: 1;
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.timeline-org {
  font-weight: 700;
  font-size: 16px;
}

.timeline-period {
  font-size: 13px;
  color: var(--text-light);
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline-role {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 10px;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.timeline-bullets li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.timeline-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--yellow-dark);
  font-weight: 700;
}

/* ── Contact ── */
#contact { text-align: center; }

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.contact-emoji {
  font-size: 48px;
}

.contact-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
}

.contact-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 32px;
}

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

.footer-name {
  font-weight: 700;
  font-size: 14px;
}

.footer-credit {
  font-size: 13px;
  color: var(--text-light);
}

/* ── Scroll Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children in grids */
.impact-grid .fade-up:nth-child(2),
.case-grid .fade-up:nth-child(2),
.about-cards .fade-up:nth-child(2),
.philosophy-grid .fade-up:nth-child(2),
.skills-grid .fade-up:nth-child(2),
.project-grid .fade-up:nth-child(2) { transition-delay: 0.08s; }

.impact-grid .fade-up:nth-child(3),
.case-grid .fade-up:nth-child(3),
.about-cards .fade-up:nth-child(3),
.philosophy-grid .fade-up:nth-child(3),
.skills-grid .fade-up:nth-child(3),
.project-grid .fade-up:nth-child(3) { transition-delay: 0.16s; }

.impact-grid .fade-up:nth-child(4),
.case-grid .fade-up:nth-child(4),
.about-cards .fade-up:nth-child(4),
.skills-grid .fade-up:nth-child(4) { transition-delay: 0.24s; }

/* ── Active Nav ── */
.nav-links a.active {
  color: var(--text);
  font-weight: 600;
}

.nav-links a.active::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--yellow-dark);
  border-radius: 2px;
  margin-top: 2px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 16px 20px; }
  .nav-links { gap: 20px; }
  section { padding: 64px 0; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .impact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-headline { letter-spacing: -1.5px; }
}
