/* ============================================================
   PORTFOLIO — style.css
   Designer: Rajai GFX
   Fonts: Playfair Display (serif) + Outfit (sans)
   ============================================================ */

/* ── GOOGLE FONTS loaded via <link> in HTML head ── */

/* ── CSS RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── CSS VARIABLES — LIGHT MODE ── */
:root {
  --bg-primary:    #FAFAF7;
  --bg-secondary:  #F2F0EA;
  --bg-card:       #FFFFFF;
  --bg-dark:       #141412;
  --ink:           #141412;
  --ink-strong:    #000000;
  --ink-muted:     #6A6860;
  --ink-faint:     #C5C3BC;
  --accent:        #bf8b3a;
  --accent-hover:  #A37530;
  --accent-light:  #F5EDD8;
  --border:        rgba(20, 20, 18, 0.12);
  --border-strong: rgba(20, 20, 18, 0.22);

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Outfit', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);

  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.18s ease;
}

/* ── DARK MODE VARIABLES ── */
[data-theme="dark"] {
  --bg-primary:    #111110;
  --bg-secondary:  #1A1918;
  --bg-card:       #1E1D1B;
  --bg-dark:       #0A0A09;
  --ink:           #E8E4DC;
  --ink-strong:    #F5F2EC;
  --ink-muted:     #9A9790;
  --ink-faint:     #3A3936;
  --accent:        #D4A052;
  --accent-hover:  #E8B866;
  --accent-light:  #2A2218;
  --border:        rgba(232, 228, 220, 0.10);
  --border-strong: rgba(232, 228, 220, 0.20);

  --shadow-sm: 0 2px 12px rgba(0,0,0,0.30);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.40);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.50);
}

/* ── BASE ── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  transition: background-color 0.4s var(--transition), color 0.4s var(--transition);
  overflow-x: hidden;
  cursor: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: none;
}

button {
  cursor: none;
}

/* ── CUSTOM CURSOR ── */
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, background 0.2s, opacity 0.2s;
  opacity: 0.7;
}
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor-ring.hovering {
  width: 56px;
  height: 56px;
  background: rgba(191, 139, 58, 0.10);
  opacity: 1;
}

/* ── MOBILE CURSOR FIX ── */
@media (hover: none) {
  body { cursor: auto; }
  .cursor-ring, .cursor-dot { display: none !important; }
  a, button, .project-card, .skill-tag { cursor: pointer; }
}

/* ── LAZY IMAGE PLACEHOLDER ── */
img[loading="lazy"] {
  background: var(--bg-secondary);
  transition: opacity 0.3s ease;
}

/* ── NAV ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 0 5vw;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}

#navbar.scrolled {
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  height: 62px;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink-strong);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-logo-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--transition-fast);
  cursor: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme toggle button */
.theme-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  background: transparent;
  border-radius: 50%;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: transform 0.4s, opacity 0.4s;
  font-size: 16px;
}

[data-theme="dark"] .theme-toggle .icon-sun { transform: translateY(0); opacity: 1; }
[data-theme="dark"] .theme-toggle .icon-moon { transform: translateY(20px); opacity: 0; }
[data-theme="light"] .theme-toggle .icon-sun { transform: translateY(-20px); opacity: 0; }
[data-theme="light"] .theme-toggle .icon-moon { transform: translateY(0); opacity: 1; }

.nav-cta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-card);
  background: var(--ink);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--bg-primary);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--ink);
  transition: color var(--transition-fast);
}

.mobile-nav a:hover { color: var(--accent); }

/* ── SECTION SHARED ── */
section {
  padding: 7rem 5vw;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink-strong);
  margin-bottom: 1.2rem;
}

.section-heading em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-muted);
}

.section-sub {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.85;
  max-width: 520px;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for child elements */
.reveal-group > *:nth-child(1) { transition-delay: 0s; }
.reveal-group > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-group > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-group > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-group > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-group > *:nth-child(6) { transition-delay: 0.40s; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  padding: 0 5vw;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 80px;
  gap: 0;
  flex: 1;
}

/* Left column */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4rem 5rem 0;
  border-right: 1px solid var(--border);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeSlideUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.2s forwards;
}

