/* ============================================================
   Portfolio — Nguyễn Lê Dương | Creative Leader
   Light Theme — Cream / Beige / Teal
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  /* Primary Palette */
  --teal: #2A7C6F;
  --teal-dark: #1B5E50;
  --teal-light: #3DA899;
  --golden: #E8A838;
  --golden-light: #F5C547;
  --coral: #E8705A;

  /* Backgrounds — Light / Cream */
  --bg-cream: #FAF5EE;
  --bg-warm: #F3ECE0;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFCF7;

  /* Text */
  --text-dark: #1A2332;
  --text-body: #3D4F5F;
  --text-muted: #7A8A98;
  --text-light: #A3B1BF;

  /* Borders */
  --border-light: rgba(0, 0, 0, 0.06);
  --border-medium: rgba(0, 0, 0, 0.1);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--teal), var(--teal-light), var(--golden));
  --gradient-teal: linear-gradient(135deg, var(--teal), var(--teal-light));
  --gradient-warm: linear-gradient(135deg, var(--golden), var(--coral));
  --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(42, 124, 111, 0.06) 0%, transparent 60%);
  --gradient-hero-bg: linear-gradient(160deg, #FAF5EE 0%, #EFE8DB 40%, #E8F0EE 100%);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-blur: blur(20px);

  /* Typography */
  --font-heading: 'Be Vietnam Pro', sans-serif;
  --font-body: 'Be Vietnam Pro', 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);
  --shadow-teal: 0 4px 25px rgba(42, 124, 111, 0.2);
}

/* ---------- Reset ---------- */
*,
*::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-cream);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

.reveal-delay-1 {
  transition-delay: 0.15s;
}

.reveal-delay-2 {
  transition-delay: 0.3s;
}

.reveal-delay-3 {
  transition-delay: 0.45s;
}

.reveal-delay-4 {
  transition-delay: 0.6s;
}

.reveal-delay-5 {
  transition-delay: 0.75s;
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(42, 124, 111, 0.15);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--transition-fast), padding var(--transition-fast), box-shadow var(--transition-fast);
}

.navbar.scrolled {
  background: rgba(250, 245, 238, 0.92);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width var(--transition-medium);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-dark);
}

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

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero-bg);
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(42, 124, 111, 0.08) 0%, transparent 70%);
  animation: float-blob 8s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 168, 56, 0.08) 0%, transparent 70%);
  animation: float-blob 10s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes float-blob {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -40px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
}

.hero-visual {
  flex: 0 0 380px;
}

.hero-greeting {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
  opacity: 0;
  animation: hero-fade-in 0.8s 0.3s forwards;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 8px;
  opacity: 0;
  animation: hero-slide-up 1s 0.5s forwards;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
  opacity: 0;
  animation: hero-slide-up 1s 0.7s forwards;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 36px;
  opacity: 0;
  animation: hero-fade-in 1s 0.9s forwards;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: hero-fade-in 1s 1.1s forwards;
}

@keyframes hero-fade-in {
  to {
    opacity: 1;
  }
}

@keyframes hero-slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform var(--transition-fast), box-shadow var(--transition-medium);
}

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

.btn-primary {
  background: var(--gradient-teal);
  color: #fff;
  box-shadow: var(--shadow-teal);
}

.btn-primary:hover {
  box-shadow: 0 8px 40px rgba(42, 124, 111, 0.35);
}

.btn-outline {
  border: 1.5px solid var(--text-light);
  color: var(--text-body);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: 0 4px 25px rgba(42, 124, 111, 0.1);
}

/* Hero visual */
.hero-image-wrapper {
  position: relative;
  width: 360px;
  height: 420px;
  opacity: 0;
  animation: hero-fade-in 1.2s 0.6s forwards;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 30px;
  background: var(--gradient-primary);
  z-index: -1;
  opacity: 0.4;
  filter: blur(16px);
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {

  0%,
  100% {
    opacity: 0.25;
  }

  50% {
    opacity: 0.45;
  }
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-lg);
}

/* Floating badges on hero */
.hero-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 12px 18px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: badge-float 4s ease-in-out infinite;
  box-shadow: var(--shadow-md);
}

