/* ===== variables ===== */

/* ===== reset ===== */

:root {

  --bg: #f4f9ff;

  --bg2: #eaf4ff;

  --surface: #f5faff;

  --border: #c7dbef;

  --text: #101a2a;

  --text-muted: #4f6f96;

  --text-dim: #8ca3bd;

  --accent: #3b82f6;         /* brighter blue */

  --accent2: #93c5fd;        /* soft light blue */

  --accent-glow: rgba(59, 130, 246, 0.15);

}


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

html { scroll-behavior: smooth; }

body {

  background: var(--bg);

  color: var(--text);

  font-family: var(--font-serif);

  font-size: 18px;

  line-height: 1.6;

  overflow-x: hidden;

}

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

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



/* ===== canvas background ===== */

#bg-canvas {

  position: fixed;

  inset: 0;

  z-index: 0;

  pointer-events: none;

  opacity: 0.3;

}



.nav, .hero, .skills-section, .edu-section,

.activities-section, .languages-section, .footer {

  position: relative;

  z-index: 1;

}



/* ===== nav ===== */

.nav {

  position: fixed;

  top: 0; left: 0; right: 0;

  display: flex;

  justify-content: flex-end;

  align-items: center;

  padding: 24px 56px;

  z-index: 100;

  background: rgba(248,251,255,0.85);

  backdrop-filter: blur(12px);

  border-bottom: 1px solid var(--border);

}

.nav-links { display: flex; gap: 32px; }

.nav-link {

  font-family: var(--font-mono);

  font-size: 11px;

  letter-spacing: 0.14em;

  text-transform: uppercase;

  color: var(--text-muted);

  display: inline-block;

  transition: color 0.3s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);

}

.nav-link:hover { color: var(--accent); transform: translatey(-2px); }



/* ===== button animations ===== */

.btn-anim {

  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease !important;

}

.btn-anim:hover { transform: translatey(-3px) !important; }

.btn-anim:active { transform: translatey(1px) !important; }



/* ===== hero ===== */

.hero {

  min-height: 100vh;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 0;

  align-items: center;

  padding: 100px 56px 80px;

}

.hero-left {

  display: flex;

  flex-direction: column;

  justify-content: center;

  padding-right: 60px;

}

.hero-tag {

  font-family: var(--font-mono);

  font-size: 11px;

  letter-spacing: 0.18em;

  text-transform: uppercase;

  color: var(--accent);

  margin-bottom: 24px;

  opacity: 0;

}

.hero-title {

  font-size: clamp(68px, 7.5vw, 112px);

  font-weight: 300;

  line-height: 0.92;

  letter-spacing: -0.02em;

  margin-bottom: 24px;

  color: var(--text);

}

.hero-title .line { display: block; overflow: hidden; }

.hero-title .italic { font-style: italic; color: var(--accent); }

.hero-sub {

  font-size: 17px;

  color: var(--text-muted);

  margin-bottom: 24px;

  font-family: var(--font-mono);

  letter-spacing: 0.06em;

  opacity: 0;

}

.location { font-size: 15px; color: var(--text-dim); display: block; margin-top: 6px; }



/* ===== hero contact ===== */

.hero-contact {

  display: flex;

  flex-direction: column;

  gap: 8px;

  margin-bottom: 32px;

  opacity: 0;

}

.contact-inline {

  font-family: var(--font-mono);

  font-size: 14px;

  letter-spacing: 0.08em;

  color: var(--text-muted);

  transition: color 0.2s;

}

.contact-inline:hover { color: var(--accent); }



.hero-cta { display: flex; gap: 16px; opacity: 0; }



.btn {

  display: inline-flex;

  align-items: center;

  padding: 13px 30px;

  font-family: var(--font-mono);

  font-size: 11px;

  letter-spacing: 0.14em;

  text-transform: uppercase;

  background: var(--accent);

  color: #fff;

  border: none;

  cursor: pointer;

  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), background 0.25s, box-shadow 0.25s;

}