.hero-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(191,139,58,0.25);
  padding: 5px 14px;
  border-radius: 100px;
}

.hero-available {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-muted);
}

.hero-available-dot {
  width: 7px;
  height: 7px;
  background: #4CAF50;
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76,175,80,0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(76,175,80,0); }
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6.5vw, 6.5rem);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.35s forwards;
}

.hero-name-italic {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-muted);
  display: block;
}



.hero-role {
  font-size: 1.05rem;
  color: var(--ink-muted);
  margin-bottom: 2.5rem;
  line-height: 1.75;
  max-width: 400px;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.5s forwards;
}

.hero-role strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.65s forwards;
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--bg-primary);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: none;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-solid:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(191,139,58,0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  cursor: none;
  transition: border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Right column (hero visual) */
.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 0 5rem 4rem;
  position: relative;
}

.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.hero-photo-box {
  aspect-ratio: 4/5;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Decorative accent corner */
.hero-photo-frame::before {
  content: '';
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 55%;
  height: 55%;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.35;
}

/* Floating stat chips */
.hero-chip {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 4s ease-in-out infinite;
  z-index: 10;
}

.hero-chip:nth-child(2) { animation-delay: 0.5s; }
.hero-chip:nth-child(3) { animation-delay: 1.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

.hero-chip-top {
  top: 12%;
  right: -28%;
}

.hero-chip-bottom {
  bottom: 14%;
  left: -6%;
}

.chip-number {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink-strong);
  line-height: 1;
}

.chip-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.4;
}

.chip-icon {
  width: 34px;
  height: 34px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stats strip */
.hero-stats {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1140px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.9s forwards;
}

.hero-stat-item {
  padding: 2rem 5vw 2rem 0;
  border-right: 1px solid var(--border);
}

.hero-stat-item:last-child { border-right: none; }

.hero-stat-item:not(:first-child) {
  padding-left: 5vw;
}

.stat-number {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink-strong);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ── ABOUT ── */
#about {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.about-photo-wrap {
  position: relative;
  max-width: 360px;
}

.about-photo-img {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.about-photo-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.about-photo-badge .big-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.about-photo-badge .small-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.about-text-block {
  padding-top: 0.5rem;
}

.about-para {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.9;
  margin-bottom: 1.4rem;
}

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

.about-para:last-of-type { margin-bottom: 0; }

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 2.5rem;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.about-highlight {
  background: var(--bg-card);
  padding: 1.1rem 1.3rem;
  transition: background var(--transition-fast);
}

.about-highlight:hover { background: var(--bg-primary); }

.ah-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.ah-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-strong);
}

/* ── PROJECTS ── */
#projects {
  background: var(--bg-primary);
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Featured card spans full width */
.project-card-featured {
  grid-column: 1 / -1;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

a.project-card {
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.project-thumb {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
}

.project-card-featured .project-thumb {
  aspect-ratio: 2.6/1;
}

.project-card:not(.project-card-featured) .project-thumb {
  aspect-ratio: 16/9;
}

.project-thumb-inner {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-thumb-inner {
  transform: scale(1.04);
}

.project-thumb-icon {
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--ink-faint);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,20,18,0.5) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover .project-thumb-overlay {
  opacity: 1;
}

.project-body {
  padding: 1.6rem 1.8rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
}

.project-category {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.project-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink-strong);
  line-height: 1.25;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.65;
}

.project-arrow-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  color: var(--ink);
}

.project-card:hover .project-arrow-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.projects-more-action {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.projects-more-action .btn-outline {
  display: inline-flex;
  gap: 8px;
}

/* ── SKILLS ── */
#skills {
  background: var(--bg-dark);
}

[data-theme="dark"] #skills {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#skills .section-eyebrow,
#skills .section-heading,
#skills .section-sub {
  color: #E8E4DC;
}

[data-theme="dark"] #skills .section-heading {
  color: var(--ink-strong);
}

