/* ===================================
   ASLA GROUP - MAIN STYLESHEET
   Author: Cristian Quispe Lucas
   Description: Professional landing page styles
   =================================== */

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

:root {
  /* Colors */
  --primary-color: #10b981;
  --primary-dark: #059669;
  --primary-light: #34d399;
  --secondary-color: #3b82f6;
  --dark: #010408;
  --dark-light: #040912;
  --light: #f9fafb;
  --white: #ffffff;
  --gray: #01050d;
  --gray-light: #e5e7eb;
  
  /* Fonts */
  --font-primary: 'Poppins', sans-serif;
  --font-heading: 'Playfair Display', serif;
  
  /* Spacing */
  --section-padding: 100px 0;
  --container-padding: 0 20px;
  
  /* Transitions */
  --transition: all 0.3s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

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

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===================================
   PARTICLES BACKGROUND
   =================================== */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* ===================================
  VARIABLES Y ESTILOS BASE
  =================================== */
:root {
  /* Paleta de colores moderna */
  --primary-color: #8B5CF6; /* Un violeta vibrante */
  --primary-light: #A78BFA;
  --white: #F8FAFC;
  --dark: #0F172A;
  --glass-white: rgba(255, 255, 255, 0.05); /* Tinte para el cristal */
  --glass-white-light: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.2);

  /* Sombras suaves tipo cristal */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.4);

  /* Transiciones fluidas */
  --transition-fast: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-medium: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: #0B0F19; /* Fondo oscuro para resaltar el efecto */
  background-image: 
    radial-gradient(at 20% 20%, hsla(271, 76%, 53%, 0.1) 0px, transparent 50%),
    radial-gradient(at 80% 20%, hsla(217, 76%, 53%, 0.1) 0px, transparent 50%),
    radial-gradient(at 20% 80%, hsla(340, 76%, 53%, 0.1) 0px, transparent 50%),
    radial-gradient(at 80% 80%, hsla(19, 76%, 53%, 0.1) 0px, transparent 50%);
  color: var(--white);
  line-height: 1.6;
}

/* Estilos para el contenido de ejemplo */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}
.hero-content {
  max-width: 800px;
}
.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}
.content-section {
  padding: 100px 40px;
  max-width: 900px;
  margin: 0 auto;
}
.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}


/* ===================================
  NAVIGATION - ESTILO LIQUID GLASS
  =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: var(--transition-medium);
  /* Efecto inicial sutil */
  background: transparent;
}

/* Estado de la navbar al hacer scroll */
.navbar.scrolled {
  /* Efecto Glassmorphism más pronunciado */
  background: var(--glass-white-light);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px); /* Soporte para Safari */
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition-fast);
}

/* No necesitamos cambiar el color del logo en scroll, se verá bien sobre el fondo de cristal */
.nav-logo:hover {
    color: var(--primary-light);
    transform: scale(1.05);
}

.nav-logo img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
  transition: var(--transition-fast);
}
.nav-logo:hover img {
    transform: rotate(360deg);
    transition-duration: 0.8s;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  transition: var(--transition-medium);
}

.nav-link {
  color: var(--white);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 8px 0;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Efecto de subrayado animado y sutil */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-light);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-link:hover {
  color: var(--primary-light);
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.8);
}

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

.nav-btn {
  color: var(--white);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition-fast);
  text-decoration: none;
  border: 1px solid var(--primary-color);
  /* Gradiente dinámico y sutil */
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
  background-size: 200% auto;
  box-shadow: var(--shadow-glow);
}

/* Efecto líquido en el botón */
.nav-btn:hover {
  background-position: right center; /* Cambia la posición del gradiente */
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px; /* Espaciado más limpio */
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Transición elástica */
}

/* Animación fluida para el menú hamburguesa */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

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

/* ===================================
  DISEÑO RESPONSIVO
  =================================== */
@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%; /* Oculto fuera de la pantalla */
    width: 100%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    
    /* El menú móvil también tiene el efecto glassmorphism */
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: left 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  }

  .nav-menu.active {
    left: 0; /* Aparece desde la izquierda */
  }

  .nav-link {
    font-size: 1.5rem;
  }
  
  .nav-btn {
    display: none; /* Ocultamos el botón principal, se puede agregar al menú si se desea */
  }
  
  .hamburger {
    display: flex;
  }
}


