/* ══════════════════════════════════════════════
   GOOGLE FONTS
   Sora  → display headings (distinctive, geometric)
   DM Sans → body text (clean, readable)
   ══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ══════════════════════════════════════════════
   DESIGN TOKENS — DARK MODE (default)
   Professional palette: deep navy + gold accent
   ══════════════════════════════════════════════ */
:root {
  /* Background layers (darkest → lighter) */
  --bg:       #0a0e1a;   /* deep navy page background */
  --bg2:      #0f1628;   /* section alternate bg */
  --bg3:      #172035;   /* card hover / inner bg */

  /* Borders */
  --border:   rgba(198, 168, 100, 0.08);
  --border2:  rgba(198, 168, 100, 0.16);

  /* Text */
  --text:     #e8edf5;   /* primary */
  --text2:    #7b8db0;   /* secondary */
  --text3:    #3f4e6e;   /* muted */

  /* Accent — gold */
  --accent:       #c6a864;   /* warm gold: visible on dark, professional */
  --accent2:      #e2c98a;   /* lighter gold: hover/lighter variant */
  --accent-bg:    rgba(198, 168, 100, 0.08);
  --accent-bg2:   rgba(198, 168, 100, 0.18);

  /* Cards */
  --card:     #0f1628;
  --card2:    #172035;

  /* Layout */
  --nav-h:    64px;
  --r:        14px;   /* border-radius default */
  --rsm:      8px;    /* small border-radius */

  /* Animation easing */
  --ease: 0.28s cubic-bezier(0.4, 0, 0.2, 1);

  /* Font stacks */
  --font-display: 'Sora', 'Helvetica Neue', sans-serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;
}

/* ── LIGHT MODE overrides ── */
[data-theme="light"] {
  --bg:       #f0f4f8;
  --bg2:      #e4eaf3;
  --bg3:      #d8e2ee;
  --border:   rgba(26, 54, 93, 0.08);
  --border2:  rgba(26, 54, 93, 0.15);
  --text:     #0f1e38;
  --text2:    #3d5275;
  --text3:    #7a93b8;
  --accent:       #8c6d3f;   /* deep gold — readable on light */
  --accent2:      #a07d4a;
  --accent-bg:    rgba(140, 109, 63, 0.08);
  --accent-bg2:   rgba(140, 109, 63, 0.16);
  --card:     #ffffff;
  --card2:    #edf2f9;
}

/* ══════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--ease), color var(--ease);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
img { max-width: 100%; display: block; }

/* ══════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: background var(--ease), box-shadow var(--ease);
}
nav.scrolled { box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3); }

/* Logo */
.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}

/* Desktop nav links */
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  padding: 6px 14px;
  border-radius: 100px;
  transition: color var(--ease), background var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); background: var(--bg3); }

/* Right side of nav */
.nav-right { display: flex; align-items: center; gap: 10px; }

/* Download CV button */
.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid var(--border2);
  background: transparent;
  transition: all var(--ease);
  cursor: pointer;
}
.cv-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-bg); }

/* Theme toggle button */
.theme-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: var(--bg2);
  color: var(--text2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: all var(--ease);
}
.theme-btn:hover { color: var(--accent); border-color: var(--accent); }

/* Hamburger icon (mobile) */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--text2); border-radius: 2px; transition: all var(--ease); }

/* Mobile menu drawer */
.mob-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 20px;
  z-index: 99;
  flex-direction: column;
  gap: 2px;
}
.mob-menu.open { display: flex; }
.mob-menu a {
  padding: 12px 14px;
  border-radius: var(--rsm);
  color: var(--text2);
  font-size: 15px; font-weight: 500;
  transition: all var(--ease);
}
.mob-menu a:hover { color: var(--text); background: var(--bg3); }
.mob-cv { color: var(--accent) !important; margin-top: 6px; }

/* ══════════════════════════════════════════════
   MAIN LAYOUT
   ══════════════════════════════════════════════ */