.hero-badge .badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.hero-badge.badge-1 {
  top: 20px;
  right: -40px;
  animation-delay: 0s;
}

.hero-badge.badge-1 .badge-icon {
  background: rgba(42, 124, 111, 0.1);
}

.hero-badge.badge-2 {
  bottom: 30px;
  left: -40px;
  animation-delay: 1s;
}

.hero-badge.badge-2 .badge-icon {
  background: rgba(232, 168, 56, 0.15);
}

@keyframes badge-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: var(--section-padding);
}

.about .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-image {
  flex: 0 0 340px;
  position: relative;
}

.about-image img {
  border-radius: 24px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
}

.about-image::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid var(--teal);
  border-radius: 24px;
  opacity: 0.2;
  z-index: -1;
}

.about-content {
  flex: 1;
}

.about-bio {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 36px;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-item:hover {
  border-color: rgba(42, 124, 111, 0.2);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills {
  padding: 100px 0 40px;
  background: var(--gradient-glow);
  position: relative;
}

.skills::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, var(--bg-warm), var(--bg-cream));
  z-index: -1;
}

.skills-header {
  text-align: center;
  margin-bottom: 60px;
}

.skills-header .section-desc {
  margin: 0 auto;
}

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

.skill-card {
  text-align: center;
  padding: 40px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(42, 124, 111, 0.15);
}

.skill-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: rgba(42, 124, 111, 0.08);
  transition: background var(--transition-fast);
}

.skill-card:hover .skill-icon {
  background: rgba(42, 124, 111, 0.15);
}

.skill-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.skill-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Tools Showcase */
.tools-showcase {
  margin-top: 60px;
  text-align: center;
}

.tools-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tool-item {
  padding: 10px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tool-item:hover {
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: var(--shadow-teal);
  transform: translateY(-2px);
}

.tool-icon-img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio {
  padding: var(--section-padding);
}

.portfolio-header {
  text-align: center;
  margin-bottom: 40px;
}

.portfolio-header .section-desc {
  margin: 0 auto;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border-medium);
  background: transparent;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  color: #fff;
  background: var(--gradient-teal);
  border-color: transparent;
  box-shadow: var(--shadow-teal);
}

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

/* Portfolio Item */
.portfolio-item {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Video Card */
.video-card {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
  background: #1a2332;
}

/* Portrait orientation — taller aspect ratio */
.video-card[data-orientation="portrait"] {
  aspect-ratio: 9/14;
}

.video-card video.preview-video,
.video-card img.preview-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.portfolio-item:hover .video-card video,
.portfolio-item:hover .video-card img {
  transform: scale(1.03);
}

/* Loading placeholder while video loads */
.video-card::before {
  content: '🎬';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #1a2332, #2a3a4a);
  z-index: 0;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.video-card.media-loaded::before {
  opacity: 0;
  pointer-events: none;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 35, 50, 0.3);
  opacity: 0;
  transition: opacity var(--transition-medium);
  z-index: 2;
}

.video-card:hover .video-play-overlay {
  opacity: 1;
}

.play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--teal);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast);
}

.video-card:hover .play-icon {
  transform: scale(1.1);
}

/* Media count badge (top-right of video card) */
.media-count-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  z-index: 3;
  backdrop-filter: blur(4px);
}

/* Media thumbnail strip */
.media-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 14px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.media-thumbs::-webkit-scrollbar {
  display: none;
}

.media-thumb {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border-light);
  transition: border-color var(--transition-fast), opacity var(--transition-fast);
  opacity: 0.65;
}

.media-thumb.active {
  border-color: var(--teal);
  opacity: 1;
}

.media-thumb:hover {
  opacity: 1;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
}

