/* ===== SELF-HOSTED FONTS ===== */
/* Outfit */
@font-face { font-family: 'Outfit'; src: url('fonts/outfit-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('fonts/outfit-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('fonts/outfit-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('fonts/outfit-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('fonts/outfit-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('fonts/outfit-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('fonts/outfit-900.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }
/* Inter */
@font-face { font-family: 'Inter'; src: url('fonts/inter-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

/* ============================================
   SOCIAL SOUND — Premium Web Agency CSS
   Palette: Teal #00d4aa | Purple #7c3aed | Amber #f59e0b | Blue #3b82f6
   Dark mode first | Outfit font
   ============================================ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --clr-teal: #00d4aa;
  --clr-teal-dark: #00b490;
  --clr-purple: #7c3aed;
  --clr-purple-dark: #6d28d9;
  --clr-amber: #f59e0b;
  --clr-blue: #3b82f6;
  --clr-pink: #ec4899;

  --bg-dark: #060912;
  --bg-card: #0d1320;
  --bg-card-hover: #121b2e;
  --bg-glass: rgba(13, 19, 32, 0.7);

  --text-primary: #f0f4ff;
  --text-secondary: #8892a4;
  --text-muted: #4a5568;

  --border-subtle: rgba(255,255,255,0.06);
  --border-glass: rgba(255,255,255,0.1);

  --gradient-brand: linear-gradient(135deg, var(--clr-teal), var(--clr-purple));
  --gradient-warm: linear-gradient(135deg, var(--clr-teal), var(--clr-amber));
  --gradient-text: linear-gradient(135deg, var(--clr-teal) 0%, var(--clr-purple) 50%, var(--clr-amber) 100%);

  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(0,212,170,0.15);
  --shadow-purple: 0 0 40px rgba(124,58,237,0.2);

  --nav-height: 72px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition-fast: 200ms ease;
  --transition-base: 350ms cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 600ms cubic-bezier(0.4,0,0.2,1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

body {
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-teal);
  background: rgba(0,212,170,0.08);
  border: 1px solid rgba(0,212,170,0.2);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-primary);
  text-wrap: balance;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  text-wrap: pretty;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: var(--transition-fast);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,212,170,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,212,170,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--clr-teal);
  color: var(--clr-teal);
  transform: translateY(-2px);
}

.btn-nav {
  background: var(--gradient-brand);
  color: #fff;
  padding: 10px 22px;
  font-size: 0.875rem;
  box-shadow: 0 2px 12px rgba(0,212,170,0.25);
}

.btn-nav:hover { transform: translateY(-1px); }

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8rem;
  background: rgba(255,255,255,0.15);
  color: #fff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-sm:hover { background: rgba(255,255,255,0.25); }

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

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

.btn-icon { transition: transform var(--transition-fast); }
.btn:hover .btn-icon { transform: translateX(4px); }

/* ===== NAVIGATION ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: var(--transition-base);
}

#header.scrolled {
  background: rgba(6,9,18,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  gap: 32px;
}

.nav-logo {
  flex-shrink: 0;
}

.logo-img {
  height: 68px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(0,212,170,0.15));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--clr-teal);
  border-radius: 2px;
  transition: var(--transition-fast);
}

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

.nav-link:hover::after,
.nav-link.active::after { transform: translateX(-50%) scaleX(1); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-base);
}

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

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(6,9,18,0.97);
  backdrop-filter: blur(20px);
  padding: 24px;
  border-bottom: 1px solid var(--border-subtle);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  z-index: 999;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-link {
  display: block;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.mobile-link:hover { color: var(--clr-teal); padding-left: 8px; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(0,212,170,0.08) 0%, transparent 60%),
              radial-gradient(ellipse 60% 40% at 80% 80%, rgba(124,58,237,0.08) 0%, transparent 60%),
              var(--bg-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.soundwave-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
}

.soundwave-bg svg {
  width: 100%;
  height: 100%;
}

.wave {
  fill-opacity: 0;
  stroke-width: 0;
}

.wave1 {
  fill: rgba(0,212,170,0.04);
  animation: waveFloat1 8s ease-in-out infinite;
}

.wave2 {
  fill: rgba(124,58,237,0.03);
  animation: waveFloat2 10s ease-in-out infinite;
}

.wave3 {
  fill: rgba(245,158,11,0.02);
  animation: waveFloat3 12s ease-in-out infinite;
}

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

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

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: var(--nav-height);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,212,170,0.08);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--clr-teal);
  margin-bottom: 28px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--clr-teal);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,170,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(0,212,170,0); }
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-subtle);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-line {
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, var(--clr-teal), transparent);
  border-radius: 2px;
  animation: scrollDown 2s ease-in-out infinite;
}

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

/* ===== SERVICES ===== */
.services {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(124,58,237,0.06) 0%, transparent 70%);
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  opacity: 0;
  transition: var(--transition-base);
  border-radius: inherit;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0,212,170,0.25);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

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

.service-card--featured {
  border-color: rgba(0,212,170,0.3);
  background: linear-gradient(135deg, rgba(0,212,170,0.05), rgba(124,58,237,0.05));
  box-shadow: var(--shadow-glow);
}

.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gradient-brand);
  color: #fff;
  padding: 4px 12px;
  border-radius: 100px;
}

.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.service-icon svg { width: 100%; height: 100%; }

.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

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

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.service-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
}

.service-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--clr-teal);
  font-size: 0.75rem;
}

.service-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-teal);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-link:hover { color: var(--clr-teal-dark); gap: 8px; }