main { padding-top: var(--nav-h); }
section { min-height: 100vh; position: relative; }

/* ── Shared section wrapper ── */
.inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(80px, 10vh, 120px) clamp(20px, 7vw, 80px);
}

/* Section label (small caps above heading) */
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.sec-label::before {
  content: '';
  display: inline-block;
  width: 22px; height: 1px;
  background: var(--accent);
}

/* Section heading */
.sec-h {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
  margin-bottom: 10px;
}

/* Section subtitle */
.sec-sub {
  font-size: 15px;
  color: var(--text2);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 52px;
  font-weight: 400;
}

/* ══════════════════════════════════════════════
   SCROLL REVEAL ANIMATION
   Elements with .rev fade in when visible (.vis added by JS)
   ══════════════════════════════════════════════ */
.rev { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.rev.vis { opacity: 1; transform: translateY(0); }

/* Staggered delays for children */
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }

/* ══════════════════════════════════════════════
   HOME SECTION
   ══════════════════════════════════════════════ */
#home {
  display: flex;
  align-items: center;
  padding: clamp(60px, 8vh, 100px) clamp(20px, 7vw, 80px);
  overflow: hidden;
}

/* Decorative background blobs */
.orb { position: absolute; border-radius: 50%; pointer-events: none; }
.orb1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(198,168,100,.07) 0%, transparent 70%);
  top: -120px; right: -120px;
}
.orb2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(26,54,93,.05) 0%, transparent 70%);
  bottom: -60px; left: -60px;
}

/* Home inner two-column layout */
.home-inner {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
  width: 100%; max-width: 1100px;
  margin: 0 auto;
  position: relative; z-index: 1;
}
.home-text { flex: 1; }

/* "Available for internships" pill badge */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-bg);
  border: 1px solid rgba(198,168,100,.2);
  color: var(--accent);
  font-size: 12px; font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}
/* Pulsing dot inside eyebrow pill */
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.8); }
}

/* Hero headline */
.home-text h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 74px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.04em;
  margin-bottom: 14px;
}
.home-text h1 em { font-style: italic; color: var(--accent); font-weight: 700; }

/* Hero subtitle */
.home-sub {
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--text2);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 34px;
  font-weight: 400;
}

/* CTA button group */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Primary button (solid accent) */
.btn-p {
  display: inline-flex;
  align-items: center; gap: 8px;
  background: var(--accent);
  color: #0b0f1a;  /* always dark text on bright button */
  font-family: var(--font-body);
  font-size: 14px; font-weight: 700;
  padding: 12px 26px;
  border-radius: 100px;
  transition: all var(--ease);
  white-space: nowrap;
}
.btn-p:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(198,168,100,.28); }

