:root {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --text-primary: #0f0f0f;
  --text-secondary: #3d3d3d;
  --text-muted: #7a7a7a;
  --border: #e8e8e6;
  --accent: #0f0f0f;
  --accent-light: #f0f0ee;
  --radius: 16px;
  --radius-sm: 10px;
}

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

::selection {
  background: var(--text-primary);
  color: var(--bg);
}

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

body {
  font-family: "Manrope", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(245, 245, 243, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
  font-family: "Syne", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

nav {
  display: flex;
  gap: 36px;
}

nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 150;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-line:nth-child(1) {
  margin-bottom: 6px;
}

.hamburger-line:nth-child(3) {
  margin-top: 6px;
}

/* Hamburger animation when active */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background: var(--surface);
  z-index: 120;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 40px 40px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-link {
  font-family: "Syne", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(20px);
}

.mobile-nav.active .mobile-nav-link {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav.active .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.active .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.active .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }

.mobile-nav-link:hover {
  color: var(--text-muted);
  padding-left: 12px;
}

.mobile-nav-footer {
  margin-top: auto;
  padding-top: 24px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease 0.3s;
}

.mobile-nav.active .mobile-nav-footer {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-footer a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Body scroll lock when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 40px 100px;
}

.hero-content {
  max-width: 850px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
}

h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 44px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 100px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--surface);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

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

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

/* Work Section */
.work-section {
  padding: 60px 0 120px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.section-title {
  font-family: "Syne", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.section-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: gap 0.3s ease;
}

.section-link:hover {
  gap: 12px;
}

.section-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.section-link.active svg {
  transform: rotate(90deg);
}

/* Project Filters */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease,
              margin 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-filters.active {
  max-height: 60px;
  opacity: 1;
  margin-top: 24px;
}

.filter-btn {
  padding: 10px 18px;
  font-family: "Manrope", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(-50%);
}

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

.filter-btn:hover::after {
  width: 20px;
}

.filter-btn.active {
  color: var(--text-primary);
}

.filter-btn.active::after {
  width: calc(100% - 36px);
}

.filter-count {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 4px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.filter-btn.active .filter-count {
  opacity: 1;
}

/* Project Card Filter States */
.project-card.filtering {
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.project-card.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  position: relative;
  visibility: visible;
}

/* SVG Pattern Visuals */
.project-visual {
  position: relative;
  overflow: hidden;
  background: #0a0a0b;
}

.pattern-svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Premium pulse animation - subtle and elegant */
@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

.node.pulse-1 { animation: pulse 4s ease-in-out infinite; }
.node.pulse-2 { animation: pulse 4s ease-in-out infinite 0.8s; }
.node.pulse-3 { animation: pulse 4s ease-in-out infinite 1.6s; }

/* Star constellation pulse */
@keyframes starPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.star-pulse-1 { animation: starPulse 3s ease-in-out infinite; }
.star-pulse-2 { animation: starPulse 3s ease-in-out infinite 0.5s; }
.star-pulse-3 { animation: starPulse 3s ease-in-out infinite 1s; }

/* Expanding ring animation */
@keyframes ringExpand {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.8); opacity: 0; }
}

.ring-expand {
  animation: ringExpand 3s ease-out infinite;
  transform-origin: center;
}

.ring-expand-2 {
  animation: ringExpand 3s ease-out infinite 0.5s;
  transform-origin: center;
}

/* Gentle float */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-1 { animation: float 8s ease-in-out infinite; }
.float-2 { animation: float 8s ease-in-out infinite 1.5s; }

/* Flow path animation */
@keyframes flowMain {
  0% { stroke-dashoffset: 400; }
  100% { stroke-dashoffset: 0; }
}

.flow-main {
  stroke-dasharray: 200 100;
  animation: flowMain 6s linear infinite;
}

.flow-main-2 {
  stroke-dasharray: 100 80;
  animation: flowMain 8s linear infinite reverse;
}

/* Path drawing animation */
@keyframes drawPath {
  0% { stroke-dashoffset: 300; opacity: 0.2; }
  50% { opacity: 0.5; }
  100% { stroke-dashoffset: 0; opacity: 0.2; }
}

.draw-path {
  stroke-dasharray: 300;
  animation: drawPath 4s ease-in-out infinite;
}

.draw-path-2 {
  stroke-dasharray: 300;
  animation: drawPath 4s ease-in-out infinite 0.5s;
}

/* Slow rotation */
@keyframes rotateSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.rotate-slow {
  animation: rotateSlow 20s linear infinite;
  transform-origin: center;
}

/* Dash movement */
@keyframes dashMove {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -40; }
}

