/* ============================================
   K. Terion Miller - Dark Glassmorphism Design
   Mirrors Open Mind Software aesthetic
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Colors */
  --bg: #09090b;
  --surface: rgba(255,255,255,0.03);
  --surface-hover: rgba(255,255,255,0.06);
  --surface-active: rgba(255,255,255,0.08);
  --accent: #f97316;
  --accent-hover: #fb923c;
  --accent-muted: rgba(249,115,22,0.15);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --white: #ffffff;
  --zinc-100: #f4f4f5;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --success: #4ade80;

  /* Typography */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --max-width: 1400px;
  --section-py: clamp(80px, 10vw, 128px);
  --section-px: clamp(16px, 4vw, 32px);

  /* Radius */
  --radius-glass: 1.5rem;
  --radius-glass-sm: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-glass: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 32px rgba(0,0,0,0.3);
  --shadow-glass-hover: inset 0 1px 0 rgba(255,255,255,0.08), 0 12px 40px rgba(0,0,0,0.4);
  --shadow-glass-sm: inset 0 1px 0 rgba(255,255,255,0.05), 0 4px 16px rgba(0,0,0,0.2);

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--zinc-100);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100dvh;
}

::selection {
  background: rgba(249,115,22,0.3);
  color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--zinc-800);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--zinc-700);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--white);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--white);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: clamp(1rem, 1.5vw, 1.125rem); }

p {
  color: var(--zinc-400);
  max-width: 65ch;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

/* --- Glassmorphism --- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glass);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.glass:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glass-hover);
}

.glass-sm {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-glass-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-glass-sm);
  transition: background var(--transition), border-color var(--transition);
}

.glass-sm:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--accent);
  color: var(--zinc-900);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--zinc-900);
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(249,115,22,0.3);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border: 1px solid var(--border);
  color: var(--zinc-300);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  color: var(--white);
}

/* Legacy button classes mapped to new system */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border: 1px solid var(--border);
  color: var(--zinc-300);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  color: var(--white);
}

/* --- Section Patterns --- */
.section {
  padding: var(--section-py) 0;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.05;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--zinc-400);
  line-height: 1.7;
  max-width: 65ch;
  margin-bottom: 48px;
}

/* --- Background Effects --- */
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.mesh-gradient {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(249,115,22,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(99,102,241,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(249,115,22,0.04) 0%, transparent 50%);
}

/* --- Accent Line --- */
.accent-line {
  width: 48px;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --- Page Transition --- */
.page-transition {
  animation: pageIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

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

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 6s ease-in-out 2s infinite;
}

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

.animate-pulse-glow {
  animation: pulse-glow 4s ease-in-out infinite;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.scrolled {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  box-shadow: var(--shadow-glass);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo:hover {
  color: var(--white);
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-muted);
  border: 1px solid rgba(249,115,22,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.nav-logo:hover .nav-logo-icon {
  background: rgba(249,115,22,0.2);
  border-color: rgba(249,115,22,0.4);
}

.nav-logo-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--zinc-400);
  transition: color 0.2s;
  position: relative;
  text-decoration: none;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}

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

.nav-cta {
  padding: 10px 24px;
  background: var(--accent);
  color: var(--zinc-900);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: var(--zinc-900);
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(249,115,22,0.3);
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--zinc-300);
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 16px;
  right: 16px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-glass-sm);
  box-shadow: var(--shadow-glass);
  z-index: 999;
  flex-direction: column;
  padding: 24px;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

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

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--zinc-400);
  transition: color var(--transition);
  text-decoration: none;
}

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

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

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
}

.hero-bg-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(249,115,22,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(99,102,241,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(249,115,22,0.04) 0%, transparent 50%);
}

/* Floating glass elements */
.hero-float {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glass-sm);
}

.hero-float-1 {
  top: 25%;
  right: 15%;
  width: 128px;
  height: 128px;
  border-radius: var(--radius-glass);
  animation: float 6s ease-in-out infinite;
  display: none;
}

