/* CSS Variables for Tech Theme */
:root {
  /* Primary Colors - Tech Theme */
  --primary-cyan: #00bcd4;
  --primary-blue: #0099ff;
  --primary-purple: #7c4dff;

  /* Gradient */
  --gradient-tech: linear-gradient(
    135deg,
    var(--primary-cyan) 0%,
    var(--primary-blue) 50%,
    var(--primary-purple) 100%
  );

  /* Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.9);
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);

  /* Typography */
  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing */
  --container-padding: 2rem;
  --section-padding: 5rem 0;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index */
  --z-modal: 1000;
  --z-navbar: 100;
  --z-toast: 1100;
  --z-whatsapp: 50;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.9);
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-hover: rgba(0, 0, 0, 0.4);
  --gradient-tech: linear-gradient(135deg, #22d3ee, #60a5fa);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--transition);
  width: 100%;
  max-width: 100vw;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient-tech);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section Styles */
.section {
  padding: var(--section-padding);
  position: relative;
}

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

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-weight: 500;
  border-radius: 50px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--gradient-tech);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 188, 212, 0.4);
}

.btn-outline {
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
    var(--gradient-tech) border-box;
  color: var(--text-primary);
}

.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-hover);
}

.btn-glow {
  position: relative;
}

.btn-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: var(--gradient-tech);
  border-radius: 50px;
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
  filter: blur(10px);
}

.btn-glow:hover::before {
  opacity: 0.7;
}

/* Ripple Effect */
.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

/* Glass Card Effect */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 8px 32px var(--shadow);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  z-index: var(--z-navbar);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  box-shadow: 0 4px 20px var(--shadow);
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  transition: var(--transition);
}

.navbar.scrolled .nav-brand {
  color: var(--text-primary);
}

.logo-wrapper {
  position: relative;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

[data-theme="dark"] .logo-wrapper {
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar.scrolled .logo-wrapper {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

.logo-wrapper:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.logo {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  object-fit: contain;
  transition: var(--transition);
}

.brand-text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  line-height: 1.2;
}

.brand-text {
  font-family: "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-subtext {
  font-family: "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

.navbar.scrolled .brand-subtext {
  color: var(--text-secondary);
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  font-family: "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
}

.navbar.scrolled .nav-link {
  color: var(--text-secondary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-tech);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: white;
}

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

.nav-menu.active .nav-link.active {
  background: none;
  color: var(--text-primary);
}

.nav-menu.active .nav-link.active::after {
  width: 0;
}

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

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

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.navbar.scrolled .theme-toggle {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.theme-toggle:hover {
  background: var(--primary-cyan);
  color: white;
  transform: scale(1.1);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  z-index: 101;
}

.navbar.scrolled .mobile-menu-toggle {
  border: 1px solid var(--border-color);
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
  display: block;
  margin: 2px 0;
}

.navbar.scrolled .mobile-menu-toggle span {
  background: var(--text-primary);
}

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

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

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

.mobile-menu-toggle.active {
  background: var(--primary-cyan);
  border-color: var(--primary-cyan);
}

.mobile-menu-toggle.active span {
  background: white !important;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgb(0 104 212 / 80%) 0%,
    rgb(183 0 255 / 60%) 50%,
    rgb(77 200 255 / 80%) 100%
  );
  z-index: -1;
}

[data-theme="dark"] .hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(0, 104, 212, 0.6),
    rgba(183, 0, 255, 0.4),
    rgba(77, 200, 255, 0.6)
  );
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 var(--container-padding);
  animation: heroFadeIn 1s ease-out;
}

.hero-logo {
  margin-bottom: 2rem;
  animation: logoFloat 3s ease-in-out infinite;
}

.hero-logo img {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 3rem;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 2px;
  height: 30px;
  background: white;
  position: relative;
}

.scroll-arrow::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
}

/* Services Section */
.services {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px var(--shadow-hover);
}

.service-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

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

.service-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 50px;
  height: 50px;
  background: var(--gradient-tech);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.service-content {
  padding: 2rem;
  text-align: center;
}

.service-content h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Portfolio Section */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-tech);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: scale(1.05);
}

.portfolio-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 188, 212, 0.9) 0%,
    rgba(124, 77, 255, 0.9) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: white;
  text-align: center;
  padding: 2rem;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.view-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition);
}

.view-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: var(--z-modal);
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  padding: 20px;
  max-width: 80%; 
  max-height: 80%; 
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); 
  animation: zoomIn 0.3s ease;
  overflow: hidden; 
}

.modal-content img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain; 
  border-radius: 10px;
}

.close-modal {
  position: absolute;
  top: -10px;
  right: 10px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1001;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  transform: scale(1.2);
  color: var(--primary-cyan);
  background: rgba(0, 0, 0, 0.9);
}

/* Clients & Metrics Section */
.clients-metrics {
  background: var(--bg-secondary);
  padding: 4rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.metric-item {
  text-align: center;
  padding: 2rem;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.metric-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-hover);
}

.metric-icon {
  font-size: 2.5rem;
  background: var(--gradient-tech);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.metric-number {
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-tech);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  display: inline-block;
  position: relative; /* Positioning context for ::after */
}