/* ===== PROCESS ===== */
.process {
  background: linear-gradient(180deg, var(--bg-dark), #080e1a, var(--bg-dark));
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 32px 20px;
}

.step-number {
  font-size: 4rem;
  font-weight: 900;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.6;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.step-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.process-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-teal), var(--clr-purple));
  align-self: center;
  flex-shrink: 0;
  opacity: 0.4;
  margin-bottom: 60px;
}

/* ===== PORTFOLIO ===== */
.portfolio {
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0,212,170,0.04) 0%, transparent 70%);
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  color: #fff;
  background: var(--gradient-brand);
  border-color: transparent;
}

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

.portfolio-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-base);
}

.portfolio-item--wide {
  grid-column: span 1;
}

.portfolio-img {
  position: relative;
  width: 100%;
  height: 100%;
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg);
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.portfolio-icon {
  font-size: 4rem;
  opacity: 0.4;
  transition: var(--transition-base);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(6,9,18,0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition-base);
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-item:hover .portfolio-icon { opacity: 0.1; transform: scale(1.1); }
.portfolio-item:hover { transform: scale(1.02); box-shadow: var(--shadow-card); }

.portfolio-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-teal);
  margin-bottom: 8px;
}

.portfolio-overlay h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.portfolio-overlay p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* PORTFOLIO FILTER ANIMATION */
.portfolio-item.hidden {
  display: none;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: linear-gradient(135deg, rgba(124,58,237,0.05) 0%, rgba(0,212,170,0.03) 100%);
}

.testimonials-track {
  overflow: hidden;
  position: relative;
}

.testimonials-slider {
  display: flex;
  transition: transform var(--transition-slow);
}

.testimonial-card {
  min-width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 32px;
  font-size: 10rem;
  font-weight: 900;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  opacity: 0.15;
  font-family: Georgia, serif;
}

.testimonial-stars {
  font-size: 1.2rem;
  color: var(--clr-amber);
  margin-bottom: 20px;
  letter-spacing: 4px;
}

.testimonial-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 32px;
  max-width: 700px;
  font-weight: 300;
}

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

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--av-bg, var(--clr-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  line-height: 1;
}

.slider-btn:hover {
  background: var(--gradient-brand);
  border-color: transparent;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-glass);
  transition: var(--transition-fast);
}

.dot.active {
  background: var(--clr-teal);
  width: 24px;
  border-radius: 4px;
}

/* ===== ABOUT ===== */
.about {
  background: var(--bg-dark);
}

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

.about-content .section-tag { display: inline-block; margin-bottom: 16px; }
.about-content .section-title { text-align: left; margin-bottom: 24px; }

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

