/* ============================================================
   ZHT Developments - Enhanced Styles
   Mejora estética global moderna y cohesiva
   ============================================================ */

/* --- Variables / Design System --- */
:root {
  --brand-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --brand-gradient-hover: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  --brand-primary: #667eea;
  --brand-secondary: #764ba2;
  --brand-accent: #f5576c;
  --brand-dark: #1a1a2e;
  --brand-dark-light: #2d2d44;
  --brand-light: #f8f9fe;
  --brand-text: #2c3e50;
  --brand-text-muted: #6c757d;
  --brand-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
  --brand-shadow-soft: 0 5px 20px rgba(0, 0, 0, 0.08);
  --brand-shadow-hover: 0 20px 60px rgba(102, 126, 234, 0.3);
  --brand-radius: 16px;
  --brand-radius-sm: 8px;
  --brand-transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --brand-font: 'Source Sans Pro', sans-serif;
}

/* --- Global Reset & Base --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--brand-font);
  background: var(--brand-light);
  overflow-x: hidden;
  color: var(--brand-text);
}

/* --- Fondo con partículas sutiles --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(102, 126, 234, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(118, 75, 162, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(245, 87, 108, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* ============================================================
   HEADER - Hero con overlay gradiente moderno
   ============================================================ */
.header {
  position: relative;
  height: 100vh;
  min-height: 700px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlay gradiente dinámico */
.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    160deg,
    rgba(26, 26, 46, 0.92) 0%,
    rgba(26, 26, 46, 0.85) 30%,
    rgba(44, 44, 68, 0.7) 60%,
    rgba(102, 126, 234, 0.25) 100%
  );
  z-index: 1;
}

/* Círculos decorativos animados */
.header::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: headerPulse 6s ease-in-out infinite;
  z-index: 1;
}

@keyframes headerPulse {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.5; }
  50% { transform: scale(1.2) translate(-30px, -20px); opacity: 1; }
}

.header .container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.header-content {
  width: 100%;
  position: relative;
  color: #fff;
  padding-left: 20px;
  z-index: 3;
}

/* Línea decorativa en el header */
.header-content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 4px;
  background: var(--brand-gradient);
  border-radius: 2px;
  animation: headerLineGrow 1.5s ease-out forwards;
  transform-origin: top;
}

@keyframes headerLineGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.header-subtitle {
  font-weight: 300;
  font-size: calc(18px + (24 - 18) * ((100vw - 300px) / (1600 - 300)));
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  margin-bottom: 5px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.85);
}

.header-subtitle:nth-child(2) {
  animation-delay: 0.2s;
}

.header-subtitle:last-of-type {
  margin-bottom: 15px;
}

.header-title {
  font-size: calc(50px + (150 - 50) * ((100vw - 300px) / (1600 - 300)));
  font-weight: 900;
  line-height: 0.85;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 40%, #f5576c 60%, #667eea 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
  text-shadow: none;
  letter-spacing: -2px;
}

.header-mono {
  letter-spacing: 6px;
  font-weight: 400;
  font-size: calc(14px + (18 - 14) * ((100vw - 300px) / (1600 - 300)));
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
  text-transform: uppercase;
  margin-top: 10px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 1s forwards;
  opacity: 0;
}

.scroll-indicator .mouse {
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--brand-primary);
  border-radius: 2px;
  animation: scrollMouse 1.5s ease-in-out infinite;
}

@keyframes scrollMouse {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(16px); opacity: 0; }
}

/* ============================================================
   NAVBAR - Glassmorphism
   ============================================================ */
.navbar {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
  padding: 10px 0 !important;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.12) !important;
  padding: 5px 0 !important;
}

.nav-link {
  position: relative;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand-text) !important;
  padding: 8px 16px !important;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand-gradient);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 1px;
}

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

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

