
:root {
  --font-display: sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --accent:   #da5527;
  --accent2:  #f0834a;
  --navy:     #071739;
  --teal:     #4b9eb8;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="dark"] {
  --bg:        #08101f;
  --bg2:       #0e1a30;
  --bg3:       #132040;
  --surface:   #162447;
  --surface2:  #1e3060;
  --border:    rgba(255,255,255,0.08);
  --text:      #eef2f7;
  --text2:     #8ba4c0;
  --text3:     #556a82;
  --card-bg:   rgba(22, 36, 71, 0.8);
  --shadow:    0 8px 40px rgba(0,0,0,0.5);
  --nav-blur:  rgba(8,16,31,0.85);
  --skill-bg:  rgba(255,255,255,0.06);
}
[data-theme="light"] {
  --bg:        #f5f7fa;
  --bg2:       #edf0f5;
  --bg3:       #e3e8f0;
  --surface:   #ffffff;
  --surface2:  #f0f4fa;
  --border:    rgba(0,0,0,0.08);
  --text:      #0e1a30;
  --text2:     #4a6080;
  --text3:     #8aa0ba;
  --card-bg:   rgba(255,255,255,0.9);
  --shadow:    0 8px 40px rgba(0,0,0,0.1);
  --nav-blur:  rgba(245,247,250,0.9);
  --skill-bg:  rgba(0,0,0,0.05);
}
*, *::before, *::after { 
    margin: 0;
     padding: 0; 
     box-sizing: border-box; 
}
html { 
    scroll-behavior: smooth; 
    font-size: 16px; 
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
  line-height: 1.6;
}
ul { 
    list-style: none; 
}
a { 
    text-decoration: none; 
    color: inherit; 
}
img { 
    max-width: 100%; 
    display: block; 
}
::-webkit-scrollbar { 
    width: 4px; 
}
::-webkit-scrollbar-track { 
    background: var(--bg); 
}
::-webkit-scrollbar-thumb { 
    background: var(--accent); 
    border-radius: 99px; 
}
nav {
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  z-index: 1000;
  height: 64px;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 0 5vw;
  background: var(--nav-blur);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s var(--ease);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.nav-logo span { 
    color: var(--text2); 
    font-weight: 700; 
    font-size: 1rem; 
}
.nav-links {
  display: flex; 
  gap: 2rem; 
  align-items: center;
}
.nav-links a {
  font-size: 0.85rem; 
  font-weight: 500;
  color: var(--text2);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; 
  position: absolute; 
  bottom: -3px; 
  left: 0;
  width: 0; 
  height: 2px; 
  background: var(--accent);
  transition: width 0.3s var(--ease);
  border-radius: 99px;
}
.nav-links a:hover { 
    color: var(--text); 
}
.nav-links a:hover::after { 
    width: 100%; 
}
.theme-toggle {
  width: 44px; height: 24px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 99px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
  flex-shrink: 0;
}
.theme-toggle::after {
  content: '';
  position: absolute; 
  top: 3px; 
  left: 3px;
  width: 16px; 
  height: 16px; 
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.3s var(--ease);
}
[data-theme="light"] .theme-toggle::after { 
    transform: translateX(20px); 
}
.theme-toggle-icon {
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%);
  font-size: 10px; 
  pointer-events: none;
}
.theme-toggle-icon.sun { 
    right: 5px; 
}
.theme-toggle-icon.moon { 
    left: 5px; 
}
.hamburger {
  display: none; 
  flex-direction: column; 
  gap: 5px;
  cursor: pointer; 
  padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 99px;
  transition: all 0.3s var(--ease);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
#Home {
  min-height: 100vh;
  padding: 7rem 5vw 4rem;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}

.home-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto;
  gap: 4rem; align-items: center; width: 100%;
  max-width: 1100px;
}
.home-name {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  animation: fadeUp 0.6s 0.1s var(--ease) both;
}
.home-name .first { display: block; color: var(--text); }
.home-name .last {
  display: block;
  color: var(--accent);
  font-style: italic;
}
.home-roles {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1rem; font-weight: 500;
  color: var(--text2); margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.2s var(--ease) both;
  flex-wrap: wrap;
}
.role-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.25rem 0.75rem; border-radius: 99px;
  font-size: 0.85rem; color: var(--teal);
  font-weight: 600;
}
.home-bio {
  color: var(--text2); 
  font-size: 1rem; 
  line-height: 1.75;
  max-width: 520px; 
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s 0.3s var(--ease) both;
}
.home-bio strong { color: var(--text); font-weight: 600; }
.home-ctas {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeUp 0.6s 0.4s var(--ease) both;
}
.btn-main {
  background: var(--accent); color: #fff;
  padding: 0.8rem 2rem; border-radius: 10px;
  font-weight: 700; font-size: 0.9rem; font-family: var(--font-body);
  border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 24px rgba(218,85,39,0.35);
}
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(218,85,39,0.5); background: var(--accent2); }
.btn-ghost {
  background: transparent; color: var(--text);
  padding: 0.8rem 2rem; border-radius: 10px;
  font-weight: 600; font-size: 0.9rem;
  border: 1px solid var(--border); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(218,85,39,0.06); }
