/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0a0a0a;
  color: #e5e5e5;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #0a0a0a;
  border-bottom: 1px solid #1a1a1a;
  z-index: 100;
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #777;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #e5e5e5;
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #e5e5e5;
}

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

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

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #e5e5e5;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero / Home ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-greeting {
  font-size: 0.95rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #888;
  max-width: 560px;
  line-height: 1.6;
}

.hero-scroll-hint {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-scroll-hint .arrow {
  display: inline-block;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ===== Section Common ===== */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  line-height: 1.2;
}

.section-divider {
  border: none;
  border-top: 1px solid #1a1a1a;
  margin: 0 auto;
  max-width: 1100px;
}

/* ===== Projects ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  padding: 2rem;
  background: #111;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: #2a2a2a;
}

.project-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 1rem;
}

.project-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: #999;
  background: #1a1a1a;
  padding: 0.3em 0.75em;
  border-radius: 20px;
}

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

.project-lang {
  font-size: 0.75rem;
  font-weight: 500;
  color: #666;
  margin-top: auto;
}

.project-card.featured {
  border-color: #333;
  background: #151515;
  position: relative;
}

.project-card.featured:hover {
  border-color: #444;
}

.project-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e5e5e5;
  background: #2a2a2a;
  padding: 0.3em 0.75em;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.projects-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.see-all-btn {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #e5e5e5;
  border: 1px solid #2a2a2a;
  padding: 0.75em 2em;
  border-radius: 8px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.see-all-btn:hover {
  background: #1a1a1a;
  border-color: #444;
}

/* ===== About ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  font-size: 1rem;
  color: #bbb;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-detail-item {
  border-left: 2px solid #222;
  padding-left: 1rem;
}

.about-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  margin-bottom: 0.25rem;
}

.about-detail-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: #ccc;
}

/* ===== Contact ===== */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content p {
  font-size: 1.05rem;
  color: #888;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

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

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #e5e5e5;
  border: 1px solid #2a2a2a;
  padding: 0.65em 1.5em;
  border-radius: 8px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.contact-link:hover {
  background: #1a1a1a;
  border-color: #444;
}

.contact-link svg {
  width: 16px;
  height: 16px;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid #1a1a1a;
  padding: 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.8rem;
  color: #555;
}

.footer-back-top {
  font-size: 0.8rem;
  font-weight: 500;
  color: #555;
  transition: color 0.2s ease;
}

.footer-back-top:hover {
  color: #e5e5e5;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #0a0a0a;
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid #1a1a1a;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .hero {
    padding: 0 1.5rem;
  }
}
