@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --bg: #f5f3ef;
  --bg2: #ede9e3;
  --ink: #1a1714;
  --ink-mid: #4a4540;
  --ink-light: #8a8480;
  --accent: #c8a96e;
  --accent2: #d4b896;
  --white: #ffffff;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
  --radius: 16px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Custom Cursor (disabled) ── */
.cursor, .cursor-ring { display: none; }

/* ── Navbar ── */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 100px;
  padding: 6px 8px 6px 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.10),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  animation: nav-drop 0.7s var(--ease) both;
}
@keyframes nav-drop { from { opacity: 0; transform: translateX(-50%) translateY(-24px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

.nav-logo img { height: 22px; display: block; filter: invert(0); margin-right: 10px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-mid);
  text-decoration: none;
  letter-spacing: 0.01em;
  padding: 7px 16px;
  border-radius: 100px;
  background: transparent;
  transition: background 0.25s var(--ease), color 0.2s, box-shadow 0.25s;
  position: relative;
}
.nav-links a::after { display: none; }
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}
.nav-links a.active {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09), 0 1px 0 rgba(255,255,255,0.9) inset;
  font-weight: 500;
}

/* ── Page Wrapper ── */
.page-wrap { padding-top: 100px; }

/* ── Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Footer ── */
footer {
  background: var(--ink);
  color: var(--bg);
  padding: 60px 80px 40px;
  margin-top: 1px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 24px; filter: invert(1); margin-bottom: 12px; }
.footer-brand p { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.6; max-width: 220px; }
.footer-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 11px; color: rgba(255,255,255,0.3); }

/* ── Utility ── */
a { cursor: pointer; }
img { display: block; }

/* ══════════════════════════════
   HOME PAGE
══════════════════════════════ */

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  animation: hero-in 1s var(--ease) 0.3s both;
}
@keyframes hero-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(56px, 7vw, 100px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero h1 em { font-style: italic; color: var(--accent); }

.hero p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-mid);
  max-width: 500px;
}
.hero p strong { color: var(--ink); font-weight: 500; }

.hero-scroll {
  margin-top: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-decoration: none;
  transition: gap 0.3s var(--ease), color 0.2s;
}
.hero-scroll:hover { gap: 16px; color: var(--ink); }
.hero-scroll span {
  width: 36px; height: 1px;
  background: currentColor;
  display: block;
  transition: width 0.3s var(--ease);
}
.hero-scroll:hover span { width: 52px; }

/* Floating images in hero */
.hero-floats {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-float {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  animation: float-in 1.2s var(--ease) both;
}
.hero-float img { width: 100%; height: 100%; object-fit: cover; }

.hf1 { width: 220px; height: 160px; top: 68%; right: 15%; animation-delay: 0.5s; transform: rotate(24deg); }
.hf2 { width: 300px; height: 270px; top: 5%; right: 5%; animation-delay: 0.7s; transform: rotate(3deg); }
.hf3 { width: 180px; height: 160px; bottom: 55%; right: 58%; animation-delay: 0.9s; transform: rotate(-2deg); }
.hf4 { width: 140px; height: 110px; top: 10%; right: 48%; animation-delay: 1.0s; transform: rotate(5deg); }
.hf5 { width: 120px; height: 90px; bottom: 50%; right: 10%; animation-delay: 0.6s; transform: rotate(-3deg); }

@keyframes float-in { from { opacity: 0; transform: translateY(30px) rotate(var(--rot, 0deg)) scale(0.9); } to { opacity: 1; } }

.hf1 { --rot: 20deg; }
.hf2 { --rot: 3deg; }
.hf3 { --rot: -2deg; }
.hf4 { --rot: 5deg; }
.hf5 { --rot: -3deg; }

/* Subtle float animation */
.hero-float:nth-child(odd) { animation: float-in 1.2s var(--ease) both, bob1 6s ease-in-out 1.5s infinite; }
.hero-float:nth-child(even) { animation: float-in 1.2s var(--ease) both, bob2 7s ease-in-out 2s infinite; }

@keyframes bob1 { 0%,100% { transform: translateY(0) rotate(var(--rot)); } 50% { transform: translateY(-10px) rotate(var(--rot)); } }
@keyframes bob2 { 0%,100% { transform: translateY(0) rotate(var(--rot)); } 50% { transform: translateY(10px) rotate(var(--rot)); } }

/* Projects Section */
.projects-section {
  padding: 100px 80px;
}
.section-header {
  margin-bottom: 60px;
}
.section-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 16px;
  display: block;
}
.section-header h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-header p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-mid);
  max-width: 480px;
}

/* Project Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.projects-grid .project-card:nth-child(3) { grid-column: 1 / -1; }

.project-card {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  background: var(--bg2);
  cursor: pointer;
}
.project-card:hover .card-img img { transform: scale(1.06); }
.project-card:hover .card-overlay { opacity: 1; }
.project-card:hover .card-info { transform: translateY(0); opacity: 1; }

.card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.projects-grid .project-card:nth-child(3) .card-img { aspect-ratio: 21/9; }

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,23,20,0.85) 0%, rgba(26,23,20,0.3) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 32px;
}

.card-info {
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
  color: white;
}
.card-info h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.card-info p {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin-bottom: 12px;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 100px;
  color: rgba(255,255,255,0.8);
}

/* Static card label (visible always) */
.card-label {
  padding: 20px 24px;
}
.card-label h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 4px;
}
.card-label p { font-size: 12px; color: var(--ink-light); }