.btn:hover { transform: translatey(-4px); background: #4a7ab8; box-shadow: 0 8px 32px rgba(112,154,200,0.35); }

.btn:active { transform: translatey(1px); }



.btn-outline {

  background: transparent;

  color: var(--text-muted);

  border: 1px solid var(--border);

}

.btn-outline:hover {

  transform: translatey(-4px);

  background: transparent;

  color: var(--accent);

  border-color: var(--accent);

  box-shadow: 0 4px 20px rgba(112,154,200,0.2);

}



/* ===== hero photo ===== */

.hero-right {

  display: flex;

  align-items: center;

  justify-content: center;

  opacity: 0;

}

.photo-wrap { position: relative; width: 300px; }

.hero-photo {

  width: 300px;

  height: 420px;

  object-fit: cover;

  object-position: 40% 65%;

}

.photo-border {

  position: absolute;

  inset: 12px 12px -12px -12px;

  border: 1px solid rgba(112,154,200,0.35);

  border-radius: 2px;

  pointer-events: none;

  z-index: -1;

}

.photo-tag {

  position: absolute;

  bottom: -36px;

  left: 0;

  font-family: var(--font-mono);

  font-size: 10px;

  letter-spacing: 0.15em;

  text-transform: uppercase;

  color: var(--text-dim);

}



/* ===== section header ===== */

.section-header {

  display: flex;

  align-items: baseline;

  gap: 16px;

  margin-bottom: 48px;

  opacity: 0;

}

.section-num { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0.1em; }

.section-title { font-size: 34px; font-weight: 300; letter-spacing: 0.04em; font-style: italic; color: var(--text); }



/* ===== skills ===== */

.skills-section {

  padding: 90px 56px;

  border-bottom: 1px solid var(--border);

  background: rgba(248,251,255,0.6);

}

.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px; }

.skill-card {

  background: #fff;

  padding: 36px 28px;

  border: 1px solid var(--border);

  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;

  opacity: 0;

}

.skill-card:hover { border-color: var(--accent); transform: translatey(-4px); box-shadow: 0 8px 40px rgba(112,154,200,0.18); }

.skill-icon { font-size: 26px; margin-bottom: 18px; }

.skill-name { font-size: 20px; font-weight: 400; margin-bottom: 8px; color: var(--text); }

.skill-desc { font-size: 13px; color: var(--text-muted); font-family: var(--font-mono); line-height: 1.7; font-weight: 300; }



/* ===== education ===== */

.edu-section {

  padding: 90px 56px;

  border-bottom: 1px solid var(--border);

  background: rgba(248,251,255,0.4);

}

.edu-list { display: flex; flex-direction: column; }

.edu-item {

  display: flex;

  align-items: flex-start;

  gap: 40px;

  padding: 32px 0;

  border-bottom: 1px solid var(--border);

  opacity: 0;

  transition: padding-left 0.3s;

}

.edu-item:last-child { border-bottom: none; }

.edu-item:hover { padding-left: 10px; }

.edu-year { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); min-width: 110px; padding-top: 5px; letter-spacing: 0.08em; }

.edu-body { flex: 1; }

.edu-school { font-size: 22px; font-weight: 400; margin-bottom: 6px; }

.edu-degree { font-size: 13px; color: var(--text-muted); font-family: var(--font-mono); }

.edu-badge { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(112,154,200,0.35); padding: 4px 10px; align-self: center; }



/* ===== activities ===== */

.activities-section {

  padding: 90px 56px;

  border-bottom: 1px solid var(--border);

  background: rgba(240,246,250,0.5);

}



/* ===== languages ===== */

.languages-section {

  padding: 90px 56px;

  border-bottom: 1px solid var(--border);

  background: rgba(248,251,255,0.6);

}



/* ===== footer ===== */

.footer {

  padding: 40px 56px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: rgba(240,246,250,0.9);

  border-top: 1px solid var(--border);

}

.footer-copy { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0.1em; }



/* ===== reveal animations ===== */

.reveal-line { opacity: 0; transform: translatey(14px); transition: opacity 0.45s ease, transform 0.45s ease; }

.reveal-line.visible { opacity: 1; transform: translatey(0); }

.reveal-fade { opacity: 0; transform: translatey(16px); transition: opacity 0.4s ease, transform 0.4s ease; }

.reveal-fade.visible { opacity: 1; transform: translatey(0); }

.reveal-image { opacity: 0; transition: opacity 0.6s ease; }

.reveal-image.visible { opacity: 1; }



/* ===== scrollbar ===== */

::-webkit-scrollbar { width: 4px; }

::-webkit-scrollbar-track { background: var(--bg); }

::-webkit-scrollbar-thumb { background: var(--border); }

::-webkit-scrollbar-thumb:hover { background: var(--accent); }



/* ===== responsive ===== */

@media (max-width: 900px) {

  .hero { grid-template-columns: 1fr; padding: 100px 28px 80px; min-height: auto; }

  .hero-left { padding-right: 0; }

  .hero-right { justify-content: flex-start; margin-top: 48px; }

  .photo-wrap { width: 200px; }

  .hero-photo { width: 200px; height: 280px; }

  .nav { padding: 20px 28px; }

  .skills-section, .edu-section, .activities-section, .languages-section { padding: 60px 28px; }

  .skills-grid { grid-template-columns: 1fr 1fr; }

  .edu-item { flex-direction: column; gap: 10px; }

  .edu-year { min-width: auto; }

  .footer { padding: 32px 28px; }

}

@media (max-width: 560px) {

  .hero-title { font-size: 54px; }

  .skills-grid { grid-template-columns: 1fr; }

}

