/* ============================================
   PORTFOLIO — Dark Premium Theme
   Inspired by osteomed.si
   ============================================ */

/* ============================================
   SELF-HOSTED FONTS (замена Google Fonts CDN)
   ============================================
   Как подключить:
   1. Скачай шрифты в формате .woff2 (например, через
      https://gwfh.mranftl.com/fonts — вводишь название,
      выбираешь нужные начертания, жмёшь "Download files").
   2. Нужны начертания:
      - Playfair Display: 500, 600, 700
      - Instrument Serif: 400 normal, 400 italic
      - Work Sans: 300, 400, 500, 600, 700
   3. Переименуй файлы точно как в url() ниже и положи в /fonts/.
   4. Удали из index.html и 404.html теги <link> на
      fonts.googleapis.com / fonts.gstatic.com — они больше не нужны.
   ============================================ */

/* ⬇️ РАСКОММЕНТИРУЙ ВЕСЬ БЛОК НИЖЕ ПОСЛЕ ТОГО, КАК ДОБАВИШЬ ФАЙЛЫ ШРИФТОВ В /fonts/

@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/playfair-display-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/playfair-display-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/playfair-display-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-serif-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-serif-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('fonts/work-sans-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('fonts/work-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('fonts/work-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('fonts/work-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('fonts/work-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

КОНЕЦ БЛОКА ДЛЯ РАСКОММЕНТИРОВАНИЯ ⬆️ */

/* ===== DESIGN TOKENS ===== */
:root {
  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 7rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-36: 9rem;
  --space-40: 10rem;

  /* Colors — Dark Premium (osteomed.si inspired) */
  --color-bg: #0a0a0a;
  --color-bg-alt: #0f0f0f;
  --color-surface: #141414;
  --color-surface-2: #1a1a1a;
  --color-surface-hover: #222222;
  --color-border: #2a2a2a;
  --color-border-light: #333333;

  --color-text: #f5f5f5;
  --color-text-muted: #999999;
  --color-text-faint: #666666;

  --color-primary: #00A9B5;
  --color-primary-hover: #00c4d1;
  --color-primary-dim: #007a82;
  --color-primary-glow: rgba(0, 169, 181, 0.15);

  --color-gold: #E0C5A2;
  --color-gold-hover: #f0d5b2;
  --color-gold-dim: #a08560;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(0, 169, 181, 0.1);

  /* Content widths */
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, 'Helvetica Neue', sans-serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-16);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  position: relative;
}

/* Живой фон: лёгкий шум + два размытых цветовых пятна, зафиксированы к вьюпорту */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(0, 169, 181, 0.06), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 60%, rgba(224, 197, 162, 0.045), transparent 60%);
}

body > * {
  position: relative;
  z-index: 1;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol { list-style: none; }

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

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

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  line-height: 1.15;
  font-family: var(--font-display);
  font-weight: 400;
}

p, li, figcaption {
  text-wrap: pretty;
  max-width: 72ch;
}

::selection {
  background: rgba(0, 169, 181, 0.25);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

button { cursor: pointer; background: none; border: none; }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding-left: clamp(1.5rem, 4vw, 3rem);
  padding-right: clamp(1.5rem, 4vw, 3rem);
}

.section {
  padding-block: clamp(6rem, 10vw, 11rem);
  position: relative;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-header {
  margin-bottom: var(--space-20);
}

.section-tag {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-2xl);
  color: var(--color-text);
  max-width: 16ch;
}

/* ===== HEADER (copied from osteomed.si) ===== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: rgba(214, 194, 163, 0.08);
  background: rgba(5, 5, 5, 0.95);
}

/* Silver gradient logo text */
.logo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  letter-spacing: 0.1em;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff, #f9f9f9 8%, #d7d7d7 28%, #bfbfbf 55%, #ffffff 78%, #9e9e9e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 2px rgba(255, 255, 255, 0.15), 0 6px 18px rgba(0, 0, 0, 0.5);
  border: none;
  background-color: transparent;
  cursor: pointer;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ===== COOKIE CONSENT BANNER (minimal) ===== */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  z-index: 9995;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  pointer-events: none;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-text {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

.cookie-ok {
  padding: 8px 20px;
  font-size: var(--text-xs);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 84px; /* clears the WhatsApp button on small/medium screens */
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35), 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 9990;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.45), 0 6px 16px rgba(0, 0, 0, 0.45);
}

.whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.6;
  animation: whatsapp-ping 2.4s ease-out infinite;
  z-index: -1;
}

