/* ========================================
   Jessica Duong â€” Portfolio Site Styles
   Colors: Forest Green, Cream, Gold
   Fonts: DM Serif Display, DM Sans
   ======================================== */

:root {
  --forest: #1a3a2a;
  --forest-dark: #0f2419;
  --forest-light: #2d5a42;
  --cream: #f8f5f0;
  --cream-dark: #ede8e0;
  --gold: #c9a84c;
  --gold-light: #d4b96a;
  --charcoal: #2c2c2c;
  --text: #3a3a3a;
  --text-light: #6b6b6b;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- NAV ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(248,245,240,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 16px 32px;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem; color: var(--forest);
  text-decoration: none;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-light);
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.3s;
  letter-spacing: 0.02em;
}
.nav-links a:hover, .nav-links a.active { color: var(--forest); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--forest); margin: 6px 0;
  transition: all 0.3s;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none; transition: all 0.3s;
  cursor: pointer; border: none;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary {
  background: var(--forest); color: var(--white);
}
.btn-primary:hover {
  background: var(--forest-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,58,42,0.25);
}
.btn-outline {
  background: transparent; color: var(--forest);
  border: 2px solid var(--forest);
}
.btn-outline:hover {
  background: var(--forest); color: var(--white);
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold); color: var(--white);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }

/* ---- SECTION SHARED ---- */
section { padding: 100px 32px; }
.section-header {
  text-align: center; margin-bottom: 64px;
}
.section-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  color: var(--forest-dark);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-light); max-width: 560px;
  margin: 0 auto; font-size: 1.05rem;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}

.case-body p a {
  color: #2B5329;
  text-decoration: underline;
}

.case-body p a:hover {
  color: #C4A84D;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 32px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,58,42,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  position: relative; z-index: 1;
}
.hero-text h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  color: var(--forest-dark);
  line-height: 1.15;
  margin-bottom: 8px;
}
.hero-text .subtitle {
  font-size: 1.15rem; color: var(--forest-light);
  font-weight: 500; margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.hero-text .tagline {
  font-size: 1.05rem; color: var(--text-light);
  max-width: 480px; margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-photo { display: flex; justify-content: center; align-items: center; }
.photo-frame {
  width: 340px; height: 340px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--forest);
  box-shadow: var(--shadow-lg), 0 0 0 12px rgba(26,58,42,0.05);
}
.photo-frame img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 25%;
  transform: scale(1.18);
}

/* ---- ABOUT ---- */
.about { background: var(--white); }
.about-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}
.about-text p { margin-bottom: 16px; color: var(--text); }
.about-text p strong { color: var(--forest-dark); }

.skills-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.skill-card {
  background: var(--cream);
  padding: 24px; border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.04);
}
.skill-card h4 {
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--forest); margin-bottom: 10px;
}
.skill-card p {
  font-size: 0.9rem; color: var(--text-light);
  line-height: 1.6;
}

/* ---- FEATURED PROJECTS (Landing Page) ---- */
.featured-projects { background: var(--cream); }
.featured-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.featured-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  border: 1px solid rgba(0,0,0,0.04);
  text-decoration: none;
  color: inherit;
  display: block;
}
.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.featured-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: #fff;
}
.featured-card-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.featured-card:hover .featured-card-img img {
  transform: scale(1.03);
}
.featured-card-img .coming-soon-overlay {
  position: absolute; inset: 0;
  background: var(--forest);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3);
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
}
.featured-card-body {
  padding: 28px;
}
.featured-card-body .project-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.featured-card-body h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem; color: var(--forest-dark);
  margin-bottom: 10px; line-height: 1.3;
}
.featured-card-body p {
  color: var(--text-light); font-size: 0.9rem;
  margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.featured-card-body .project-tools {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 16px;
}
.tool-tag {
  font-size: 0.75rem; padding: 3px 10px;
  background: var(--cream); border-radius: 20px;
  color: var(--text-light); font-weight: 500;
}
.featured-card-body .view-link {
  font-size: 0.88rem; font-weight: 600;
  color: var(--forest);
  display: inline-flex; align-items: center; gap: 4px;
}
.featured-card:hover .view-link { color: var(--gold); }
.github-link {
  margin-left: 16px;
  color: var(--text-light) !important;
  font-size: 0.85rem;
}
.github-link:hover { color: var(--forest) !important; text-decoration: underline; }

.view-all-projects {
  text-align: center; margin-top: 48px;
}

/* ---- BEYOND THE DATA ---- */
.beyond { background: var(--white); }
.beyond-inner {
  max-width: 700px; margin: 0 auto;
  text-align: center;
}
.beyond-inner blockquote {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--forest-dark);
  line-height: 1.6;
  font-style: italic;
  position: relative;
  padding: 0 20px;
}
.beyond-inner blockquote::before {
  content: '"';
  font-size: 4rem;
  color: var(--gold);
  position: absolute;
  top: -20px; left: -10px;
  font-family: 'DM Serif Display', serif;
  line-height: 1;
}