.hero-float-2 {
  bottom: 33%;
  right: 25%;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-glass-sm);
  animation: float 6s ease-in-out 2s infinite;
  display: none;
}

.hero-float-3 {
  top: 33%;
  left: 10%;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-glass-sm);
  animation: float 6s ease-in-out infinite;
  animation-delay: 1s;
  display: none;
}

@media (min-width: 1024px) {
  .hero-float-1, .hero-float-2, .hero-float-3 {
    display: block;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-label .accent-line {
  flex-shrink: 0;
}

.hero-label-text {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 32px;
}

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

.hero-title .italic {
  font-style: italic;
  font-weight: 400;
  color: var(--zinc-400);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--zinc-400);
  line-height: 1.7;
  max-width: 55ch;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.hero-stat {
  text-align: left;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--zinc-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-element {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.hero-visual-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.hero-visual-card .mesh-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(249,115,22,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(99,102,241,0.05) 0%, transparent 50%);
  opacity: 0.5;
}

.hero-visual-stats {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-visual-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-visual-stat-num {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--white);
}

.hero-visual-stat-label {
  font-size: 0.75rem;
  color: var(--zinc-500);
  margin-top: 4px;
}

.hero-visual-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-stat-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.hero-visual-divider {
  height: 1px;
  background: var(--border);
}

.hero-visual-glow {
  position: absolute;
  inset: -16px;
  background: rgba(249,115,22,0.05);
  border-radius: var(--radius-glass);
  filter: blur(40px);
  z-index: -1;
  animation: pulse-glow 4s ease-in-out infinite;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: float 6s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 10px;
  color: var(--zinc-600);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-indicator-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--zinc-600), transparent);
}

/* ============================================
   SERVICES (Index Cards)
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card:nth-child(1),
.service-card:nth-child(4) {
  grid-column: span 2;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glass);
  padding: 32px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.service-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glass-hover);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-muted);
  border: 1px solid rgba(249,115,22,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(249,115,22,0.2);
  border-color: rgba(249,115,22,0.4);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--zinc-400);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 20px;
}

.service-link {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.service-link:hover {
  color: var(--accent);
  gap: 10px;
}

.service-link svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   PORTFOLIO CAROUSEL
   ============================================ */
.portfolio-carousel {
  position: relative;
  width: 100%;
  margin-top: 40px;
}

.portfolio-carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-glass);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glass);
  min-height: 500px;
}

.portfolio-carousel-card {
  cursor: pointer;
  transition: transform var(--transition);
  display: block;
  width: 100%;
}

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

.portfolio-carousel-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--zinc-900);
}

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

.portfolio-carousel-card:hover .portfolio-carousel-image img {
  transform: scale(1.05);
}

.portfolio-carousel-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,9,11,0.9) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

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

