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

:root {
  --primary: #E10600;
  --black: #080808;
  --black-light: #121212;
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --border-color: rgba(0, 0, 0, 0.08);
  --text-secondary: #5A5A5A;
  --font-main: 'Outfit', sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 24px rgba(0,0,0,0.04);
  --shadow-lg: 0 32px 64px rgba(0,0,0,0.08);
  --shadow-primary: 0 12px 32px rgba(225, 6, 0, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--white);
  color: var(--black);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3, h4, .font-bold {
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--black);
}

h1 {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  margin-bottom: 2rem;
}

h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 2rem;
}

h3 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1.2rem;
}

p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #ff5252 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 10rem 0;
}

.bg-black { background-color: var(--black); color: var(--white); }
.bg-black h1, .bg-black h2, .bg-black h3 { color: var(--white); }
.bg-black p { color: #A0A0A0; }
.bg-gray { background-color: var(--light-gray); }

/* Buttons Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 3rem;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 100px;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  z-index: -1;
  transition: var(--transition);
  opacity: 0;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 45px rgba(225, 6, 0, 0.4);
}

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

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

.btn-outline {
  background-color: transparent;
  color: var(--black);
  border-color: var(--border-color);
}

.bg-black .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}

.btn-outline:hover {
  border-color: var(--black);
  background-color: var(--black);
  color: var(--white);
}

.bg-black .btn-outline:hover {
  border-color: var(--white);
  background-color: var(--white);
  color: var(--black);
}

/* Header & Nav */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 1.8rem 0;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

/* Header Dark Variant */
header.header-dark {
  background: rgba(8, 8, 8, 0.85);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

header.header-dark .logo {
  color: var(--white);
}

header.header-dark .nav-item {
  color: var(--white);
}

header.header-dark .mobile-menu-btn span {
  background-color: var(--white);
}

header.scrolled {
  padding: 1.2rem 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -0.05em;
}

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

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

.nav-links a.nav-item {
  text-decoration: none;
  color: var(--black);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a.nav-item::after {
  content: '';
  position: absolute;
  width: 0; height: 2px;
  bottom: 0px; left: 0;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-links a.nav-item:hover::after,
.nav-links a.nav-item.active::after {
  width: 100%;
}

/* Dropdown Menu Styles */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item-dropdown .dropdown-toggle::after {
  content: '▾';
  margin-left: 5px;
  font-size: 0.8rem;
  transition: var(--transition);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  min-width: 280px;
  padding: 1rem 0;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  z-index: 1100;
  border: 1px solid var(--border-color);
  margin-top: 10px;
  animation: fadeInDown 0.3s ease;
}

header.header-dark .dropdown-menu {
  background: var(--black-light);
  border-color: rgba(255,255,255,0.1);
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown.active .dropdown-menu {
  display: flex;
}

.dropdown-item {
  padding: 0.8rem 1.5rem;
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

header.header-dark .dropdown-item {
  color: var(--white);
}

.dropdown-item:hover {
  background: var(--light-gray);
  color: var(--primary);
  border-left-color: var(--primary);
}

header.header-dark .dropdown-item:hover {
  background: rgba(255,255,255,0.05);
}

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

/* Blog Link Special Styling */
.nav-item.blog-special {
  background: rgba(225, 6, 0, 0.05);
  padding: 0.5rem 1.2rem !important;
  border-radius: 50px;
  margin-left: 1rem;
}

header.header-dark .nav-item.blog-special {
  background: rgba(225, 6, 0, 0.15);
}

.nav-item.blog-special:hover {
  background: var(--primary);
  color: var(--white) !important;
}

header.header-dark .nav-item.blog-special:hover {
  background: var(--primary);
}

/* Logo Grid Animation */
.logo-grid span {
  transition: var(--transition);
  cursor: default;
}

.logo-grid span:hover {
  opacity: 1;
  transform: scale(1.1);
  filter: grayscale(0) invert(0);
  color: var(--primary) !important;
}

/* Sticky CTA Button */
.sticky-cta {
  position: fixed;
  bottom: 30px;
  right: 100px;
  z-index: 999;
  transform: translateY(150px);
  transition: var(--transition);
  pointer-events: none;
  opacity: 0;
}

.sticky-cta.active {
  transform: translateY(0);
  pointer-events: auto;
  opacity: 1;
}

/* Reading Progress Bar */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 2000;
}

.progress-bar {
  height: 4px;
  background: var(--primary);
  width: 0%;
  box-shadow: 0 0 10px var(--primary);
}

/* Breadcrumbs Styling (Hidden for accessibility or styled if needed) */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: #888;
  margin-top: 100px;
  list-style: none;
  display: flex;
  gap: 0.5rem;
}

.breadcrumbs li::after {
  content: '/';
  margin-left: 0.5rem;
}

.breadcrumbs li:last-child::after {
  content: '';
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}

.nav-item.blog-special::after {
  display: none;
}

.language-selector {
  display: flex;
  gap: 0.8rem;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--light-gray);
  padding: 0.4rem 1rem;
  border-radius: 50px;
}

/* Injected Components Refactoring */
.hero-banner-injected {
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  max-height: 400px;
  position: relative;
}

.hero-banner-injected img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6));
}