/* ---- EXPERIENCE ---- */
.experience { background: var(--white); }
.exp-grid {
  max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.exp-grid::before {
  content: '';
  position: absolute; left: 24px; top: 0; bottom: 0;
  width: 2px; background: var(--cream-dark);
}
.exp-item {
  display: grid; grid-template-columns: 48px 1fr;
  gap: 24px; padding: 24px 0;
}
.exp-dot {
  width: 12px; height: 12px;
  background: var(--forest); border-radius: 50%;
  margin-top: 6px; justify-self: center;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 4px var(--white);
}
.exp-content h3 {
  font-size: 1.1rem; color: var(--forest-dark); font-weight: 600;
}
.exp-content .exp-meta {
  font-size: 0.88rem; color: var(--text-light); margin-bottom: 8px;
}
.exp-content p {
  font-size: 0.92rem; color: var(--text);
}

/* ---- CONTACT ---- */
.contact {
  background: var(--forest-dark);
  color: var(--white);
  text-align: center;
}
.contact .section-header h2 { color: var(--white); }
.contact .section-header p { color: rgba(255,255,255,0.6); }
.contact .section-label { color: var(--gold); }
.contact-links {
  display: flex; justify-content: center;
  gap: 24px; flex-wrap: wrap;
  margin-top: 32px;
}
.contact-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cream); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  padding: 12px 24px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.3s;
}
.contact-link:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--gold);
  color: var(--gold);
}
.contact-resume {
  margin-top: 24px;
}

/* ---- FOOTER ---- */
footer {
  background: var(--forest-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 32px;
  text-align: center;
}
footer p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}
footer .footer-note {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
  margin-top: 4px;
}

/* ---- ANIMATIONS ---- */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1; transform: translateY(0);
}

/* ---- ALL PROJECTS PAGE ---- */
.page-header {
  padding: 140px 32px 60px;
  text-align: center;
  background: var(--cream);
}
.page-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--forest-dark);
  margin-bottom: 12px;
}
.page-header p {
  color: var(--text-light); max-width: 560px;
  margin: 0 auto; font-size: 1.05rem;
}

.all-projects { background: var(--cream); padding-top: 40px; }
.all-projects-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; gap: 32px;
}
.project-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(0,0,0,0.04);
  text-decoration: none;
  color: inherit;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.project-info {
  padding: 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.project-info .project-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.project-info h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem; color: var(--forest-dark);
  margin-bottom: 12px; line-height: 1.3;
}
.project-info p {
  color: var(--text-light); font-size: 0.95rem;
  margin-bottom: 20px;
}
.project-info .project-tools {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.project-info .view-link {
  font-size: 0.88rem; font-weight: 600;
  color: var(--forest);
  display: inline-flex; align-items: center; gap: 4px;
  transition: color 0.3s;
}
.project-card:hover .view-link { color: var(--gold); }

.project-visual-img {
  overflow: hidden;
  display: flex; align-items: center;
  background: #fff;
  min-height: 280px;
}
.project-visual-img img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 12px;
}

.project-card:nth-child(even) { direction: rtl; }
.project-card:nth-child(even) > * { direction: ltr; }

/* ---- CASE STUDY PAGE ---- */
.case-hero {
  padding: 140px 32px 60px;
  background: var(--forest-dark);
  color: var(--white);
}
.case-hero-inner {
  max-width: 900px; margin: 0 auto;
}
.case-hero .section-label { color: var(--gold); }
.case-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  line-height: 1.2;
}
.case-hero .case-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 24px;
  max-width: 600px;
}
.case-tools {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.case-tools .tool-tag {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}

.case-body {
  max-width: 900px; margin: 0 auto;
  padding: 80px 32px;
}
.case-section { margin-bottom: 64px; }
.case-section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  color: var(--forest-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cream-dark);
}
.case-section h3 {
  font-size: 1.15rem;
  color: var(--forest);
  margin: 24px 0 12px;
  font-weight: 600;
}
.case-section p {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 1rem;
}
.case-section ul {
  margin: 0 0 20px 20px;
  color: var(--text);
}
.case-section li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.case-img {
  margin: 32px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.06);
}
.case-img img {
  width: 100%; display: block;
}
.case-img figcaption {
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 12px 16px;
  background: var(--white);
  text-align: center;
  font-style: italic;
}

.case-two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin: 24px 0;
}
.case-col {
  background: var(--cream);
  padding: 24px;
  border-radius: 12px;
}
.case-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--forest);
  margin-bottom: 12px;
}
.case-col ul { margin-left: 16px; }
.case-col li { font-size: 0.9rem; margin-bottom: 6px; }

.case-highlight {
  background: var(--forest-dark);
  color: var(--white);
  padding: 32px;
  border-radius: 12px;
  margin: 32px 0;
}
.case-highlight h3 {
  color: var(--gold);
  margin-top: 0;
}
.case-highlight ul { color: rgba(255,255,255,0.85); }
.case-highlight li { margin-bottom: 8px; }

.case-links {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 2px solid var(--cream-dark);
}

.case-nav {
  background: var(--cream);
  padding: 48px 32px;
  text-align: center;
}
.case-nav a {
  color: var(--forest);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.case-nav a:hover { color: var(--gold); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-text .tagline { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .photo-frame { width: 260px; height: 260px; }
  .hero-photo { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .project-card:nth-child(even) { direction: ltr; }
  .project-visual-img { min-height: 200px; }
  .case-two-col { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.active {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); padding: 24px 32px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    gap: 16px;
  }
}
@media (max-width: 600px) {
  section { padding: 64px 20px; }
  .nav-inner { padding: 14px 20px; }
  .hero { padding: 100px 20px 60px; }
  .skills-grid { grid-template-columns: 1fr; }
  .project-info { padding: 28px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .contact-links { flex-direction: column; align-items: center; }
  .case-body { padding: 48px 20px; }
  .case-hero { padding: 120px 20px 48px; }
  .page-header { padding: 120px 20px 40px; }
}
