/* ============================================
   BTC srls — Cybernetic Flow Design System
   ============================================ */

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&display=swap');

/* --- CSS VARIABLES --- */
:root {
  --bg-deep: #030712;
  --bg-surface: #0a0f1e;
  --bg-card: rgba(15, 23, 42, 0.6);
  --bg-glass: rgba(15, 23, 42, 0.35);
  --accent: #00f0ff;
  --accent-glow: rgba(0, 240, 255, 0.3);
  --accent-warm: #f59e0b;
  --accent-warm-glow: rgba(245, 158, 11, 0.25);
  --text: #e2e8f0;
  --text-dim: #64748b;
  --text-bright: #f8fafc;
  --gradient-main: linear-gradient(135deg, #00f0ff 0%, #7c3aed 50%, #f59e0b 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(0,240,255,0.15), rgba(124,58,237,0.08));
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.4s var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

::selection {
  background: var(--accent);
  color: var(--bg-deep);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- UTILITY --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-bright);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.8;
}

/* --- GRADIENT TEXT --- */
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
  box-shadow: 0 0 30px var(--accent-glow), 0 4px 15px rgba(0,0,0,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--accent-glow), 0 8px 30px rgba(0,0,0,0.4);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.2));
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover::after { opacity: 1; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid rgba(0, 240, 255, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 25px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-arrow {
  transition: transform 0.3s var(--ease-spring);
}
.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9000;
  padding: 1.25rem 0;
  transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
  background: rgba(3, 7, 18, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(0, 240, 255, 0.06);
  padding: 0.8rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 2px;
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.04);
}

.nav-cta {
  margin-left: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--accent);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.lang-switch:hover,
.lang-switch:active {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.nav-cta .btn {
  padding: 0.65rem 1.5rem;
  font-size: 0.8rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 10001;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-bright);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: float-orb 8s ease-in-out infinite;
}

.hero-gradient-orb.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -20%;
  right: -10%;
  animation-delay: 0s;
}

.hero-gradient-orb.orb-2 {
  width: 400px;
  height: 400px;
  background: #7c3aed;
  bottom: -10%;
  left: -5%;
  animation-delay: -3s;
}

.hero-gradient-orb.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--accent-warm);
  top: 50%;
  left: 40%;
  opacity: 0.2;
  animation-delay: -5s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: 60px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--text-bright);
  margin-bottom: 1.5rem;
}

.hero h1 .line { display: block; }

.hero h1 .line:nth-child(2) {
  opacity: 0;
  animation: slideUp 0.8s var(--ease-out) 0.3s forwards;
}

.hero h1 .line:nth-child(3) {
  opacity: 0;
  animation: slideUp 0.8s var(--ease-out) 0.5s forwards;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  opacity: 0;
  animation: slideUp 0.8s var(--ease-out) 0.7s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: slideUp 0.8s var(--ease-out) 0.9s forwards;
}

.hero-stats {
  position: absolute;
  right: 0;
  bottom: 15%;
  z-index: 2;
  display: flex;
  gap: 3rem;
}

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

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

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

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

/* --- PARTNER MARQUEE --- */
.marquee-section {
  padding: 4rem 0;
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  overflow: hidden;
  position: relative;
}

.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-section::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-deep), transparent);
}

.marquee-section::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-deep), transparent);
}

.marquee-label {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.marquee-track {
  display: flex;
  gap: 4rem;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--bg-glass);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.marquee-item:hover {
  border-color: rgba(0, 240, 255, 0.15);
  background: rgba(0, 240, 255, 0.04);
}

.marquee-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(0, 240, 255, 0.08);
  color: var(--accent);
}

.marquee-item-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- SERVICES --- */
.services-section {
  padding: 7rem 0;
  position: relative;
}

.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-header .section-subtitle {
  margin: 0 auto;
}

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