.logo-grid-section {
  padding: 4rem 0;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 4rem;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  opacity: 0.6;
}

.logo-grid span {
  font-weight: 900;
  font-size: 1.5rem;
  color: #666;
  filter: grayscale(1) invert(0);
  transition: var(--transition);
}

.logo-grid span:hover {
  opacity: 1;
  filter: grayscale(0) invert(0);
  color: var(--primary);
  transform: scale(1.1);
}

.diagnostic-steps {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.step-indicator {
  flex: 1;
  height: 8px;
  border-radius: 10px;
  background: rgba(0,0,0,0.1);
}

.step-indicator.active {
  background: var(--primary);
}

.case-progress-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  margin-top: 10px;
  overflow: hidden;
}

.case-progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 10px;
  transition: width 1.5s ease-out;
}

.blog-hook-container {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.blog-hook-card {
  padding: 2rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.02);
}

.blog-hook-card.primary {
  border: 1px solid var(--primary);
  background: rgba(225, 6, 0, 0.05);
}

.language-selector a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.language-selector a.active,
.language-selector a:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
  padding: 10px;
}

.mobile-menu-btn span {
  display: block;
  width: 28px; height: 2px;
  background-color: var(--black);
  transition: var(--transition);
}

/* Animations */
.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pulse Animation for CTA */
@keyframes pulseRed {
  0% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(225, 6, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0); }
}

.pulse-button {
  animation: pulseRed 2s infinite;
}

/* Floating WhatsApp Button */
.floating-wa {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999;
  width: 65px;
  height: 65px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  box-shadow: var(--shadow-primary);
  transition: var(--transition);
  text-decoration: none;
}

.floating-wa svg {
  width: 35px;
  height: 35px;
  fill: currentColor;
}

.floating-wa:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 40px rgba(225, 6, 0, 0.5);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at right top, rgba(248, 249, 250, 1) 0%, rgba(255,255,255,1) 100%);
}

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

.hero p {
  font-size: 1.4rem;
  max-width: 650px;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.hero-visual {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  height: 90%;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 340px;
  height: 680px;
  background: var(--black);
  border-radius: 45px;
  border: 12px solid #1a1a1a;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  animation: float 8s ease-in-out infinite;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 140px; height: 30px;
  background: #1a1a1a;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  z-index: 10;
}

.phone-screen {
  width: 100%; height: 100%;
  background: linear-gradient(145deg, #111, #222);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem;
  color: var(--white);
  text-align: center;
  position: relative;
}

.phone-screen::after {
  content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
  background: url('data:image/svg+xml;utf8,<svg opacity="0.05" xmlns="http://www.w3.org/2000/svg" width="20" height="20"><circle cx="2" cy="2" r="2" fill="white"/></svg>');
  pointer-events: none;
}

.metric-card {
  background: rgba(255,255,255,0.05);
  padding: 1.5rem;
  border-radius: 20px;
  width: 100%;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  transform: translateY(0);
  transition: var(--transition);
}

.metric-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.1);
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #aaa;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Premium Media Showcase */
.media-showcase {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  background: var(--black);
  aspect-ratio: 16/9;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(0,0,0,0.05);
}

.media-showcase.vertical {
  aspect-ratio: 9/16;
  max-width: 380px;
  margin: 0 auto;
}

.media-showcase img,
.media-showcase video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
}

