/* ============================================
   desktop.css — Sujan Rai Portfolio
   All base/desktop styles: reset, variables,
   nav, hero, about, experience, skills,
   projects, contact, footer, scroll reveal
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #F5F0E8;
  --dark: #111208;
  --green: #1A3A2A;
  --green-mid: #2E5C3E;
  --green-light: #4A8C5C;
  --green-pale: #C8E6D0;
  --gold: #C9A84C;
  --gold-pale: #F5E6C0;
  --text: #1C1C1A;
  --muted: #6B6B60;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
  --mono: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 4rem;
  background: rgba(245, 240, 232, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 92, 62, 0.12);
}
.nav-logo {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 700;
  color: var(--green); letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.85rem; font-weight: 500; color: var(--muted);
  text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }
.nav-cta {
  padding: 0.55rem 1.4rem;
  background: var(--green); color: var(--cream);
  border: none; border-radius: 2rem;
  font-family: var(--sans); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; text-decoration: none; letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.nav-cta:hover { background: var(--green-mid); transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 55%; height: 100%;
  background: var(--green);
  z-index: 0;
}
.hero-left {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 4rem 5rem 4rem;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green-mid);
  background: var(--green-pale); border-radius: 2rem;
  padding: 0.4rem 1rem; margin-bottom: 2rem;
  width: fit-content;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-light); display: inline-block;
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 5vw, 5.5rem);
  font-weight: 900; line-height: 0.95;
  color: var(--dark); letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero-name em { color: var(--green-mid); font-style: normal; }
.hero-desc {
  font-size: 1.05rem; line-height: 1.75; color: var(--muted);
  max-width: 440px; margin-bottom: 2.5rem; font-weight: 300;
}
.hero-stats {
  display: flex; gap: 2.5rem; margin-bottom: 2.5rem;
}
.stat-item { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-num {
  font-family: var(--serif); font-size: 2rem; font-weight: 700;
  color: var(--green); line-height: 1;
}
.stat-label {
  font-size: 0.78rem; font-weight: 500; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.hero-btns { display: flex; gap: 1rem; align-items: center; }
.btn-primary {
  padding: 0.85rem 2rem; background: var(--green); color: var(--cream);
  border: none; border-radius: 2rem; font-family: var(--sans);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: transform 0.15s, background 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--green-mid); transform: translateY(-2px); }
.btn-outline {
  padding: 0.85rem 2rem; background: transparent; color: var(--green);
  border: 1.5px solid var(--green); border-radius: 2rem;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: all 0.2s;
  display: inline-block;
}
.btn-outline:hover { background: var(--green); color: var(--cream); }

.hero-right {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  align-items: center;
  padding: 1rem 2rem 0;
}
.hero-img-wrap {
  position: relative; width: 420px; max-width: 90%;
  border-radius: 2rem 2rem 0 0;
  overflow: hidden;
  height: 520px;
}
.hero-img-wrap img {
  width: 100%; height: 100%; display: block;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.05) brightness(0.97);
  border-radius: 2rem 2rem 0 0;
}
.hero-card {
  position: absolute; bottom: 2rem; left: -2rem;
  background: var(--cream); border-radius: 1rem; padding: 1rem 1.2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  display: flex; align-items: center; gap: 0.75rem;
  min-width: 200px;
}
.hero-card-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-card-icon svg { width: 18px; height: 18px; stroke: var(--cream); fill: none; stroke-width: 2; }
.hero-card-text { display: flex; flex-direction: column; gap: 0.1rem; }
.hero-card-label { font-size: 0.7rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.hero-card-value { font-size: 0.9rem; font-weight: 600; color: var(--dark); }

/* ── SECTIONS ── */
section { padding: 7rem 4rem; }
.section-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700; line-height: 1.1; color: var(--dark);
  margin-bottom: 1rem; letter-spacing: -0.02em;
}
.section-title em { color: var(--green-mid); font-style: normal; }
.section-sub {
  font-size: 1rem; color: var(--muted); max-width: 520px;
  line-height: 1.7; font-weight: 300; margin-bottom: 3.5rem;
}