/* Ghost button (outlined) */
.btn-g {
  display: inline-flex;
  align-items: center; gap: 8px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  padding: 11px 22px;
  border-radius: 100px;
  border: 1px solid var(--border2);
  transition: all var(--ease);
  white-space: nowrap;
}
.btn-g:hover { background: var(--bg3); border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* Stats bar below buttons */
.home-stats {
  display: flex; gap: 36px;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hstat h3 { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--accent); letter-spacing: -.03em; }
.hstat p  { font-size: 11px; color: var(--text3); letter-spacing: .07em; text-transform: uppercase; margin-top: 2px; font-weight: 500; }

/* Profile photo */
.photo-wrap    { flex-shrink: 0; position: relative; }
.photo-frame   { width: clamp(210px,22vw,290px); height: clamp(250px,28vw,360px); border-radius: 110px 110px 20px 20px; overflow: hidden; border: 1px solid var(--border2); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.photo-frame:hover img { transform: scale(1.04); }

/* "Open to work" badge on photo */
.photo-badge { position: absolute; bottom: -12px; left: -12px; background: var(--card); border: 1px solid var(--border2); border-radius: var(--r); padding: 11px 15px; display: flex; align-items: center; gap: 9px; }
.badge-dot   { width: 9px; height: 9px; background: #4ade80; border-radius: 50%; box-shadow: 0 0 0 3px rgba(74,222,128,.2); animation: pulse 2s infinite; }
.badge-txt   { font-size: 12px; font-weight: 500; color: var(--text2); }

/* Animated scroll indicator at bottom of hero */
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: var(--text3); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  animation: scuebounce 2s ease infinite; font-weight: 600;
}
@keyframes scuebounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ══════════════════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════════════════ */
#about { background: var(--bg2); }

/* Two-column layout: bio | timeline */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }

.about-bio p        { font-size: 15px; color: var(--text2); line-height: 1.85; margin-bottom: 18px; font-weight: 400; }
.about-bio strong   { color: var(--text); font-weight: 700; }

/* 2×2 highlight cards below bio */
.hlights { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.hli {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 15px 17px;
  transition: border-color var(--ease), transform var(--ease);
}
.hli:hover { border-color: var(--accent); transform: translateY(-2px); }
.hli-icon { font-size: 18px; margin-bottom: 7px; }
.hli h4   { font-size: 13px; font-weight: 700; margin-bottom: 2px; letter-spacing: -0.02em; }
.hli p    { font-size: 12px; color: var(--text2); }

/* Vertical education timeline */
.edu-tl { position: relative; }
.edu-tl::before { content: ''; position: absolute; left: 13px; top: 0; bottom: 0; width: 1px; background: var(--border2); }

.edu-entry { padding-left: 42px; position: relative; margin-bottom: 28px; }
.edu-entry::before {
  content: '';
  position: absolute; left: 7px; top: 5px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--border2);
  transition: border-color var(--ease);
}
/* Highlight the most recent entry */
.edu-entry:first-child::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-bg); }

.edu-yr   { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.edu-entry h4 { font-size: 15px; font-weight: 700; margin-bottom: 3px; letter-spacing: -0.02em; }
.edu-entry p  { font-size: 13px; color: var(--text2); }

/* ══════════════════════════════════════════════
   PROJECTS SECTION
   ══════════════════════════════════════════════ */
#projects { background: var(--bg); }

/* Responsive auto-fill grid */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }

/* Project card */
.pc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px;
  position: relative; overflow: hidden;
  transition: all var(--ease);
}
/* Accent gradient on hover */
.pc::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent-bg) 0%, transparent 60%);
  opacity: 0; transition: opacity var(--ease);
}
.pc:hover { border-color: rgba(198,168,100,.28); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.pc:hover::before { opacity: 1; }

.pc-top   { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; position: relative; z-index: 1; }
.pc-num   { font-family: var(--font-display); font-size: 38px; font-weight: 800; color: var(--border2); line-height: 1; transition: color var(--ease); letter-spacing: -0.04em; }
.pc:hover .pc-num { color: var(--accent-bg2); }

.pc-links { display: flex; gap: 7px; }
.ib {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text2);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--ease); font-size: 13px;
}
.ib:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }

.pc h3 { font-size: 16px; font-weight: 700; margin-bottom: 9px; position: relative; z-index: 1; letter-spacing: -0.02em; }
.pc p  { font-size: 13.5px; color: var(--text2); line-height: 1.7; margin-bottom: 18px; position: relative; z-index: 1; font-weight: 400; }