.media-showcase:hover img,
.media-showcase:hover video {
  opacity: 1;
  transform: scale(1.05);
}

.media-badge {
  position: relative;
  background: rgba(255,255,255,0.95);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--black);
  backdrop-filter: blur(10px);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

/* Only overlay-style badges placed on top of a media showcase are absolutely positioned */
.media-showcase .media-badge {
  position: absolute;
  top: 20px;
  left: 20px;
}

.media-badge.green {
  color: #00E676;
  background: rgba(18,18,18,0.9);
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

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

/* Feature Cards */
.feature-card {
  background: var(--white);
  padding: 4rem 3rem;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(225, 6, 0, 0.2);
}

.feature-icon {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 2rem;
  line-height: 1;
}

/* Numbered Steps */
.step-list {
  list-style: none;
  counter-reset: steps;
}

.step-item {
  position: relative;
  padding-left: 6rem;
  margin-bottom: 4rem;
}

.step-item::before {
  counter-increment: steps;
  content: "0" counter(steps);
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(0,0,0,0.04);
  line-height: 1;
  transition: var(--transition);
}

.step-item:hover::before {
  color: rgba(225, 6, 0, 0.1);
  transform: translateX(-5px);
}

.bg-black .step-item::before {
  color: rgba(255,255,255,0.05);
}
.bg-black .step-item:hover::before {
  color: rgba(225, 6, 0, 0.3);
}

.step-item h4 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

/* Accordion FAQ */
.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 0;
  cursor: pointer;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question h4 {
  font-size: 1.4rem;
  margin: 0;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer p {
  padding-top: 1rem;
  margin: 0;
}
.faq-item.active .faq-answer {
  max-height: 300px;
}
.faq-icon {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 900;
  transition: transform 0.3s;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Chatbot Complete Redesign */
.chatbot-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  font-family: var(--font-main);
}

.chatbot-toggle {
  width: 65px;
  height: 65px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-primary);
  transition: var(--transition);
  font-size: 1.8rem;
}

.chatbot-toggle:hover {
  transform: scale(1.08) translateY(-5px);
}

.chatbot-window {
  position: absolute;
  bottom: 85px;
  right: 0;
  width: 380px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(min(20px, 10vh)) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-color);
  max-height: 80vh;
}

.chatbot-widget.active .chatbot-window {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  background: var(--black);
  color: var(--white);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-header-icon {
  width: 12px; height: 12px;
  background: #00E676;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
}

.chatbot-header-title {
  font-weight: 700;
  flex-grow: 1;
  font-size: 1.1rem;
}

.chatbot-close {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 1.5rem;
  transition: transform 0.2s;
}
.chatbot-close:hover { transform: scale(1.2); }

.chatbot-messages {
  height: 380px;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: var(--light-gray);
  scroll-behavior: smooth;
  scrollbar-width: thin;
  position: relative;
}

/* Chatbot Input Area Elements */
.chatbot-input-area {
  display: flex;
  padding: 1rem;
  background: var(--light-gray);
  border-top: 1px solid var(--border-color);
  gap: 10px;
}

.chatbot-input {
  flex-grow: 1;
  border: 1.5px solid var(--border-color);
  border-radius: 50px;
  padding: 0.8rem 1.2rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  background: var(--white);
}

.chatbot-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.1);
}