.portfolio-carousel-image-overlay span {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.portfolio-carousel-content {
  padding: 24px;
}

.portfolio-carousel-category {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

.portfolio-carousel-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.portfolio-carousel-description {
  font-size: 0.9rem;
  color: var(--zinc-400);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-carousel-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.portfolio-carousel-tech-tag {
  font-size: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--zinc-500);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.portfolio-carousel-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.portfolio-carousel-highlight {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--zinc-400);
}

.portfolio-carousel-highlight::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

/* Carousel Navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(9,9,11,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 10;
}

.carousel-nav:hover {
  background: var(--accent);
  color: var(--zinc-900);
  border-color: var(--accent);
}

.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-autoplay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 0.75rem;
  color: var(--zinc-600);
  opacity: 0.6;
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(249,115,22,0.3);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.carousel-indicator:hover {
  background: rgba(249,115,22,0.5);
}

.carousel-indicator.active {
  width: 32px;
  border-radius: 4px;
  background: var(--accent);
}

/* Carousel Counter */
.carousel-counter {
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--zinc-600);
}

/* Portfolio Modal */
.portfolio-modal {
  position: fixed;
  inset: 0;
  background: rgba(9,9,11,0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

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

.portfolio-modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glass);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.portfolio-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 10;
}

.portfolio-modal-close:hover {
  background: var(--accent);
  color: var(--zinc-900);
  border-color: var(--accent);
}

.portfolio-modal-images {
  position: relative;
  background: var(--zinc-900);
}

.portfolio-modal-main-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

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

.portfolio-modal-image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(9,9,11,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.portfolio-modal-image-nav:hover {
  background: var(--accent);
  color: var(--zinc-900);
}

.portfolio-modal-image-prev { left: 12px; }
.portfolio-modal-image-next { right: 12px; }

.portfolio-modal-thumbnails {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
}

.portfolio-modal-thumbnail {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
}

.portfolio-modal-thumbnail.active {
  border-color: var(--accent);
}

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

.portfolio-modal-details {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portfolio-modal-category {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.portfolio-modal-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.portfolio-modal-description {
  font-size: 0.95rem;
  color: var(--zinc-400);
  line-height: 1.7;
}

.portfolio-modal-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portfolio-modal-section h4 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.portfolio-modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-modal-tech-tag {
  font-size: 0.8rem;
  background: var(--accent-muted);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.portfolio-modal-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portfolio-modal-highlight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--zinc-400);
}

.portfolio-modal-highlight::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glass);
  padding: 36px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glass-hover);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  color: var(--accent);
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--zinc-100);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  background: var(--accent-muted);
  border: 1px solid var(--border);
}

.testimonial-info h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.testimonial-info p {
  font-size: 0.8rem;
  color: var(--zinc-500);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  text-align: center;
  padding: 120px 0;
  position: relative;
}

.cta-section .glass {
  padding: 80px 32px;
  position: relative;
  overflow: hidden;
}

.cta-section .glass .mesh-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(249,115,22,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(99,102,241,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(249,115,22,0.04) 0%, transparent 50%);
}

.cta-section h2 {
  position: relative;
  margin-bottom: 24px;
}

.cta-section p {
  font-size: 1.125rem;
  color: var(--zinc-400);
  max-width: 50ch;
  margin: 0 auto 40px;
  position: relative;
}

.cta-section .btn-primary {
  position: relative;
  font-size: 1.125rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 128px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px var(--section-px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .nav-logo {
  margin-bottom: 0;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--zinc-500);
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col a,
.footer-col span {
  display: block;
  font-size: 0.875rem;
  color: var(--zinc-500);
  margin-bottom: 12px;
  transition: color var(--transition);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--zinc-300);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--zinc-600);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-social a {
  color: var(--zinc-600);
  transition: color var(--transition);
}

.footer-social a:hover {
  color: var(--zinc-400);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   PAGE HERO (Inner Pages)
   ============================================ */
.page-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.page-hero .grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
}

.page-hero .mesh-gradient {
  position: absolute;
  inset: 0;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.125rem;
  color: var(--zinc-400);
  max-width: 600px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--zinc-400);
  margin-bottom: 24px;
  transition: color var(--transition);
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   SERVICES PAGE
   ============================================ */
.services-detail-section {
  padding: 80px 0;
  position: relative;
}

.services-detail-section:nth-child(even) {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.service-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.service-detail-row:nth-child(even) {
  direction: rtl;
}

.service-detail-row:nth-child(even) > * {
  direction: ltr;
}

.service-detail-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.service-detail-content p {
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: var(--zinc-400);
  line-height: 1.7;
}

.service-detail-list {
  margin: 20px 0;
}

.service-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--zinc-400);
}

.service-detail-list li svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Packages */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.package-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glass);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.package-card.featured {
  border-color: rgba(249,115,22,0.4);
}

.package-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--zinc-900);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 16px;
  border-radius: var(--radius-full);
}

.package-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

.package-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.package-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
}

.package-features {
  text-align: left;
  margin-bottom: 32px;
}