/* ── ABOUT ── */
#about { background: var(--dark); color: var(--cream); }
#about .section-title { color: var(--cream); }
#about .section-sub { color: rgba(245,240,232,0.65); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.about-story {
  font-size: 1.05rem; line-height: 1.85; color: rgba(245,240,232,0.8);
  font-weight: 300;
}
.about-story p + p { margin-top: 1.25rem; }
.about-story strong { color: var(--green-pale); font-weight: 600; }
.about-highlights { display: flex; flex-direction: column; gap: 1.25rem; }
.highlight-card {
  background: rgba(245,240,232,0.06); border: 1px solid rgba(245,240,232,0.1);
  border-radius: 1rem; padding: 1.4rem 1.6rem;
  display: flex; gap: 1rem; align-items: flex-start;
  transition: background 0.2s;
}
.highlight-card:hover { background: rgba(245,240,232,0.1); }
.hl-icon {
  width: 40px; height: 40px; border-radius: 0.6rem;
  background: rgba(74,140,92,0.2); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.hl-icon svg { width: 20px; height: 20px; stroke: var(--green-light); fill: none; stroke-width: 2; }
.hl-content h4 { font-size: 0.9rem; font-weight: 600; color: var(--cream); margin-bottom: 0.25rem; }
.hl-content p { font-size: 0.82rem; color: rgba(245,240,232,0.55); line-height: 1.5; }

/* ── EXPERIENCE ── */
#experience { background: var(--cream); }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0.5rem; bottom: 0.5rem;
  width: 2px; background: var(--green-pale);
}
.timeline-item { position: relative; padding-bottom: 3.5rem; padding-left: 2.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -2.55rem; top: 0.4rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--green); border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--green);
}
.timeline-dot.current { background: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.job-meta {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap;
}
.job-date {
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted);
  background: rgba(42,92,62,0.08); padding: 0.25rem 0.75rem; border-radius: 2rem;
}
.job-badge {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold);
  background: var(--gold-pale); padding: 0.25rem 0.75rem; border-radius: 2rem;
}
.job-title {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 700;
  color: var(--dark); margin-bottom: 0.2rem; letter-spacing: -0.01em;
}
.job-company {
  font-size: 0.88rem; font-weight: 500; color: var(--green-mid); margin-bottom: 1.25rem;
}
.job-duties { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.job-duties li {
  font-size: 0.92rem; color: var(--muted); line-height: 1.6;
  padding-left: 1.25rem; position: relative;
}
.job-duties li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--green-light); font-weight: 600;
}
.job-products { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.product-pill {
  font-size: 0.75rem; font-weight: 600; padding: 0.3rem 0.8rem;
  border-radius: 2rem; border: 1.5px solid var(--green-pale);
  color: var(--green-mid); letter-spacing: 0.03em;
}

/* ── SKILLS ── */
#skills { background: var(--green); }
#skills .section-label { color: var(--gold); }
#skills .section-title { color: var(--cream); }
#skills .section-sub { color: rgba(245,240,232,0.65); }
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
}
.skill-group {
  background: rgba(245,240,232,0.06); border: 1px solid rgba(245,240,232,0.1);
  border-radius: 1.2rem; padding: 1.8rem;
  transition: transform 0.2s, background 0.2s;
}
.skill-group:hover { transform: translateY(-4px); background: rgba(245,240,232,0.1); }
.skill-group-title {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tag {
  font-size: 0.82rem; font-weight: 500; padding: 0.4rem 0.9rem;
  border-radius: 2rem; background: rgba(245,240,232,0.1); color: rgba(245,240,232,0.85);
  border: 1px solid rgba(245,240,232,0.15);
  transition: background 0.15s, color 0.15s;
}
.skill-tag:hover { background: rgba(245,240,232,0.2); color: var(--cream); }

/* ── PROJECTS ── */
#projects { background: var(--cream); }
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem;
}
.project-card {
  background: #fff; border: 1px solid rgba(0,0,0,0.08);
  border-radius: 1.2rem; padding: 2rem; position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}
.project-num {
  font-family: var(--serif); font-size: 3rem; font-weight: 900;
  color: rgba(42,92,62,0.08); line-height: 1; margin-bottom: 0.5rem;
}
.project-name {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 700;
  color: var(--dark); margin-bottom: 0.75rem; letter-spacing: -0.01em;
}
.project-desc {
  font-size: 0.88rem; color: var(--muted); line-height: 1.65; margin-bottom: 1.25rem;
}
.project-link {
  font-size: 0.82rem; font-weight: 600; color: var(--green);
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem;
  transition: gap 0.2s;
}
.project-link:hover { gap: 0.7rem; }
.project-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* ── CONTACT ── */
#contact { background: var(--dark); }
#contact .section-title { color: var(--cream); }
#contact .section-sub { color: rgba(245,240,232,0.6); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: rgba(245,240,232,0.06); border: 1px solid rgba(245,240,232,0.1);
  border-radius: 0.9rem; transition: background 0.2s;
  text-decoration: none;
}
.contact-item:hover { background: rgba(245,240,232,0.11); }
.ci-icon {
  width: 42px; height: 42px; border-radius: 0.7rem;
  background: rgba(74,140,92,0.15); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.ci-icon svg { width: 20px; height: 20px; stroke: var(--green-light); fill: none; stroke-width: 2; }
.ci-text { display: flex; flex-direction: column; gap: 0.15rem; }
.ci-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.09em; color: rgba(245,240,232,0.4); font-weight: 500; }
.ci-value { font-size: 0.9rem; font-weight: 500; color: var(--cream); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field label { font-size: 0.78rem; font-weight: 500; color: rgba(245,240,232,0.55); letter-spacing: 0.05em; text-transform: uppercase; }
.form-field input, .form-field textarea {
  background: rgba(245,240,232,0.06); border: 1px solid rgba(245,240,232,0.12);
  border-radius: 0.6rem; padding: 0.85rem 1rem;
  font-family: var(--sans); font-size: 0.92rem; color: var(--cream);
  transition: border-color 0.2s; outline: none; resize: none;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(245,240,232,0.3); }
.form-field input:focus, .form-field textarea:focus { border-color: var(--green-light); }
.form-field textarea { min-height: 130px; }
.form-submit {
  padding: 1rem 2rem; background: var(--green); color: var(--cream);
  border: none; border-radius: 2rem; font-family: var(--sans);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s, transform 0.15s; align-self: flex-start;
}
.form-submit:hover { background: var(--green-mid); transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  background: var(--dark); border-top: 1px solid rgba(245,240,232,0.08);
  padding: 2rem 4rem; display: flex; justify-content: space-between; align-items: center;
}
.footer-logo { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: rgba(245,240,232,0.4); }
.footer-copy { font-size: 0.8rem; color: rgba(245,240,232,0.3); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; color: rgba(245,240,232,0.35); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--green-light); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
