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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #0a0a0f;
  color: #f0f0f5;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  color: #00d4aa;
}

/* ─── Scroll Animations ─── */

.anim-hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.anim-hidden-sm {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.anim-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.anim-visible-sm {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* ─── Nav ─── */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 80px;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-photo {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

#nav-links-desktop {
  display: flex;
  gap: 24px;
  align-items: center;
  list-style: none;
}

#nav-links-desktop a {
  font-size: 0.825rem;
  font-weight: 500;
  color: #8888a0;
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
}

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

#nav-links-mobile {
  display: none;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #f0f0f5;
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  #nav-links-desktop {
    display: none;
  }

  #nav-links-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    list-style: none;
    background: #0a0a0f;
    z-index: 2000;
    padding-top: 80px;
    box-sizing: border-box;
  }

  .nav-open #nav-links-mobile {
    display: flex;
  }

  #nav-links-mobile a {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 12px 48px;
    color: #f0f0f5;
    text-align: center;
    display: block;
  }

  #nav-links-mobile a:hover,
  #nav-links-mobile a.active {
    color: #00d4aa;
  }
}

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

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

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

/* ─── Hero ─── */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 24px;
  background: #0a0a0f url('hero-bg.jpg') center / cover no-repeat;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(10,10,15,0.95) 0%, rgba(26,10,46,0.88) 30%, rgba(10,26,46,0.82) 60%, rgba(10,10,15,0.95) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

#hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #f0f0f5 0%, #00d4aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.125rem;
  font-weight: 500;
  color: #00d4aa;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1rem;
  color: #c0c0d5;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ─── Stat Cards ─── */

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 24px;
  min-width: 120px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: #00d4aa;
  box-shadow: 0 8px 24px rgba(0, 212, 170, 0.1);
}

.stat-value {
  display: block;
  font-size: 3.375rem;
  font-weight: 700;
  color: #00d4aa;
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 1.125rem;
  color: #c0c0d5;
  margin-top: 4px;
  line-height: 1.4;
}

/* ─── Buttons ─── */

.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  background: #00d4aa;
  color: #0a0a0f;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 170, 0.3);
}

.btn-secondary {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  background: transparent;
  color: #f0f0f5;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.btn-secondary:hover {
  border-color: #f0f0f5;
  transform: translateY(-2px);
}

/* ─── Social Proof ─── */

#social-proof {
  padding: 48px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 24px;
}

.logo-item {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.logo-item:hover {
  opacity: 1;
}

.logo-text {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #8888a0;
}

.logo-item:hover .logo-text {
  color: #f0f0f5;
}

.social-quote {
  font-size: 0.9rem;
  font-style: italic;
  color: #8888a0;
  margin: 0 auto;
}

/* ─── Recommendations ─── */

#recommendations {
  padding: 80px 0;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rec-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 28px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.rec-card:hover {
  transform: translateY(-4px);
  border-color: #00d4aa;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.06);
}

.rec-card::before {
  content: '\201C';
  font-size: 3rem;
  line-height: 1;
  color: #00d4aa;
  opacity: 0.3;
  position: absolute;
  top: 12px;
  left: 16px;
}

.rec-card p {
  font-size: 0.875rem;
  color: #8888a0;
  line-height: 1.7;
  font-style: italic;
}

/* ─── Experience ─── */

#experience {
  padding: 80px 0;
  background: #0e0e16;
}

.exp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.exp-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.exp-card:hover {
  transform: translateY(-4px);
  border-color: #00d4aa;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.06);
}

.exp-icon {
  display: block;
  width: 32px;
  height: 32px;
  color: #00d4aa;
  margin-bottom: 12px;
}

.exp-icon svg {
  width: 100%;
  height: 100%;
}

.exp-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #f0f0f5;
}

.exp-card p {
  font-size: 0.875rem;
  color: #8888a0;
  line-height: 1.7;
}

.exp-highlights {
  display: flex;
  gap: 48px;
  margin-top: 8px;
}

.exp-highlights ul {
  flex: 1;
  list-style: none;
}

.exp-highlights li {
  font-size: 0.9rem;
  color: #8888a0;
  padding: 8px 0;
  position: relative;
  padding-left: 24px;
}

.exp-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #00d4aa;
  border-radius: 50%;
}

/* ─── Philosophy ─── */

#philosophy {
  padding: 80px 0;
  text-align: center;
}

blockquote {
  font-size: 1.25rem;
  font-weight: 400;
  color: #8888a0;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 3rem;
  padding: 0 0 0 28px;
  border-left: 3px solid #00d4aa;
  text-align: left;
  font-style: italic;
}

.phil-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.phil-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.phil-card:hover {
  transform: translateY(-4px);
  border-color: #00d4aa;
}

.phil-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #f0f0f5;
}

.phil-card p {
  font-size: 0.875rem;
  color: #8888a0;
  line-height: 1.7;
}

/* ─── Skills ─── */

#skills {
  padding: 80px 0;
  background: #0e0e16;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.skill-category {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s;
}

.skill-category:hover {
  transform: translateY(-4px);
  border-color: #00d4aa;
}

.skill-icon {
  display: block;
  width: 32px;
  height: 32px;
  color: #00d4aa;
  margin-bottom: 12px;
}

.skill-icon svg {
  width: 100%;
  height: 100%;
}

.skill-category h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #00d4aa;
  margin-bottom: 16px;
}

.skill-category ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-category li {
  font-size: 0.85rem;
  color: #8888a0;
  position: relative;
  padding-left: 16px;
}

.skill-category li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: #00d4aa;
  border-radius: 50%;
}

/* ─── Portfolio ─── */

#portfolio {
  padding: 80px 0;
}

.portfolio-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.portfolio-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

.portfolio-card {
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: #00d4aa;
  box-shadow: 0 8px 24px rgba(0, 212, 170, 0.08);
}

.portfolio-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #f0f0f5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portfolio-card h3::before {
  content: '\2192';
  color: #00d4aa;
  font-size: 1.25rem;
  line-height: 1;
}

.portfolio-card p {
  font-size: 0.85rem;
  color: #8888a0;
}

/* ─── Contact ─── */

#contact {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a0a2e 30%, #0a1a2e 60%, #0a0a0f 100%);
}

#contact h2 {
  margin-bottom: 1rem;
}

.contact-email {
  font-size: 1rem;
  color: #8888a0;
  margin-bottom: 0.5rem;
}

.contact-location {
  font-size: 0.9rem;
  color: #8888a0;
  margin-bottom: 1.5rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── Footer ─── */

footer {
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer p {
  font-size: 0.8rem;
  color: #8888a0;
}

/* ─── Responsive ─── */

@media (max-width: 1024px) {
  .exp-cards,
  .phil-cards,
  .portfolio-cards,
  .rec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 1.5rem;
  }

  #hero h1 {
    font-size: 2.25rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  #hero {
    padding: 90px 24px 80px;
  }

  #recommendations,
  #experience,
  #philosophy,
  #skills,
  #portfolio,
  #contact {
    padding: 60px 0;
  }

  .exp-cards,
  .phil-cards,
  .portfolio-cards,
  .rec-grid {
    grid-template-columns: 1fr;
  }

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

  blockquote {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  #navbar {
    padding: 0 16px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .stat-card {
    padding: 16px 20px;
    min-width: 110px;
  }

  .stat-value {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 1rem;
  }

  .logo-row {
    gap: 24px;
  }
}
