/* ============================================
   PORTFOLIO TIPHAINE LARUE - STYLES & ANIMATIONS
   ============================================ */

/* ============ FONTS ============ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Instrument+Serif:ital@0;1&display=swap');

/* ============ CSS VARIABLES ============ */
:root {
  /* Colors - Warm Palette */
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-300: #fdba74;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-400: #f87171;
  --red-500: #ef4444;
  --red-600: #dc2626;
  
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  
  /* Semantic Colors */
  --primary: var(--orange-500);
  --primary-light: var(--orange-100);
  --primary-dark: var(--orange-700);
  --secondary: var(--amber-500);
  --accent: var(--emerald-500);
  --background: #ffffff;
  --surface: var(--stone-50);
  --text-primary: var(--stone-900);
  --text-secondary: var(--stone-600);
  --text-muted: var(--stone-400);
  
  /* Typography */
  --font-display: 'Sora', sans-serif;
  --font-serif: 'Instrument Serif', serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-2xl: 2.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 40px rgba(249,115,22,0.3);
  
  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 800ms;
}

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

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

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

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

::-webkit-scrollbar-track {
  background: var(--stone-100);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--orange-400), var(--amber-500));
  border-radius: var(--radius-full);
}

/* Selection */
::selection {
  background: var(--orange-200);
  color: var(--stone-900);
}

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

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

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

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 10vw, 7rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.font-serif {
  font-family: var(--font-serif);
  font-style: italic;
}

.text-gradient {
  background: linear-gradient(135deg, var(--amber-500) 0%, var(--orange-500) 50%, var(--red-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ LAYOUT ============ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-sm {
  max-width: 800px;
}

.container-lg {
  max-width: 1400px;
}

.section {
  padding: var(--space-4xl) 0;
}

.section-sm {
  padding: var(--space-3xl) 0;
}

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) ease;
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav.hidden {
  transform: translateY(-100%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 4px 15px rgba(249,115,22,0.4);
  transition: transform var(--duration-normal) var(--ease-out-back),
              box-shadow var(--duration-normal) ease;
}

.nav-logo:hover .nav-logo-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 6px 20px rgba(249,115,22,0.5);
}

.nav-logo-text {
  font-weight: 600;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--duration-fast) ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange-500), var(--amber-500));
  border-radius: var(--radius-full);
  transition: width var(--duration-normal) var(--ease-out-expo);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

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

/* Mobile Menu Button */
.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.nav-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              opacity var(--duration-fast) ease;
}

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

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

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

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--stone-900);
  color: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  background: var(--orange-500);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249,115,22,0.4);
}

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

.btn-secondary {
  background: var(--stone-100);
  color: var(--stone-900);
}

.btn-secondary:hover {
  background: var(--stone-200);
  transform: translateY(-2px);
}

.btn-gradient {
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  color: white;
  box-shadow: 0 4px 20px rgba(249,115,22,0.4);
}

.btn-gradient:hover {
  box-shadow: 0 8px 30px rgba(249,115,22,0.5);
  transform: translateY(-2px) scale(1.02);
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1rem;
}