.about-values {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 36px 0;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.value-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.value-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.value-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* About Visual */
.about-visual {
  position: relative;
  height: 500px;
}

.about-card-main {
  position: absolute;
  inset: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  overflow: hidden;
}

.about-card-main::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--gradient-brand);
  border-radius: inherit;
  opacity: 0.15;
  z-index: 0;
}

.about-logo {
  width: 300px;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 24px rgba(0,212,170,0.2));
}

.about-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Floating badges */
.about-floater {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  animation: float 4s ease-in-out infinite;
  white-space: nowrap;
}

.about-floater span { font-size: 1rem; }

.about-floater--1 {
  top: 10px;
  right: 10px;
  animation-delay: 0s;
}

.about-floater--2 {
  bottom: 80px;
  right: -10px;
  animation-delay: 1.5s;
}

.about-floater--3 {
  top: 50%;
  left: -10px;
  animation-delay: 0.75s;
}

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

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, rgba(0,212,170,0.1), rgba(124,58,237,0.1));
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300d4aa' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-band-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-band-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  text-wrap: balance;
}

.cta-band-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  text-wrap: pretty;
}

/* ===== CONTACT — nuovo layout card centrate ===== */
.contact {
  background: var(--bg-dark);
  text-align: center;
}

/* 3 card affiancate */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 auto 48px;
  max-width: 860px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: border-color 0.25s var(--easing), transform 0.25s var(--easing);
}

.contact-card:hover {
  border-color: rgba(0,212,170,0.3);
  transform: translateY(-4px);
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(0,212,170,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-teal);
  margin-bottom: 8px;
  flex-shrink: 0;
}

.contact-card-icon svg {
  width: 24px;
  height: 24px;
}

.contact-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.contact-card-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s;
  margin: 0;
}

a.contact-card-value:hover {
  color: var(--clr-teal);
}

.contact-card-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* CTA buttons affiancati */
.contact-cta-wrap {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.contact-cta-wrap .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Social centrati */
.contact-socials {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

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

.social-btn:hover {
  color: var(--clr-teal);
  border-color: rgba(0,212,170,0.3);
  background: rgba(0,212,170,0.05);
  transform: translateY(-3px);
}


/* ===== FOOTER ===== */
.footer {
  background: #030608;
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
}

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

.footer-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 8px rgba(0,212,170,0.15));
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 12px;
}

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

.footer-links a:hover {
  color: var(--clr-teal);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card), 0 4px 20px rgba(0,212,170,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: var(--transition-base);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { transform: translateY(-4px); }

/* ===== SCROLL ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

[data-animate="fade-up"] { transform: translateY(40px); }
[data-animate="fade-right"] { transform: translateX(-40px); }
[data-animate="fade-left"] { transform: translateX(40px); }
[data-animate="scale-in"] { transform: scale(0.92); }

[data-animate].in-view {
  opacity: 1;
  transform: none;
}

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

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    height: 380px;
  }

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

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

  .process-steps {
    flex-wrap: wrap;
    gap: 20px;
  }

  .process-connector { display: none; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .section { padding: 72px 0; }

  .nav-links,
  .btn-nav { display: none; }

  .hamburger { display: flex; }

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

  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .portfolio-item--wide { grid-column: span 1; }

  .hero-stats { gap: 24px; }
  .stat-divider { height: 32px; }

  .contact-cards { grid-template-columns: 1fr; max-width: 380px; }
  .contact-cta-wrap { flex-direction: column; align-items: center; }

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

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

  .testimonial-card { padding: 32px 24px; }
  .testimonial-text { font-size: 1rem; }

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

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .about-floater { display: none; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--clr-teal), var(--clr-purple));
  border-radius: 3px;
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(0,212,170,0.25);
  color: var(--text-primary);
}

/* ============================================
   GALLERY MASONRY
   ============================================ */

.gallery-section {
  background: var(--bg-dark);
}

/* --- Filtri --- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 52px;
}

.gallery-filter-btn {
  padding: 10px 24px;
  border-radius: 100px;
  border: 1.5px solid var(--border-glass);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.25s var(--easing);
  white-space: nowrap;
}

.gallery-filter-btn:hover {
  border-color: var(--clr-teal);
  color: var(--clr-teal);
  background: rgba(0,212,170,0.06);
}

.gallery-filter-btn.active {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,212,170,0.3);
}

/* --- Griglia Masonry (CSS columns) --- */
.masonry-grid {
  column-count: 3;
  column-gap: 16px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.4s var(--easing), transform 0.4s var(--easing);
}

/* stato "nascosto" durante il filtro */
.masonry-item.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
  position: absolute;
  visibility: hidden;
}