.service-card {
  position: relative;
  padding: 2.5rem 2rem;
  background: var(--bg-glass);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  transition: all 0.5s var(--ease-out);
  overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0,240,255,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

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

.service-card:hover {
  border-color: rgba(0, 240, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.1);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 20px var(--accent-glow);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

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

.service-link:hover { gap: 0.8rem; }

/* --- ABOUT / PHILOSOPHY --- */
.about-section {
  padding: 7rem 0;
  position: relative;
}

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

.about-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-visual-inner {
  width: 100%;
  height: 100%;
  background: var(--gradient-subtle);
  border: 1px solid rgba(0, 240, 255, 0.08);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-visual-inner::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  animation: float-orb 6s ease-in-out infinite;
}

.about-year {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.about-content .section-title {
  margin-bottom: 1.5rem;
}

.about-text {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.about-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.08);
  color: var(--accent);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* --- PORTFOLIO CAROUSEL --- */
.portfolio-section {
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.portfolio-carousel-wrapper {
  position: relative;
}

.portfolio-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem 0 2rem;
  cursor: grab;
}

.portfolio-carousel::-webkit-scrollbar { display: none; }

.portfolio-carousel:active { cursor: grabbing; }

.portfolio-card {
  flex: 0 0 420px;
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: all 0.5s var(--ease-out);
}

.portfolio-card:hover {
  border-color: rgba(0, 240, 255, 0.12);
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

.portfolio-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--gradient-subtle);
  position: relative;
  overflow: hidden;
}

.portfolio-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-surface) 0%, transparent 60%);
}

.portfolio-card-image .placeholder-visual {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.3;
}

.portfolio-card-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.portfolio-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.3rem 0.8rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 60px;
  margin-bottom: 0.75rem;
}

.portfolio-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.portfolio-card-body p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.carousel-controls {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* --- STATS --- */
.stats-section {
  padding: 5rem 0;
  position: relative;
}

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

.stat-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-glass);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: rgba(0, 240, 255, 0.1);
  transform: translateY(-3px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1;
  margin-bottom: 0.5rem;
}

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

/* --- CTA SECTION --- */
.cta-section {
  padding: 7rem 0;
}

.cta-box {
  position: relative;
  padding: 5rem 3rem;
  background: var(--bg-surface);
  border: 1px solid rgba(0, 240, 255, 0.08);
  border-radius: var(--radius-xl);
  text-align: center;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-main);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.15;
  filter: blur(40px);
}

.cta-box .section-title {
  margin-bottom: 1rem;
}

.cta-box .section-subtitle {
  margin: 0 auto 2.5rem;
  text-align: center;
}

/* --- CONTACT SECTION --- */
.contact-section {
  padding: 7rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

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

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.08);
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.contact-info-item p {
  font-size: 1rem;
  color: var(--text-bright);
  margin-bottom: 0;
}

/* Form */
.contact-form {
  background: var(--bg-glass);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

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

.form-group {
  margin-bottom: 1.25rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  background: rgba(0, 240, 255, 0.03);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.08);
}

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

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.form-check label {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.form-check a {
  color: var(--accent);
  text-decoration: underline;
}

/* --- FOOTER --- */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-dim);
  max-width: 280px;
  margin-top: 1rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dim);
  padding: 0.3rem 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--text-dim);
  transition: color 0.3s;
}

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

/* --- PAGE HEADER --- */
.page-header {
  padding: 10rem 0 5rem;
  position: relative;
  text-align: center;
}

.page-header .section-subtitle {
  margin: 0 auto;
}

.page-header-line {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 1.5rem auto;
  border-radius: 2px;
}

/* --- LEGAL PAGES --- */
.legal-content {
  padding: 2rem 0 5rem;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-dim);
  line-height: 1.8;
  font-size: 0.95rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0.5rem 0 1rem;
}

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s var(--ease-out);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s var(--ease-out);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s var(--ease-out);
}

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

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: min(90%, 600px);
  background: rgba(10, 15, 30, 0.92);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  opacity: 0;
  animation: cookieIn 0.6s var(--ease-out) 0.5s forwards;
}

@keyframes cookieIn {
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-banner p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0;
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner .btn {
  flex-shrink: 0;
}

/* --- SERVICE LIST (servizi.html) --- */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
}

.service-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: var(--transition);
}

.service-item:hover {
  background: rgba(0, 240, 255, 0.02);
  padding-left: 1rem;
  padding-right: 1rem;
}

.service-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(0, 240, 255, 0.2);
  line-height: 1;
  padding-top: 0.3rem;
}

.service-item h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.service-item p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- ABOUT CONTENT (chi-siamo.html) --- */
.about-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.about-page-card {
  padding: 2.5rem;
  background: var(--bg-glass);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.about-page-card h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* --- PORTFOLIO GRID --- */
.portfolio-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-overlay a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-bright);
  transition: var(--transition);
}