.package-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--zinc-400);
  margin-bottom: 12px;
}

.package-features li svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ============================================
   SERVICE DETAIL PAGE (Dynamic)
   ============================================ */
.service-page-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.service-page-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.service-page-content .subheading {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 32px;
  font-weight: 500;
}

.service-page-content .main-copy p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--zinc-400);
}

.service-page-content svg {
  max-width: 40px;
  max-height: 40px;
}

.service-page-content .what-you-get {
  margin: 40px 0;
}

.service-page-content .what-you-get h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--white);
}

.service-page-content .what-you-get ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 1rem;
  color: var(--zinc-400);
}

.service-page-content .what-you-get ul li svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
  max-width: 20px;
  max-height: 20px;
}

.service-page-content .why-choose {
  margin: 40px 0;
}

.service-page-content .why-choose h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--white);
}

.service-page-content .why-choose p {
  font-size: 1.05rem;
  color: var(--zinc-400);
  line-height: 1.8;
}

.service-page-content .results {
  margin: 40px 0;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.service-page-content .results h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--white);
}

.service-page-content .results ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--zinc-400);
}

.service-page-content .results ul li svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  max-width: 18px;
  max-height: 18px;
}

/* Sidebar Form */
.sidebar-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glass);
  padding: 36px;
  position: sticky;
  top: 100px;
}

.sidebar-form h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--white);
}

.sidebar-form > p {
  font-size: 0.9rem;
  color: var(--zinc-500);
  margin-bottom: 24px;
}

/* Form Elements */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--zinc-400);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-glass-sm);
  color: var(--zinc-100);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

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

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

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

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: var(--zinc-900);
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.form-submit:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(249,115,22,0.3);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--surface);
  border: 1px solid rgba(249,115,22,0.4);
  border-radius: var(--radius-glass-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glass);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
  z-index: 2000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast svg {
  width: 22px;
  height: 22px;
  color: var(--success);
}

.toast p {
  font-size: 0.9rem;
  color: var(--zinc-100);
}

/* ============================================
   BLOG
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glass);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: block;
}

.blog-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glass-hover);
}

.blog-card-visual {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.blog-card:nth-child(1) .blog-card-visual {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
}

.blog-card:nth-child(2) .blog-card-visual {
  background: linear-gradient(135deg, #2e1a0a, #4e2d1b, #764628);
}

.blog-card:nth-child(3) .blog-card-visual {
  background: linear-gradient(135deg, #1a0a2e, #2d1b4e, #462876);
}

.blog-card:nth-child(4) .blog-card-visual {
  background: linear-gradient(135deg, #0a1a0f, #1b3a25, #2d5a3d);
}

.blog-card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 15px,
    rgba(255,255,255,0.03) 15px,
    rgba(255,255,255,0.03) 16px
  );
}

.blog-card-content {
  padding: 28px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  color: var(--zinc-500);
}

.blog-card-category {
  background: var(--accent-muted);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.blog-card-content h3 a {
  color: var(--white);
  text-decoration: none;
}

.blog-card-content h3 a:hover {
  color: var(--accent);
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--zinc-400);
  line-height: 1.6;
}

/* ============================================
   BLOG POST PAGE
   ============================================ */
.blog-post-header {
  padding: 160px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-post-header .grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
}

.blog-post-header .mesh-gradient {
  position: absolute;
  inset: 0;
}

.blog-post-header > * {
  position: relative;
  z-index: 2;
}

.blog-post-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--zinc-400);
  margin-bottom: 40px;
  transition: color var(--transition);
}

.blog-post-header .back-link:hover {
  color: var(--accent);
}

.blog-post-header .back-link svg {
  width: 16px;
  height: 16px;
}

.blog-post-header h1 {
  max-width: 800px;
  margin: 0 auto 24px;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--zinc-500);
}