/* ===================================
   HERO SECTION
   =================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  overflow: hidden;

  /* 📷 Fondo con imagen */
  background: url('../imagenes/fondo.png') no-repeat center center/cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* oscurece un poco para resaltar texto */
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.7);
  color: #fff;
  padding: 10px 25px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 30px;
  border: 1px solid rgba(16, 185, 129, 0.9);
}

.hero-title {
  margin-bottom: 30px;
}

.hero-title-top {
  display: block;
  font-size: 1.8rem;
  color: #00ffcc;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* 🎬 Texto principal con efecto máquina de escribir */
.hero-title-main {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-top: 10px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);

  overflow: hidden;
  white-space: nowrap;
  border-right: 4px solid #00ffcc;
  width: 0;
  animation: typing 4s steps(30, end) forwards, blink 0.8s infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink {
  50% { border-color: transparent }
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #ddd;
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: #10b981;
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  background: #0ea769;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: #000;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-light);
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 1rem;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: var(--primary-light);
}

/* ===================================
   SECTION STYLES
   =================================== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-description {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services {
  padding: var(--section-padding);
  background: var(--light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  position: relative;
  background: var(--white);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.service-featured {
  border: 2px solid var(--primary-color);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.featured-badge {
  position: absolute;
  top: -15px;
  right: 30px;
  background: var(--primary-color);
  color: var(--white);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  border-radius: 20px;
  margin-bottom: 25px;
  color: var(--white);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark);
}

.service-description {
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.7;
}

.service-features {
  list-style: none;
  margin-bottom: 25px;
}

.service-features li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  color: var(--dark-light);
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.2rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.service-link:hover {
  gap: 15px;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
  padding: var(--section-padding);
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text {
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.9;
  font-size: 1.05rem;
}

.about-features {
  margin: 40px 0;
}

.about-feature {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.feature-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--primary-light);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.feature-content h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--dark);
}

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

.about-images {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  height: 500px;
}

.about-image-main {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-secondary {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: var(--white);
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.badge-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.badge-text {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ===================================
   GALLERY SECTION
   =================================== */
.gallery {
  padding: var(--section-padding);
  background: var(--light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 300px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  padding: 30px 25px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay h4 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.gallery-overlay p {
  color: var(--gray-light);
  font-size: 0.95rem;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
  padding: var(--section-padding);
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
  margin-top: 10px;
}

.contact-card {
  display: flex;
  gap: 50px;
  padding: 50px;
  background: var(--light);
  border-radius: 50px;
  margin-bottom: 50px;
  transition: var(--transition);
}

.contact-card:hover {
  background: var(--primary-light);
  color: var(--purple);
  transform: translateX(50px);
}

.contact-icon {
  width: 100px;
  height: 100px;
  min-width: 100px;
  background: var(--white);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.contact-card:hover .contact-icon {
  background: var(--purple);
  color: var(--primary-color);
}

.contact-details h4 {
  font-size: 1.1rem;
  margin-bottom: 100px;
  font-weight: 600;
}

.contact-details p {
  color: var(--gray);
  font-size: 0.95rem;
}

.contact-card:hover .contact-details p {
  color: var(--purple);
}

.contact-details a {
  color: var(--primary-color);
  font-weight: 600;
}

.contact-card:hover .contact-details a {
  color: var(--purple);
}

.social-links {
  margin-top: 30px;
}

.social-links h4 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.social-icons {
  display: flex;
  gap: 100px;
  flex-wrap: wrap;
}

.social-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.social-icon:hover {
  transform: translateY(20px);
  box-shadow: var(--shadow-lg);
}

.social-icon img {
  width: 99px;
  height: 99px;
}

/* Contact Form */
.contact-form {
  background: var(--light);
  padding: 50px;
  border-radius: 20px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--gray-light);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--purple);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

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

.btn-block {
  width: 100%;
  justify-content: center;
}

.form-message {
  display: none;
  margin-top: 20px;
  padding: 15px 20px;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
}

.form-message.success {
  background: #d1fae5;
  color: var(--primary-dark);
  border: 1px solid var(--primary-light);
}

.form-message.error {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.form-message.info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 20px 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 15px;
  object-fit: cover;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary-light);
}

.footer-brand p {
  color: var(--gray-light);
  line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--primary-light);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--gray-light);
  transition: var(--transition);
}

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

.footer-contact p {
  color: var(--gray-light);
  margin-bottom: 10px;
}

.footer-contact a {
  color: var(--primary-light);
  font-weight: 600;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--dark-light);
  color: var(--white);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 5px;
}

