

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #080809;
  --bg-secondary: #0f0f12;
  --bg-tertiary: #15151b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-red: #ff3b30;
  --accent-red-glow: rgba(255, 59, 48, 0.15);
  --accent-orange: #ff9500;
  --accent-gradient: linear-gradient(135deg, #ff3b30 0%, #ff9500 100%);
  --glass-bg: rgba(15, 15, 18, 0.7);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --transition-spring: 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-red) var(--bg-primary);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Background Mesh Gradients */
.glow-mesh {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
}
.glow-red {
  background: var(--accent-red);
  top: -10%;
  right: -5%;
}
.glow-orange {
  background: var(--accent-orange);
  bottom: 10%;
  left: -10%;
}
.glow-center {
  background: var(--accent-red);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.08;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

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

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* NAVIGATION */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8, 8, 9, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

nav.scrolled {
  padding: 0.8rem 0;
  background: rgba(8, 8, 9, 0.9);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 1001;
}

.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(255, 59, 48, 0.15));
  transition: var(--transition-smooth);
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.02);
  filter: drop-shadow(0 0 12px rgba(255, 59, 48, 0.35));
}


.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
  padding: 0.3rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition-fast);
}

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

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

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

.nav-cta {
  background: var(--accent-gradient);
  color: white;
  padding: 0.75rem 1.6rem;
  border-radius: 4px;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(255, 59, 48, 0.3);
  border: 1px solid rgba(255,255,255,0.1);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 59, 48, 0.5);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0.5rem;
}

.mobile-nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* Global Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 4px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 15px rgba(255, 59, 48, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 59, 48, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* Common Section Styles */
section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  max-width: 700px;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 1rem;
}

.section-tag::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent-red);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Grid System */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

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

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

/* Glassmorphism Panel Utilities */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--glass-glow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background-color: var(--bg-primary);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: normal;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-fill-color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

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

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

.stat-box .stat-num {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-box .stat-num span {
  color: var(--accent-red);
}

.stat-box .stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* CLIENT LOGOS */
.clients-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.clients-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  opacity: 0.6;
}

.client-logo {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

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

/* ABOUT PREVIEW */
.about-section {
  background: var(--bg-secondary);
}

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

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.feature-icon-wrapper {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.2);
  border-radius: 8px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  flex-shrink: 0;
}

.feature-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
}

/* SERVICES */
.service-card {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.service-icon {
  color: var(--accent-red);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.service-link svg {
  transition: var(--transition-fast);
}

.service-link:hover svg {
  transform: translateX(4px);
}

/* ROI CALCULATOR LEAD GENERATION WIDGET */
.calculator-section {
  background: radial-gradient(circle at top right, rgba(255, 59, 48, 0.08), transparent 50%), var(--bg-primary);
}

.calculator-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.calc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-label {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
}

.calc-value {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-red);
  background: rgba(255, 59, 48, 0.08);
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 59, 48, 0.2);
}

/* Modern Range Slider Styling */
.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  outline: none;
  border: 1px solid var(--glass-border);
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-gradient);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.6);
  border: 2px solid white;
  transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-gradient);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.6);
  border: 2px solid white;
  transition: var(--transition-fast);
}

.calc-outputs {
  background: radial-gradient(circle at bottom, rgba(255, 149, 0, 0.08) 0%, transparent 70%), rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.output-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.output-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.output-metrics {
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--glass-border);
}

.metric-row:last-child {
  border-bottom: none;
}

.metric-lbl {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.metric-val {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.metric-val.green-glow {
  color: #10b981;
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.calculator-form input {
  padding: 0.8rem 1rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  color: white;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.calculator-form input:focus {
  outline: none;
  border-color: var(--accent-red);
}

/* RESULTS & CASE STUDIES */
.results-section {
  background: var(--bg-secondary);
}

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

.case-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-metric {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-red);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.case-metric-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.case-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.case-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* CONTACT SECTION */
.contact-section {
  background: var(--bg-primary);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
}

.contact-content h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.contact-content a, .contact-content span {
  font-size: 1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-content a:hover {
  color: var(--accent-red);
}

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

.form-group label {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.form-group input, 
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(8, 8, 9, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-group input:focus, 
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.15);
}

/* Multi-step Quiz brief builder */
.brief-step {
  display: none;
}

.brief-step.active {
  display: block;
  animation: fadeIn 0.4s forwards;
}

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

.option-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  padding: 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast);
}

.option-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
}

.option-card.selected {
  background: rgba(255, 59, 48, 0.08);
  border-color: var(--accent-red);
  color: var(--text-primary);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

/* FOOTER */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 5rem 0 3rem;
  color: var(--text-secondary);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 1rem;
  line-height: 1.7;
}

.footer-links-grid {
  display: flex;
  gap: 5rem;
}

.footer-column h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

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

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

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* WHATSAPP FLOATING BUTTON */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #25D366;
  color: white;
  padding: 0.8rem 1.4rem 0.8rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: var(--transition-smooth);
  animation: waPulse 3s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,0.15);
}

.wa-float:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(37,211,102,0.6);
  animation: none;
}

.wa-float svg {
  flex-shrink: 0;
}

.wa-label {
  color: white;
}

@keyframes waPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.15);
  }
}

/* Framer Motion Style Spring Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform var(--transition-spring);
  will-change: transform, opacity;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.6s ease, transform var(--transition-spring);
  will-change: transform, opacity;
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.6s ease, transform var(--transition-spring);
  will-change: transform, opacity;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform var(--transition-spring);
  will-change: transform, opacity;
}

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}


/* Animations & 3D Cube Transitions */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 3D Cube Card Flip / Rotate transition */
.contact-layout {
  perspective: 1500px; /* Enable 3D perspective */
}

.brief-container-3d {
  perspective: 1200px; /* Enable perspective on the parent glass panel */
  transform-style: preserve-3d;
}

#briefForm {
  transform-style: preserve-3d;
  transition: var(--transition-spring);
  will-change: transform;
}

#briefForm.cube-turning {
  animation: cubeTurn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cubeTurn {
  0% {
    transform: rotateY(0deg) translateZ(0) scale(1);
    filter: brightness(1);
  }
  50% {
    transform: rotateY(-90deg) translateZ(-100px) scale(0.9);
    filter: brightness(0.5);
  }
  100% {
    transform: rotateY(0deg) translateZ(0) scale(1);
    filter: brightness(1);
  }
}

/* Premium 3D Card Hover Tilts */
.service-card, .case-card {
  transition: var(--transition-spring);
  transform-style: preserve-3d;
}

.service-card.active:hover, .case-card.active:hover {
  transform: rotateY(6deg) rotateX(4deg) translateY(-6px) translateZ(10px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 59, 48, 0.25) !important;
}


/* Internal Page Specific Layouts */
.inner-hero {
  padding: 10rem 0 5rem;
  background: radial-gradient(circle at top right, rgba(255, 59, 48, 0.05), transparent 45%), var(--bg-primary);
  border-bottom: 1px solid var(--glass-border);
}

.inner-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .calculator-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 6rem 0;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding-top: 120px;
    min-height: auto;
  }
  
  .hero h1 {
    font-size: clamp(2.4rem, 8vw, 3.8rem);
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #080809;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 3rem;
    transition: var(--transition-smooth);
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu .nav-cta {
    width: 100%;
    text-align: center;
  }
  
  /* Hamburger animation */
  .mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  .wa-float {
    padding: 0.85rem;
    border-radius: 50%;
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .wa-label {
    display: none;
  }
  
  .footer-links-grid {
    flex-direction: column;
    gap: 2.5rem;
  }
}