/* ============ CARDS ============ */
.card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(249,115,22,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Project Cards */
.project-card {
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--duration-slow) var(--ease-out-expo);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.project-card .arrow {
  transition: transform var(--duration-normal) var(--ease-out-back);
}

.project-card:hover .arrow {
  transform: translateX(8px);
}

/* Color Variants */
.card-emerald {
  background: linear-gradient(135deg, var(--emerald-50), var(--teal-50));
  border-color: var(--emerald-100);
  color: var(--emerald-600);
}

.card-orange {
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
  border-color: var(--orange-100);
  color: var(--orange-600);
}

.card-amber {
  background: linear-gradient(135deg, var(--amber-50), var(--amber-100));
  border-color: var(--amber-200);
  color: var(--amber-600);
}

.card-teal {
  background: linear-gradient(135deg, var(--teal-50), var(--emerald-50));
  border-color: var(--teal-100);
  color: var(--teal-600);
}

/* ============ TAGS ============ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-md);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: white;
  transition: transform var(--duration-fast) ease;
}

.tag:hover {
  transform: scale(1.05);
}

/* ============ HERO SECTION ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, var(--orange-100) 0%, transparent 70%);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--amber-100) 0%, transparent 70%);
  opacity: 0.5;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 var(--space-lg);
}

.hero-icon {
  width: 140px;
  height: 140px;
  margin: 0 auto var(--space-2xl);
  position: relative;
}

.hero-icon-main {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,0.2); }
  50% { box-shadow: 0 0 40px 10px rgba(249,115,22,0.1); }
}

.hero-icon-float {
  position: absolute;
  border-radius: var(--radius-full);
  animation: float-particle 3s ease-in-out infinite;
}

.hero-icon-float:nth-child(2) {
  width: 24px;
  height: 24px;
  background: var(--amber-300);
  top: -8px;
  right: -16px;
  animation-delay: 0.2s;
}

.hero-icon-float:nth-child(3) {
  width: 16px;
  height: 16px;
  background: var(--emerald-300);
  bottom: -4px;
  left: -12px;
  animation-delay: 0.5s;
}

.hero-icon-float:nth-child(4) {
  width: 12px;
  height: 12px;
  background: var(--orange-400);
  top: 50%;
  right: -24px;
  animation-delay: 0.8s;
}

@keyframes float-particle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-title {
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: slide-up 0.8s var(--ease-out-expo) 0.2s forwards;
}

.hero-subtitle {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: slide-up 0.8s var(--ease-out-expo) 0.4s forwards;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  opacity: 0;
  animation: slide-up 0.8s var(--ease-out-expo) 0.6s forwards;
}

.hero-cta {
  opacity: 0;
  animation: slide-up 0.8s var(--ease-out-expo) 0.8s forwards;
}

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

/* ============ STATS SECTION ============ */
.stats {
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange-200), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.stat-item {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
}

.stat-item.visible {
  animation: stat-reveal 0.6s var(--ease-out-expo) forwards;
}

.stat-item:nth-child(1).visible { animation-delay: 0s; }
.stat-item:nth-child(2).visible { animation-delay: 0.1s; }
.stat-item:nth-child(3).visible { animation-delay: 0.2s; }
.stat-item:nth-child(4).visible { animation-delay: 0.3s; }

@keyframes stat-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-number.orange { color: var(--orange-600); }
.stat-number.emerald { color: var(--emerald-600); }
.stat-number.amber { color: var(--amber-600); }
.stat-number.red { color: var(--red-600); }

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ============ PROJECTS SECTION ============ */
.projects-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.project-card-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.project-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: var(--space-xs);
}

.project-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.project-card-description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: var(--space-lg);
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.project-card-footer {
  font-weight: 600;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ============ SCROLL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

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

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

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

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

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out-expo),
              transform 0.6s var(--ease-out-expo);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* ============ ABOUT PAGE ============ */
.about-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.about-title {
  margin-bottom: var(--space-sm);
}

.about-subtitle {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: var(--space-xl);
}

.about-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.about-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.about-bio {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.about-bio strong {
  color: var(--text-primary);
}

.about-bio .highlight-orange { color: var(--orange-600); }
.about-bio .highlight-emerald { color: var(--emerald-600); }

.blockquote {
  border-left: 4px solid var(--orange-400);
  padding: var(--space-lg);
  padding-left: var(--space-xl);
  background: var(--amber-50);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-primary);
}

/* Timeline */
.timeline {
  position: relative;
  padding: var(--space-xl) 0;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amber-200), var(--orange-200), var(--red-200));
  border-radius: var(--radius-full);
  transform: translateY(-50%);
}

.timeline-items {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px white;
  margin-bottom: var(--space-md);
  transition: transform var(--duration-normal) var(--ease-out-back);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
}

.timeline-year {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.timeline-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.timeline-sub {
  font-size: 0.75rem;
  color: var(--orange-600);
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.skill-card {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.skill-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.skill-card-title {
  font-weight: 800;
  font-size: 1rem;
}

.skill-list {
  list-style: none;
}

.skill-list li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: var(--space-sm) 0;
  transition: transform var(--duration-fast) ease,
              color var(--duration-fast) ease;
}

.skill-list li:hover {
  transform: translateX(4px);
  color: var(--text-primary);
}

/* ============ PROJECT DETAIL PAGE ============ */
.project-hero {
  text-align: center;
  padding-top: 120px;
  margin-bottom: var(--space-3xl);
}

.project-hero-icon {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-2xl);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-lg);
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
}

.project-hero-title {
  margin-bottom: var(--space-md);
}

