/* ============================================
   Design Tokens
   ============================================ */
:root {
  --color-bg-dark: #1a1a2e;
  --color-bg-darker: #12121f;
  --color-bg-light: #f9f6f1;
  --color-bg-white: #ffffff;
  --color-amber: #d4943a;
  --color-amber-hover: #e0a44d;
  --color-amber-dark: #b87d2e;
  --color-text-light: #ffffff;
  --color-text-muted: #a0a0b8;
  --color-text-dark: #1a1a2e;
  --color-text-body: #4a4a5a;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-light: #e5e0d8;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-height: 72px;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-smooth);
}

ul {
  list-style: none;
}

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

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.2);
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-amber);
  transition: width var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--color-text-light);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-light);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: var(--color-bg-dark);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 148, 58, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.hero-title-accent {
  color: var(--color-amber);
}

.hero-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-image-frame {
  width: 340px;
  max-width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--color-amber);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.hero-location svg {
  color: var(--color-amber);
  flex-shrink: 0;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: transform var(--transition-smooth), background var(--transition-smooth), box-shadow var(--transition-smooth);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--color-amber);
  color: var(--color-bg-dark);
}

.btn-primary:hover {
  background: var(--color-amber-hover);
  box-shadow: 0 8px 24px rgba(212, 148, 58, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-light);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  border-color: var(--color-amber);
  color: var(--color-amber);
  box-shadow: 0 8px 24px rgba(212, 148, 58, 0.15);
}

.btn-amber {
  background: var(--color-amber);
  color: var(--color-bg-dark);
}

.btn-amber:hover {
  background: var(--color-amber-hover);
  box-shadow: 0 8px 24px rgba(212, 148, 58, 0.3);
}

/* ============================================
   Section Headings
   ============================================ */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 48px;
}

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

/* ============================================
   About Section
   ============================================ */
.about {
  background: var(--color-bg-light);
  padding: 100px 24px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 60px;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--color-text-body);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.about-img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center 20%;
  transition: transform var(--transition-smooth);
}

.about-img:hover img {
  transform: scale(1.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border-light);
}

.stat {
  text-align: left;
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-body);
  opacity: 0.8;
}

/* ============================================
   Experience Section
   ============================================ */
.experience {
  background: var(--color-bg-white);
  padding: 100px 24px;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.experience-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition-smooth);
}

.experience-card:first-child {
  border-top: 1px solid var(--color-border-light);
}

.experience-role {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 4px;
}

.experience-company {
  font-size: 0.9rem;
  color: var(--color-amber-dark);
  font-weight: 500;
  margin-bottom: 16px;
}

.experience-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.experience-bullets li {
  font-size: 0.9rem;
  color: var(--color-text-body);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.experience-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-amber);
}

.experience-meta {
  text-align: right;
  flex-shrink: 0;
  min-width: 160px;
}

.experience-hero-img {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.experience-hero-img img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
}

.experience-date {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 4px;
}

.experience-location {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-body);
}

/* ============================================
   Skills Section
   ============================================ */
.skills {
  background: var(--color-bg-dark);
  padding: 100px 24px;
  color: var(--color-text-light);
}

.skills .section-title {
  color: var(--color-text-light);
}

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

.skills-category h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text-light);
}

.skills-category-img {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.skills-category-img img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  transition: transform var(--transition-smooth);
}

.skills-category-img:hover img {
  transform: scale(1.03);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-smooth);
}

.skill-tag:hover {
  background: rgba(212, 148, 58, 0.15);
  border-color: var(--color-amber);
  color: var(--color-amber);
  transform: translateY(-2px);
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
  background: var(--color-bg-darker);
  padding: 100px 24px;
  text-align: center;
  color: var(--color-text-light);
}

.contact .section-title {
  color: var(--color-text-light);
}

.contact-description {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: -24px auto 40px;
  line-height: 1.7;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.contact-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.contact-footer a {
  color: var(--color-amber);
}

.contact-footer a:hover {
  text-decoration: underline;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-bg-dark);
  padding: 24px;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children for skills */
.skills-category .skill-tag {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.skills-category.visible .skill-tag {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet ≤ 900px */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image-frame {
    width: 260px;
  }

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

  .about-images {
    order: -1;
  }

  .about-img img {
    height: 220px;
  }

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

  .experience-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .experience-meta {
    text-align: left;
    display: flex;
    gap: 12px;
    min-width: unset;
  }

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

/* Hamburger nav ≤ 768px */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 16px 0;
    transform: translateY(-120%);
    transition: transform var(--transition-smooth);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    width: 100%;
    text-align: center;
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* Phone ≤ 480px */
@media (max-width: 480px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(var(--nav-height) + 20px);
    padding-bottom: 60px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .hero-image-frame {
    width: 220px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .about-images {
    grid-template-columns: 1fr;
  }

  .about-img img {
    height: 200px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .about, .experience, .skills, .contact {
    padding: 60px 16px;
  }

  .section-title {
    margin-bottom: 32px;
  }

  .experience-bullets li {
    font-size: 0.85rem;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-buttons .btn {
    justify-content: center;
    font-size: 0.8rem;
    padding: 14px 16px;
    width: 100%;
  }

  .contact-footer {
    flex-direction: column;
    gap: 8px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }

  .skill-tag {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}