.dash-move {
  animation: dashMove 1s linear infinite;
}

/* Trend line draw */
@keyframes trendDraw {
  0% { stroke-dashoffset: 500; }
  100% { stroke-dashoffset: 0; }
}

.trend-draw {
  stroke-dasharray: 500;
  animation: trendDraw 3s ease-out forwards;
}

/* Motion path */
@keyframes motionPath {
  0% { stroke-dashoffset: 400; }
  100% { stroke-dashoffset: 0; }
}

.motion-path {
  stroke-dasharray: 200 100;
  animation: motionPath 4s ease-in-out infinite;
}

/* Hover enhancements - premium feel */
.project-card:hover .pattern-svg {
  transform: scale(1.03);
}

.project-card:hover .node {
  animation-duration: 2s;
}

.project-card:hover .ring-expand,
.project-card:hover .ring-expand-2 {
  animation-duration: 2s;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: transparent;
}

.project-card:hover .project-image img {
  transform: scale(1.04);
}

.project-card:hover .project-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* Card Sizes */
.card-large {
  grid-column: span 8;
}

.card-medium {
  grid-column: span 4;
}

.card-wide {
  grid-column: span 6;
}

.card-featured {
  grid-column: span 12;
  flex-direction: row;
}

.card-featured .project-image {
  width: 60%;
  height: 420px;
}

.card-featured .project-info {
  width: 40%;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-featured .project-title {
  font-size: 2rem;
}

.card-featured .project-description {
  display: block;
  margin-bottom: 24px;
}

.project-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
}

.card-large .project-image {
  height: 360px;
}

.card-medium .project-image {
  height: 240px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--surface);
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: 100px;
}

.project-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.project-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.project-year {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.project-title {
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.25;
}

.project-description {
  display: none;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-large .project-description,
.card-wide .project-description {
  display: block;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  background: var(--accent-light);
  border-radius: 100px;
}

.project-arrow {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: all 0.4s ease;
}

.project-arrow svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-primary);
}

/* Services Section */
.services-section {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 72px;
}

.services-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
}

.services-description {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  align-self: end;
}

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

.service-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.3s ease;
}

.service-card:hover {
  background: var(--text-primary);
}

.service-card:hover .service-icon,
.service-card:hover .service-name,
.service-card:hover .service-desc {
  color: var(--surface);
}

.service-card:hover .service-icon {
  background: rgba(255,255,255,0.15);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 12px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.service-name {
  font-family: "Syne", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  transition: color 0.3s ease;
}

/* About Section */
.about-section {
  padding: 140px 0;
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 100px;
  align-items: center;
}

.about-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.about-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 28px;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.stats-row {
  display: flex;
  gap: 48px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: "Syne", sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

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

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact Section - Split Personality */
.contact-section {
  padding: 120px 0;
  background: var(--text-primary);
  color: var(--surface);
}

.contact-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.contact-header h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.contact-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

/* Path Selector Cards */
.contact-paths {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 60px;
}

.path-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.path-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.path-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-4px);
}

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

.path-card:hover .path-icon {
  transform: scale(1.1);
  background: rgba(255,255,255,0.2);
}

.path-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 16px;
  margin: 0 auto 24px;
  transition: all 0.4s ease;
}

.path-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--surface);
}

.path-title {
  font-family: "Syne", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--surface);
  margin-bottom: 12px;
}

.path-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 20px;
}

.path-time {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding: 8px 16px;
  background: rgba(255,255,255,0.05);
  border-radius: 100px;
}

/* Form Container */
.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 24px;
  transition: color 0.3s ease;
}

.form-back:hover {
  color: var(--surface);
}

.form-back svg {
  width: 18px;
  height: 18px;
}

.form-header {
  margin-bottom: 32px;
}

.form-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: var(--surface);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.form-header h3 {
  font-family: "Syne", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Progress Steps */
.form-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.progress-step.active {
  opacity: 1;
}

.progress-step.completed {
  opacity: 1;
}

.progress-step.completed .step-number {
  background: #22c55e;
  border-color: #22c55e;
}

.step-number {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.progress-step.active .step-number {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--surface);
}

.step-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
}

.progress-line {
  width: 60px;
  height: 2px;
  background: rgba(255,255,255,0.15);
  margin: 0 12px;
  margin-bottom: 24px;
}

/* Split Form Styles */
.split-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  padding: 16px 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  color: var(--surface);
  transition: all 0.3s ease;
  outline: none;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 48px;
}