.metric-number[data-plus="true"]::after {
  content: "+";
  font-size: 2rem; /* Slightly smaller than the number */
  background: var(--gradient-tech);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: absolute;
  top: 50%; /* Center vertically */
  transform: translateY(-50%); /* Adjust for vertical centering */
  left: 100%; /* Place after the number */
  margin-left: 0.2rem; /* Small spacing from the number */
}

.metric-label {
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

.clients-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.client-logo {
  opacity: 0.6;
  transition: var(--transition);
  filter: grayscale(100%);
}

.client-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px var(--shadow);
}

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

.about-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.about-list i {
  color: var(--primary-cyan);
  font-size: 1.25rem;
}

/* Insights Section */
.insights {
  background: var(--bg-secondary);
  padding: 5rem 0;
}

.insight-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto 2rem;
  overflow: hidden;
}

.insight-item {
  display: none;
  animation: fadeIn 0.5s ease;
}

.insight-item.active {
  display: block;
}

.insight-content {
  text-align: center;
  padding: 3rem;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  position: relative;
}

.insight-content h3 {
  color: var(--primary-cyan);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.insight-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.insight-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
  transition: var(--transition);
}

.dot.active,
.dot:hover {
  background: var(--primary-cyan);
  transform: scale(1.2);
}

/* Contact Section */
.contact {
  background: var(--bg-secondary);
  padding: 5rem 0;
}

.contact-info {
  text-align: center;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.6;
  font-size: 1.125rem;
}

.contact-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  text-align: center;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-hover);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-tech);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.contact-details h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.contact-details p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.contact-details a {
  color: var(--primary-cyan);
  transition: var(--transition);
}

.contact-details a:hover {
  color: var(--primary-blue);
}

/* Footer */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.footer-brand h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
}

.footer-links h4,
.footer-social h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-links ul {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-cyan);
  transform: translateX(5px);
}

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

.social-icons a {
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--gradient-tech);
  color: white;
  transform: translateY(-3px);
  border-color: transparent;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 50px;
  height: 50px;
  background: var(--gradient-tech);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: var(--z-whatsapp);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 188, 212, 0.4);
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
  z-index: var(--z-whatsapp);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 2rem;
  right: 1rem;
  left: 1rem;
  max-width: 400px;
  margin: 0 auto;
  background: var(--gradient-tech);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transform: translateY(-100px);
  transition: var(--transition);
  z-index: var(--z-toast);
  box-shadow: 0 4px 20px rgba(0, 188, 212, 0.3);
}

.toast.show {
  transform: translateY(0);
}

.toast i {
  font-size: 1.25rem;
}

@media (min-width: 768px) {
  .toast {
    right: 2rem;
    left: auto;
    transform: translateX(400px);
  }

  .toast.show {
    transform: translateX(0);
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: translateY(-50%) scale(0.5);
  }
  to {
    transform: translateY(-50%) scale(1);
  }
}

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

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

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@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);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
    --section-padding: 3rem 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    border: none;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    justify-content: flex-start;
    align-items: center;
  }

  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu .nav-link {
    color: var(--text-primary);
    font-size: 1.125rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    width: 100%;
    text-align: center;
    transition: var(--transition);
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    background: var(--gradient-tech);
    color: white;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portfolio-filters {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .contact-items {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .clients-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .whatsapp-float {
    bottom: 5rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .back-to-top {
    bottom: 5rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  .footer-links ul {
    flex-direction: column;
  }
  .social-icons {
    justify-content: center;
  }
  
  .whatsapp-float {
    bottom: 6.5rem; 
    right: 1rem;
  }

  .back-to-top {
    bottom: 1.5rem; 
    right: 1rem;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 0.75rem;
  }

  .navbar {
    padding: 0.75rem 0;
  }

  .nav-brand {
    font-size: 1.125rem;
  }

  .logo {
    width: 35px;
    height: 35px;
  }

  .hero-title {
    font-size: 2.25rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-logo img {
    width: 100px;
    height: 100px;
  }

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

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
  }

  .service-card {
    margin: 0;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .metric-item {
    padding: 1.5rem;
  }

  .whatsapp-float {
    bottom: 4rem;
    right: 0.75rem;
    width: 45px;
    height: 45px;
    font-size: 1.125rem;
  }

  .back-to-top {
    bottom: 4rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
  }

  .toast {
    top: 1rem;
    right: 0.75rem;
    left: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
  }

  .close-modal {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  .whatsapp-float {
    bottom: 6rem;
    right: 0.75rem;
  }

  .back-to-top {
    bottom: 1rem;
    right: 0.75rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .back-to-top,
  .whatsapp-float,
  .toast {
    display: none !important;
  }

  .section {
    padding: 2rem 0;
  }

  .hero {
    min-height: auto;
    padding: 4rem 0;
  }

  .hero-video,
  .hero-overlay {
    display: none;
  }

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --shadow: rgba(0, 0, 0, 0.5);
    --shadow-hover: rgba(0, 0, 0, 0.7);
  }

  .glass-card {
    backdrop-filter: none;
    background: var(--bg-primary);
    border: 2px solid var(--text-primary);
  }
}

/* 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-indicator {
    animation: none;
  }

  .hero-logo {
    animation: none;
  }

  .whatsapp-float {
    animation: none;
  }
}
