:root {
  /* Color Palette - OKLCH */
  --bg: oklch(14% 0.02 280);
  --bg-elevated: oklch(18% 0.03 280);
  --bg-surface: oklch(22% 0.04 280);
  
  --text-primary: oklch(96% 0.01 280);
  --text-secondary: oklch(75% 0.03 280);
  --text-muted: oklch(60% 0.04 280);
  
  --accent-coral: oklch(70% 0.18 30);
  --accent-mint: oklch(75% 0.16 145);
  --accent-lavender: oklch(72% 0.17 260);
  --accent-gold: oklch(78% 0.15 85);
  
  --border: oklch(25% 0.04 280);
  
  /* 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;
  --space-5xl: 8rem;
  
  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Sora', sans-serif;
  
  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --text-2xl: clamp(2rem, 1.5rem + 2vw, 3rem);
  --text-3xl: clamp(3rem, 2rem + 4vw, 5rem);
  --text-4xl: clamp(4rem, 2.5rem + 6vw, 7.5rem);
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent-coral);
  color: var(--bg);
}

/* Ambient Blobs */
.ambient-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-coral);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-mint);
  top: 30%;
  right: -15%;
  animation-delay: -5s;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: var(--accent-lavender);
  bottom: 10%;
  left: 20%;
  animation-delay: -10s;
}

.blob-4 {
  width: 300px;
  height: 300px;
  background: var(--accent-gold);
  top: 60%;
  right: 10%;
  animation-delay: -15s;
  opacity: 0.2;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.02); }
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  transition: background 0.4s var(--ease-out-quart), backdrop-filter 0.4s var(--ease-out-quart);
}

.nav.scrolled {
  background: oklch(14% 0.02 280 / 0.8);
  backdrop-filter: blur(20px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color 0.3s var(--ease-out-quart);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-coral);
  transition: width 0.3s var(--ease-out-quart);
}

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

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

.nav-cta {
  background: var(--accent-coral);
  color: var(--bg) !important;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-weight: 600 !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: oklch(65% 0.18 30);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s var(--ease-out-quart);
}

.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-quart);
}

.nav-mobile.active {
  opacity: 1;
  pointer-events: all;
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-mobile a:hover {
  color: var(--accent-coral);
}

.nav-mobile-cta {
  background: var(--accent-coral);
  color: var(--bg) !important;
  padding: var(--space-md) var(--space-2xl);
  border-radius: var(--radius-full);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-quart);
  border: none;
}

.btn-primary {
  background: var(--accent-coral);
  color: var(--bg);
}

.btn-primary:hover {
  background: oklch(65% 0.18 30);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px oklch(70% 0.18 30 / 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent-coral);
  color: var(--accent-coral);
  transform: translateY(-3px);
}

.btn-large {
  padding: var(--space-lg) var(--space-3xl);
  font-size: var(--text-base);
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: var(--space-5xl) var(--space-xl);
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: var(--space-4xl);
  max-width: 700px;
}

.section-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-coral);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.05;
  color: var(--text-primary);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.text-accent {
  color: var(--accent-gold);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-3xl);
  padding: var(--space-5xl) var(--space-xl);
  max-width: 1280px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-coral);
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  line-height: 0.95;
  color: var(--text-primary);
  font-weight: 400;
  margin-bottom: var(--space-xl);
}

.hero-title span {
  display: block;
}

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

.hero-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 100%;
  min-height: 400px;
}

.floating-card {
  position: absolute;
  animation: floatCard 6s ease-in-out infinite;
}

.fc-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.fc-2 {
  top: 40%;
  right: 5%;
  animation-delay: -2s;
}

.fc-3 {
  bottom: 15%;
  left: 20%;
  animation-delay: -4s;
}

.fc-inner {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px oklch(0% 0 0 / 0.3);
  transition: transform 0.4s var(--ease-out-expo);
}

.fc-inner:hover {
  transform: scale(1.05) rotate(-2deg);
}

.fc-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.fc-inner span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-image-frame {
  position: relative;
}

.about-image-frame::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--accent-coral), var(--accent-mint), var(--accent-lavender));
  opacity: 0.5;
  filter: blur(30px);
  z-index: -1;
}

.about-image-placeholder {
  aspect-ratio: 3/4;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 560px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
}

.service-card:hover {
  transform: translateY(-12px) rotate(-1deg);
  box-shadow: 0 30px 60px oklch(0% 0 0 / 0.3);
}

.service-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--glow-color, var(--accent-coral)) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out-quart);
  pointer-events: none;
}

.service-card:hover .service-card-glow {
  opacity: 0.12;
}

.service-card-inner {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: oklch(20% 0.05 280);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-color, var(--accent-coral));
  margin-bottom: var(--space-xl);
  transition: transform 0.4s var(--ease-out-expo), background 0.4s;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: oklch(25% 0.08 280);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  font-weight: 400;
}

.service-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.service-list li {
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.service-list li::before {
  content: '→';
  color: var(--accent-gold);
  font-weight: 700;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: var(--space-lg);
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s var(--ease-out-expo);
}

.portfolio-card:hover {
  transform: scale(1.02);
}

.pc-large {
  grid-column: span 2;
  grid-row: span 2;
}

.pc-wide {
  grid-column: span 2;
}

.portfolio-card-image {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl);
}

.portfolio-tag {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  background: oklch(10% 0 0 / 0.6);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.portfolio-card-overlay {
  position: relative;
  z-index: 1;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s var(--ease-out-expo);
}

.portfolio-card:hover .portfolio-card-overlay {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-card-overlay h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: white;
  margin-bottom: var(--space-xs);
  text-shadow: 0 2px 10px oklch(0% 0 0 / 0.5);
}

.portfolio-card-overlay p {
  font-size: var(--text-sm);
  color: oklch(95% 0.01 280);
  max-width: 360px;
  text-shadow: 0 1px 6px oklch(0% 0 0 / 0.5);
}

.portfolio-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(10% 0 0 / 0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-quart);
}

.portfolio-card:hover .portfolio-card-image::after {
  opacity: 1;
}

/* Contact */
.contact {
  padding: var(--space-5xl) var(--space-xl);
}

.contact-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-5xl) var(--space-3xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.contact-inner::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-coral) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}

.contact-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  position: relative;
}

.contact-desc {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
  font-size: var(--text-lg);
  position: relative;
}

.contact-socials {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  position: relative;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out-quart);
}

.social-link:hover {
  border-color: var(--accent-coral);
  color: var(--accent-coral);
  transform: translateY(-4px);
  background: oklch(70% 0.18 30 / 0.1);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* Scroll reveal base states */
.reveal-up,
.reveal-left {
  opacity: 0;
  will-change: transform, opacity;
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--space-5xl) + 60px);
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    display: none;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }
  
  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .about-text {
    text-align: center;
  }
  
  .about-text p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .about-stats {
    justify-content: center;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 280px;
  }
  
  .pc-large,
  .pc-wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .section {
    padding: var(--space-4xl) var(--space-lg);
  }
  
  .hero {
    padding: calc(var(--space-4xl) + 60px) var(--space-lg) var(--space-4xl);
    min-height: auto;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }
  
  .contact-inner {
    padding: var(--space-3xl) var(--space-lg);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .blob {
    animation: none;
  }
  
  .floating-card {
    animation: none;
  }
  
  .reveal-up,
  .reveal-left {
    opacity: 1;
    transform: none;
  }
}
