/* ============================================================
   STUDIO LPVRE — PORTFOLIO
   Palette monochrome : Noir / Blanc / Gris
   ============================================================ */

:root {
  --bg-primary:    #f8f7f7;
  --bg-secondary:  #f0f0f0;
  --bg-card:       #ffffff;
  --bg-card-hover: #f8f7f7;

  --text-primary:   #000000;
  --text-secondary: #333333;
  --text-muted:     #888888;

  --accent:        #000000;
  --accent-hover:  #222222;
  --accent-dark:   #ffffff;
  --accent-glow:   rgba(0, 0, 0, 0.06);

  --border:        #cccccc;
  --border-hover:  #000000;
  --border-accent: rgba(0, 0, 0, 0.20);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.10);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --transition:      0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   BASE
   ============================================================ */

body {
  font-family: var(--font);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(248, 247, 247, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #000000;
  line-height: 1;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

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

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #000000;
  border-radius: 1px;
  transition: width var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
  color: #000000;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000000;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  top: 64px;
  background: var(--bg-primary);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  border-top: 1px solid var(--border);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  font-size: 1.6rem;
  font-weight: 700;
  color: #000000;
  letter-spacing: -0.03em;
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--text-muted);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #000000;
  color: #ffffff;
}

.btn-primary:hover {
  background: #222222;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.20);
}

.btn-secondary {
  background: transparent;
  color: #000000;
  border: 1.5px solid rgba(0, 0, 0, 0.30);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: #000000;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #000000;
  border: 1.5px solid rgba(0, 0, 0, 0.25);
}

.btn-outline:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   SECTION COMMON
   ============================================================ */

section {
  padding: 120px 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #000000;
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.75;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  background: var(--bg-primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 40%, rgba(0, 0, 0, 0.025) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 85% 70%, rgba(0, 0, 0, 0.018) 0%, transparent 55%);
  pointer-events: none;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
}

.hero-studio {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #000000;
  line-height: 1;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeSlideUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0s forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.20);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #000000;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #000000;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.30s forwards;
}

.hero h1 .accent {
  color: #000000;
  display: inline-block;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.45s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.60s forwards;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.75s forwards;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

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

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #000000;
  line-height: 1;
}

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

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0;
  animation: fadeIn 1s ease 1.3s forwards;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #000000, transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0%  { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100%{ transform: scaleY(0); transform-origin: bottom; }
}

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

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ============================================================
   PROJECTS
   ============================================================ */

.projects {
  background: var(--bg-secondary);
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.projects-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: #000000;
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* ── Project Thumbnails ── */
.project-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* Browser chrome bar */
.thumb-chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  flex-shrink: 0;
}

.thumb-chrome span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

/* Content area */
.thumb-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1rem 1.25rem 1.25rem;
}