/* CTA Banner */
.cta-banner {
  margin: 0px 0 0;
  background: var(--ink);
  padding: 60px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cta-banner h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.02em;
  max-width: 480px;
  line-height: 1.2;
}
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 14px 24px;
  border-radius: 100px;
  transition: background 0.3s, border-color 0.3s, gap 0.3s var(--ease);
  white-space: nowrap;
}
.cta-link:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); gap: 18px; }
.cta-arrow { font-size: 18px; }

/* ══════════════════════════════
   WORKS PAGE
══════════════════════════════ */

.works-hero {
  padding: 40px 80px 60px;
}
.works-hero h1 {
  font-family: var(--serif);
  font-size: clamp(64px, 10vw, 140px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.works-hero h1 em { font-style: italic; color: var(--ink-light); }

/* Featured Work */
.featured-work {
  display: block;
  position: relative;
  overflow: hidden;
  margin-bottom: 2px;
  text-decoration: none;
  cursor: pointer;
}
.featured-work .fw-img {
  aspect-ratio: 16/7;
  overflow: hidden;
}
.featured-work .fw-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.featured-work:hover .fw-img img { transform: scale(1.04); }
.featured-work .fw-label {
  position: absolute;
  bottom: 32px; left: 40px;
  background: var(--bg);
  padding: 16px 24px;
  border-radius: var(--radius);
}
.featured-work .fw-label span {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
  display: block;
  margin-bottom: 4px;
}
.featured-work .fw-label h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
}

/* Works Grid */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 0;
}

.work-item {
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background: var(--bg2);
  cursor: pointer;
}
.work-item .wi-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.work-item .wi-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
  filter: grayscale(20%);
}
.work-item:hover .wi-img img { transform: scale(1.07); filter: grayscale(0%); }

.work-item .wi-info {
  padding: 18px 20px 22px;
  border-top: 1px solid rgba(26,23,20,0.06);
}
.work-item .wi-category {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 6px;
}
.work-item .wi-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 4px;
}
.work-item .wi-sub {
  font-size: 12px;
  color: var(--ink-light);
  margin-bottom: 8px;
}
.work-item .wi-meta {
  font-size: 11px;
  color: var(--ink-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.work-item .wi-meta::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--ink-light);
  display: block;
}

/* No link item */
.work-item.no-link { pointer-events: none; }
.work-item.no-link .wi-img img { filter: grayscale(30%); }

/* ══════════════════════════════
   RESUME PAGE
══════════════════════════════ */

.resume-section {
  padding: 60px 80px 120px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: start;
}
.resume-left h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.resume-left h1 em { font-style: italic; color: var(--accent); }
.resume-left p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-mid);
  max-width: 400px;
  margin-bottom: 36px;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.3s, gap 0.3s var(--ease);
}
.download-btn:hover { background: #2e2a26; gap: 16px; }
.download-btn svg { transition: transform 0.3s var(--ease); }
.download-btn:hover svg { transform: translateY(3px); }

.resume-right {
  position: sticky;
  top: 100px;
}
.resume-preview {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.15);
}
.resume-preview img { width: 100%; display: block; }

/* Skills & Experience */
.resume-details {
  margin-top: 60px;
}
.resume-details h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.skill-group { margin-bottom: 32px; }
.skill-group-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(26,23,20,0.1);
}
.skill-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-pill {
  font-size: 12px;
  padding: 6px 14px;
  border: 1px solid rgba(26,23,20,0.15);
  border-radius: 100px;
  color: var(--ink-mid);
  background: transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.skill-pill:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 32px; }
.tl-item { display: grid; grid-template-columns: 120px 1fr; gap: 20px; }
.tl-year {
  font-size: 12px;
  color: var(--ink-light);
  padding-top: 4px;
}
.tl-content h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 4px;
}
.tl-content p { font-size: 13px; color: var(--ink-mid); line-height: 1.6; }

/* ══════════════════════════════
   CONTACT PAGE
══════════════════════════════ */

.contact-page {
  min-height: calc(100vh - 100px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.contact-left {
  padding: 80px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
}
.contact-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 20px;
  display: block;
}
.contact-left h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
}
.contact-left h1 em { font-style: italic; color: var(--accent); }

.contact-items { display: flex; flex-direction: column; gap: 32px; }
.contact-item h4 {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 8px;
}
.contact-item a, .contact-item p {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  transition: color 0.2s;
}
.contact-item a:hover { color: var(--accent); }

.contact-right {
  position: relative;
  overflow: hidden;
  background: var(--bg2);
}
.contact-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  mix-blend-mode: multiply;
  transition: transform 0.8s var(--ease);
}
.contact-right:hover img { transform: scale(1.03); }
.contact-right-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent2) 0%, transparent 70%);
  opacity: 0.3;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */

@media (max-width: 900px) {
  .hero { padding: 0 28px; }
  .hero-floats { display: none; }
  .projects-section { padding: 60px 28px; }
  .projects-grid { grid-template-columns: 1fr; }
  .projects-grid .project-card:nth-child(3) { grid-column: auto; }
  .cta-banner { padding: 48px 28px; flex-direction: column; gap: 24px; }
  
  .works-hero { padding: 40px 28px 40px; }
  .works-grid { grid-template-columns: 1fr; }
  
  .resume-section { grid-template-columns: 1fr; padding: 60px 28px; }
  .resume-right { position: static; }
  
  .contact-page { grid-template-columns: 1fr; }
  .contact-right { display: none; }
  .contact-left { padding: 60px 28px; }
  
  nav { gap: 16px; padding: 10px 18px; }
  .nav-links { gap: 16px; }
  
  footer { padding: 40px 28px 28px; }
  .footer-inner { grid-template-columns: 1fr; }
}