.blog-post-meta .category-badge {
  background: var(--accent-muted);
  color: var(--accent);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-post-body {
  max-width: 65ch;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.blog-post-body h2 {
  font-size: 1.6rem;
  margin: 48px 0 20px;
  color: var(--white);
}

.blog-post-body h3 {
  font-size: 1.3rem;
  margin: 36px 0 16px;
  color: var(--white);
}

.blog-post-body p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--zinc-400);
}

.blog-post-body ul, .blog-post-body ol {
  margin: 20px 0;
  padding-left: 24px;
}

.blog-post-body li {
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: var(--zinc-400);
  line-height: 1.7;
  list-style: disc;
}

.blog-post-body ol li {
  list-style: decimal;
}

.blog-post-body strong {
  color: var(--zinc-100);
  font-weight: 600;
}

.blog-post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 30px 0;
  background: var(--surface);
  border-radius: 0 var(--radius-glass-sm) var(--radius-glass-sm) 0;
}

.blog-post-body blockquote p {
  font-style: italic;
  color: var(--zinc-100);
}

/* Author Bio */
.author-bio {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-muted);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--white);
}

.author-info .author-title {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.author-info p {
  font-size: 0.9rem;
  color: var(--zinc-400);
  line-height: 1.7;
}

/* Related Posts */
.related-posts {
  padding: 60px 0 80px;
  border-top: 1px solid var(--border);
}

.related-posts h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  color: var(--white);
}

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

.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-glass-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px;
  transition: all var(--transition);
}

.related-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

.related-card h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  line-height: 1.4;
  color: var(--white);
}

.related-card h4 a {
  color: var(--white);
  text-decoration: none;
}

.related-card h4 a:hover {
  color: var(--accent);
}

.related-card .meta {
  font-size: 0.75rem;
  color: var(--zinc-500);
}

/* ============================================
   TESTIMONIALS PAGE
   ============================================ */
.testimonials-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glass);
  padding: 40px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-page-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glass-hover);
}

.testimonial-page-card .testimonial-quote {
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glass);
  padding: 40px;
}

.contact-form h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--white);
}

.contact-form > p {
  font-size: 0.95rem;
  color: var(--zinc-400);
  margin-bottom: 32px;
}

.contact-info-section h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  color: var(--white);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-muted);
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: 12px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-text h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--white);
}

.contact-info-text p,
.contact-info-text a {
  font-size: 0.9rem;
  color: var(--zinc-400);
}

.contact-info-text a:hover {
  color: var(--accent);
}

.contact-about {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.contact-about h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--white);
}

.contact-about p {
  font-size: 0.95rem;
  color: var(--zinc-400);
  line-height: 1.7;
}

.contact-social {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.contact-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--zinc-400);
  transition: all var(--transition);
}

.contact-social a:hover {
  border-color: rgba(249,115,22,0.4);
  color: var(--accent);
  background: var(--accent-muted);
}

.contact-social a svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   NOT FOUND
   ============================================ */
.not-found {
  text-align: center;
  padding: 200px 0;
}

.not-found h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--white);
}

.not-found p {
  margin: 0 auto 32px;
  color: var(--zinc-400);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    display: none;
  }

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

  .service-card:nth-child(1),
  .service-card:nth-child(4) {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .service-page-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-form {
    position: static;
  }

  .service-detail-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-detail-row:nth-child(even) {
    direction: ltr;
  }

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 140px 0 80px;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stat-number {
    font-size: 1.6rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 60px 0;
  }

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

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

  .testimonials-page-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .page-hero {
    padding: 120px 0 60px;
  }

  .author-bio {
    flex-direction: column;
  }

  .portfolio-carousel-highlights {
    grid-template-columns: 1fr;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
  }

  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }

  .portfolio-modal-content {
    grid-template-columns: 1fr;
    max-height: 95vh;
  }

  .portfolio-modal-details {
    padding: 20px;
  }

  .portfolio-modal-thumbnail {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .service-card {
    padding: 24px;
  }

  .testimonial-card,
  .testimonial-page-card {
    padding: 24px;
  }
}

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