[data-theme="dark"] #skills .section-sub {
  color: var(--ink-muted);
}

#skills .section-eyebrow { color: var(--accent); }
#skills .section-heading em { color: rgba(232,228,220,0.5); }

[data-theme="dark"] #skills .section-heading em {
  color: var(--ink-muted);
}

#skills .section-sub {
  color: rgba(232,228,220,0.55);
}

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 5rem;
  margin-top: 4rem;
  align-items: start;
}

.skills-intro-block {}

.skills-tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 0;
}

.skills-tool-grid > .reveal {
  margin: 0;
}

.skill-group-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

[data-theme="dark"] .skill-group-title {
  border-bottom-color: var(--border);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-tag {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(232,228,220,0.7);
  border: 1px solid rgba(232,228,220,0.14);
  padding: 5px 12px;
  border-radius: 100px;
  cursor: default;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

[data-theme="dark"] .skill-tag {
  color: var(--ink-muted);
  border-color: var(--border);
}

.skill-tag:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(142, 112, 63, 0.07);
}

/* ── EXPERIENCE ── */
#experience {
  background: var(--bg-secondary);
}

.exp-list {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
}

.exp-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  transition: background var(--transition-fast);
}

.exp-item:last-child {
  border-bottom: 1px solid var(--border);
}

.exp-date {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  padding-top: 4px;
  flex-shrink: 0;
}

.exp-role {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink-strong);
  margin-bottom: 4px;
}

.exp-company {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
}

.exp-desc {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.85;
  max-width: 580px;
  margin-bottom: 1rem;
}

.exp-desc strong {
  color: var(--ink);
  font-weight: 600;
}

.bullet-accent {
  color: var(--accent);
  font-weight: 600;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.exp-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 100px;
}

/* ── CONTACT ── */
#contact {
  background: var(--bg-primary);
  text-align: center;
}

#contact .section-eyebrow {
  justify-content: center;
}

#contact .section-eyebrow::before { display: none; }

#contact .section-heading,
#contact .section-sub {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact-email-link {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-strong);
  margin: 1.5rem 0 2.5rem;
  position: relative;
  transition: color var(--transition-fast);
}

.contact-email-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 100%;
  height: 1.5px;
  background: var(--accent);
  transition: right 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-email-link:hover { color: var(--accent); }
.contact-email-link:hover::after { right: 0; }

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color var(--transition-fast);
}

.social-link svg {
  width: 14px; height: 14px;
  transition: transform var(--transition-fast);
}

.social-link:hover { color: var(--accent); }
.social-link:hover svg { transform: translate(2px, -2px); }

/* ── FOOTER ── */
footer {
  background: var(--bg-dark);
  color: rgba(232,228,220,0.4);
  padding: 1.8rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 12px;
  letter-spacing: 0.05em;
  flex-wrap: wrap;
}

[data-theme="dark"] footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  color: var(--ink-muted);
}

footer a {
  color: inherit;
  transition: color var(--transition-fast);
}

footer a:hover { color: var(--accent); }

/* ── PROJECTS PAGE HEADER ── */
#projects-page-header {
  padding: 7rem 5vw 3rem;
  background: var(--bg-secondary);
}

#projects-page-header .section-eyebrow { margin-bottom: 1.2rem; }
#projects-page-header .section-heading { margin-bottom: 1.2rem; }

/* ── PROJECTS GRID PAGE ── */
#projects-grid-section {
  background: var(--bg-primary);
  padding: 4rem 5vw 7rem;
}

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

.project-card-grid {
  display: block;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  text-decoration: none;
  color: inherit;
  cursor: none;
}

.project-card-grid:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.project-grid-thumb {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  aspect-ratio: 16/9;
}

.project-grid-thumb-inner {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card-grid:hover .project-grid-thumb-inner {
  transform: scale(1.06);
}

.project-grid-info {
  padding: 1.4rem 1.6rem;
}

.project-grid-category {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.project-grid-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink-strong);
  line-height: 1.35;
}