.form-group select option {
  background: var(--text-primary);
  color: var(--surface);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Service Selection Cards */
.service-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.service-option {
  cursor: pointer;
}

.service-option input {
  display: none;
}

.option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: all 0.3s ease;
}

.option-card svg {
  width: 24px;
  height: 24px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.service-option:hover .option-card {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

.service-option input:checked + .option-card {
  background: rgba(255,255,255,0.15);
  border-color: var(--surface);
  color: var(--surface);
}

.service-option input:checked + .option-card svg {
  opacity: 1;
}

/* Budget Selection */
.budget-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.budget-option {
  cursor: pointer;
}

.budget-option input {
  display: none;
}

.budget-card {
  display: block;
  padding: 16px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-align: center;
  transition: all 0.3s ease;
}

.budget-option:hover .budget-card {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

.budget-option input:checked + .budget-card {
  background: var(--surface);
  border-color: var(--surface);
  color: var(--text-primary);
}

/* Form Navigation */
.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.btn-prev {
  background: rgba(255,255,255,0.1);
  color: var(--surface);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-prev:hover {
  background: rgba(255,255,255,0.15);
}

.btn-next,
.btn-submit {
  background: var(--surface);
  color: var(--text-primary);
  margin-left: auto;
}

.btn-next:hover,
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}

/* Success State */
.contact-success {
  text-align: center;
  padding: 60px 40px;
  animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  border-radius: 50%;
  margin: 0 auto 24px;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  stroke: white;
}

.contact-success h3 {
  font-family: "Syne", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-success p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
}

.contact-success .btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--surface);
  border: 1px solid rgba(255,255,255,0.2);
}

/* Contact Footer */
.contact-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 60px;
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.contact-alt p,
.contact-social p {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}

.contact-email-link {
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--surface);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.contact-email-link:hover {
  opacity: 0.7;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: var(--surface);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

/* Form Status */
.form-status {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
  margin-top: 16px;
}

.form-status.success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.btn-submit {
  align-self: flex-start;
  margin-top: 8px;
  background: var(--surface);
  color: var(--text-primary);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}

.form-status {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* Footer */
footer {
  padding: 28px 40px;
  background: var(--text-primary);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(8px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--surface);
  border-radius: 24px;
  z-index: 201;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-image {
  height: 100%;
  min-height: 500px;
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content {
  padding: 48px;
  overflow-y: auto;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.modal-close:hover {
  transform: rotate(90deg);
}

.modal-close svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-primary);
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: var(--accent-light);
  padding: 8px 14px;
  border-radius: 100px;
}

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

.modal-title {
  font-family: "Syne", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.modal-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.modal-details {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.modal-stack-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.modal-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.modal-stack-tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 16px;
  background: var(--accent-light);
  border-radius: 100px;
}

.modal-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--surface);
  text-decoration: none;
  padding: 16px 28px;
  background: var(--text-primary);
  border-radius: 100px;
  transition: all 0.3s ease;
  margin-top: auto;
  align-self: flex-start;
}

.modal-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.modal-cta svg {
  width: 16px;
  height: 16px;
}

/* Responsive */
@media (max-width: 1100px) {
  .bento-grid { grid-template-columns: repeat(6, 1fr); }
  .card-large { grid-column: span 6; }
  .card-medium { grid-column: span 3; }
  .card-wide { grid-column: span 6; }
  .card-featured { grid-column: span 6; flex-direction: column; }
  .card-featured .project-image { width: 100%; height: 300px; }
  .card-featured .project-info { width: 100%; padding: 28px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .modal { grid-template-columns: 1fr; max-width: 600px; }
  .modal-image { height: 280px; min-height: auto; }
}

@media (max-width: 768px) {
  header { padding: 16px 24px; }
  nav#main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .hero { padding: 120px 24px 80px; }
  .container { padding: 0 24px; }
  .bento-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-large, .card-medium, .card-wide, .card-featured { grid-column: span 1; }
  .services-header { grid-template-columns: 1fr; gap: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .stats-row { gap: 32px; flex-wrap: wrap; }
  .modal-content { padding: 32px 24px; }
  .modal-title { font-size: 1.6rem; }
  .form-row { grid-template-columns: 1fr; }

  /* Contact Section Mobile */
  .contact-paths { grid-template-columns: 1fr; }
  .path-card { padding: 32px 24px; }
  .budget-options { grid-template-columns: repeat(2, 1fr); }
  .contact-footer {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }
  .contact-alt, .contact-social {
    width: 100%;
  }
  .social-links {
    justify-content: center;
  }
  .form-progress {
    transform: scale(0.9);
  }
  .progress-line {
    width: 40px;
  }
}