/* home photo */
.home-photo-wrap {
  position: relative; flex-shrink: 0;
  animation: fadeUp 0.8s 0.2s var(--ease) both;
}
.home-photo {
  width: 280px; height: 340px;
  border-radius: 24px 60px 24px 60px;
  object-fit: cover; object-position: top;
  border: 3px solid var(--border);
  position: relative; z-index: 2;
  filter: saturate(0.9);
  transition: filter 0.3s;
}
.home-photo:hover { filter: saturate(1.1); }
.home-photo-bg {
  position: absolute; inset: -12px;
  background: linear-gradient(135deg, rgba(218,85,39,0.2), rgba(75,158,184,0.15));
  border-radius: 30px 72px 30px 72px;
  z-index: 1; filter: blur(20px);
}

.section { padding: 6rem 5vw; }
.section-alt { background: var(--bg2); }
.section-head { margin-bottom: 3rem; }
.section-eyebrow {
  font-size: 1rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.6rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.section-eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--accent); border-radius: 99px; }
.section-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900; letter-spacing: -0.03em; line-height: 1.1;
  color: var(--text);
}
.about-grid {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 5rem; align-items: start;
}
.about-photo-wrap { position: relative; }
.about-photo {
  width: 100%;
  border-radius: 20px;
  object-fit: cover; object-position: top;
  border: 2px solid var(--border);
  aspect-ratio: 3/4;
}
.about-photo-deco {
  position: absolute; bottom: -14px; right: -14px;
  width: 100%; height: 100%;
  border: 2px solid var(--accent);
  border-radius: 20px; z-index: -1; opacity: 0.3;
}
.about-content p {
  color: var(--text2); line-height: 1.8; margin-bottom: 1.25rem; font-size: 0.97rem;
}
.about-content p strong { color: var(--text); font-weight: 600; }

.btn-cv {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--accent); color: #fff;
  padding: 0.75rem 1.75rem; border-radius: 10px;
  font-weight: 700; font-size: 0.88rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(218,85,39,0.3);
}
.btn-cv:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(218,85,39,0.45); }
.btn-cv svg { width: 16px; height: 16px; fill: currentColor; }
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.skills-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px; padding: 2rem;
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.skills-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.skills-card-title {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.skills-card-title::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.skill-row { margin-bottom: 1.4rem; }
.skill-row:last-child { margin-bottom: 0; }
.skill-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.5rem;
}
.skill-name { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.skill-pct { font-size: 0.75rem; font-weight: 700; color: var(--accent); font-family: var(--font-display); }
.skill-track {
  height: 5px; background: var(--skill-bg); border-radius: 99px; overflow: hidden;
}
.skill-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0; transition: width 1.4s cubic-bezier(0.4,0,0.2,1);
}

.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}
.project-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-thumb {
  height: 200px; overflow: hidden;
  background: linear-gradient(135deg, var(--surface), var(--surface2));
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.project-thumb video { width: 100%; height: 100%; object-fit: cover; }
.project-thumb-placeholder {
  font-size: 4rem;
  opacity: 0.3;
}
.project-type-tag {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fff;
  background: var(--accent); padding: 0.25rem 0.65rem; border-radius: 6px;
}
.project-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.project-name {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  margin-bottom: 0.5rem; color: var(--text);
}
.project-desc { color: var(--text2); font-size: 0.88rem; line-height: 1.65; flex: 1; }
.project-link {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.25rem;
  font-size: 0.82rem; font-weight: 700; color: var(--accent);
  border: 1px solid rgba(218,85,39,0.3); padding: 0.45rem 1rem; border-radius: 8px;
  transition: background 0.2s, border-color 0.2s; width: fit-content;
}
.project-link:hover { background: rgba(218,85,39,0.1); border-color: var(--accent); }


.timeline { position: relative; max-width: 700px; }
.timeline::before {
  content: ''; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--teal), transparent);
  border-radius: 99px;
}
.timeline-item {
  display: flex; gap: 1.75rem; margin-bottom: 2.5rem;
  padding-left: 0.25rem;
  opacity: 0; transform: translateX(-20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.timeline-item.visible { opacity: 1; transform: none; }
.timeline-dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0; z-index: 1;
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.25rem 1.5rem; flex: 1;
  transition: border-color 0.3s;
}
.timeline-card:hover { border-color: rgba(218,85,39,0.3); }
.timeline-date {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 0.4rem;
}
.timeline-school { font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 0.2rem; }
.timeline-degree { font-size: 0.88rem; color: var(--text2); }


.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start;
}
.contact-intro h3 {
  font-family: var(--font-display); font-size: 2rem; font-weight: 900;
  margin-bottom: 1rem; color: var(--text);
  line-height: 1.2;
}
.contact-intro p { color: var(--text2); line-height: 1.75; margin-bottom: 2rem; font-size: 0.96rem; }
.contact-list { display: flex; flex-direction: column; gap: 0.85rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
}
.contact-item:hover { transform: translateX(4px); border-color: rgba(218,85,39,0.3); }

.contact-item-text { }
.contact-item-label { font-size: 0.68rem; color: var(--text3); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-item-val { font-size: 0.9rem; font-weight: 600; color: var(--text); }


.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text3);
}
.field input, .field textarea {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.8rem 1rem;
  font-family: var(--font-body); font-size: 0.92rem; color: var(--text);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.field input:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(218,85,39,0.12);
}
.field textarea { resize: vertical; min-height: 120px; }

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 5vw;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: var(--text3);
}
footer strong { color: var(--accent); }


@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.7); opacity: 0.5; }
}
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }


@media (max-width: 900px) {
  .home-inner { grid-template-columns: 1fr; }
  .home-photo-wrap { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--nav-blur); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 1rem 5vw; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 0; border-bottom: 1px solid var(--border); width: 100%; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .about-info-grid { grid-template-columns: 1fr; }
}