/* Variables */
:root {
  --primary-color: #0077B5;
  --primary-dark: #005885;
  --primary-light: #0a8cc7;
  /* Azul mais escuro e profissional - opção alternativa
  --primary-color: #005582;
  --primary-dark: #003d5c;
  --primary-light: #0066a3;
  */
  --secondary-color: #f8fafc;
  --accent-color: #06b6d4;
  --text-dark: #0f172a;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
}

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

/* Focus Management */
:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 9999;
}

.skip-link:focus {
  top: 6px;
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --primary-color: #0077b5;
  --secondary-color: #2a2a2a;
  --text-dark: #e0e0e0;
  --text-light: #b8b8b8;
  --text-muted: #909090;
  --white: #1e1e1e;
  --gray-50: #1e1e1e;
  --gray-100: #2a2a2a;
  --gray-200: #3a3a3a;
  --gray-300: #4a4a4a;
  --gray-800: #1a1a1a;
  --gray-900: #141414;
}

/* Dark Theme Icon Fixes */
[data-theme="dark"] .floating-card i {
  color: var(--primary-color) !important;
}

[data-theme="dark"] .nav-toggle {
  color: var(--text-light) !important;
}

[data-theme="dark"] .nav-toggle:hover {
  color: var(--primary-color) !important;
  background: var(--gray-200) !important;
}

[data-theme="dark"] .highlight i {
  color: #ffffff !important;
}

[data-theme="dark"] .contact-icon {
  color: #ffffff !important;
}

[data-theme="dark"] .service-icon i {
  color: #ffffff !important;
}

[data-theme="dark"] .skill-icon i {
  color: #ffffff !important;
}

[data-theme="dark"] #chatbot-send i,
[data-theme="dark"] .contact-form .btn i {
  color: #ffffff !important;
}

[data-theme="dark"] .contact-form .btn {
  color: #ffffff !important;
}

[data-theme="dark"] .btn.btn-primary {
  color: #ffffff !important;
}

/* Dark Theme Footer Fixes */
[data-theme="dark"] .footer {
  background: var(--gray-900) !important;
}

[data-theme="dark"] .footer-brand h3,
[data-theme="dark"] .footer-column h4 {
  color: #ffffff !important;
}

[data-theme="dark"] .footer-brand p,
[data-theme="dark"] .footer-bottom p {
  color: var(--text-light) !important;
}

[data-theme="dark"] .footer-column ul li a {
  color: var(--text-light) !important;
}

[data-theme="dark"] .footer-column ul li a:hover {
  color: var(--primary-color) !important;
}

[data-theme="dark"] .footer-bottom {
  border-top: 1px solid var(--gray-300) !important;
}

[data-theme="dark"] .footer * {
  color: var(--text-light) !important;
}

[data-theme="dark"] .footer-brand h3 {
  color: var(--primary-color) !important;
}

[data-theme="dark"] .footer-column h4 {
  color: #ffffff !important;
}

[data-theme="dark"] .footer-brand h3 {
  color: var(--primary-color) !important;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Performance Optimizations */
* {
  will-change: auto;
}

.animate-on-scroll,
.floating-card,
.digital-particle {
  will-change: transform, opacity;
}

.animate-on-scroll.animate {
  will-change: auto;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}



/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--primary-color);
  z-index: 1001;
  transition: width 0.1s ease;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: var(--transition);
}

[data-theme="dark"] .header {
  background: rgba(30, 30, 30, 0.95);
  border-bottom: 1px solid var(--gray-300);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo svg {
  transition: transform 0.3s ease;
}

.nav-brand:hover .brand-logo svg {
  transform: scale(1.1);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  font-size: var(--font-size-sm);
  transition: var(--transition);
  position: relative;
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Selector */
.language-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--gray-200);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-light);
}

.lang-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.lang-btn img {
  width: 16px;
  height: 12px;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 1000;
}

.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.lang-option:hover {
  background: var(--gray-100);
}

.lang-option img {
  width: 20px;
  height: 15px;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: var(--font-size-lg);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
}

.theme-toggle:hover {
  color: var(--primary-color);
  background: var(--gray-100);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-light);
  font-size: 1.25rem;
  transition: var(--transition);
  border-radius: 6px;
}