.project-hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.project-tags {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

/* Mockups */
.mockups {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin: var(--space-3xl) 0;
}

.mockup-phone {
  width: 180px;
  height: 360px;
  background: var(--stone-900);
  border-radius: 36px;
  padding: 8px;
  box-shadow: var(--shadow-xl), 0 30px 60px rgba(0,0,0,0.2);
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.mockup-phone:hover {
  transform: translateY(-10px) rotateY(-5deg);
}

.mockup-phone:nth-child(2) {
  margin-top: -40px;
}

.mockup-phone:nth-child(2):hover {
  transform: translateY(-50px) scale(1.05);
}

.mockup-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Design Thinking */
.design-thinking {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl);
  margin: var(--space-3xl) 0;
}

.design-thinking-title {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.design-thinking-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}

.dt-step {
  text-align: center;
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform var(--duration-normal) var(--ease-out-back),
              box-shadow var(--duration-normal) ease;
}

.dt-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.dt-step-number {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  margin: 0 auto var(--space-md);
}

.dt-step-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.dt-step-content {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Impact Section */
.impact-section {
  background: var(--stone-900);
  color: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl);
  margin: var(--space-3xl) 0;
}

.impact-title {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

.impact-item {
  text-align: center;
}

.impact-number {
  font-size: clamp(3rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.impact-number.amber { color: var(--amber-400); }
.impact-number.emerald { color: var(--emerald-400); }
.impact-number.orange { color: var(--orange-400); }

.impact-label {
  color: var(--stone-400);
  font-size: 0.9375rem;
}

.impact-bar {
  height: 8px;
  background: var(--stone-800);
  border-radius: var(--radius-full);
  margin-top: var(--space-lg);
  overflow: hidden;
}

.impact-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease-out-expo);
}

.impact-item.visible .impact-bar-fill {
  transform: scaleX(1);
}

/* ============ GALLERY ============ */
.gallery-filters {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.filter-btn {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--stone-100);
  color: var(--text-secondary);
  transition: all var(--duration-fast) ease;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.filter-btn:hover {
  background: var(--stone-200);
}

.filter-btn.active {
  background: var(--amber-500);
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--stone-200);
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

.gallery-item-bg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.gallery-item-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.gallery-item-client {
  font-size: 0.75rem;
  font-weight: 600;
}

.gallery-item-title {
  font-size: 0.6875rem;
  text-align: center;
  margin-top: var(--space-xs);
  opacity: 0.7;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,25,23,0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.gallery-item-overlay-title {
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
}

.gallery-item-overlay-client {
  color: var(--amber-400);
  font-size: 0.75rem;
  margin-top: var(--space-xs);
}

/* Gallery Color Variants */
.gallery-item-digixo { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
.gallery-item-rtl { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #dc2626; }
.gallery-item-rtl2 { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: #ea580c; }
.gallery-item-aol { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.gallery-item-ouifm { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.gallery-item-funradio { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #db2777; }
.gallery-item-europe1 { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #4f46e5; }
.gallery-item-leseternels { background: linear-gradient(135deg, #ccfbf1, #99f6e4); color: #0d9488; }
.gallery-item-rtlastro { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); color: #9333ea; }
.gallery-item-careerbuilder { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #b45309; }

/* ============ CONTACT PAGE ============ */
.contact {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.contact-content {
  text-align: center;
  max-width: 600px;
}

.contact-icon {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(249,115,22,0.2);
  animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-15deg); }
  75% { transform: rotate(15deg); }
}

.contact-title {
  margin-bottom: var(--space-md);
}

.contact-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.contact-description span {
  font-weight: 600;
}

.contact-criteria {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.contact-badge {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  font-weight: 600;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.contact-link-primary {
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  color: white;
  box-shadow: 0 4px 20px rgba(249,115,22,0.4);
}

.contact-link-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(249,115,22,0.5);
}

.contact-link-secondary {
  background: var(--stone-100);
  color: var(--stone-900);
}

.contact-link-secondary:hover {
  background: var(--stone-200);
  transform: translateY(-2px);
}

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

/* ============ FOOTER ============ */
.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--stone-100);
  text-align: center;
}

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

/* ============ BACK BUTTON ============ */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  padding: var(--space-sm) 0;
  margin-bottom: var(--space-xl);
  transition: color var(--duration-fast) ease;
}

.back-btn:hover {
  color: var(--text-primary);
}

.back-btn:hover .back-arrow {
  transform: translateX(-4px);
}

.back-arrow {
  transition: transform var(--duration-normal) var(--ease-out-back);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .about-header {
    grid-template-columns: 1fr;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .design-thinking-steps {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .impact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 3rem;
    --space-4xl: 4rem;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .nav-menu-btn {
    display: flex;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .timeline-items {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }
  
  .timeline-item {
    flex: 0 0 calc(50% - var(--space-md));
  }
  
  .timeline-line {
    display: none;
  }
  
  .design-thinking-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .mockups {
    flex-wrap: wrap;
  }
  
  .mockup-phone:nth-child(2) {
    margin-top: 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-criteria {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline-item {
    flex: 0 0 100%;
  }
  
  .design-thinking-steps {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ UTILITY CLASSES ============ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

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

.bg-amber-50 { background: var(--amber-50); }
.bg-orange-50 { background: var(--orange-50); }
.bg-emerald-50 { background: var(--emerald-50); }
.bg-teal-50 { background: var(--teal-50); }
.bg-red-50 { background: var(--red-50); }
.bg-amber-200 { background: var(--amber-200); }
.bg-orange-200 { background: var(--orange-200); }
.bg-emerald-200 { background: var(--emerald-200); }

.text-orange-600 { color: var(--orange-600); }
.text-emerald-600 { color: var(--emerald-600); }
.text-amber-600 { color: var(--amber-600); }
.text-teal-600 { color: var(--teal-600); }

/* Footer Social Icons */
.footer a:hover {
  color: var(--orange-500) !important;
}