.mobile-overlay a:hover {
  color: var(--accent);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .portfolio-card { flex: 0 0 350px; }
  .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta, .lang-switch { display: none; }
  .menu-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-page-grid { grid-template-columns: 1fr; }
  .portfolio-page-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .portfolio-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .portfolio-card { flex: 0 0 300px; }
  .hero-stats { position: static; margin-top: 3rem; flex-direction: row; gap: 2rem; }
  .hero-stat-number { font-size: 2rem; }
  .cta-box { padding: 3rem 1.5rem; }
  .service-item { grid-template-columns: 1fr; gap: 0.75rem; }
  .cookie-banner { flex-direction: column; text-align: center; }
  .hero h1 { font-size: 2.5rem; }
  .section-subtitle { font-size: 0.95rem; }
  input, textarea, select { font-size: 16px !important; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .section-title { font-size: 1.8rem; }
  .portfolio-card { flex: 0 0 280px; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .hero-desc { font-size: 0.9rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .marquee-label { display: none; }
  .cta-box { padding: 2rem 1rem; }
  .footer-grid { gap: 1.5rem; }
  .about-page-card { padding: 1.5rem; }
  .service-item { padding: 1.25rem 0; }
}

/* ============================================
   3D VISUAL EFFECTS — PeachWeb Inspired
   ============================================ */

/* --- GRADIENT MESH BACKGROUND --- */
.gradient-mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* --- 3D FLOATING CONTAINER --- */
.hero-3d-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  perspective: 1200px;
}

/* --- FLOATING 3D OBJECTS (CSS) --- */
.floating-3d {
  position: absolute;
  transform-style: preserve-3d;
  animation: float3d 12s ease-in-out infinite;
}

.floating-3d.cube {
  width: 80px;
  height: 80px;
  transform-style: preserve-3d;
  animation: rotateCube 20s linear infinite, float3d 12s ease-in-out infinite;
}

.floating-3d.cube .face {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1.5px solid rgba(0, 240, 255, 0.2);
  background: rgba(0, 240, 255, 0.03);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.floating-3d.cube .face.front  { transform: translateZ(40px); }
.floating-3d.cube .face.back   { transform: rotateY(180deg) translateZ(40px); }
.floating-3d.cube .face.right  { transform: rotateY(90deg) translateZ(40px); }
.floating-3d.cube .face.left   { transform: rotateY(-90deg) translateZ(40px); }
.floating-3d.cube .face.top    { transform: rotateX(90deg) translateZ(40px); }
.floating-3d.cube .face.bottom { transform: rotateX(-90deg) translateZ(40px); }

.floating-3d.pyramid {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 90px solid rgba(124, 58, 237, 0.15);
  filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.3));
  animation: rotatePyramid 15s linear infinite, float3d 10s ease-in-out infinite;
}

.floating-3d.sphere {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 240, 255, 0.2), rgba(124, 58, 237, 0.1), transparent);
  border: 1.5px solid rgba(0, 240, 255, 0.15);
  box-shadow: 
    inset -20px -20px 40px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(0, 240, 255, 0.1);
  animation: float3d 14s ease-in-out infinite, pulseGlow 4s ease-in-out infinite;
}

.floating-3d.ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(245, 158, 11, 0.2);
  background: transparent;
  animation: rotateRing 18s linear infinite, float3d 11s ease-in-out infinite;
}

.floating-3d.diamond {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(124, 58, 237, 0.1));
  border: 1.5px solid rgba(0, 240, 255, 0.2);
  transform: rotate(45deg);
  animation: rotateDiamond 12s linear infinite, float3d 9s ease-in-out infinite;
}

@keyframes float3d {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-20px) translateX(10px); }
  50% { transform: translateY(-10px) translateX(-15px); }
  75% { transform: translateY(-25px) translateX(5px); }
}

@keyframes rotateCube {
  from { transform: rotateX(0) rotateY(0) rotateZ(0); }
  to { transform: rotateX(360deg) rotateY(360deg) rotateZ(180deg); }
}

@keyframes rotatePyramid {
  from { transform: rotateY(0) rotateX(15deg); }
  to { transform: rotateY(360deg) rotateX(15deg); }
}