.thumb-cat {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.thumb-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.thumb-sub {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Dark thumbnail (La Pizzeria) */
.thumb-dark { background: #111111; }

.thumb-dark .thumb-chrome { background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.08); }
.thumb-dark .thumb-chrome span:nth-child(1) { background: rgba(255,255,255,0.18); }
.thumb-dark .thumb-chrome span:nth-child(2) { background: rgba(255,255,255,0.14); }
.thumb-dark .thumb-chrome span:nth-child(3) { background: rgba(255,255,255,0.10); }
.thumb-dark .thumb-cat  { color: rgba(255,255,255,0.45); }
.thumb-dark .thumb-name { color: rgba(255,255,255,0.90); }
.thumb-dark .thumb-sub  { color: rgba(255,255,255,0.45); }

/* Light thumbnail (Belle & Chic) */
.thumb-light { background: #e8e0e8; }

.thumb-light .thumb-chrome { background: rgba(0,0,0,0.05); border-bottom: 1px solid rgba(0,0,0,0.08); }
.thumb-light .thumb-chrome span:nth-child(1) { background: rgba(0,0,0,0.18); }
.thumb-light .thumb-chrome span:nth-child(2) { background: rgba(0,0,0,0.12); }
.thumb-light .thumb-chrome span:nth-child(3) { background: rgba(0,0,0,0.08); }
.thumb-light .thumb-cat  { color: rgba(0,0,0,0.50); }
.thumb-light .thumb-name { color: rgba(0,0,0,0.85); }
.thumb-light .thumb-sub  { color: rgba(0,0,0,0.45); }

/* Mid thumbnail (En cours) */
.thumb-mid { background: #d8d8d8; }

.thumb-mid .thumb-chrome { background: rgba(0,0,0,0.04); border-bottom: 1px solid rgba(0,0,0,0.06); }
.thumb-mid .thumb-chrome span:nth-child(1) { background: rgba(0,0,0,0.15); }
.thumb-mid .thumb-chrome span:nth-child(2) { background: rgba(0,0,0,0.10); }
.thumb-mid .thumb-chrome span:nth-child(3) { background: rgba(0,0,0,0.07); }
.thumb-mid .thumb-cat  { color: rgba(0,0,0,0.45); }
.thumb-mid .thumb-name { color: rgba(0,0,0,0.65); }
.thumb-mid .thumb-sub  { color: rgba(0,0,0,0.40); }

/* Boulangerie — beige chaud */
.thumb-bakery { background: #e8d5b8; }
.thumb-bakery .thumb-chrome { background: rgba(107,68,35,0.06); border-bottom: 1px solid rgba(107,68,35,0.12); }
.thumb-bakery .thumb-chrome span:nth-child(1) { background: rgba(107,68,35,0.30); }
.thumb-bakery .thumb-chrome span:nth-child(2) { background: rgba(107,68,35,0.20); }
.thumb-bakery .thumb-chrome span:nth-child(3) { background: rgba(107,68,35,0.14); }
.thumb-bakery .thumb-cat  { color: rgba(107,68,35,0.60); }
.thumb-bakery .thumb-name { color: rgba(78,47,18,0.90); }
.thumb-bakery .thumb-sub  { color: rgba(107,68,35,0.55); }

/* Agence Immobilière — bleu institutionnel */
.thumb-immo { background: #1a3a52; }
.thumb-immo .thumb-chrome { background: rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.10); }
.thumb-immo .thumb-chrome span:nth-child(1) { background: rgba(74,144,226,0.70); }
.thumb-immo .thumb-chrome span:nth-child(2) { background: rgba(255,255,255,0.20); }
.thumb-immo .thumb-chrome span:nth-child(3) { background: rgba(255,255,255,0.12); }
.thumb-immo .thumb-cat  { color: rgba(74,144,226,0.85); }
.thumb-immo .thumb-name { color: rgba(255,255,255,0.92); }
.thumb-immo .thumb-sub  { color: rgba(255,255,255,0.50); }

.project-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.05);
  color: #000000;
  border: 1px solid rgba(0, 0, 0, 0.10);
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000000;
  margin-bottom: 0.6rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.5rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #000000;
  transition: gap var(--transition);
}

.project-link:hover {
  gap: 0.7rem;
}

.project-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.project-link:hover svg {
  transform: translateX(3px);
}

/* ============================================================
   SERVICES
   ============================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #000000, #666666, transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: #000000;
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

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

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
  line-height: 1;
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000000;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-includes {
  margin-bottom: 1.75rem;
  flex: 1;
}

.service-includes li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.service-includes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #000000;
  font-size: 0.8rem;
  font-weight: 700;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.service-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #000000;
  letter-spacing: -0.02em;
}

.service-price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact {
  background: var(--bg-secondary);
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 2rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.contact-info {
  position: sticky;
  top: 100px;
}

.contact-info-items {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-text {
  display: flex;
  flex-direction: column;
}

.contact-info-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
}

.contact-info-value {
  font-size: 0.95rem;
  color: #000000;
  font-weight: 500;
}

a.contact-info-value:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group:last-of-type {
  margin-bottom: 0;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #000000;
}

.form-group label .required {
  color: #000000;
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #000000;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select option {
  background: #ffffff;
  color: #000000;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-error {
  display: none;
  font-size: 0.8rem;
  color: #cc0000;
  margin-top: 0.35rem;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #cc0000;
}

.form-group.has-error .form-error {
  display: block;
}

.form-submit {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-success {
  display: none;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
  color: #000000;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1rem;
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: #000000;
  border-top: none;
  padding: 3rem 2rem 2rem;
  max-width: 100%;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-logo-text {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.footer-brand-name {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-brand-name span {
  color: rgba(255, 255, 255, 0.45);
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.50);
  transition: all var(--transition);
}

.social-link:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
  transform: translateY(-2px);
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.25);
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-info {
    position: static;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 1.25rem;
  }

  .header-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

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

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

  .projects-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats {
    gap: 2rem;
    flex-wrap: wrap;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contact-inner {
    padding: 80px 1.25rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero-stats {
    gap: 1.5rem;
  }

  .service-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar { width: 6px; }

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

::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #000000;
}

/* ============================================================
   SELECTION
   ============================================================ */

::selection {
  background: rgba(0, 0, 0, 0.10);
  color: #000000;
}

/* ============================================================
   DEMO PREVIEW MODAL
   ============================================================ */

.demo-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  z-index: 9000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.demo-overlay.open { opacity: 1; pointer-events: all; }

.demo-modal {
  position: fixed;
  top: 14px; left: 14px; right: 14px; bottom: 14px;
  z-index: 9001;
  background: #181818;
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 48px 120px rgba(0, 0, 0, 0.85);
  opacity: 0; pointer-events: none;
  transform: translateY(18px) scale(0.97);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.demo-modal.open {
  opacity: 1; pointer-events: all;
  transform: translateY(0) scale(1);
}

/* ── Toolbar ─────────────────────────────────────────────── */
.demo-toolbar {
  display: flex; align-items: center; gap: 10px;
  background: #232323;
  padding: 0 12px;
  height: 52px; flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  user-select: none;
}

/* Device buttons */
.demo-device-btns { display: flex; gap: 2px; flex-shrink: 0; }

.dv-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 7px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.01em;
  cursor: pointer; border: none; background: none;
  font-family: inherit;
  transition: color 0.18s ease, background 0.18s ease;
}
.dv-btn:hover { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.78); }
.dv-btn.active { background: rgba(255, 255, 255, 0.12); color: #ffffff; }

/* URL bar */
.demo-urlbar {
  flex: 1; display: flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px; padding: 7px 12px;
  max-width: 420px; margin: 0 auto; min-width: 0;
}
.demo-lock { color: rgba(255, 255, 255, 0.38); flex-shrink: 0; }
.demo-url {
  font-size: 0.72rem; color: rgba(255, 255, 255, 0.55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: 'Courier New', monospace;
}

/* Toolbar right */
.demo-toolbar-right { display: flex; gap: 2px; flex-shrink: 0; }

.demo-newtab,
.demo-close-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 6px;
  color: rgba(255, 255, 255, 0.40);
  cursor: pointer; border: none; background: none;
  transition: background 0.18s, color 0.18s;
}
.demo-newtab:hover { background: rgba(255, 255, 255, 0.09); color: rgba(255, 255, 255, 0.88); }
.demo-close-btn:hover { background: rgba(231, 76, 60, 0.20); color: #e74c3c; }

/* ── Viewport ─────────────────────────────────────────────── */
.demo-viewport {
  flex: 1; display: flex; align-items: center; justify-content: center;
  background: #111111; overflow: hidden;
}

/* Device wrap — animates on device switch */
.demo-device-wrap {
  transition:
    width  0.38s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.38s ease,
    border-width  0.38s ease;
  position: relative; overflow: hidden;
}

#demoIframe { border: none; display: block; background: #ffffff; }

/* Desktop */
.demo-device-wrap[data-device="desktop"] {
  width: 100%; height: 100%;
  border: none; border-radius: 0;
}
.demo-device-wrap[data-device="desktop"] #demoIframe { width: 100%; height: 100%; }

/* Tablet */
.demo-device-wrap[data-device="tablet"] {
  width: min(768px, calc(100% - 48px));
  height: calc(100% - 48px);
  border: 11px solid #2c2c2c;
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 28px 72px rgba(0, 0, 0, 0.65);
}
.demo-device-wrap[data-device="tablet"] #demoIframe { width: 100%; height: 100%; }

/* Mobile */
.demo-device-wrap[data-device="mobile"] {
  width: min(390px, calc(100% - 40px));
  height: min(844px, calc(100% - 32px));
  border: 13px solid #1e1e1e;
  border-radius: 46px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 28px 80px rgba(0, 0, 0, 0.70);
}
/* Dynamic Island / notch */
.demo-device-wrap[data-device="mobile"]::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 118px; height: 30px;
  background: #1e1e1e; border-radius: 0 0 20px 20px;
  z-index: 10;
}
/* Home indicator */
.demo-device-wrap[data-device="mobile"]::after {
  content: '';
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 4px;
  background: rgba(255, 255, 255, 0.28); border-radius: 2px;
  z-index: 10;
}
.demo-device-wrap[data-device="mobile"] #demoIframe { width: 100%; height: 100%; }

@media (max-width: 560px) {
  .dv-btn span { display: none; }
  .demo-urlbar { max-width: 180px; }
  .demo-modal { top: 0; left: 0; right: 0; bottom: 0; border-radius: 0; }
}