/* Portfolio Info */
.portfolio-info {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Project Tags — Platform + Genre */
.project-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tag-platform {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-game {
  background: rgba(42, 124, 111, 0.1);
  color: var(--teal);
}

.tag-app {
  background: rgba(59, 130, 246, 0.1);
  color: #3B82F6;
}

.tag-genre {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(232, 168, 56, 0.1);
  color: var(--golden);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Project header with icon */
.project-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.project-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.portfolio-info h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.portfolio-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.portfolio-desc strong {
  color: var(--teal);
  font-weight: 600;
}

/* Store link button */
.store-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(42, 124, 111, 0.06);
  transition: all var(--transition-fast);
}

.store-link:hover {
  background: rgba(42, 124, 111, 0.12);
  transform: translateX(2px);
}

.store-link svg {
  flex-shrink: 0;
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
.experience {
  padding: var(--section-padding);
  background: var(--bg-warm);
}

.experience-header {
  text-align: center;
  margin-bottom: 60px;
}

.experience-header .section-desc {
  margin: 0 auto;
}

.timeline {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-medium);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  gap: 40px;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: right;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 30px;
  width: 16px;
  height: 16px;
  background: var(--gradient-teal);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(42, 124, 111, 0.3);
  z-index: 2;
}

.timeline-content {
  flex: 0 0 calc(50% - 40px);
  background: var(--bg-card);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-medium);
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 8px;
  display: inline-block;
}

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

.timeline-company {
  font-size: 0.95rem;
  color: var(--golden);
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   CONTACT — Recruiter CTA
   ============================================================ */
.contact {
  padding: var(--section-padding);
  background: var(--bg-warm);
}

.contact-cta {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.contact-intro {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-top: 20px;
}

.contact-intro strong {
  color: var(--teal);
  font-weight: 700;
}

/* Contact grid — 3 cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 28px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(42, 124, 111, 0.2);
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(42, 124, 111, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--teal);
}

.contact-card h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}

.contact-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   VIDEO MODAL
   ============================================================ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

.video-modal.active {
  opacity: 1;
  pointer-events: all;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 35, 50, 0.85);
  backdrop-filter: blur(8px);
}

.video-modal-content {
  position: relative;
  width: 90vw;
  max-width: 960px;
  max-height: 90vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9);
  transition: transform var(--transition-medium), max-width var(--transition-medium);
}

/* Portrait video modal — narrower */
.video-modal-content.portrait {
  max-width: 420px;
}

.video-modal.active .video-modal-content {
  transform: scale(1);
}

.video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--transition-fast);
}

.video-modal-close:hover {
  background: rgba(0, 0, 0, 0.85);
}

.modal-video {
  width: 100%;
  max-height: 90vh;
  display: block;
  background: #000;
}

.modal-image {
  width: 100%;
  max-height: 90vh;
  display: block;
  object-fit: contain;
  background: #000;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  background: var(--bg-cream);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
}

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

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--teal);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-cream);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right var(--transition-medium);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open {
    right: 0;
  }

  .hero .container {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 120px;
  }

  .hero-visual {
    flex: none;
  }

  .hero-image-wrapper {
    width: 260px;
    height: 300px;
    margin: 0 auto;
  }

  .hero-desc {
    margin: 0 auto 36px;
  }

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

  .hero-badge.badge-1 {
    right: -15px;
    top: -40px;
  }

  .hero-badge.badge-2 {
    left: -20px;
    bottom: 20px;
  }

  .about .container {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    flex: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: column;
    text-align: left;
    padding-left: 50px;
    gap: 0;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-content {
    flex: 1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .footer .container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
  }

  .stat-item {
    padding: 18px 12px;
  }

  .tools-grid {
    gap: 8px;
  }

  .tool-item {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
  background: rgba(42, 124, 111, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(42, 124, 111, 0.35);
}

/* Media Blur Background */
.blur-container {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  z-index: 0;
  overflow: hidden;
  background-color: #1a2332;
}

.blur-container video,
.blur-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(25px);
  opacity: 0.6;
  transform: scale(1.1);
  /* eliminate blur edge artifacts */
  transition: opacity var(--transition-medium);
}

/* Store links */
.store-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* Automatically hide placeholder links */
.store-link[href="#"],
.store-link:not([href]) {
  display: none !important;
}

.store-link.app-store {
  color: #1A2332;
  background: rgba(26, 35, 50, 0.06);
}

.store-link.app-store:hover {
  background: rgba(26, 35, 50, 0.12);
}

.store-link.google-play {
  color: #00875F;
  background: rgba(0, 135, 95, 0.06);
}

.store-link.google-play:hover {
  background: rgba(0, 135, 95, 0.12);
}