@keyframes rotateRing {
  from { transform: rotateX(70deg) rotateZ(0); }
  to { transform: rotateX(70deg) rotateZ(360deg); }
}

@keyframes rotateDiamond {
  from { transform: rotate(45deg) rotateY(0); }
  to { transform: rotate(45deg) rotateY(360deg); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: inset -20px -20px 40px rgba(0,0,0,0.3), 0 0 60px rgba(0,240,255,0.1); }
  50% { box-shadow: inset -20px -20px 40px rgba(0,0,0,0.3), 0 0 100px rgba(0,240,255,0.2); }
}

/* --- FUNNEL SECTION --- */
.funnel-section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.funnel-header {
  text-align: center;
  margin-bottom: 5rem;
}

.funnel-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.funnel-step {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-xl);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  position: relative;
  transition: all 0.6s var(--ease-out);
  opacity: 0;
  transform: translateY(40px) scale(0.95);
}

.funnel-step.funnel-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.funnel-step:nth-child(1) { transition-delay: 0s; }
.funnel-step:nth-child(3) { transition-delay: 0.2s; }
.funnel-step:nth-child(5) { transition-delay: 0.4s; }

.funnel-step:hover {
  border-color: rgba(0, 240, 255, 0.15);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.funnel-step-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 1rem;
}

.funnel-step-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.1);
  transition: var(--transition);
}

.funnel-step:hover .funnel-step-icon {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: scale(1.1);
}

.funnel-step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
}

.funnel-step p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Funnel Connectors */
.funnel-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.funnel-connector-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.3), rgba(124, 58, 237, 0.3));
  position: relative;
}

.funnel-connector-line::after {
  content: '';
  position: absolute;
  right: -8px;
  top: -5px;
  width: 0;
  height: 0;
  border-left: 10px solid rgba(0, 240, 255, 0.4);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* --- 3D CARD TILT EFFECT --- */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.card-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: background 0.4s;
  z-index: 10;
}

.tilt-card .card-content {
  transform: translateZ(20px);
}

/* --- 3D TEXT EFFECT --- */
.text-3d {
  text-shadow: 
    1px 1px 0 rgba(0, 240, 255, 0.3),
    2px 2px 0 rgba(0, 240, 255, 0.2),
    3px 3px 0 rgba(0, 240, 255, 0.1),
    4px 4px 0 rgba(0, 0, 0, 0.2);
}

/* --- GLOW LINE DECORATIONS --- */
.glow-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 3rem 0;
  opacity: 0.3;
}

.glow-line-vertical {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  position: absolute;
  opacity: 0.15;
}

/* --- 3D SHOWCASE SECTION --- */
.showcase-3d {
  padding: 8rem 0;
  position: relative;
  perspective: 1500px;
}

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

.showcase-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transform-style: preserve-3d;
  transition: all 0.6s var(--ease-out);
}

.showcase-item:hover {
  transform: rotateY(-5deg) rotateX(5deg) scale(1.05);
  border-color: rgba(0, 240, 255, 0.15);
  box-shadow: 25px 25px 60px rgba(0, 0, 0, 0.4);
}

.showcase-item-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0.15;
}

.showcase-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 7, 18, 0.95) 0%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.showcase-item-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-bright);
  margin-bottom: 0.3rem;
}

.showcase-item-overlay p {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0;
}

/* --- ANIMATED ORBS --- */
.orb-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.animated-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 10s ease-in-out infinite;
}

.animated-orb.orb-cyan {
  width: 500px;
  height: 500px;
  background: rgba(0, 240, 255, 0.08);
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.animated-orb.orb-violet {
  width: 400px;
  height: 400px;
  background: rgba(124, 58, 237, 0.06);
  bottom: 10%;
  left: -5%;
  animation-delay: -3s;
}

.animated-orb.orb-amber {
  width: 300px;
  height: 300px;
  background: rgba(245, 158, 11, 0.05);
  top: 40%;
  left: 30%;
  animation-delay: -6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 20px) scale(0.9); }
}

/* --- PARALLAX LAYER --- */
.parallax-layer {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* --- 3D RESPONSIVE --- */
@media (max-width: 1024px) {
  .funnel-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .funnel-connector { display: none; }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .floating-3d { display: none; }
}

@media (max-width: 768px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .funnel-step { padding: 2rem 1.5rem; }
}
