/* ==========================================================================
   STYLE.CSS - UPVADE OFFICIAL LANDING PAGE
   Author: Senior Full-Stack Designer & Developer
   Aesthetics: Premium Dark Mode, Glassmorphism, Neon Purple/Lila Acess
   ========================================================================== */

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

/* --- CUSTOM VARIABLES --- */
:root {
  /* Colors */
  --bg-deep: #070412;        /* Ultra dark violet-black */
  --bg-accent: #0f0a28;      /* Deep violet-indigo */
  --bg-card: rgba(18, 12, 40, 0.55);
  --bg-card-hover: rgba(26, 17, 56, 0.7);
  
  --primary: #7C3AED;        /* Electric Violet */
  --primary-light: #9F67FF;
  --secondary: #C084FC;      /* Lavender / Lila Pastel */
  --secondary-dark: #A78BFA;
  --accent: #4C1D95;         /* Deep Purple */
  --accent-glow: rgba(124, 92, 246, 0.4);
  
  --text-primary: #F3F4F6;   /* Off-white */
  --text-secondary: #9CA3AF; /* Muted gray */
  --text-muted: #6B7280;     /* Darker gray */
  
  --border-glass: rgba(255, 255, 255, 0.06);
  --border-neon: rgba(124, 58, 237, 0.25);
  --border-neon-hover: rgba(192, 132, 252, 0.5);
  
  --success: #10B981;        /* Emerald green for conversions/badges */
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #7C3AED 0%, #C084FC 100%);
  --grad-text: linear-gradient(135deg, #FFFFFF 20%, #C084FC 100%);
  --grad-hero: radial-gradient(circle at 50% 50%, rgba(76, 29, 149, 0.3) 0%, rgba(7, 4, 18, 0) 70%);
  --grad-glow: radial-gradient(circle at center, rgba(124, 58, 237, 0.15) 0%, transparent 60%);

  /* Typography */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Spacing / Layout */
  --container-max: 1200px;
  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: var(--grad-hero);
  background-attachment: fixed;
}

/* Base glowing background decorations */
body::before {
  content: '';
  position: absolute;
  top: 15%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.08) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: #FFFFFF;
  line-height: 1.2;
  font-weight: 700;
}

p {
  color: var(--text-secondary);
}

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

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

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

/* Global utility classes */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.text-purple {
  color: var(--secondary);
}

/* Highlight badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid var(--border-neon);
  border-radius: 100px;
  color: var(--secondary);
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.badge-green {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--success);
}

/* Intersection Observer animations classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* --- BUTTON SYSTEM --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  min-height: 48px; /* Touch target safety */
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(124, 58, 237, 0.6);
  filter: brightness(1.1);
}

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

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

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Mini link text buttons */
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-weight: 600;
  font-family: var(--font-title);
  cursor: pointer;
}

.btn-text:hover {
  color: #FFFFFF;
}

.btn-text svg {
  transition: transform var(--transition-fast);
}

.btn-text:hover svg {
  transform: translateX(4px);
}

/* --- HEADER / NAVIGATION --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: all var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background-color: rgba(7, 4, 18, 0.85);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-glass);
  height: 70px;
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.logo-icon-svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 8px rgba(162, 82, 169, 0.55));
  transition: transform var(--transition-normal);
}

.logo:hover .logo-icon-svg {
  transform: rotate(-10deg) scale(1.08);
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

/* --- HERO SECTION --- */
.hero {
  padding: calc(var(--nav-height) + 3rem) 0 5rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  z-index: 10;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
}