@keyframes whatsapp-ping {
  0% { transform: scale(1); opacity: 0.55; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-pulse { animation: none; display: none; }
}

@media (max-width: 640px) {
  .whatsapp-btn {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 20px;
  }
}
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100000;
  background: var(--color-primary);
  color: #0a0a0a;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Language toggle — dropdown with RU/EN/DE/SL */
.lang-toggle {
  position: relative;
  font-family: 'Work Sans', sans-serif;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  padding: 6px 12px;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.lang-globe {
  opacity: 0.75;
  transition: transform 0.5s ease, opacity var(--transition-fast);
}

.lang-current:hover .lang-globe {
  opacity: 1;
  transform: rotate(180deg);
}

.lang-current:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.lang-caret {
  transition: transform var(--transition-fast);
  opacity: 0.7;
}

.lang-toggle.open .lang-caret {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #0d0d0d;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 6px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 10000;
}

.lang-toggle.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.lang-option:hover {
  background: rgba(0, 169, 181, 0.08);
  color: var(--color-text);
}

.lang-option.active {
  color: var(--color-primary);
}

/* Mobile hamburger button */
.mobile-btn {
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  z-index: 10001;
  padding: 8px;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  width: 32px;
  height: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.mobile-btn .bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.mobile-btn.open .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.mobile-btn.open .bar:nth-child(2) {
  opacity: 0;
}
.mobile-btn.open .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Desktop nav */
.desktop-nav {
  display: none;
}

@media (min-width: 993px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
  }
  .mobile-btn {
    display: none;
  }
  .desktop-nav a {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    color: var(--color-text);
    position: relative;
    white-space: nowrap;
    padding: 6px 0;
    transition: color 0.3s ease;
  }
  .desktop-nav > a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width 0.3s ease;
  }
  .desktop-nav > a:hover {
    color: var(--color-gold);
  }
  .desktop-nav > a:hover::after {
    width: 100%;
  }
  .nav-cta {
    background: var(--color-primary);
    color: #fff !important;
    padding: 10px 22px !important;
    border-radius: 999px;
    font-size: 0.88rem !important;
    font-family: 'Work Sans', sans-serif !important;
    font-weight: 600;
  }
  .nav-cta::after {
    display: none;
  }
  .nav-cta:hover {
    color: #fff !important;
    opacity: 0.88;
  }

  /* Dropdown */
  .nav-dropdown {
    position: relative;
  }
  .nav-dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
    transition: color 0.3s ease;
  }
  .nav-dropdown-btn:hover {
    color: var(--color-gold);
  }
  .nav-dropdown-btn span {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
  }
  .nav-dropdown:hover .nav-dropdown-btn span {
    transform: rotate(180deg);
  }
  .nav-dropdown.open .nav-dropdown-btn span {
    transform: rotate(180deg);
  }
  .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #0d0d0d;
    border: 1px solid rgba(214, 194, 163, 0.08);
    border-radius: 14px;
    padding: 10px;
    display: none;
    flex-direction: column;
    min-width: 220px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
    z-index: 10000;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown.open .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: flex;
  }
  .nav-dropdown-menu a {
    padding: 10px 14px !important;
    border-radius: 8px;
  }
  .nav-dropdown-menu a::after {
    display: none;
  }
  .nav-dropdown-menu a:hover {
    background: rgba(0, 169, 181, 0.08);
    color: var(--color-primary) !important;
  }
}

/* ===== LUX MOBILE MENU (copied from osteomed.si) ===== */
.lux-menu {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 4, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.45s;
  z-index: 9998;
}

.lux-menu.active {
  opacity: 1;
  visibility: visible;
}

.lux-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: center;
  padding: 70px 20px;
  max-height: 90vh;
  overflow-y: auto;
}

.lux-menu-inner a {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 5vw, 2rem);
  letter-spacing: 0.10em;
  color: #f7f4ee;
  position: relative;
  transition: color 0.35s ease, letter-spacing 0.35s ease, transform 0.35s ease;
}

.lux-menu-inner a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: 0.35s;
}

.lux-menu-inner a:hover {
  color: var(--color-gold);
  letter-spacing: 0.16em;
  transform: translateY(-2px);
}

.lux-menu-inner a:hover::after {
  width: 82%;
}

body.no-scroll { overflow: hidden; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
  border: 1.5px solid transparent;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-xs);
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--color-primary);
  color: #0a0a0a;
  box-shadow: 0 0 0 rgba(0, 169, 181, 0);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--color-primary-glow), 0 0 40px rgba(0, 169, 181, 0.2);
}

.btn-arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}

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

.btn-ghost {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold-dim);
}

.btn-ghost:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-hover);
  background: rgba(224, 197, 162, 0.05);
}

/* ===== MOBILE MENU — handled by lux-menu above ===== */

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

.hero-bg-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(0, 169, 181, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--color-primary);
}

.hero-title {
  font-size: var(--text-hero);
  line-height: 0.95;
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
}

.hero-title-main {
  color: var(--color-text);
}

.hero-title-accent {
  color: var(--color-primary);
  font-style: italic;
}

.hero-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 48ch;
  margin-bottom: var(--space-10);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-gold);
}

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

/* ===== HERO CODE CARD ===== */
.hero-right {
  position: relative;
}

.hero-code-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  z-index: 2;
}

.code-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border-light);
}

