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

:root {
  /* LIGHT THEME VARIABLES */
  --bg-primary: #FFFFFF;      
  --bg-secondary: #F8FAFC;    
  --bg-card: rgba(255, 255, 255, 0.75); 
  
  --accent-electric: #0284C7; /* High contrast blue */
  --accent-energy: #16A34A; /* High contrast green */
  
  --text-primary: #0F172A; /* Very dark slate */
  --text-secondary: #475569; /* Medium slate */
  
  --border-color: rgba(2, 132, 199, 0.15); 
  --border-focus: rgba(2, 132, 199, 0.5);
  
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-blur: blur(16px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary); 
}
::-webkit-scrollbar-thumb {
  background: rgba(2, 132, 199, 0.3); 
  border-radius: 10px;
  border: 2px solid var(--bg-secondary);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(2, 132, 199, 0.8); 
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(2, 132, 199, 0.05), transparent 30%),
    radial-gradient(circle at 85% 30%, rgba(22, 163, 74, 0.05), transparent 30%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent-electric); }
.text-energy { color: var(--accent-energy); }
.font-mono { font-family: var(--font-mono); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--accent-electric);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.2);
}
.btn-primary:hover {
  background-color: #0369a1;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3);
  transform: translateY(-3px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--accent-electric);
  border: 1px solid var(--accent-electric);
}
.btn-secondary:hover {
  background: var(--accent-electric);
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.2);
}

.btn-energy {
  background-color: var(--accent-energy);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.2);
}
.btn-energy:hover {
  background-color: #15803d;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.3);
  transform: translateY(-3px);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.glass-card:hover {
  border-color: var(--border-focus);
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.08);
  transform: translateY(-5px);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 10px 0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  padding: 5px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
}
.logo span, .logo strong {
  display: none;
}
.brand-logo {
  max-height: 90px;
  width: auto;
  transition: var(--transition);
}
.brand-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}
.nav {
  margin-left: auto;
  margin-right: 40px;
}
.nav-links {
  display: flex;
  gap: 35px;
  align-items: center;
}
.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  color: var(--text-primary);
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-electric);
  transition: var(--transition);
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link:hover {
  color: var(--accent-electric);
}
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.8rem;
}

/* Base Sections */
.section {
  padding: 100px 0;
  position: relative;
}
.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(2, 132, 199, 0.15), transparent);
}
.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 50px;
}
.section-title span {
  color: var(--accent-electric);
}

/* Form Styles */
.form-group {
  margin-bottom: 25px;
}
.form-control {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--text-primary);
  border-radius: 8px;
  font-family: var(--font-body);
  transition: var(--transition);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.form-control::placeholder {
  color: var(--text-secondary);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-electric);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  background: #FFFFFF;
}

/* Footer (Darken footer for contrast) */
.footer {
  background: #020617; /* Slate 950 */
  padding: 80px 0 30px;
  position: relative;
  color: #F8FAFC;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-electric), var(--accent-energy));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 50px;
}

@media (min-width: 769px) {
  .footer-grid > div:nth-child(2) {
    justify-self: center;
  }
  .footer-grid > div:nth-child(3) {
    justify-self: end;
  }
}
.footer-title {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #FFFFFF;
  letter-spacing: 1px;
}
.footer p,
.footer [data-setting="footer-text"],
.footer ul,
.footer li,
.footer-links a {
  color: #cbd5e1 !important;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  transition: var(--transition);
  display: inline-block;
}
.footer-links a:hover {
  color: var(--accent-electric) !important;
  transform: translateX(5px);
}
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #94A3B8;
  font-size: 0.9rem;
}
.seo-note {
  margin-top: 15px;
  font-size: 0.8rem;
  color: #64748B;
}
.footer-logo {
    max-height: 110px;
    filter: brightness(0) invert(1); /* Invert logo color for dark footer if needed, otherwise rely on the logo asset having transparency */
}
.footer .logo {
    margin-top: -28px;
    display: inline-block;
    margin-bottom: 15px;
}

.social-icon {
    display: inline-block;
    margin-right: 15px;
    color: #94A3B8;
    transition: var(--transition);
}
.social-icon:hover {
    color: var(--accent-electric);
    transform: translateY(-3px);
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #25d366, #16a34a);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition: var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.15) rotate(-10deg);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    flex-direction: column;
    padding: 30px 0;
    border-bottom: 2px solid var(--accent-electric);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: block;
  }
  .header-cta {
    display: none;
  }
  .section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    margin-bottom: 15px;
  }
  .stats-section .container > div {
    flex: 1 1 100%;
    margin-bottom: 30px;
  }
}

/* ---- Page Hero Global Fade ---- */
.page-hero {
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: none;
}
