@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #ffffff;
  --surface: #f5f5f5;
  --text: #0a0a0a;
  --muted: #525252;
  --muted-2: #8a8a8a;
  --accent: #0f766e;
  --border: #e5e5e5;
  --radius: 6px;
  --container: 1080px;
  --transition: 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

.container { width: min(92%, var(--container)); margin: 0 auto; }
.section { padding: 96px 0; }

.section-header { margin-bottom: 48px; }
.section-subtitle {
  color: var(--muted-2);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.js-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js-reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ============ NAVBAR ============ */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.navbar { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: color var(--transition);
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); font-weight: 600; }
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1.25rem;
  align-items: center; justify-content: center;
}
.menu-toggle:hover { background: var(--surface); }

/* ============ HERO ============ */
.hero { min-height: 88vh; display: flex; align-items: center; padding-top: 80px; }
.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}
.hero-subtitle { color: var(--muted); font-size: 0.95rem; margin-bottom: 8px; }
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.hero-role { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--muted); margin-bottom: 20px; }
.hero-description { max-width: 480px; color: var(--muted); font-size: 1rem; margin-bottom: 28px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--text); }

.hero-image { display: flex; justify-content: center; }
.profile-placeholder {
  width: 260px; height: 260px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
}
.profile-placeholder img { width: 100%; height: 100%; object-fit: cover; }
"/* ============ ABOUT ============ */
.about { background: var(--surface); }
.about-content { max-width: 680px; margin: 0 auto; }
.about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--muted);
  font-size: 1rem;
  text-align: center;
}

/* ============ SKILLS ============ */
.skills { background: var(--bg); }
.skills-category { margin-bottom: 40px; }
.skills-category:last-child { margin-bottom: 0; }
.skills-category-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.skill-card {
  padding: 18px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.skill-card:hover { border-color: var(--text); }
.skill-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.skill-card p { color: var(--muted-2); font-size: 0.82rem; }

/* ============ JOURNEY ============ */
.journey { background: var(--surface); }
.timeline { position: relative; max-width: 680px; margin: 0 auto; padding-left: 4px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px; bottom: 8px;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-number {
  position: relative;
  z-index: 2;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
}
.timeline-content { padding-top: 2px; }
.timeline-content h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.timeline-content p { color: var(--muted); font-size: 0.9rem; }
/* ============ PROJECTS ============ */
.projects { background: var(--bg); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.project-card:hover { border-color: var(--text); }
.project-image { height: 160px; overflow: hidden; background: var(--surface); }
.project-image img { width: 100%; height: 100%; object-fit: cover; }
.project-image.image-error img { display: none; }
.project-content { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.project-category {
  color: var(--muted-2);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.project-title { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.project-description { color: var(--muted); font-size: 0.85rem; margin-bottom: 12px; flex: 1; }
.project-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.project-tech span {
  padding: 3px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
}
.project-links { display: flex; gap: 16px; margin-top: auto; }
.project-links a { color: var(--text); font-size: 0.82rem; font-weight: 500; }
.project-links a:hover { color: var(--accent); }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--border); padding: 24px 0; background: var(--bg); }
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted-2);
  font-size: 0.8rem;
}
.footer-social {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(12px, 4vw, 18px);
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: clamp(5px, 1.5vw, 7px);
  white-space: nowrap;
  color: var(--muted-2);
  font-size: clamp(0.72rem, 2.6vw, 0.8rem);
  font-weight: 500;
  transition: color var(--transition);
}
.footer-social a:hover { color: var(--accent); }
.footer-social svg {
  width: clamp(13px, 3.6vw, 16px);
  height: clamp(13px, 3.6vw, 16px);
  flex-shrink: 0;
  fill: currentColor;
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), color var(--transition), border-color var(--transition);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { color: var(--text); border-color: var(--text); transform: translateY(0); }
/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-image { order: -1; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .profile-placeholder { width: 220px; height: 220px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 36px; }
  .nav-menu {
    position: absolute;
    top: 64px; left: 0; width: 100%;
    padding: 12px;
    flex-direction: column;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }
  .nav-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }
  .menu-toggle { display: flex; }
  .hero { padding-top: 72px; }
  .hero-title { font-size: clamp(2.25rem, 12vw, 3rem); }
  .hero-role { font-size: 0.95rem; }
  .hero-description { font-size: 0.92rem; }
  .profile-placeholder { width: 180px; height: 180px; }
  .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
  .btn { width: 100%; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 15px; }
  .timeline-item { gap: 14px; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-social {
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}