.nav-toggle:hover {
  color: var(--primary-color);
  background: var(--gray-100);
}

.nav-toggle i {
  color: inherit;
}

/* Hero Section */
.hero {
  background: var(--secondary-color);
  padding: 2rem 0 1rem;
  position: relative;
  overflow: hidden;
  height: 85vh;
  display: flex;
  align-items: center;
  margin-top: 70px;
}

/* Force briefcase icon for View Projects button */
.hero-cta .btn-primary i {
  font-family: "Font Awesome 6 Free" !important;
}

.hero-cta .btn-primary i::before {
  content: "\f0b1" !important;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  opacity: 0;
}

.hero-dots {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.dot {
  position: absolute;
  border-radius: 50%;
  animation: floatDots 8s ease-in-out infinite;
}

.dot:nth-child(1) {
  width: 8px;
  height: 8px;
  background: rgba(0, 119, 181, 0.6);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.dot:nth-child(2) {
  width: 6px;
  height: 6px;
  background: rgba(6, 182, 212, 0.5);
  top: 30%;
  right: 20%;
  animation-delay: 2s;
}

.dot:nth-child(3) {
  width: 10px;
  height: 10px;
  background: rgba(10, 140, 199, 0.4);
  bottom: 30%;
  left: 30%;
  animation-delay: 4s;
}

.dot:nth-child(4) {
  width: 4px;
  height: 4px;
  background: rgba(0, 119, 181, 0.7);
  bottom: 20%;
  right: 10%;
  animation-delay: 1s;
}

.dot:nth-child(5) {
  width: 7px;
  height: 7px;
  background: rgba(6, 182, 212, 0.6);
  top: 60%;
  right: 30%;
  animation-delay: 3s;
}

.dot:nth-child(6) {
  width: 5px;
  height: 5px;
  background: rgba(10, 140, 199, 0.8);
  top: 80%;
  left: 20%;
  animation-delay: 5s;
}

@keyframes floatDots {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  25% { transform: translateY(-15px) translateX(10px); }
  50% { transform: translateY(10px) translateX(-5px); }
  75% { transform: translateY(-8px) translateX(12px); }
}

/* Animated Background Themes */
.hero-animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-animated-bg.active {
  opacity: 1;
}

/* Digital Particles Background */
.theme-matrix {
  background: 
    radial-gradient(circle at 25% 25%, rgba(0, 119, 181, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
}

.digital-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 2px;
  opacity: 0.8;
  animation: digitalFloat 8s ease-in-out infinite;
}





.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 119, 181, 0.1);
  border: 1px solid rgba(0, 119, 181, 0.2);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.hero-typewriter {
  font-size: 2.5rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  min-height: 70px;
  display: flex;
  align-items: center;
}

.typewriter {
  color: var(--primary-color);
  font-weight: 600;
}

.cursor {
  animation: blink 1s infinite;
  color: var(--primary-color);
}

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

.gradient-text {
  color: var(--primary-color);
}



.hero-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}



.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.hero-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 50px;
  height: 50px;
  background: var(--white);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: var(--font-size-lg);
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.social-link:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Profile Showcase */
.profile-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-main {
  position: relative;
  z-index: 2;
}

.profile-main img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 10%;
  border: 6px solid white;
  box-shadow: var(--shadow-xl);
  display: block;
  background: #f3f4f6;
  min-height: 300px;
}

.availability-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  border: 1px solid var(--gray-200);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.floating-card {
  position: absolute;
  background: var(--white);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
  border: 1px solid var(--gray-200);
  animation: float 6s ease-in-out infinite;
}

.design-card {
  top: 20%;
  left: -10%;
  animation-delay: 0s;
}

.code-card {
  top: 60%;
  right: -10%;
  animation-delay: 2s;
}

.ux-card {
  bottom: -10%;
  left: 10%;
  animation-delay: 4s;
}



.floating-card i {
  font-size: 1.25rem;
  color: var(--primary-color);
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  color: var(--primary-color);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
}