.brand-img {
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============================================================
   ABOUT SECTION - Cards modernas
   ============================================================ */
.about-section {
  padding: 80px 0;
  position: relative;
  background: #ffffff;
}

.about-card {
  padding: 40px 35px;
  background: #f8f9fa;
  border-radius: var(--brand-radius);
  box-shadow: var(--brand-shadow-soft);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(102, 126, 234, 0.06);
  min-height: 500px;
  height: 100%;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.about-card:hover::before {
  transform: scaleX(1);
}

.about-card h3 {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--brand-text);
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.about-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

.about-card h5 {
  color: var(--brand-primary);
  font-weight: 600;
}

.about-card p {
  color: var(--brand-text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Info list */
.info {
  padding: 0;
}

.info li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(102, 126, 234, 0.08);
  font-size: 0.95rem;
  color: var(--brand-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.info li:last-child {
  border-bottom: none;
}

.info li span {
  font-weight: 700;
  color: var(--brand-text);
  min-width: 80px;
}

/* Social Icons */
.social-icons {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.social-item {
  margin: 0;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-text);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.social-link:hover {
  background: var(--brand-gradient);
  color: #fff !important;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Iconos en about-card */
.about-card .icon-lg {
  font-size: 2.2rem;
  display: inline-block;
  transition: all 0.4s ease;
}

.about-card:hover .icon-lg {
  animation: iconBounce 0.6s ease;
  color: var(--brand-primary) !important;
}

@keyframes iconBounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.3) rotate(-10deg); }
  50% { transform: scale(1.1) rotate(5deg); }
  75% { transform: scale(1.2) rotate(-5deg); }
}

.about-card .row hr {
  border-color: rgba(102, 126, 234, 0.1);
  margin: 15px 0;
}

/* ============================================================
   STATS SECTION - Counters con animación
   ============================================================ */
.section.bg-dark {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-dark-light) 100%) !important;
  position: relative;
  overflow: hidden;
}

.section.bg-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(118, 75, 162, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.section.bg-dark .row.text-center {
  position: relative;
  z-index: 1;
}

.section.bg-dark .col-md-6.col-lg-3 {
  padding: 20px 10px;
  transition: all 0.3s ease;
  border-radius: var(--brand-radius);
  position: relative;
}

.section.bg-dark .col-md-6.col-lg-3:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
}

.section.bg-dark .col-md-6.col-lg-3 .row {
  align-items: center;
}

.font40 {
  font-size: 2.8rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: 900 !important;
}

.col-md-6.col-lg-3:hover .font40 {
  transform: scale(1.2);
}

.text-light.mb-1 {
  font-weight: 400;
  letter-spacing: 1px;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7) !important;
}

.icon-xl {
  font-size: 2.5rem;
  display: inline-block;
  transition: all 0.6s ease;
  color: var(--brand-primary) !important;
}

.col-md-6.col-lg-3:hover .icon-xl {
  animation: statsPulse 0.8s ease;
}

@keyframes statsPulse {
  0% { transform: scale(1) rotate(0deg); }
  30% { transform: scale(1.3) rotate(-15deg); }
  60% { transform: scale(1.1) rotate(10deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* ============================================================
   FEATURED CARD - Card destacada
   ============================================================ */
.featured-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 50px;
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 300px;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.featured-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: featuredPulse 8s ease-in-out infinite;
}

@keyframes featuredPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.featured-content {
  position: relative;
  z-index: 2;
  flex: 1;
  padding-right: 40px;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 50px;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.featured-badge i {
  color: #ffd700;
  font-size: 1rem;
}

.featured-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 15px;
  line-height: 1.2;
}

.featured-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  font-weight: 400;
}

.featured-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin-top: 5px;
}

.featured-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--brand-primary);
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.featured-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  color: var(--brand-secondary);
}

