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

:root {
  --bg-primary: #020617; /* Very dark blue/slate */
  --bg-secondary: #0f172a; /* Slate 900 */
  --bg-card: rgba(30, 41, 59, 0.7); /* Slate 800 transparent */
  
  --fg-primary: #f8fafc; /* Slate 50 */
  --fg-secondary: #cbd5e1; /* Slate 300 */
  --fg-muted: #64748b; /* Slate 500 */
  
  --accent-blue: #2563eb; /* Blue 600 */
  --accent-blue-dark: #1d4ed8; /* Blue 700 */
  --accent-blue-light: #60a5fa; /* Blue 400 */
  
  --accent-cyan: #06b6d4; /* Cyan 500 */
  
  --border-color: rgba(148, 163, 184, 0.15); /* Slate 400 transparent */
  --border-color-strong: rgba(59, 130, 246, 0.4);
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--fg-primary);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.1;
  color: var(--fg-primary);
}

/* Background Elements */
.main-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  background: radial-gradient(circle at top right, #0f172a, #020617 70%);
}

.grid-pattern {
  position: fixed;
  inset: 0;
  z-index: -5;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
}

/* Utility Classes */
.text-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-blue-light);
  text-shadow: none;
}

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

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

/* Navigation */
.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav-container.scrolled {
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  color: var(--fg-primary);
  text-decoration: none;
}

.nav-link {
  color: var(--fg-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.5rem 1rem;
}

.nav-link:hover {
  color: var(--accent-blue-light);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  background: var(--accent-blue);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--accent-blue-dark);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  border-color: var(--accent-blue);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  background: transparent;
  color: var(--fg-primary);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color-strong);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--fg-secondary);
}

/* Lead Capture Form */
.lead-capture-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--fg-primary);
  font-size: 1rem;
  transition: all 0.2s ease;
  outline: none;
  font-family: 'Inter', sans-serif;
}

.form-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Cards & Containers */
.card-solid {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.card-solid:hover {
  border-color: var(--border-color-strong);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Sections */
.section-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 4px;
  color: var(--accent-blue-light);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Portfolio Hover */
.portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.9) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border: 3px solid var(--bg-primary);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-link {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--fg-primary);
  text-decoration: none;
  text-transform: uppercase;
}

.mobile-link:hover {
  color: var(--accent-blue-light);
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

/* Generic Utilities */
.text-balance {
  text-wrap: balance;
}

.shadow-glow {
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.2);
}

.stats-number {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1;
  color: var(--accent-blue-light);
}

/* Spinner animation for submit button */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Form status messages */
.form-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 16px;
  animation: fadeInUp 0.35s ease both;
}

.form-status--success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.form-status--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.form-status--error a {
  color: #f87171;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-status svg {
  flex-shrink: 0;
}