/* ── RESPONSIVE: TABLET ── */
@media (max-width: 960px) {
  section { padding: 5.5rem 5vw; }

  .hero-grid { grid-template-columns: 1fr; padding-top: 100px; }
  .hero-content { border-right: none; border-bottom: 1px solid var(--border); padding: 3rem 0 3rem; }
  .hero-visual { padding: 3rem 0; }
  .hero-photo-frame { max-width: 300px; }
  .hero-chip { display: none; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stat-item { padding: 1.5rem 2vw; }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { max-width: 100%; }
  .about-photo-img { aspect-ratio: 4/3; }

  .skills-layout { grid-template-columns: 1fr; gap: 3rem; }

  .exp-item { grid-template-columns: 1fr; gap: 0.5rem; }

  .projects-all-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── RESPONSIVE: MOBILE ── */
@media (max-width: 640px) {
  section { padding: 4.5rem 5vw; }

  #navbar { padding: 0 5vw; height: 64px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }

  .hero-grid { padding-top: 40px; }
  .hero-name { font-size: 3rem; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-card-featured { grid-column: 1; }

  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat-item {
    padding: 1.5rem 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    text-align: center;
  }
  .hero-stat-item:last-child { border-bottom: none; }
  .hero-stat-item:nth-child(3) {
    grid-column: 1;
    border-right: none;
    border-top: none;
    border-bottom: none;
  }

  .skills-tool-grid { grid-template-columns: 1fr; gap: 1.8rem; }

  .about-highlights { grid-template-columns: 1fr; }

  .projects-header { flex-direction: column; align-items: flex-start; }

  footer { flex-direction: column; text-align: center; }

  .contact-email-link { font-size: 1.5rem; }

  .projects-all-grid { grid-template-columns: 1fr; }
}

/* ── PROJECT PAGE ── */
#project-hero {
  background: var(--bg-secondary);
  padding: 5rem 5vw 4rem;
}

.project-back-link {
  margin-bottom: 3rem;
}

.project-back-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color var(--transition-fast);
}

.project-back-link a:hover {
  color: var(--accent);
}

.project-category {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.project-category::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}

.project-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink-strong);
  margin-bottom: 1.2rem;
}

.project-intro {
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.8;
  max-width: 600px;
}

.project-hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.meta-value {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink-strong);
}

/* Project Gallery */
#project-gallery {
  background: var(--bg-primary);
  padding: 4rem 5vw;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.project-gallery-featured {
  grid-column: 1 / -1;
}

.project-gallery-item {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}

.project-gallery-item:hover {
  transform: scale(1.02);
}

/* Project Details */
#project-details {
  background: var(--bg-secondary);
  padding: 5rem 5vw;
}

.project-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.project-details-col {}

.project-detail-block {
  margin-bottom: 3rem;
}

.project-detail-block:last-child {
  margin-bottom: 0;
}

.project-detail-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink-strong);
  margin-bottom: 1rem;
}

.project-detail-text {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.9;
}

.project-deliverables {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.deliverable-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.deliverable-item svg {
  flex-shrink: 0;
  color: var(--accent);
  stroke-width: 3;
}

/* Related Projects */
#project-related {
  background: var(--bg-primary);
  padding: 6rem 5vw;
}

.related-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 2rem;
}

.related-project-card {
  display: block;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  text-decoration: none;
  color: inherit;
  cursor: none;
}

.related-project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.related-project-thumb {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  aspect-ratio: 16/9;
}

.related-project-thumb-inner {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.related-project-card:hover .related-project-thumb-inner {
  transform: scale(1.06);
}

.related-project-info {
  padding: 1.4rem 1.6rem;
}

.related-project-category {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.related-project-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink-strong);
  line-height: 1.35;
}

/* ── RESPONSIVE: TABLET ── */
/* ── RESPONSIVE: MOBILE ── */
@media (max-width: 640px) {
  .project-hero-meta { grid-template-columns: 1fr; }
  .related-projects-grid { grid-template-columns: 1fr; }
  .project-title { font-size: 1.8rem; }
}