.chatbot-send {
  background: var(--primary);
  color: var(--white);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.chatbot-send:hover {
  transform: scale(1.1);
}

.typing-indicator {
  display: flex;
  gap: 3px;
  font-size: 1.8rem;
  line-height: 0.3;
  padding: 1.2rem;
  color: var(--text-secondary);
  align-items: center;
}

.typing-indicator span {
  animation: blink 1.4s infinite both;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0% { opacity: 0.2; }
  20% { opacity: 1; }
  100% { opacity: 0.2; }
}

.message {
  max-width: 85%;
  padding: 1.2rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 500;
}

.message.bot {
  background: var(--white);
  color: var(--black);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.message.user {
  background: var(--primary);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: var(--shadow-primary);
}

.chatbot-options {
  padding: 1.2rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border-top: 1px solid var(--border-color);
}

.chatbot-option-btn {
  background: var(--white);
  border: 1.5px solid var(--border-color);
  color: var(--black);
  padding: 1rem;
  border-radius: 12px;
  font-family: var(--font-main);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.chatbot-option-btn:hover {
  background: var(--light-gray);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.chatbot-option-btn.whatsapp-huge {
  background: #25D366;
  color: white;
  border: none;
  text-align: center;
  font-size: 1.1rem;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  padding: 1.2rem;
}

.chatbot-option-btn.whatsapp-huge:hover {
  background: #128C7E;
  transform: translateY(-3px) scale(1.02);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(15px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Footer */
footer {
  background: var(--black-light);
  color: var(--white);
  padding: 6rem 0 2rem;
}

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

.footer-logo {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  display: inline-block;
  color: var(--white);
  text-decoration: none;
}

.footer-logo span { color: var(--primary); }

.footer-links h5 {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #fff;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 1rem; }

.footer-links a {
  color: #888;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #555;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content { max-width: 100%; text-align: center; }
  .hero p { margin: 0 auto 2.5rem; }
  .hero-visual { display: none; }
  .grid-2 { grid-template-columns: 1fr; gap: 4rem; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 6%; }
}

@media (max-width: 768px) {
  html { font-size: 14px; }
  .section { padding: 6rem 0; }
  .grid-3 { grid-template-columns: 1fr; }
  
  .nav-links {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.4s ease;
    z-index: 1000;
  }
  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-links a.nav-item {
    font-size: 2rem;
  }
  .mobile-menu-btn { display: flex; position: relative; z-index: 1001; }
  .mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
  .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
  .mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
  
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  
  .chatbot-window {
    width: 90vw;
    right: -10vw;
    bottom: 80px;
  }
  .floating-wa {
    bottom: 20px;
    left: 20px;
    width: 55px; height: 55px;
  }
  .chatbot-toggle {
    width: 55px; height: 55px;
    bottom: 20px; right: 20px;
  }
}

/* =========================================
   V4 €1M PREMIUM UPGRADES
========================================= */

/* Reliable Media Fallbacks */
img {
  background-color: var(--light-gray);
  object-fit: cover;
}

video {
  background-color: var(--black-light);
  object-fit: cover;
}

/* Glassmorphism Classes */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-sm);
  border-radius: 24px;
}
.bg-black .glass-card {
  background: rgba(18, 18, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Hero Expansion */
.hero.full-video {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}
.video-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(8,8,8,0.9) 0%, rgba(8,8,8,0.6) 100%);
  z-index: 1;
}
.hero.full-video .hero-content {
  z-index: 2;
  max-width: 1000px;
}
.hero.full-video h1 {
  color: var(--white);
}

/* Advanced V4 Animations */
.slide-up {
  opacity: 0 !important;
  transform: translateY(40px) !important;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-up.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Interactive Hover Logic */
.hover-lift {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* CSS Progress Bars for Case Studies */
.case-progress-wrap {
  width: 100%;
  height: 8px;
  background: var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1rem;
}
.case-progress-bar {
  height: 100%;
  background: var(--primary);
  width: 0;
  border-radius: 10px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ====== PREMIUM UX/UI UX UPGRADES ====== */
/* Glassmorphism Refinement */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bg-black .glass-card {
  background: rgba(18, 18, 18, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card:hover {
  box-shadow: 0 15px 45px rgba(225, 6, 0, 0.15);
  border-color: rgba(225, 6, 0, 0.4);
}

/* Hover Lift */
.hover-lift {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
  will-change: transform;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* 3D Tilt Container for JS */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

/* Feature Card Enhancements */
.feature-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 40px);
  max-width: 800px;
  width: 90%;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.cookie-content {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.cookie-icon {
  font-size: 2rem;
}

.cookie-content p {
  color: #eeeeee;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}
.cookie-actions .btn-outline:hover {
  background: white;
  color: black;
}

@media (max-width: 900px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  .cookie-content {
    flex-direction: column;
    align-items: center;
  }
  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
}