.code-dot:nth-child(1) { background: #ff5f57; }
.code-dot:nth-child(2) { background: #febc2e; }
.code-dot:nth-child(3) { background: #28c840; }

.code-filename {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-family: 'Courier New', monospace;
}

.code-body {
  padding: var(--space-6) var(--space-5);
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.c-key { color: #c678dd; }
.c-var { color: #e5c07b; }
.c-prop { color: #61afef; }
.c-str { color: #98c379; }
.c-fn { color: var(--color-primary); }

.code-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--color-primary);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-orb {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 169, 181, 0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

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

.scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-hint svg {
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

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

.about-text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.about-text p:last-child {
  color: var(--color-text-faint);
}

.about-skills {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.skill-group h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.skill-list li {
  font-size: var(--text-base);
  color: var(--color-text);
  padding-left: var(--space-5);
  position: relative;
}

.skill-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold-dim);
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

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

.service-card:hover {
  border-color: var(--color-border-light);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  transition: transform var(--transition);
}

.service-card:hover .service-icon {
  transform: translateY(-2px) scale(1.05);
}

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

.service-icon {
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.service-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.service-card p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.service-tags li {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all var(--transition);
}

.project-card:hover {
  border-color: var(--color-border-light);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.project-card-large {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.project-visual {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
}

.project-card-large .project-visual {
  aspect-ratio: auto;
  min-height: 100%;
}

.project-visual-1 { background: linear-gradient(135deg, #0a0a0a, #1a2a2a); }
.project-visual-mtmed { background: linear-gradient(135deg, #0a0a0a, #1e1a2a); }
.project-visual-2 { background: linear-gradient(135deg, #0a0a0a, #1a2a3a); }
.project-visual-3 { background: linear-gradient(135deg, #0a0a0a, #2a261a); }
.project-visual-4 { background: linear-gradient(135deg, #0a0a0a, #1e1a2a); }

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

.project-mockup {
  width: 100%;
  max-width: 380px;
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  transition: transform var(--transition);
}

.project-card:hover .project-mockup {
  transform: scale(1.045);
}

.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.mockup-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border-light);
}

.mockup-content {
  padding: var(--space-4);
}

.mockup-hero {
  height: 80px;
  background: linear-gradient(135deg, #0a2a2a, var(--color-primary-dim));
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.mockup-lines {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mockup-lines div {
  height: 8px;
  background: var(--color-border);
  border-radius: var(--radius-full);
}

.mockup-lines div:nth-child(1) { width: 80%; }
.mockup-lines div:nth-child(2) { width: 60%; }
.mockup-lines div:nth-child(3) { width: 40%; }

.project-info {
  padding: var(--space-8) var(--space-8) var(--space-8);
}

.project-card-large .project-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.project-category {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

.project-year {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.project-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.project-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.project-tags span {
  font-size: var(--text-xs);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.project-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

.project-link:hover {
  color: var(--color-primary-hover);
}

/* ===== PROCESS ===== */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border) 10%, var(--color-border) 90%, transparent);
}

.process-step {
  text-align: center;
  position: relative;
}

.process-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-primary);
  position: relative;
  z-index: 2;
  transition: all var(--transition);
}

.process-step:hover .process-number {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px var(--color-primary-glow);
}

.process-content h3 {
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.process-content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 24ch;
  margin: 0 auto;
}

/* ===== CONTACT ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-20);
  align-items: start;
}

.contact-left .section-title {
  margin-bottom: var(--space-6);
}

.contact-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-12);
  max-width: 42ch;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: opacity var(--transition-fast);
}

.contact-method:hover { opacity: 0.8; }

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-icon-whatsapp {
  color: #25D366;
}

.contact-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-value {
  display: block;
  font-size: var(--text-base);
  color: var(--color-text);
}

/* ===== FORM ===== */
.contact-form {
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-base);
  transition: border-color var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

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

.form-success {
  display: none;
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: rgba(0, 169, 181, 0.08);
  border: 1px solid var(--color-primary-dim);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  font-size: var(--text-sm);
}

.form-success.show {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== FOOTER ===== */
.footer {
  background: #050505;
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-20) var(--space-12);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(0, 169, 181, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.footer-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-8);
  padding-bottom: var(--space-12);
  margin-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 1;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--color-text);
  max-width: 20ch;
  line-height: 1.2;
}

.footer-tagline em {
  color: var(--color-primary);
  font-style: italic;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
}

.footer-brand span {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(180deg, #ffffff, #d7d7d7 28%, #bfbfbf 55%, #ffffff 78%, #9e9e9e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

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

/* ===== SCROLL ANIMATIONS ===== */
[data-anim="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}

[data-anim="fade-up"].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .hero-right {
    order: -1;
    max-width: 480px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .contact-wrap {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

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

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

  .project-card-large {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .process-timeline::before { display: none; }
}

@media (max-width: 640px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-8);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .process-timeline {
    grid-template-columns: 1fr;
  }

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

  .scroll-hint { display: none; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-anim="fade-up"] {
    opacity: 1;
    transform: none;
  }
}