/* Tag pills */
.tags { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.tag  { font-size: 11px; font-weight: 600; background: var(--bg3); color: var(--text3); padding: 4px 10px; border-radius: 100px; border: 1px solid var(--border); transition: all var(--ease); letter-spacing: 0.01em; }
.pc:hover .tag { border-color: rgba(198,168,100,.18); color: var(--text2); }

/* Featured card (spans 2 cols, two-column internal layout) */
.pc.feat { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.pc.feat .pc-top { margin-bottom: 0; }
.feat-aside { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; font-size: 13px; color: var(--text2); line-height: 1.9; position: relative; z-index: 1; }
.feat-aside strong { display: block; font-weight: 700; color: var(--text); margin-bottom: 10px; font-size: 14px; letter-spacing: -0.02em; }

/* Ghost / upcoming card */
.pc.ghost { border-style: dashed; background: transparent; }
.pc.ghost h3, .pc.ghost p { color: var(--text3); }

/* ══════════════════════════════════════════════
   SKILLS SECTION
   ══════════════════════════════════════════════ */
#skills { background: var(--bg2); }

.sk-layout  { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.sk-group   { margin-bottom: 44px; }
.sk-title   { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text3); margin-bottom: 22px; padding-bottom: 11px; border-bottom: 1px solid var(--border); }

/* Skill progress bars */
.sk-bar      { margin-bottom: 16px; }
.sk-bar-top  { display: flex; justify-content: space-between; margin-bottom: 7px; }
.sk-bar-top span:first-child { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.sk-bar-top span:last-child  { font-size: 12px; color: var(--accent); font-weight: 700; }
.sk-track    { height: 3px; background: var(--bg3); border-radius: 2px; overflow: hidden; }
.sk-fill     { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 2px; width: 0; transition: width 1.2s cubic-bezier(.4,0,.2,1); }

/* Chip / pill badges */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip  { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 11px 15px; transition: all var(--ease); }
.chip:hover { border-color: var(--accent); background: var(--accent-bg); transform: translateY(-2px); }
.chip-icon { width: 30px; height: 30px; border-radius: 7px; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.chip span { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }

/* Certification rows */
.cert-list { display: flex; flex-direction: column; gap: 10px; }
.cert-row  { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 18px; transition: all var(--ease); }
.cert-row:hover { border-color: var(--accent); transform: translateX(4px); }
.cert-badge { width: 38px; height: 38px; border-radius: 9px; background: var(--accent-bg); border: 1px solid rgba(198,168,100,.18); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.cert-row h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; letter-spacing: -0.02em; }
.cert-row p  { font-size: 12px; color: var(--text2); }

/* Language logo cards */
.lang-logos { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.lang-logo-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 16px 20px; min-width: 80px; flex: 1;
  transition: all var(--ease); cursor: default;
}
.lang-logo-card:hover { border-color: var(--accent); background: var(--accent-bg); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.lang-logo-card img  { width: 38px; height: 38px; object-fit: contain; }
.lang-logo-card span { font-size: 12px; font-weight: 600; color: var(--text2); letter-spacing: -0.01em; white-space: nowrap; }

/* ══════════════════════════════════════════════
   ARTICLES SECTION
   ══════════════════════════════════════════════ */
#articles { background: var(--bg2); }

/* Tag and date inside article */
.art-tag  { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); background: var(--accent-bg); border: 1px solid rgba(198,168,100,.2); padding: 4px 10px; border-radius: 100px; }
.art-date { font-size: 11px; color: var(--text3); font-weight: 500; }

/* Simplified single article card */
.art-simple {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
  display: flex; flex-direction: column; gap: 12px;
  max-width: 680px; margin: 0 auto;
  transition: all var(--ease);
  position: relative; overflow: hidden;
}
.art-simple::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent-bg) 0%, transparent 60%);
  opacity: 0; transition: opacity var(--ease);
}
.art-simple:hover { border-color: rgba(198,168,100,.28); transform: translateY(-3px); box-shadow: 0 16px 48px rgba(0,0,0,.16); }
.art-simple:hover::before { opacity: 1; }

.art-simple-meta { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.art-simple h3   { font-family: var(--font-display); font-size: clamp(16px, 1.8vw, 20px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; color: var(--text); position: relative; z-index: 1; }
.art-simple p    { font-size: 14px; color: var(--text2); line-height: 1.75; position: relative; z-index: 1; }

/* Article "read more" link */
.art-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--accent); margin-top: 8px; position: relative; z-index: 1; transition: gap var(--ease); }
.art-link:hover { gap: 11px; }

.art-cta { text-align: center; margin-top: 40px; }

/* ══════════════════════════════════════════════
   CONTACT SECTION
   ══════════════════════════════════════════════ */
#contact { background: var(--bg); }

/* Two-column layout */
.ct-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }
.ct-left h2 { font-family: var(--font-display); font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 14px; }
.ct-left > p { font-size: 15px; color: var(--text2); line-height: 1.7; margin-bottom: 36px; }

