/* ===================================================================
   AVINA LANDING PAGE STYLES
   A modern, responsive design for Avina - Artificial Virtual Insurance Agent
   =================================================================== */

/* ===== CSS VARIABLES ===== */
:root {
  /* Brand Colors */
  --primary-color: #0056D2;
  --primary-hover: #003d99;
  --primary-light: #3379db;
  --accent-color: #FF8C00;
  --accent-light: #FFA726;
  --accent-hover: #e67e00;
  
  /* Neutrals */
  --text-color: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-light: #6b6b6b;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-lighter: #fafbfc;
  --border-color: #e0e0e0;
  --bg-overlay: rgba(0, 0, 0, 0.55);
  
  /* Spacing & Layout */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  --max-width: 1200px;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  
  /* Transitions */
  --transition-speed: 0.3s;
  --transition-slow: 0.6s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h2 {
  font-size: 2.5rem;
  color: var(--text-color);
}

h3 {
  font-size: 1.5rem;
  color: var(--text-color);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--primary-hover);
}

/* ===== NAVIGATION ===== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all var(--transition-speed) ease;
}

.main-nav.scrolled {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.12);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity var(--transition-speed) ease;
  display: flex;
  align-items: center;
}

.nav-logo:hover {
  opacity: 0.8;
  color: var(--primary-color);
}

.logo-image {
  height: 45px;
  width: auto;
  display: block;
  transition: opacity var(--transition-speed) ease;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--transition-speed) ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform var(--transition-speed) ease;
}

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

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  border-radius: 3px;
  transition: all var(--transition-speed) ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    transition: all var(--transition-speed) ease;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav-link {
    padding: 1rem var(--spacing-md);
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-link::after {
    display: none;
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ===== SECTION STYLES ===== */
.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.section:nth-child(even) {
  background-color: var(--bg-light);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-color);
  line-height: 1.2;
}

.section-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.0625rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.15);
  min-width: 280px;
}

.btn-primary {
  background: var(--accent-color);
  color: var(--bg-white);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(255, 140, 0, 0.4);
  color: var(--bg-white);
}

.btn-secondary {
  background: var(--primary-color);
  color: var(--bg-white);
}

.btn-secondary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(0, 86, 210, 0.4);
  color: var(--bg-white);
}

.btn:active {
  transform: translateY(0);
}

/* ===== SECTION 1: HERO ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 70px; /* Account for fixed nav */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; 
  bottom: 0; 
  left: 0; 
  right: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.45) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 10;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text {
  max-width: 900px;
  margin-bottom: 2rem;
}

.hero-text h1 {
  font-size: clamp(1.9rem, 3.2vw + 1rem, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--bg-white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.1);
}

.hero-text p {
  font-size: clamp(1rem, 1vw + 0.8rem, 1.125rem);
  line-height: 1.6;
  color: var(--bg-white);
  margin-bottom: 2rem;
  opacity: 0.95;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-color);
  color: var(--bg-white);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.footer-brand h3 {
  font-size: 1.5rem;
  color: var(--bg-white);
  margin-bottom: 0.5rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

.footer-nav {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: color var(--transition-speed) ease;
}

.footer-nav a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer-privacy-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-privacy-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-privacy-links a:hover {
  color: var(--accent-light);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 968px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero-text h1 {
    font-size: 2.75rem;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
  }
  
  .hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-text h1 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
  }
  
  .hero-text p {
    font-size: 1.0625rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-nav {
    justify-content: center;
  }
  
  .btn {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.875rem;
  }
  
  .hero-text p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

/* ===== FADE-IN ANIMATION ON SCROLL ===== */
[data-fade] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow) ease, transform var(--transition-slow) ease;
}

[data-fade].visible {
  opacity: 1;
  transform: translateY(0);
}