.featured-btn i {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.featured-btn:hover i {
  transform: scale(1.2);
}

.featured-visual {
  position: relative;
  z-index: 2;
  width: 300px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-app {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: float 6s ease-in-out infinite;
}

.floating-app-2 {
  width: 70px;
  height: 70px;
  font-size: 1.8rem;
  top: 20px;
  right: 20px;
  animation-delay: 2s;
}

.floating-app-3 {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  bottom: 30px;
  left: 30px;
  animation-delay: 4s;
}

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

/* Responsive */
@media (max-width: 992px) {
  .featured-card {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
  }

  .featured-content {
    padding-right: 0;
    margin-bottom: 30px;
  }

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

  .featured-visual {
    width: 100%;
    height: 150px;
  }

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

@media (max-width: 768px) {
  .featured-card {
    padding: 30px 20px;
    min-height: auto;
    opacity: 1 !important;
    transform: none !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  }

  body.dark-mode .featured-card {
    background: linear-gradient(135deg, #2d2d44 0%, #1a1a2e 100%) !important;
  }

  .featured-title {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }

  .featured-subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .featured-stats {
    gap: 25px;
    margin-bottom: 25px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .featured-btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }

  .featured-visual {
    height: 120px;
  }

  .floating-app {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .floating-app-2 {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .floating-app-3 {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .featured-card {
    padding: 25px 15px;
  }

  .featured-badge {
    padding: 6px 16px;
    font-size: 0.75rem;
  }

  .featured-title {
    font-size: 1.5rem;
  }

  .featured-subtitle {
    font-size: 0.9rem;
  }

  .featured-stats {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .featured-btn {
    padding: 10px 24px;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
  }

  .featured-visual {
    height: 100px;
  }

  .floating-app {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .floating-app-2 {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .floating-app-3 {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* Dark mode */
body.dark-mode .featured-card {
  background: linear-gradient(135deg, #2d2d44 0%, #1a1a2e 100%);
  background: linear-gradient(135deg, #2d2d44 0%, #1a1a2e 100%) !important;
}

body.dark-mode .featured-badge {
  background: rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.3);
}

/* ============================================================
   APPS SECTION - Blog cards premium
   ============================================================ */
#blog {
  position: relative;
  background: var(--brand-light);
  padding: 80px 0;
}

#blog h2 {
  font-weight: 300;
  font-size: 2.2rem;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

#blog h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

.blog-card {
  background: #f8f9fa;
  border-radius: var(--brand-radius);
  overflow: hidden;
  box-shadow: var(--brand-shadow-soft);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: 1px solid rgba(102, 126, 234, 0.06);
  min-height: 550px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: var(--brand-shadow-hover);
}

.blog-card .img-holder {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  max-height: 300px;
}

.blog-card .img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.blog-card:hover .img-holder img {
  transform: scale(1.12);
}

.blog-card .img-holder::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.blog-card:hover .img-holder::after {
  opacity: 1;
}

/* App badges */
.app-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.app-badge .badge {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
  border: none;
}

.badge-success {
  background: linear-gradient(135deg, #43b380 0%, #2ecc71 100%) !important;
  color: #fff;
}

.badge-info {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #5a8def 100%) !important;
  color: #fff;
}

.app-badge .badge:hover {
  transform: scale(1.1);
}

.app-badge .badge i {
  color: #fff !important;
}

/* Content holder */
.blog-card .content-holder {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.blog-card .title {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--brand-text);
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.blog-card:hover .title {
  color: var(--brand-primary);
}

.post-details {
  font-size: 0.85rem;
  color: var(--brand-text-muted);
  margin-bottom: 12px;
}

.post-details a {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
}

.app-version {
  display: block;
  font-size: 0.75rem;
  color: var(--brand-text-muted);
  margin-top: 4px;
  font-style: italic;
}

.blog-card .content-holder > p {
  color: var(--brand-text-muted);
  line-height: 1.7;
  flex: 1;
  font-size: 0.95rem;
}

/* Features */
.app-features {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.features-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-text);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.features-list li {
  font-size: 0.88rem;
  color: var(--brand-text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.blog-card:hover .features-list li {
  transform: translateX(5px);
}

.features-list li i {
  color: #43b380;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  background: rgba(67, 179, 128, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.blog-card:hover .features-list li i {
  transform: scale(1.2);
}

/* Read More Button Premium */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--brand-gradient);
  color: #fff !important;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.4s ease;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

.read-more::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.read-more:hover::before {
  width: 400px;
  height: 400px;
}

.read-more:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
  color: #fff !important;
  text-decoration: none;
}

.read-more i {
  transition: transform 0.3s ease;
}

.read-more:hover i {
  transform: translateX(5px);
}

/* ============================================================
   VIDEO CARDS
   ============================================================ */
.video-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border: 1px solid rgba(102, 126, 234, 0.1);
  border-radius: var(--brand-radius);
  box-shadow: var(--brand-shadow-soft);
  padding: 0;
  min-height: 550px;
  height: 100%;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
}

.video-card:hover {
  transform: scale(1.03);
  box-shadow: var(--brand-shadow);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.08);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.play-button i {
  font-size: 32px;
  color: var(--brand-accent);
  margin-left: 4px;
}

.video-card:hover .play-button {
  transform: translate(-50%, -50%) scale(1.15);
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.video-card iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 300px !important;
  border: none;
  border-radius: var(--brand-radius-sm);
}

.row.app-container {
  margin-bottom: 40px;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
  position: relative;
  min-height: 700px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 0;
  background: #ffffff;
}

.contact .map {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.contact .map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.contact-form-card,
.contact-info-card {
  padding: 40px 35px;
  background: #ffffff;
  border-radius: var(--brand-radius);
  box-shadow: var(--brand-shadow-soft);
  border: 1px solid rgba(102, 126, 234, 0.06);
  min-height: 500px;
  position: relative;
  z-index: 2;
}

.contact-title {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--brand-text);
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 12px;
}

.contact-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

/* Form styles */
.form-control {
  border: 2px solid rgba(102, 126, 234, 0.12);
  border-radius: var(--brand-radius-sm);
  padding: 14px 18px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: var(--brand-light);
  color: var(--brand-text);
}

.form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
  background: #fff;
}

.form-control::placeholder {
  color: var(--brand-text-muted);
  opacity: 0.7;
}

.btn-primary {
  background: var(--brand-gradient) !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 14px 32px !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
  transition: all 0.4s ease !important;
  position: relative;
  overflow: hidden;
  color: #fff !important;
}

.btn-primary:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5) !important;
  background: var(--brand-gradient-hover) !important;
}

/* Contact info */
.contact-info-card .row {
  margin-bottom: 20px;
  padding: 15px;
  background: var(--brand-light);
  border-radius: var(--brand-radius-sm);
  transition: all 0.3s ease;
}

.contact-info-card .row:hover {
  background: rgba(102, 126, 234, 0.06);
  transform: translateX(5px);
}

.contact-info-card .icon-md {
  font-size: 1.5rem;
  color: var(--brand-primary) !important;
  transition: all 0.3s ease;
  display: inline-block;
}

.contact-info-card .row:hover .icon-md {
  transform: scale(1.2);
}

.contact-info-card h6 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-text);
}

.contact-info-card .text-muted {
  font-weight: 400;
  font-size: 0.88rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-counter {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-dark-light) 100%) !important;
  position: relative;
  overflow: hidden;
  padding: 30px 0;
}

.footer-counter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--brand-gradient);
}

.footer-counter::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(118, 75, 162, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.footer-counter .container {
  position: relative;
  z-index: 1;
}

.footer-counter .text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* ============================================================
   VISIT COUNTER
   ============================================================ */
.visit-counter-wrapper {
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.visit-counter-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
}

.visit-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(102, 126, 234, 0.2);
  padding: 10px 24px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.visit-counter-badge:hover {
  background: rgba(102, 126, 234, 0.12);
  border-color: rgba(102, 126, 234, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.visit-counter-icon {
  font-size: 1.1rem;
  color: var(--brand-primary);
  animation: counterPulse 2s ease-in-out infinite;
}

@keyframes counterPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.visit-counter-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.visit-counter-number {
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-width: 40px;
  text-align: center;
  letter-spacing: 1px;
}

body.dark-mode .visit-counter-badge {
  background: rgba(30, 30, 46, 0.6);
  border-color: rgba(102, 126, 234, 0.25);
}

body.dark-mode .visit-counter-badge:hover {
  background: rgba(102, 126, 234, 0.15);
}

@media (max-width: 576px) {
  .visit-counter-badge {
    padding: 8px 16px;
    gap: 8px;
  }
  
  .visit-counter-label {
    font-size: 0.75rem;
  }
  
  .visit-counter-number {
    font-size: 0.95rem;
  }
}

/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--brand-gradient);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  font-size: 20px;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
  background: var(--brand-gradient-hover);
}

.scroll-to-top.show {
  display: flex;
  animation: fadeInUp 0.5s ease;
}

/* ============================================================
   DARK MODE TOGGLE - Flotante en esquina superior izquierda
   ============================================================ */
.dark-mode-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(102, 126, 234, 0.1);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s ease;
  color: var(--brand-text);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
  animation: fadeInLeft 0.6s ease;
}

.dark-mode-toggle:hover {
  background: var(--brand-gradient);
  color: white;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.dark-mode-toggle:active {
  transform: scale(0.95);
}

.dark-mode-toggle .toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  font-size: 1.2rem;
}

.dark-mode-toggle .sun-icon {
  display: none;
}

.dark-mode-toggle .moon-icon {
  display: flex;
  color: #5a6abf;
}

.dark-mode-toggle .toggle-label {
  transition: all 0.3s ease;
  white-space: nowrap;
}

body.dark-mode .dark-mode-toggle {
  background: rgba(18, 18, 26, 0.9);
  border-color: rgba(102, 126, 234, 0.2);
  color: #f0e68c;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .dark-mode-toggle:hover {
  background: var(--brand-gradient);
  color: white;
  border-color: transparent;
}

body.dark-mode .dark-mode-toggle .sun-icon {
  display: flex;
  color: #f0d060;
}

body.dark-mode .dark-mode-toggle .moon-icon {
  display: none;
}

/* ============================================================
   RESPONSIVE - Dark mode toggle en móvil
   ============================================================ */
@media (max-width: 768px) {
  .dark-mode-toggle {
    top: 10px;
    left: 10px;
    padding: 8px 14px;
    font-size: 0.8rem;
  }
  
  .dark-mode-toggle .toggle-label {
    font-size: 0.8rem;
  }
}



/* ============================================================
   DARK MODE STYLES
   ============================================================ */
body.dark-mode {
  --brand-dark: #0a0a1a;
  --brand-dark-light: #1a1a2e;
  --brand-light: #12121a;
  --brand-text: #e0e0e8;
  --brand-text-muted: #8888a0;
  --brand-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  --brand-shadow-soft: 0 5px 20px rgba(0, 0, 0, 0.3);
  --brand-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: #12121a;
  color: #e0e0e8;
}

body.dark-mode body::before {
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(102, 126, 234, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(118, 75, 162, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(245, 87, 108, 0.06) 0%, transparent 60%);
}

body.dark-mode .navbar {
  background: rgba(18, 18, 26, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(102, 126, 234, 0.15) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .navbar.scrolled {
  background: rgba(18, 18, 26, 0.95) !important;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .nav-link {
  color: var(--brand-text) !important;
}

body.dark-mode .about-section {

  background: #16161f;
}

body.dark-mode .about-card {
  background: #1e1e2e;
  border-color: rgba(102, 126, 234, 0.1);
}

body.dark-mode .about-card h3 {
  color: var(--brand-text);
}

body.dark-mode .about-card p {
  color: var(--brand-text-muted);
}

body.dark-mode .about-card .text-danger {
  color: #f87c90 !important;
}

body.dark-mode .about-card .row hr {
  border-color: rgba(102, 126, 234, 0.15);
}

body.dark-mode .section.bg-custom-gray {
  background: rgba(30, 30, 46, 0.3);
}

body.dark-mode #blog {
  background: #12121a;
}

body.dark-mode #blog h2 {
  color: var(--brand-text);
}

body.dark-mode .blog-card {
  background: #1e1e2e;
  border-color: rgba(102, 126, 234, 0.1);
}

body.dark-mode .blog-card .title {
  color: var(--brand-text);
}

body.dark-mode .blog-card .content-holder > p {
  color: var(--brand-text-muted);
}

body.dark-mode .blog-card .post-details {
  color: var(--brand-text-muted);
}

body.dark-mode .app-features {
  border-top-color: rgba(102, 126, 234, 0.15);
}

body.dark-mode .features-title {
  color: var(--brand-text);
}

body.dark-mode .features-list li {
  color: var(--brand-text-muted);
}

body.dark-mode .video-card {
  background: #1e1e2e;
  border-color: rgba(102, 126, 234, 0.1);
}

body.dark-mode .play-button {
  background: rgba(18, 18, 26, 0.9);
}

body.dark-mode .play-button i {
  color: #ff4466;
}

body.dark-mode .video-card:hover .play-button {
  background: rgba(18, 18, 26, 1);
}

body.dark-mode .contact {
  background: #16161f;
}

body.dark-mode .contact-form-card,
body.dark-mode .contact-info-card {
  background: #1e1e2e;
  border-color: rgba(102, 126, 234, 0.1);
}

body.dark-mode .contact-title {
  color: var(--brand-text);
}

body.dark-mode .contact-info-card .row {
  background: rgba(102, 126, 234, 0.08);
}

body.dark-mode .contact-info-card .row:hover {
  background: rgba(102, 126, 234, 0.15);
}

body.dark-mode .contact-info-card h6 {
  color: var(--brand-text);
}

body.dark-mode .contact-info-card .text-muted {
  color: var(--brand-text-muted) !important;
}

body.dark-mode .form-control {
  background: rgba(30, 30, 46, 0.8);
  color: var(--brand-text);
  border-color: rgba(102, 126, 234, 0.2);
}

body.dark-mode .form-control:focus {
  background: #1e1e2e;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

body.dark-mode .social-link {
  background: rgba(102, 126, 234, 0.1);
  color: var(--brand-text);
  border-color: rgba(102, 126, 234, 0.15);
}

body.dark-mode .language-selector {
  background: rgba(18, 18, 26, 0.9);
  border-color: rgba(102, 126, 234, 0.15);
}

body.dark-mode .lang-btn {
  color: var(--brand-text);
}

body.dark-mode .lang-btn:hover {
  color: white;
}

body.dark-mode .lang-btn.active {
  color: white;
}

body.dark-mode .scroll-to-top {
  background: var(--brand-gradient);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

body.dark-mode ::-webkit-scrollbar-track {
  background: var(--brand-dark);
}

body.dark-mode ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary));
}

body.dark-mode .info li {
  color: var(--brand-text-muted);
  border-bottom-color: rgba(102, 126, 234, 0.1);
}

body.dark-mode .info li span {
  color: var(--brand-text);
}

body.dark-mode .about-section {
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

body.dark-mode .about-section .about-card {
  border-right: 1px solid rgba(102, 126, 234, 0.1);
}

body.dark-mode .contact .contact-form-card,
body.dark-mode .contact .contact-info-card {
  background: #1e1e2e;
}

@media (max-width: 991.98px) {
  body.dark-mode .contact .contact-form-card {
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
  }
}

body.dark-mode .scroll-progress {
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.6);
}

body.dark-mode .navbar.navbar-shrink {
  background: rgba(18, 18, 26, 0.95) !important;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4) !important;
}

/* ============================================================
   LANGUAGE SELECTOR
   ============================================================ */


.language-selector {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px;
  border-radius: 50px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  animation: fadeInRight 0.6s ease;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--brand-text);
}

.lang-btn .flag-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn .flag-icon.ikurrina {
  font-size: 0;
}

.lang-btn .flag-icon.ikurrina svg {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.lang-btn:hover {
  background: var(--brand-gradient);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.lang-btn:hover .flag-icon {
  transform: scale(1.2);
}

.lang-btn.active {
  background: var(--brand-gradient);
  color: white;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* ============================================================
   PARTICLE CANVAS
   ============================================================ */
#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   TYPING CURSOR ANIMATION
   ============================================================ */
.header-mono .typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--brand-primary);
  margin-left: 4px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

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

/* ============================================================
   GRADIENT TEXT SHIMMER
   ============================================================ */
.header-title {
  background-size: 200% auto !important;
  animation: fadeInUp 1s ease 0.4s forwards, shimmer 4s linear 2s infinite !important;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  50% { background-position: 200% center; }
  100% { background-position: 0% center; }
}

/* ============================================================
   STAGGERED CARD REVEAL
   ============================================================ */
.about-card,
.blog-card,
.video-card,
.contact-form-card,
.contact-info-card {
  opacity: 0;
  transform: translateY(60px) scale(0.96);
  transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.about-card.animated,
.blog-card.animated,
.video-card.animated,
.contact-form-card.animated,
.contact-info-card.animated {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.about-card:nth-child(1) { transition-delay: 0s; }
.about-card:nth-child(2) { transition-delay: 0.15s; }
.about-card:nth-child(3) { transition-delay: 0.3s; }

/* ============================================================
   3D TILT HOVER ON CARDS
   ============================================================ */
.about-card,
.blog-card {
  perspective: 1000px;
  transform-style: preserve-3d;
  will-change: transform;
}

.about-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg) !important;
  box-shadow: var(--brand-shadow-hover);
}

.blog-card:hover {
  transform: translateY(-12px) rotateX(1deg) rotateY(-1deg) !important;
}

/* ============================================================
   MORPHING BLOB - Header decorative element
   ============================================================ */
.header-blob {
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(118, 75, 162, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  animation: morphBlob 12s ease-in-out infinite;
}

@keyframes morphBlob {
  0%, 100% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: translate(0, 0) scale(1);
  }
  25% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: translate(20px, -30px) scale(1.05);
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: translate(-10px, 20px) scale(0.95);
  }
  75% {
    border-radius: 50% 40% 50% 60% / 35% 55% 45% 65%;
    transform: translate(15px, 10px) scale(1.03);
  }
}

/* ============================================================
   COUNTER COUNT-UP ANIMATION
   ============================================================ */
.counter-animated {
  display: inline-block;
  transition: transform 0.3s ease;
}

.section.bg-dark .col-md-6.col-lg-3 {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.section.bg-dark .col-md-6.col-lg-3.animated {
  opacity: 1;
  transform: translateY(0);
}

.section.bg-dark .col-md-6.col-lg-3:nth-child(1) { transition-delay: 0s; }
.section.bg-dark .col-md-6.col-lg-3:nth-child(2) { transition-delay: 0.15s; }
.section.bg-dark .col-md-6.col-lg-3:nth-child(3) { transition-delay: 0.3s; }
.section.bg-dark .col-md-6.col-lg-3:nth-child(4) { transition-delay: 0.45s; }

/* ============================================================
   APP CONTAINER STAGGER
   ============================================================ */
.app-container {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.app-container.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   FEATURED CARD ENHANCED
   ============================================================ */
.featured-card {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.featured-card.animated {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.featured-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   SECTION TITLE REVEAL LINE
   ============================================================ */
#blog h2::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

#blog h2.animated::after {
  transform: scaleX(1);
}

/* ============================================================
   NAVBAR ENHANCED SCROLL
   ============================================================ */
.navbar {
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.navbar .nav-link.active-section {
  color: var(--brand-primary) !important;
}

.navbar .nav-link.active-section::after {
  width: 60%;
}

.navbar.navbar-shrink {
  padding: 4px 0 !important;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.15) !important;
}

.navbar.navbar-shrink .brand-img {
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--brand-gradient);
  z-index: 99999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* ============================================================
   SMOOTH IMAGE LOADING
   ============================================================ */
.blog-card .img-holder img,
.video-thumbnail img {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.8s ease;
}

.blog-card .img-holder img.loaded,
.video-thumbnail img.loaded {
  opacity: 1;
}

/* ============================================================
   CONTACT FORM FOCUS ANIMATION
   ============================================================ */
.form-group {
  position: relative;
}

.form-group .form-control {
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.form-group .form-control:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15) !important;
}

/* ============================================================
   BUTTON RIPPLE EFFECT
   ============================================================ */
.btn-primary,
.read-more,
.featured-btn {
  position: relative;
  overflow: hidden;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-effect 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ============================================================
   MAGNETIC HOVER EFFECT (social icons)
   ============================================================ */
.social-link {
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============================================================
   ANIMATIONS - Scroll Reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================================
   PAGE LOAD ANIMATION
   ============================================================ */
.page-loaded .header-content {
  animation: none;
}

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

  .about-card,
  .blog-card,
  .video-card,
  .contact-form-card,
  .contact-info-card,
  .app-container,
  .featured-card,
  .section.bg-dark .col-md-6.col-lg-3 {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .about-card {
    margin-bottom: 20px;
  }
  
  .contact {
    padding: 300px 0 40px;
  }
  
  .contact-form-card,
  .contact-info-card {
    min-height: auto !important;
  }
  
  .contact-form-card {
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  }
  
  #blog h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .header {
    min-height: 500px;
    height: 80vh;
  }
  
  .header-content {
    padding-left: 15px;
  }
  
  .header-content::before {
    height: 60%;
    top: 20%;
  }
  
  .header-title {
    font-size: calc(36px + (50 - 36) * ((100vw - 300px) / (768 - 300)));
  }
  
  .header-mono {
    letter-spacing: 3px;
    font-size: 12px;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .about-card {
    padding: 30px 25px;
  }
  
  .font40 {
    font-size: 2rem;
  }
  
  .blog-card .img-holder {
    min-height: 200px;
    max-height: 220px;
  }
  
  .blog-card .content-holder {
    padding: 20px;
  }
  
  .video-thumbnail {
    min-height: 200px;
  }
  
  .play-button {
    width: 55px;
    height: 55px;
  }
  
  .play-button i {
    font-size: 26px;
  }
  
  .language-selector {
    top: 10px;
    right: 10px;
    padding: 4px;
    gap: 4px;
  }
  
  .lang-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
  
  .lang-btn .lang-text {
    display: none;
  }
  
  .lang-btn .flag-icon {
    font-size: 1.3rem;
  }
  
  .scroll-to-top {
    width: 42px;
    height: 42px;
    bottom: 20px;
    right: 20px;
    font-size: 16px;
  }
  
  .nav-link {
    padding: 10px 0 !important;
  }
}

@media (max-width: 576px) {
  .header-title {
    font-size: 2rem;
  }
  
  .header-subtitle {
    font-size: 0.9rem;
  }
  
  .header-mono {
    font-size: 10px;
    letter-spacing: 2px;
  }
  
  .header-content {
    padding-left: 10px;
  }
  
  /* About section */
  .about-card {
    padding: 30px 25px;
    min-height: auto;
  }
  
  .about-card h3 {
    font-size: 1.3rem;
  }
  
  .about-card h5 {
    font-size: 1.1rem;
  }
  
  .about-card p {
    font-size: 0.9rem;
  }
  
  /* Apps section */
  #blog {
    padding: 50px 0;
  }
  
  #blog h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
  
  .blog-card {
    min-height: auto;
  }
  
  .blog-card .title {
    font-size: 1.1rem;
  }
  
  .blog-card p {
    font-size: 0.85rem;
  }
  
  .app-features {
    margin-top: 15px;
  }
  
  .features-title {
    font-size: 0.9rem;
  }
  
  .features-list li {
    font-size: 0.8rem;
  }
  
  .read-more {
    font-size: 0.85rem;
  }
  
  /* Contact section */
  .contact {
    padding: 250px 0 30px;
  }
  
  .contact h2 {
    font-size: 1.5rem;
  }
  
  .contact-form-card,
  .contact-info-card {
    padding: 25px 20px;
  }
  
  .contact-form-card h3,
  .contact-info-card h3 {
    font-size: 1.2rem;
  }
  
  /* Language selector */
  .language-selector {
    top: 15px;
    right: 15px;
    padding: 4px;
  }
  
  .lang-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
  
  .lang-btn .flag-icon {
    font-size: 1rem;
  }
  
  /* Dark mode toggle */
  .dark-mode-toggle {
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.line {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

/* Accessibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 4px;
}

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