/* Contact link rows */
.ct-links { display: flex; flex-direction: column; gap: 10px; }
.clink { display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); transition: all var(--ease); }
.clink:hover { border-color: var(--accent); background: var(--accent-bg); transform: translateX(4px); }
.clink-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; transition: background var(--ease); }
.clink:hover .clink-icon { background: var(--accent-bg2); }
.clink-txt { flex: 1; }
.clink-txt span { display: block; font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px; font-weight: 700; }
.clink-txt p { font-size: 14px; font-weight: 500; color: var(--text); }
.clink svg  { color: var(--text3); transition: color var(--ease), transform var(--ease); flex-shrink: 0; }
.clink:hover svg { color: var(--accent); transform: translateX(2px); }

/* Contact form card */
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 32px; }
.form-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 22px; letter-spacing: -0.02em; }

/* Form layout */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.fg   { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.fg label { font-size: 11px; font-weight: 700; color: var(--text2); letter-spacing: .06em; text-transform: uppercase; }

/* Form inputs */
.fg input,
.fg textarea {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--rsm);
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: all var(--ease);
  width: 100%;
}
.fg input::placeholder,
.fg textarea::placeholder { color: var(--text3); }
.fg input:focus,
.fg textarea:focus { border-color: var(--accent); background: var(--bg3); }
.fg textarea { resize: none; line-height: 1.6; }

/* Form footer: status message + submit button */
.fsub { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.fmsg     { font-size: 13px; color: var(--accent); }
.fmsg.err { color: #f87171; }

/* Submit button */
#contactForm button {
  background: var(--accent);
  color: #0b0f1a;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 700;
  padding: 11px 26px;
  border-radius: 100px;
  border: none; cursor: pointer;
  transition: all var(--ease);
  display: flex; align-items: center; gap: 8px;
}
#contactForm button:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(198,168,100,.28); }

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
footer {
  padding: 28px clamp(20px, 7vw, 80px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg2);
  gap: 14px; flex-wrap: wrap;
}
footer p { font-size: 13px; color: var(--text3); font-weight: 400; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { font-size: 13px; color: var(--text3); transition: color var(--ease); font-weight: 500; }
.foot-links a:hover { color: var(--accent); }

/* ══════════════════════════════════════════════
   BACK TO TOP BUTTON
   ══════════════════════════════════════════════ */
.back-top {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #0b0f1a;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
  opacity: 0; pointer-events: none;
  transition: all var(--ease);
  z-index: 50;
}
.back-top.show  { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); background: var(--accent2); }

/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET / MOBILE
   ══════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Hide desktop nav, show hamburger */
  .nav-links  { display: none; }
  .hamburger  { display: flex; }

  /* Stack home section */
  .home-inner { flex-direction: column-reverse; text-align: center; }
  .home-sub   { margin: 0 auto 34px; }
  .btns       { justify-content: center; }
  .home-stats { justify-content: center; }
  .photo-wrap { display: flex; justify-content: center; }

  /* Single-column grids */
  .about-grid,
  .sk-layout,
  .ct-grid    { grid-template-columns: 1fr; gap: 44px; }

  .proj-grid  { grid-template-columns: 1fr; }
  .pc.feat    { grid-column: span 1; grid-template-columns: 1fr; }

  .frow       { grid-template-columns: 1fr; }
  .hlights    { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .home-stats   { flex-direction: column; gap: 18px; }
  .photo-frame  { width: 190px; height: 230px; }
  footer        { flex-direction: column; text-align: center; }
}