.masonry-inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  display: block;
}

.masonry-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.55s var(--easing);
  border-radius: var(--radius-lg);
}

/* Varianti di altezza */
.masonry-item--tall .masonry-img {
  /* le immagini tall hanno già proporzione verticale — nessun forzatura */
}

.masonry-item--wide {
  column-span: none; /* CSS columns: non può spannarsi, gestito col layout */
}

/* --- Overlay hover --- */
.masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6,9,18,0.92) 0%,
    rgba(6,9,18,0.4) 50%,
    rgba(6,9,18,0.0) 100%
  );
  opacity: 0;
  transition: opacity 0.35s var(--easing);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px 20px;
  border-radius: var(--radius-lg);
}

.masonry-inner:hover .masonry-overlay {
  opacity: 1;
}

.masonry-inner:hover .masonry-img {
  transform: scale(1.06);
}

.masonry-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-teal);
  margin-bottom: 6px;
  display: block;
}

.masonry-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px;
  line-height: 1.3;
}

.masonry-zoom {
  align-self: flex-start;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  padding: 8px;
  flex-shrink: 0;
}

.masonry-zoom svg {
  width: 16px;
  height: 16px;
}

.masonry-zoom:hover {
  background: var(--clr-teal);
  transform: scale(1.1);
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 6, 14, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--easing);
  backdrop-filter: blur(12px);
}

.lightbox:not([hidden]) {
  opacity: 1;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0,0,0,0.8);
  display: block;
  transition: opacity 0.25s var(--easing);
}

.lightbox-img.is-loading {
  opacity: 0.2;
}

.lightbox-caption {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Pulsanti navigazione lightbox */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 10px;
  z-index: 10000;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 12px;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-close:hover  { background: rgba(0,212,170,0.3); transform: scale(1.1); }
.lightbox-prev:hover   { background: rgba(0,212,170,0.2); transform: translateY(-50%) scale(1.1); }
.lightbox-next:hover   { background: rgba(0,212,170,0.2); transform: translateY(-50%) scale(1.1); }

.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
  width: 20px;
  height: 20px;
}

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

@media (max-width: 900px) {
  .masonry-grid {
    column-count: 2;
    column-gap: 12px;
  }
  .masonry-item { margin-bottom: 12px; }
}

@media (max-width: 600px) {
  .masonry-grid {
    column-count: 1;
  }
  .gallery-filter-btn {
    font-size: 0.8rem;
    padding: 8px 16px;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-img  { max-height: 75vh; }
}

/* ============================================
   GDPR INFO BAR
   ============================================ */
.gdpr-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  background: rgba(13, 19, 32, 0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 14px 24px;
  /* Off-screen di default — nessun display:none, così la transition funziona */
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0.45s;
}

/* Classe aggiunta via JS dopo 1,5s */
.gdpr-bar.gdpr-visible {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0s;
}

.gdpr-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.gdpr-bar-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.gdpr-bar-link {
  color: var(--clr-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.gdpr-bar-link:hover { color: var(--clr-teal-dark); }

.gdpr-bar-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: background 0.2s, color 0.2s;
}

.gdpr-bar-close svg { width: 16px; height: 16px; }

.gdpr-bar-close:hover {
  background: rgba(0,212,170,0.15);
  color: var(--clr-teal);
}

@media (max-width: 600px) {
  .gdpr-bar { padding: 12px 16px; }
  .gdpr-bar-text { font-size: 0.75rem; }
}

