/* ===== VARIABLES ===== */
:root {
  --cyan: #00d4ff;
  --blue: #0052d4;
  --blue-deep: #0a1628;
  --blue-dark: #060e1a;
  --gray-900: #0d1b2a;
  --gray-800: #1b2838;
  --gray-700: #2a3a4e;
  --gray-400: #8899aa;
  --gray-300: #a0b0c0;
  --white: #e8f0f8;
  --font: 'Exo 2', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  background: var(--blue-dark);
  color: var(--gray-300);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== CANVAS BG ===== */
#network-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-family: var(--font); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: none; transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff !important;
}
.btn-primary:hover { box-shadow: 0 0 30px rgba(0, 212, 255, 0.3); transform: translateY(-2px); }
.btn-outline {
  background: transparent; border: 1px solid var(--gray-700); color: var(--white);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000; padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(6, 14, 26, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  padding: 10px 0;
}
.nav-content { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; z-index: 10; }
.logo-img { height: 40px; width: auto; }
.logo-img-sm { height: 32px; }
.logo-text { font-weight: 700; font-size: 1.2rem; color: var(--white); }
.logo-highlight { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--gray-400); transition: var(--transition); }
.nav-links a:hover { color: var(--white); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 10; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: var(--transition); }

/* ===== HERO ===== */
.hero {
  position: relative; z-index: 1;
  min-height: auto; display: flex; align-items: center;
  padding: 120px 0 60px;
}
.hero-content { max-width: 720px; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 50px;
  background: rgba(0, 212, 255, 0.1); border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--cyan); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 24px;
}
.hero-sub { font-size: 1.15rem; color: var(--gray-400); max-width: 540px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-row { display: flex; align-items: baseline; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-suffix { font-size: 2rem; font-weight: 700; color: var(--cyan); }
.stat-label { font-size: 0.8rem; color: var(--gray-400); margin-top: 4px; }

/* ===== SECTIONS ===== */
.section { position: relative; z-index: 1; padding: 70px 0; }
.section-dark { background: rgba(10, 22, 40, 0.6); }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 64px; }
.section-tag {
  display: inline-block; padding: 4px 14px; border-radius: 50px;
  background: rgba(0, 212, 255, 0.1); border: 1px solid rgba(0, 212, 255, 0.15);
  color: var(--cyan); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800; color: var(--white); margin-bottom: 16px;
}
.section-header p { color: var(--gray-400); }

/* ===== SERVICES ===== */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
  background: rgba(13, 27, 42, 0.8); border: 1px solid rgba(0, 212, 255, 0.08);
  border-radius: var(--radius); padding: 36px 28px;
  transition: var(--transition);
}
.service-card:hover {
  border-color: rgba(0, 212, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 212, 255, 0.08);
}
.service-icon {
  width: 48px; height: 48px; margin-bottom: 20px; color: var(--cyan);
}
.service-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.service-card p { font-size: 0.9rem; color: var(--gray-400); margin-bottom: 20px; }
.service-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.service-tags li {
  padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 500;
  background: rgba(0, 212, 255, 0.08); color: var(--cyan);
}

/* ===== PROCESS ===== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process-step { text-align: center; padding: 24px; }
.process-number {
  font-size: 3rem; font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 16px;
}
.process-step h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.process-step p { font-size: 0.85rem; color: var(--gray-400); }

/* ===== PORTFOLIO ===== */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.portfolio-card-lg { grid-column: span 2; grid-row: span 2; }
.portfolio-card { border-radius: var(--radius); overflow: hidden; }
.portfolio-img {
  width: 100%; height: 100%; min-height: 240px;
  position: relative; display: flex; align-items: flex-end;
  transition: var(--transition);
}
.portfolio-card-lg .portfolio-img { min-height: 504px; }
.portfolio-overlay {
  padding: 28px; width: 100%;
  background: linear-gradient(transparent, rgba(6, 14, 26, 0.95));
}
.portfolio-cat {
  display: inline-block; padding: 3px 10px; border-radius: 50px;
  background: rgba(0, 212, 255, 0.15); color: var(--cyan);
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 8px;
}
.portfolio-overlay h3 { font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.portfolio-overlay p { font-size: 0.85rem; color: var(--gray-400); margin-bottom: 12px; }
.portfolio-tech { display: flex; gap: 6px; flex-wrap: wrap; }
.portfolio-tech span {
  padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 500;
  background: rgba(255, 255, 255, 0.08); color: var(--gray-300);
}
.portfolio-card:hover .portfolio-img { transform: scale(1.02); }

/* ===== TEAM ===== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
  text-align: center; padding: 32px 20px;
  background: rgba(13, 27, 42, 0.6); border: 1px solid rgba(0, 212, 255, 0.08);
  border-radius: var(--radius); transition: var(--transition);
}
.team-card:hover { border-color: rgba(0, 212, 255, 0.2); transform: translateY(-4px); }
.team-avatar { margin: 0 auto 16px; }
.avatar-placeholder {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; color: #fff;
}
.team-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.team-role { font-size: 0.8rem; color: var(--cyan); font-weight: 500; }

/* ===== CTA / CONTACT ===== */
.cta-section { padding: 100px 0; }
.cta-wrapper {
  background: rgba(13, 27, 42, 0.8); border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 20px; padding: 60px;
}
.cta-content { text-align: center; margin-bottom: 48px; }
.cta-content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--white); margin-bottom: 12px; }
.cta-content p { color: var(--gray-400); max-width: 500px; margin: 0 auto; }
.contact-form { max-width: 600px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--gray-400); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(6, 14, 26, 0.8); border: 1px solid var(--gray-700);
  color: var(--white); font-family: var(--font); font-size: 0.9rem;
  transition: var(--transition); outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1); }
.form-group select { appearance: none; cursor: pointer; }
.form-group textarea { resize: vertical; }

/* ===== FOOTER ===== */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(0, 212, 255, 0.08); padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.85rem; color: var(--gray-400); margin-top: 16px; max-width: 280px; }
.footer-links h4 { font-size: 0.85rem; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.85rem; color: var(--gray-400); transition: var(--transition); }
.footer-links a:hover { color: var(--cyan); }
.footer-links li:not(:has(a)) { font-size: 0.85rem; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: var(--gray-700); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5); }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-card-lg { grid-column: span 2; grid-row: span 1; }
  .portfolio-card-lg .portfolio-img { min-height: 300px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh;
    flex-direction: column; align-items: flex-start; gap: 20px;
    background: var(--blue-dark); padding: 100px 32px 32px;
    border-left: 1px solid rgba(0, 212, 255, 0.1);
    transition: var(--transition);
  }
  .nav-links.active { right: 0; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card-lg { grid-column: span 1; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { text-align: center; margin: 0 auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; gap: 32px; }
  .cta-wrapper { padding: 36px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .process-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: row; justify-content: center; gap: 24px; }
  .stat-number { font-size: 1.8rem; }
  .stat-suffix { font-size: 1.4rem; }
  .stat-label { font-size: 0.7rem; }
}