.stat-item h3 {
  font-size: 2rem;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-card {
  width: 90%;
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.75rem;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dot:nth-child(1) { background-color: #EF4444; }
.mockup-dot:nth-child(2) { background-color: #F59E0B; }
.mockup-dot:nth-child(3) { background-color: #10B981; }

.mockup-title-bar {
  height: 8px;
  width: 80px;
  background: var(--border-glass);
  border-radius: 4px;
  margin-left: 0.5rem;
}

.mockup-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mockup-line {
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
}
.mockup-line.long { width: 100%; }
.mockup-line.medium { width: 75%; }
.mockup-line.short { width: 45%; }
.mockup-line.color {
  background: var(--grad-primary);
  width: 60%;
}

.mockup-element {
  margin-top: 0.5rem;
  height: 60px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px dashed var(--border-neon);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Secondary small floating badge in mockup */
.floating-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background: rgba(16, 185, 129, 0.9);
  color: #FFFFFF;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  backdrop-filter: blur(5px);
  animation: float 6s ease-in-out infinite 3s;
}

.floating-badge-2 {
  position: absolute;
  bottom: -10px;
  left: -20px;
  background: rgba(124, 58, 237, 0.95);
  color: #FFFFFF;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
  backdrop-filter: blur(5px);
  animation: float 6s ease-in-out infinite 1.5s;
}

/* --- SERVICES SECTION --- */
.section-padding {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 0% 0%, rgba(192, 132, 252, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--border-neon-hover);
  box-shadow: 0 15px 30px rgba(124, 58, 237, 0.15);
}

.service-icon {
  width: 54px;
  height: 54px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  transition: all var(--transition-normal);
  border: 1px solid var(--border-neon);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: #FFFFFF;
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--accent-glow);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* --- WHY CHOOSE US --- */
.why-us {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-accent) 100%);
  position: relative;
}

.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.why-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
}

.feature-icon-wrapper {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.feature-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.feature-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --- PLANES / PRECIOS --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  border-color: var(--border-neon);
  box-shadow: 0 15px 30px rgba(124, 58, 237, 0.1);
}

/* Plan Destacado / Popular */
.pricing-card.featured {
  background: linear-gradient(145deg, rgba(20, 12, 50, 0.8) 0%, rgba(10, 5, 26, 0.9) 100%);
  border: 2px solid var(--primary);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
  transform: scale(1.03);
}

.pricing-card.featured:hover {
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.35);
}

.featured-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: #FFFFFF;
  padding: 0.4rem 1.25rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.pricing-header {
  margin-bottom: 2rem;
}

.pricing-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.pricing-currency {
  font-size: 1.75rem;
  font-weight: 700;
  color: #FFFFFF;
}

.pricing-price {
  font-size: 3.5rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-family: var(--font-title);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2.5rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.pricing-feature svg {
  flex-shrink: 0;
  color: var(--secondary);
}

.pricing-feature.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
}

.pricing-feature.disabled svg {
  color: var(--text-muted);
}

.pricing-card .btn {
  width: 100%;
}

/* --- PORTAFOLIO / CASOS DE ÉXITO --- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.02);
  min-height: 44px;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

.portfolio-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  border-color: var(--border-neon-hover);
  box-shadow: 0 15px 30px rgba(124, 58, 237, 0.12);
}

.portfolio-img {
  position: relative;
  aspect-ratio: 16/10;
  background: #110B29;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Placeholder premium styling for showcase */
.portfolio-svg-mockup {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 20, 60, 0.9) 0%, rgba(10, 5, 20, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  color: #FFFFFF;
  font-family: var(--font-title);
  position: relative;
}

.portfolio-svg-mockup::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(192, 132, 252, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

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

.portfolio-body-svg {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.portfolio-body-svg .icon-box {
  width: 60px;
  height: 60px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid var(--border-neon);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.5rem;
}

.portfolio-body-svg h4 {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

.portfolio-footer-svg {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.portfolio-tag {
  background: rgba(124, 58, 237, 0.2);
  color: var(--secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.portfolio-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.portfolio-item-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.portfolio-item-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- CONTACT SECTION & FORM --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: stretch;
}

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

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

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 1.5rem;
  border-radius: 16px;
  transition: all var(--transition-fast);
}

.contact-card:hover {
  border-color: var(--border-neon);
  transform: translateX(5px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border-neon);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.contact-details p {
  font-size: 1.1rem;
  font-weight: 600;
  color: #FFFFFF;
}

/* Form Styling */
.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 3rem 2.5rem;
  border-radius: 24px;
  backdrop-filter: blur(10px);
  position: relative;
}

.contact-form-wrapper::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  border-radius: 0 0 24px 0;
  pointer-events: none;
}

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

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

.form-label {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1rem;
  color: #FFFFFF;
  transition: all var(--transition-fast);
  width: 100%;
}

.form-control:focus {
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.15);
}

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

.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

/* --- FOOTER --- */
.footer {
  background: #04020c;
  border-top: 1px solid var(--border-glass);
  padding: 5rem 0 2rem;
  position: relative;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo {
  font-size: 1.75rem;
}

.footer-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--accent-glow);
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
}

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

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

.footer-link:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

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

.footer-copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-legal-links a:hover {
  color: #FFFFFF;
}

/* --- FLOATING WHATSAPP WIDGET --- */
.whatsapp-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform var(--transition-normal);
}

.whatsapp-widget:hover {
  transform: scale(1.05);
}

.whatsapp-tooltip {
  background: var(--bg-accent);
  border: 1px solid var(--border-neon);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-family: var(--font-title);
  font-weight: 500;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  animation: pulse-border 2s infinite;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.whatsapp-widget:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  position: relative;
}

.whatsapp-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  top: 0;
  left: 0;
  z-index: -1;
  animation: waves 2s infinite;
}

/* --- ANIMATIONS DEFINITIONS --- */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes waves {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes pulse-border {
  0%, 100% {
    border-color: var(--border-neon);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  }
  50% {
    border-color: var(--secondary);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
  }
}

/* --- RESPONSIVE / MEDIA QUERIES (MOBILE-FIRST) --- */

/* Tablet layout (max 992px) */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

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

/* Mobile Layout (max 768px) */
@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-color: #070412;
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 2.5rem;
    transition: all var(--transition-normal);
    z-index: 1050;
    overflow-y: auto;
    border-top: 1px solid var(--border-glass);
  }

  .nav-menu.active {
    left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-actions {
    display: none; /* Hide top WhatsApp button on mobile, floating widget covers it */
  }

  /* Hamburger transform when menu active */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

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

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-legal-links {
    justify-content: center;
  }
}

/* Small mobile (max 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .btn {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }

  .whatsapp-tooltip {
    display: none; /* tooltip takes too much space on very small screens */
  }
}