/* About Section */
.about {
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.about-intro {
  font-size: var(--font-size-xl);
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-highlights {
  margin: 2rem 0;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.highlight i {
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  flex-shrink: 0;
}

.highlight h4 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.highlight p {
  color: var(--text-light);
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Timeline */
.about-timeline {
  padding-left: 3rem;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 3px solid var(--white);
}

.timeline-content h4 {
  font-size: 0.875rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-content h5 {
  font-size: 1.125rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-content p {
  color: var(--text-light);
  font-size: 0.875rem;
  margin: 0;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-arrow {
  font-size: 1.5rem;
  color: var(--primary-color);
  animation: gentleBounce 3s ease-in-out infinite;
  opacity: 0.8;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-arrow:hover {
  opacity: 1;
  transform: translateY(-2px);
}

@keyframes gentleBounce {
  0%, 100% { 
    transform: translateY(0); 
    opacity: 0.8;
  }
  50% { 
    transform: translateY(-6px); 
    opacity: 1;
  }
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #128c7e;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: var(--font-size-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Services Section */
.services {
  padding: 120px 0;
  background: var(--gray-50);
}

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

.service-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 119, 181, 0.15);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-icon i {
  font-size: 1.75rem;
  color: white;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 20px;
}

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

.service-features li {
  padding: 6px 0;
  color: var(--text-light);
  font-size: 0.9rem;
  position: relative;
  padding-left: 20px;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* Skills Section */
.skills {
  padding: 120px 0;
  background: var(--white);
}

.skills-content {
  margin-top: 60px;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.skill-category h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

.skill-category h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: 12px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
}

.skill-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 119, 181, 0.1);
}

.skill-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-icon i {
  font-size: 1.5rem;
  color: white;
}

.skill-info {
  flex: 1;
}

.skill-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.skill-description {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 8px;
}



/* Projects Section */
.projects {
  padding: 120px 0;
  background: var(--gray-50);
}

.projects-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 40px 0 60px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 2px solid var(--gray-300);
  border-radius: 50px;
  color: var(--text-light);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

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

.project-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.project-image {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link,
.project-github {
  width: 50px;
  height: 50px;
  background: var(--white);
  color: var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--transition);
}

.project-link:hover {
  background: var(--primary-color);
  color: white;
}

.project-github:hover {
  background: var(--text-dark);
  color: white;
}

.project-content {
  padding: 24px;
}

.project-category {
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.project-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.project-content p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tech span {
  padding: 4px 12px;
  background: var(--gray-100);
  color: var(--text-light);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Testimonials Section */
.testimonials {
  padding: 120px 0;
  background: var(--white);
}

.testimonials-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 60px auto 0;
  max-width: 1000px;
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 60px;
  width: 100%;
}

.testimonial-card {
  display: none;
  background: var(--white);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 119, 181, 0.1);
  border: 1px solid var(--gray-200);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-color);
}

.testimonial-card.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

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

.testimonial-quote {
  margin-bottom: 25px;
}

.testimonial-quote i {
  font-size: 2.5rem;
  color: var(--primary-color);
  opacity: 0.3;
}

.testimonial-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 30px;
  max-width: 100%;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.author-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  text-align: center;
  flex: 1;
}

@media (min-width: 769px) {
  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }
  
  .author-info {
    text-align: center;
  }
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.author-info span {
  font-size: 0.85rem;
  color: var(--text-light);
}

.testimonial-arrow {
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 119, 181, 0.2);
  flex-shrink: 0;
}

.testimonial-arrow:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.testimonial-arrows {
  display: none;
}

@media (min-width: 769px) {
  .testimonials-container > .testimonials-nav {
    display: none;
  }
  
  .testimonials-container > .testimonial-arrow {
    display: flex;
  }
}

@media (max-width: 768px) {
  .testimonials-container > .testimonial-arrow {
    display: none;
  }
  
  .testimonial-arrows {
    display: flex;
  }
  
  .testimonials-container > .testimonials-nav {
    display: flex;
  }
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.nav-dot.active {
  background: var(--primary-color);
}

.nav-dot:hover {
  background: var(--primary-color);
  opacity: 0.7;
}

/* Blog Section */
.blog {
  padding: 120px 0;
  background: var(--gray-50);
}

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

.blog-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.blog-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 24px 20px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.blog-date {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
}

.blog-category {
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  background: rgba(0, 119, 181, 0.1);
  border-radius: 20px;
}

.blog-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-content p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.blog-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}

.blog-btn:hover {
  gap: 12px;
}

.blog-btn i {
  font-size: 0.8rem;
  transition: var(--transition);
}

/* Contact Section */
.contact {
  padding: 120px 0;
  background: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 60px;
  align-items: start;
}

.contact-text h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.contact-text p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 40px;
}

.contact-details {
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item .contact-text h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.contact-item .contact-text p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
}

.contact-social {
  display: flex;
  gap: 16px;
}

.contact-social .social-link {
  width: 45px;
  height: 45px;
  background: var(--white);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.contact-social .social-link:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: var(--transition);
  font-family: inherit;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.1);
}

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

.contact-form .btn {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-timeline {
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .blog-content {
    padding: 24px 20px;
  }
  
  .nav {
    padding: 1rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding-top: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
  }

  [data-theme="dark"] .nav-menu {
    background: var(--white);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }
  
  .nav-actions {
    gap: 0.5rem;
  }
  
  .language-selector {
    display: none;
  }

  .hero {
    height: auto;
    padding: 6rem 0 4rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-typewriter {
    font-size: 2rem;
    text-align: center;
    justify-content: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-social {
    justify-content: center;
  }
  
  .profile-main img {
    width: 250px;
    height: 250px;
  }
  
  .floating-card {
    display: none;
  }
  
  .about-content {
    text-align: center;
  }
  
  .about-text .btn {
    margin: 0 auto;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .testimonials-container {
    margin: 40px auto 0;
    flex-direction: column;
    gap: 30px;
  }
  
  .testimonials-slider {
    margin: 0;
    width: 100%;
    max-width: none;
  }
  
  .testimonial-card {
    padding: 30px 20px;
    min-height: 320px;
  }
  
  .testimonial-card p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .testimonial-author {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .author-info {
    text-align: center;
  }
  
  .author-avatar {
    width: 60px;
    height: 60px;
  }
  
  .testimonial-arrow {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  
  .testimonials-nav {
    order: -1;
    margin-top: 0;
    margin-bottom: 20px;
  }
  
  .testimonial-arrows {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }
  
  .testimonials-container > .testimonial-arrow {
    display: none;
  }
  
  .about-text {
    text-align: center;
  }
  
  .about-highlights,
  .about-timeline {
    text-align: left;
  }
  
  .about-text .btn {
    margin: 0 auto;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-info > .contact-text {
    text-align: center;
  }
  
  .contact-item .contact-text {
    text-align: left;
  }
  
  .contact-social {
    justify-content: center;
  }
  
  .contact-form {
    text-align: left;
  }
  
  .contact-form .btn {
    margin: 0 auto;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  .nav {
    padding: 0.75rem;
  }
  
  .nav-brand {
    font-size: 1rem;
  }
  
  .hero {
    padding: 5rem 0 3rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-typewriter {
    font-size: 1.75rem;
    text-align: center;
    justify-content: center;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .btn-primary, .btn-secondary {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .profile-main img {
    width: 200px;
    height: 200px;
  }
  
  .about-content {
    text-align: center;
  }
  
  .about-text .btn {
    margin: 0 auto;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .service-card {
    padding: 24px 16px;
  }
  
  .skill-item {
    padding: 16px;
    gap: 16px;
  }
  
  .skill-icon {
    width: 40px;
    height: 40px;
  }
  
  .skill-icon i {
    font-size: 1.25rem;
  }
  
  .testimonial-card {
    padding: 25px 15px;
    min-height: 350px;
  }
  
  .testimonial-card p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .testimonials-slider {
    margin: 0;
  }
  
  .testimonial-quote i {
    font-size: 2rem;
  }
  
  .author-avatar {
    width: 55px;
    height: 55px;
  }
  
  .author-info h4 {
    font-size: 0.9rem;
  }
  
  .author-info span {
    font-size: 0.8rem;
  }
  
  .testimonial-arrow {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  .about-text {
    text-align: center;
  }
  
  .about-highlights,
  .about-timeline {
    text-align: left;
  }
  
  .about-text .btn {
    margin: 0 auto;
  }
  
  .contact-info > .contact-text {
    text-align: center;
  }
  
  .contact-item .contact-text {
    text-align: left;
  }
  
  .contact-social {
    justify-content: center;
  }
  
  .contact-form {
    padding: 24px 16px;
    text-align: left;
  }
  
  .contact-form .btn {
    margin: 0 auto;
  }
  
  .footer-content {
    text-align: center;
  }
  
  .whatsapp-float {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    bottom: 16px;
    right: 16px;
  }
  
  .back-to-top {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    left: 16px;
    bottom: 16px;
  }
  
  .chatbot-toggle {
    width: 45px;
    height: 45px;
    font-size: 1rem;
    right: 70px;
    bottom: 16px;
  }
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 40px;
}

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

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

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--gray-800);
}

.footer-bottom p {
  color: var(--gray-300);
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-right: 120px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--gray-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 3px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.whatsapp-float i {
  color: white !important;
  font-size: 1.4rem;
}

.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  color: white !important;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  color: white !important;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(20px);
  animation: backToTopPulse 2s infinite;
}

@keyframes backToTopPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 119, 181, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(0, 119, 181, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 119, 181, 0); }
}

.back-to-top i {
  color: white !important;
  font-size: 1.2rem;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: fadeInUp 0.5s ease;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px) scale(1.05);
  color: white !important;
}

.back-to-top.pulse {
  animation: backToTopPulse 2s infinite;
}

@keyframes backToTopPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 119, 181, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(0, 119, 181, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 119, 181, 0);
  }
}

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

/* Chatbot Badge */
.chatbot-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #ff4757;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.chatbot-badge.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    animation: pulseBadgeRed 2s infinite;
}

@keyframes pulseBadgeRed {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

/* Chatbot Styles */
.chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 90px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 119, 181, 0.2);
  transition: all 0.3s ease;
  z-index: 1001;
}

.chatbot-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
}

.chatbot-toggle i {
  transition: all 0.3s ease;
}

.chatbot-toggle.active i {
  transform: rotate(180deg);
}

.chatbot-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  height: 450px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  display: none;
  flex-direction: column;
  z-index: 1002;
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.chatbot-container.active {
  display: flex;
  animation: slideUp 0.3s ease;
}

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

.chatbot-header {
  background: var(--primary-color);
  color: white;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bot-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bot-avatar {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.bot-details h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.bot-status {
  font-size: 11px;
  opacity: 0.9;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chatbot-messages::-webkit-scrollbar {
  width: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 2px;
}

.bot-message, .user-message {
  display: flex;
  gap: 12px;
  animation: fadeIn 0.3s ease;
}

.user-message {
  flex-direction: row-reverse;
}

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

.message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.bot-message .message-avatar {
  background: var(--primary-color);
  color: white;
}

.user-message .message-avatar {
  background: var(--gray-200);
  color: var(--text-dark);
}

.message-content {
  background: var(--gray-100);
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 220px;
  font-size: 13px;
  line-height: 1.4;
}

.user-message .message-content {
  background: var(--primary-color);
  color: white;
}

.message-content p {
  margin: 0 0 8px 0;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.message-content ul {
  margin: 8px 0 0 0;
  padding-left: 16px;
}

.message-content li {
  margin-bottom: 4px;
}

.chatbot-quick-questions {
  padding: 8px 12px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--white);
}

.quick-question {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 10px;
  color: var(--text-dark);
  justify-content: flex-start;
  height: 24px;
}

.quick-question:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.quick-question i {
  font-size: 9px;
  flex-shrink: 0;
  width: 12px;
  color: var(--primary-color);
}

.quick-question span {
  font-size: 10px;
  line-height: 1;
}

.chatbot-input {
  padding: 12px 16px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 10px;
  align-items: center;
}

#chatbot-input {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s ease;
}

#chatbot-input:focus {
  border-color: var(--primary-color);
}

#chatbot-send {
  width: 36px;
  height: 36px;
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 14px;
}

#chatbot-send:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

@media (max-width: 480px) {
  .chatbot-container {
    width: calc(100vw - 20px);
    right: 10px;
    left: 10px;
    bottom: 80px;
    height: 450px;
  }
  
  .chatbot-toggle {
    width: 45px;
    height: 45px;
    font-size: 1rem;
    right: 70px;
    bottom: 20px;
  }
  
  .whatsapp-float {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
  
  .back-to-top {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    left: 15px;
    bottom: 15px;
  }
  
  .quick-question {
    height: 22px;
    font-size: 9px;
    padding: 3px 6px;
  }
  
  .quick-question i {
    font-size: 8px;
    width: 10px;
  }
  
  .quick-question span {
    font-size: 9px;
  }
}

/* Exit Intent Modal */
.exit-intent-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.exit-intent-modal.show {
  opacity: 1;
  visibility: visible;
}

.exit-intent-content {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-xl);
}

.exit-intent-modal.show .exit-intent-content {
  transform: scale(1);
}

.exit-intent-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.3s ease;
}

.exit-intent-close:hover {
  color: var(--primary-color);
}

.exit-intent-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

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

.exit-intent-text {
  color: var(--text-light);
  margin-bottom: 25px;
  line-height: 1.6;
}

.exit-intent-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.exit-intent-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.exit-intent-btn.primary {
  background: var(--primary-color);
  color: white;
}

.exit-intent-btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.exit-intent-btn.secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.exit-intent-btn.secondary:hover {
  background: var(--primary-color);
  color: white;
}

/* Pulsing animation for primary button */
.exit-intent-btn.primary.pulse {
  animation: exitPulse 2s infinite;
}

@keyframes exitPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 119, 181, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(0, 119, 181, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 119, 181, 0);
  }
}

/* Dark theme support */
[data-theme="dark"] .exit-intent-content {
  background: var(--gray-100);
}

[data-theme="dark"] .exit-intent-title {
  color: var(--text-dark);
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll:nth-child(2) {
  transition-delay: 0.1s;
}

.animate-on-scroll:nth-child(3) {
  transition-delay: 0.2s;
}

.animate-on-scroll:nth-child(4) {
  transition-delay: 0.3s;
}

/* Optimized Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

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

@keyframes digitalFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.4; }
  25% { transform: translate3d(50px, -30px, 0) rotate(90deg); opacity: 0.8; }
  50% { transform: translate3d(-30px, 50px, 0) rotate(180deg); opacity: 1; }
  75% { transform: translate3d(30px, -20px, 0) rotate(270deg); opacity: 0.6; }
}

/* Dark Theme Chatbot Fixes */
[data-theme="dark"] .chatbot-container {
  background: var(--gray-100) !important;
  border-color: var(--gray-300) !important;
}

[data-theme="dark"] .chatbot-input {
  background: var(--gray-100) !important;
  border-color: var(--gray-300) !important;
}

[data-theme="dark"] #chatbot-input {
  background: var(--gray-200) !important;
  border-color: var(--gray-300) !important;
  color: var(--text-dark) !important;
}

[data-theme="dark"] #chatbot-input:focus {
  border-color: var(--primary-color) !important;
}

[data-theme="dark"] .message-content {
  background: var(--gray-200) !important;
  color: var(--text-dark) !important;
}

[data-theme="dark"] .user-message .message-content {
  background: var(--primary-color) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .chatbot-quick-questions {
  background: var(--gray-100) !important;
}

[data-theme="dark"] .quick-question {
  background: var(--gray-100) !important;
  border-color: var(--gray-300) !important;
  color: var(--text-dark) !important;
}

[data-theme="dark"] .quick-question:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
}

@media (max-width: 768px) {
  .chatbot-container {
    width: 360px;
    height: 480px;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Mobile Language Selector */
.nav-mobile-lang {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.mobile-lang-selector {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.mobile-lang-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}

.mobile-lang-option:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.mobile-lang-option.active {
  background: var(--primary-color);
  color: white;
}

.mobile-lang-option img {
  width: 16px;
  height: 12px;
  border-radius: 2px;
}

.mobile-lang-option span {
  font-size: 0.875rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .nav-mobile-lang {
    display: block;
  }
  
  .language-selector {
    display: none;
  }
}