.footer-bottom a {
  color: var(--primary-light);
  font-weight: 600;
}

/* ===================================
   SCROLL TO TOP BUTTON
   =================================== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablets */
@media (max-width: 1024px) {
  .nav-container {
    padding: 0 30px;
  }
  
  .hero-title-main {
    font-size: 4rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid {
    gap: 50px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Landscape */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 350px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 30px;
    box-shadow: var(--shadow-xl);
    transition: right 0.4s ease;
    align-items: flex-start;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    color: var(--dark);
    font-size: 1.1rem;
  }
  
  .nav-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  .hero-title-top {
    font-size: 1.3rem;
  }
  
  .hero-title-main {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-images {
    height: 400px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Mobile Portrait */
@media (max-width: 480px) {
  .nav-container {
    padding: 0 20px;
  }
  
  .nav-logo {
    font-size: 1.2rem;
  }
  
  .nav-logo img {
    width: 40px;
    height: 40px;
  }
  
  .hero {
    padding: 100px 15px 60px;
  }
  
  .hero-title-top {
    font-size: 1rem;
  }
  
  .hero-title-main {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-stats {
    gap: 30px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  .service-card {
    padding: 30px 20px;
  }
  
  .about-images {
    height: 350px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item {
    height: 250px;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .scroll-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}

/* Ultra Wide Screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
  
  .nav-container {
    max-width: 1600px;
  }
  
  .hero-title-main {
    font-size: 6rem;
  }
}

/* ===================================
   ACCESSIBILITY & UTILITIES
   =================================== */

/* Print Styles */
@media print {
  #particles-js,
  .navbar,
  .scroll-top,
  .hamburger {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    page-break-after: always;
  }
  
  section {
    page-break-inside: avoid;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #059669;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.4);
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* Focus Visible for Accessibility */
*:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

/* Selection Style */
::selection {
  background: var(--primary-color);
  color: var(--white);
}

::-moz-selection {
  background: var(--primary-color);
  color: var(--white);
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* Loading State */
.loading {
  opacity: 0.5;
  pointer-events: none;
  cursor: wait;
}

/* ===================================
   ANIMATION KEYFRAMES
   =================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

.slide-up {
  animation: slideUp 0.6s ease-in-out;
}

.scale-in {
  animation: scaleIn 0.6s ease-in-out;
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.float {
  animation: float 3s ease-in-out infinite;
}

.rotate {
  animation: rotate 20s linear infinite;
}

.bounce {
  animation: bounce 1s ease-in-out infinite;
}

.gradient-animate {
  background-size: 200% 200%;
  animation: gradient 15s ease infinite;
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-light);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--gray-light) 25%, var(--light) 50%, var(--gray-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* ===================================
   CARD HOVER EFFECTS
   =================================== */
.card-hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.card-hover-grow:hover {
  transform: scale(1.05);
}

/* ===================================
   GLASSMORPHISM & GRADIENT TEXT
   =================================== */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* ===================================
   BADGES
   =================================== */
.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-primary {
  background: var(--primary-color);
  color: var(--white);
}

.badge-secondary {
  background: var(--secondary-color);
  color: var(--white);
}

.badge-success {
  background: #10b981;
  color: var(--white);
}

.badge-warning {
  background: #f59e0b;
  color: var(--white);
}

.badge-danger {
  background: #ef4444;
  color: var(--white);
}

/* ===================================
   ALERTS
   =================================== */
.alert {
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  border-left: 4px solid;
}

.alert-success {
  background: #d1fae5;
  border-color: var(--primary-color);
  color: var(--primary-dark);
}

.alert-warning {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.alert-danger {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

.alert-info {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1e40af;
}

/* ===================================
   DIVIDERS
   =================================== */
.divider {
  height: 1px;
  background: var(--gray-light);
  margin: 40px 0;
}

.divider-vertical {
  width: 1px;
  background: var(--gray-light);
  height: 100%;
}

/* ===================================
   CONTAINER SIZES
   =================================== */
.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.container-lg {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.container-fluid {
  width: 100%;
  padding: var(--container-padding);
}

/* ===================================
   ASPECT RATIO BOXES
   =================================== */
.aspect-16-9 {
  position: relative;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.aspect-16-9 > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aspect-4-3 {
  position: relative;
  padding-bottom: 75%;
  overflow: hidden;
}

.aspect-4-3 > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aspect-1-1 {
  position: relative;
  padding-bottom: 100%;
  overflow: hidden;
}

.aspect-1-1 > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}