/* ============================================================
   KODEV - Main Stylesheet
   kodev.mx
   ============================================================ */

/* ===== VARIABLES ===== */
:root {
  --bg-darkest: #030508;
  --bg-dark:    #060a14;
  --bg-mid:     #0a0f1e;
  --blue-pri:   #1a6cf4;
  --blue-bri:   #2e8bff;
  --blue-glow:  #4da3ff;
  --blue-light: #a8d4ff;
  --cyan:       #00d4ff;
  --cyan-dim:   #0088cc;
  --silver:     #b0c4de;
  --white:      #f0f6ff;
  --text-dim:   #5a7a9a;
  --border:     rgba(26,108,244,0.15);
  --border-hi:  rgba(26,108,244,0.4);
  --card-bg:    rgba(10,15,30,0.85);
  --glow-sm:    0 0 12px rgba(77,163,255,0.4);
  --glow-md:    0 0 24px rgba(26,108,244,0.5);
  --radius:     8px;
  --transition: 0.3s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-darkest);
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; }

/* ===== GRID BACKGROUND ===== */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(26,108,244,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,108,244,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
  width: 10px; height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s, background 0.2s;
  box-shadow: 0 0 10px var(--cyan), 0 0 20px var(--cyan);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(77,163,255,0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: left 0.1s, top 0.1s, width 0.3s, height 0.3s;
}
.cursor.hover { transform: translate(-50%,-50%) scale(2.5); background: var(--blue-glow); }
.cursor-ring.hover { width: 50px; height: 50px; opacity: 0.5; }
@media (pointer: coarse) { .cursor, .cursor-ring { display: none; } body { cursor: auto; } }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ===== NAVIGATION ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 14px 40px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(3,5,8,0.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.5); }

.nav-logo img {
  height: 44px;
  filter: drop-shadow(0 0 10px rgba(46,139,255,0.5));
  transition: filter var(--transition);
}
.nav-logo img:hover { filter: drop-shadow(0 0 20px rgba(46,139,255,0.9)); }

.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-menu a {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600; font-size: 14px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--silver);
  transition: color var(--transition);
  position: relative; padding-bottom: 4px;
}
.nav-menu a::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: var(--blue-glow);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.nav-menu a:hover { color: var(--white); }
.nav-menu a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: linear-gradient(135deg, var(--blue-pri), var(--cyan)) !important;
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(26,108,244,0.3);
  transition: box-shadow var(--transition), transform var(--transition) !important;
}
.nav-cta:hover {
  box-shadow: 0 6px 24px rgba(0,212,255,0.4) !important;
  transform: translateY(-2px) !important;
}
.nav-cta::after { display: none !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--blue-glow);
  transition: var(--transition);
  display: block;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp   { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInLeft { from { opacity:0; transform:translateX(-50px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeInRight{ from { opacity:0; transform:translateX(50px); } to { opacity:1; transform:translateX(0); } }
@keyframes floatLogo  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes glowPulse  { 0%,100% { opacity:0.5; transform:scale(1); } 50% { opacity:0.9; transform:scale(1.12); } }
@keyframes chatPulse  {
  0%,100% { box-shadow: 0 4px 20px rgba(26,108,244,0.5), 0 0 0 0 rgba(26,108,244,0.4); }
  70%     { box-shadow: 0 4px 20px rgba(26,108,244,0.5), 0 0 0 14px rgba(26,108,244,0); }
}
@keyframes dotBlink   { 0%,100% { opacity:1; } 50% { opacity:0.2; } }
@keyframes typingDot  { 0%,60%,100% { transform:translateY(0); } 30% { transform:translateY(-7px); } }

.reveal-left  { opacity:0; animation: fadeInLeft  0.9s 0.2s forwards; }
.reveal-right { opacity:0; animation: fadeInRight 0.9s 0.4s forwards; }
.reveal-up    { opacity:0; animation: fadeInUp    0.9s 0.6s forwards; }

/* Scroll-triggered reveals */
.scroll-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--delay, 0s);
}
.scroll-reveal.is-visible { opacity:1; transform:translateY(0); }

/* ===== SHARED SECTION STYLES ===== */
section { position: relative; z-index: 1; }

.section-header { text-align: center; margin-bottom: 72px; }
.section-tag {
  font-family: 'Orbitron', monospace;
  font-size: 10px; letter-spacing: 6px;
  color: var(--cyan); text-transform: uppercase;
  display: inline-block; margin-bottom: 16px;
}
.section-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--white) 30%, var(--blue-glow));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.section-desc {
  color: var(--silver); font-size: 17px;
  max-width: 560px; margin: 0 auto;
  line-height: 1.75; font-weight: 300;
}
.gradient-text {
  background: linear-gradient(135deg, var(--blue-glow), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue-pri), var(--blue-bri));
  color: #fff; padding: 16px 36px;
  border: none; border-radius: var(--radius);
  font-family: 'Orbitron', monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  box-shadow: 0 4px 24px rgba(26,108,244,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(26,108,244,0.6), 0 0 20px rgba(0,212,255,0.25);
}
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--blue-glow); padding: 15px 36px;
  border: 1.5px solid rgba(77,163,255,0.4);
  border-radius: var(--radius);
  font-family: 'Orbitron', monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  transition: all var(--transition);
}
.btn-ghost:hover {
  border-color: var(--blue-glow);
  background: rgba(77,163,255,0.08);
  box-shadow: 0 0 20px rgba(77,163,255,0.2);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 100px 0 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 45%, rgba(26,108,244,0.1) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 10% 85%, rgba(0,212,255,0.06) 0%, transparent 60%);
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 60px;
  align-items: center;
}
.hero-text { grid-column: 1; grid-row: 1; }
.hero-visual { grid-column: 2; grid-row: 1; }
.hero-stats { grid-column: 1 / -1; grid-row: 2; }

.eyebrow {
  font-family: 'Orbitron', monospace;
  font-size: 10px; letter-spacing: 5px;
  color: var(--cyan); text-transform: uppercase;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 36px; height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}
.hero-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 24px;
  color: var(--white);
}
.hero-sub {
  font-size: 17px; font-weight: 300;
  color: var(--silver); line-height: 1.75;
  margin-bottom: 40px; max-width: 480px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  display: flex; align-items: center; justify-content: center;
}
.logo-glow-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.logo-glow-wrap::before {
  content: '';
  position: absolute; inset: -40px;
  background: radial-gradient(ellipse, rgba(26,108,244,0.18) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 3.5s ease-in-out infinite;
}
.hero-logo {
  width: 100%; max-width: 480px;
  filter: drop-shadow(0 0 28px rgba(46,139,255,0.55));
  animation: floatLogo 4.5s ease-in-out infinite;
  position: relative; z-index: 1;
}

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-item {
  padding: 28px 20px; text-align: center;
  border-right: 1px solid var(--border);
  background: var(--card-bg);
  transition: background var(--transition);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(26,108,244,0.08); }
.stat-item::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-pri), transparent);
  transform: scaleX(0);
  transition: transform 0.4s;
}
.stat-item:hover::before { transform: scaleX(1); }
.stat-num {
  font-family: 'Orbitron', monospace;
  font-size: 2.2rem; font-weight: 900;
  color: var(--blue-glow); display: block;
}
.stat-label {
  font-size: 12px; letter-spacing: 2px;
  color: var(--text-dim); text-transform: uppercase;
  margin-top: 6px; display: block;
}

/* ===== SERVICES ===== */
.section-services {
  padding: 120px 0;
  background: linear-gradient(to bottom, transparent, rgba(10,15,30,0.7) 30%, rgba(10,15,30,0.7) 70%, transparent);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: var(--card-bg);
  padding: 48px 40px;
  position: relative; overflow: hidden;
  transition: background var(--transition), border-color var(--transition);
  border: 1px solid var(--border);
}
.service-card:hover { background: rgba(26,108,244,0.07); }
.service-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-pri), var(--cyan), transparent);
  transform: scaleX(0);
  transition: transform 0.4s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-num {
  font-family: 'Orbitron', monospace;
  font-size: 3.5rem; font-weight: 900;
  color: rgba(26,108,244,0.08);
  position: absolute; top: 16px; right: 24px;
  line-height: 1;
  transition: color var(--transition);
}
.service-card:hover .service-num { color: rgba(26,108,244,0.15); }
.service-icon {
  width: 54px; height: 54px;
  background: rgba(26,108,244,0.1);
  border: 1px solid rgba(26,108,244,0.3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 20px;
  transition: all var(--transition);
}
.service-card:hover .service-icon {
  background: rgba(26,108,244,0.2);
  border-color: var(--blue-glow);
  box-shadow: var(--glow-sm);
  transform: scale(1.05);
}
.service-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.05rem; font-weight: 700;
  color: var(--white); margin-bottom: 12px;
}
.service-desc {
  color: var(--silver); font-size: 14px;
  line-height: 1.7; font-weight: 300; margin-bottom: 20px;
}
.service-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.service-features li {
  color: var(--text-dim); font-size: 13px;
  display: flex; align-items: center; gap: 8px;
}
.service-features li::before { content: '▸'; color: var(--cyan); font-size: 9px; flex-shrink: 0; }
.service-price {
  font-family: 'Orbitron', monospace;
  font-size: 11px; letter-spacing: 2px;
  color: var(--cyan); font-weight: 700;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ===== PROCESS ===== */
.section-process { padding: 120px 0; }
.process-timeline {
  max-width: 780px; margin: 0 auto;
  position: relative;
  display: flex; flex-direction: column; gap: 0;
}
.process-timeline::before {
  content: '';
  position: absolute; left: 31px; top: 32px; bottom: 32px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--blue-pri) 15%, var(--blue-pri) 85%, transparent);
}
.process-step {
  display: flex; gap: 40px; align-items: flex-start;
  padding: 0 0 48px;
}
.process-step:last-child { padding-bottom: 0; }
.step-dot {
  width: 64px; height: 64px; flex-shrink: 0;
  background: var(--bg-dark);
  border: 1.5px solid rgba(26,108,244,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.process-step:hover .step-dot {
  border-color: var(--blue-glow);
  box-shadow: var(--glow-sm);
}
.step-dot span {
  font-family: 'Orbitron', monospace;
  font-size: 1rem; font-weight: 900;
  color: var(--blue-glow);
}
.step-body { padding-top: 14px; }
.step-body h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1rem; font-weight: 700;
  color: var(--white); margin-bottom: 10px;
}
.step-body p { color: var(--silver); font-size: 15px; font-weight: 300; line-height: 1.75; }

/* ===== TECHNOLOGIES ===== */
.section-tech {
  padding: 120px 0;
  background: linear-gradient(to bottom, transparent, rgba(10,15,30,0.5) 40%, rgba(10,15,30,0.5) 60%, transparent);
}
.tech-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.tech-cat {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition);
}
.tech-cat:hover { border-color: var(--border-hi); }
.tech-cat-title {
  font-family: 'Orbitron', monospace;
  font-size: 10px; letter-spacing: 4px;
  color: var(--cyan); text-transform: uppercase;
  margin-bottom: 16px;
}
.tech-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-badge {
  background: rgba(26,108,244,0.07);
  border: 1px solid rgba(26,108,244,0.2);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px; font-weight: 600;
  color: var(--silver); letter-spacing: 0.5px;
  transition: all var(--transition);
}
.tech-badge:hover {
  background: rgba(26,108,244,0.18);
  border-color: var(--blue-glow);
  color: var(--white);
  box-shadow: 0 0 10px rgba(26,108,244,0.25);
}

/* ===== CONTACT ===== */
.section-contact {
  padding: 120px 0;
  position: relative;
}
.section-contact::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(26,108,244,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}
.contact-info h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem; font-weight: 700;
  background: linear-gradient(135deg, var(--white), var(--blue-glow));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.contact-info > p {
  color: var(--silver); font-size: 15px;
  line-height: 1.75; font-weight: 300;
  margin-bottom: 36px;
}
.contact-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
}
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(26,108,244,0.1);
  border: 1px solid rgba(26,108,244,0.3);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.contact-item strong { display: block; color: var(--silver); font-size: 12px; letter-spacing: 1px; margin-bottom: 2px; }
.contact-item a, .contact-item span { color: var(--blue-glow); font-size: 15px; }
.contact-item a:hover { color: var(--cyan); }
.contact-social { display: flex; gap: 12px; }
.social-btn {
  width: 40px; height: 40px;
  background: rgba(26,108,244,0.08);
  border: 1px solid rgba(26,108,244,0.25);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', monospace; font-size: 10px; font-weight: 700;
  color: var(--silver); text-transform: uppercase; letter-spacing: 1px;
  transition: all var(--transition);
}
.social-btn:hover {
  border-color: var(--blue-glow); color: var(--white);
  background: rgba(26,108,244,0.2);
  box-shadow: var(--glow-sm);
}

/* Form */
.contact-form-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; position: relative; }
.form-group label {
  display: block;
  font-family: 'Orbitron', monospace;
  font-size: 9px; letter-spacing: 3px;
  color: var(--text-dim); text-transform: uppercase;
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(6,10,20,0.8);
  border: 1px solid rgba(26,108,244,0.2);
  padding: 13px 16px;
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px; font-weight: 400;
  outline: none;
  border-radius: 6px;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='%234da3ff'%3E%3Cpath d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px; cursor: pointer;
}
.form-group select option { background: #060a14; color: var(--white); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue-pri);
  box-shadow: 0 0 0 3px rgba(26,108,244,0.12);
}
.form-group input.error, .form-group textarea.error { border-color: #ef4444; }
.field-error {
  color: #ef4444; font-size: 12px;
  display: none; margin-top: 4px; padding-left: 2px;
}
.form-group.has-error .field-error { display: block; }
.form-group textarea { min-height: 120px; resize: vertical; }

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--blue-pri), var(--blue-bri));
  border: none; color: #fff; padding: 18px;
  font-family: 'Orbitron', monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  border-radius: 6px;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(26,108,244,0.3);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(26,108,244,0.5); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.7; transform: none; cursor: not-allowed; }

.form-success {
  text-align: center; padding: 48px 24px;
}
.success-icon { font-size: 56px; margin-bottom: 20px; }
.form-success h4 {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem; color: var(--cyan); margin-bottom: 12px;
}
.form-success p { color: var(--silver); font-size: 15px; line-height: 1.7; }

/* ===== FOOTER ===== */
footer {
  background: rgba(3,5,8,0.98);
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.footer-brand img {
  height: 40px;
  filter: drop-shadow(0 0 8px rgba(46,139,255,0.4));
  margin-bottom: 16px;
}
.footer-brand p {
  color: var(--text-dim); font-size: 14px;
  line-height: 1.75; max-width: 280px; margin-bottom: 24px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  color: var(--text-dim); font-size: 13px;
  transition: color var(--transition);
}
.footer-social a:hover { color: var(--blue-glow); }
.footer-col h4 {
  font-family: 'Orbitron', monospace;
  font-size: 9px; letter-spacing: 4px;
  color: var(--cyan); text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a, .footer-col ul span {
  color: var(--text-dim); font-size: 14px;
  transition: color var(--transition); display: block;
}
.footer-col ul a:hover { color: var(--blue-glow); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { color: var(--text-dim); font-size: 13px; }
.footer-domain {
  font-family: 'Orbitron', monospace;
  font-size: 11px; color: var(--blue-glow); letter-spacing: 3px;
}

/* ===== CHATBOT ===== */
.chat-trigger {
  position: fixed; bottom: 30px; right: 30px;
  z-index: 2000;
  width: 62px; height: 62px;
  background: linear-gradient(135deg, var(--blue-pri), var(--cyan));
  border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  animation: chatPulse 2.5s ease-in-out infinite;
  transition: transform var(--transition);
  box-shadow: 0 4px 20px rgba(26,108,244,0.5);
}
.chat-trigger:hover { transform: scale(1.1); }
.chat-trigger.open { animation: none; background: linear-gradient(135deg, #374151, #4b5563); }
.chat-icon { transition: transform var(--transition); }
.chat-badge {
  position: absolute; top: -2px; right: -2px;
  width: 18px; height: 18px;
  background: #ef4444; border-radius: 50%;
  font-family: 'Orbitron', monospace;
  font-size: 10px; font-weight: 700;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  animation: dotBlink 2s ease-in-out infinite;
}
.chat-badge.hidden { display: none; }

.chat-window {
  position: fixed; bottom: 108px; right: 30px;
  z-index: 2000;
  width: 380px;
  background: rgba(6,10,20,0.98);
  border: 1px solid rgba(26,108,244,0.3);
  border-radius: 16px;
  display: flex; flex-direction: column;
  max-height: 580px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.65), 0 0 48px rgba(26,108,244,0.1);
  backdrop-filter: blur(24px);
  transform: scale(0.85) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
  overflow: hidden;
}
.chat-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  background: linear-gradient(135deg, rgba(26,108,244,0.2), rgba(0,212,255,0.08));
  border-bottom: 1px solid rgba(26,108,244,0.2);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.chat-avatar {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--blue-pri), var(--cyan));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.chat-header-info { flex: 1; }
.chat-name {
  font-family: 'Orbitron', monospace;
  font-size: 13px; font-weight: 700; color: var(--white);
}
.chat-status {
  font-size: 12px; color: #4ade80;
  display: flex; align-items: center; gap: 6px;
}
.dot {
  width: 7px; height: 7px;
  background: #4ade80; border-radius: 50%;
  animation: dotBlink 1.8s ease-in-out infinite;
}
.chat-close {
  background: none; border: none;
  color: var(--text-dim); font-size: 18px;
  padding: 4px; line-height: 1;
  transition: color var(--transition);
}
.chat-close:hover { color: var(--white); }

.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 18px 14px;
  display: flex; flex-direction: column; gap: 14px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(26,108,244,0.3); border-radius: 2px; }

.msg { display: flex; gap: 8px; align-items: flex-end; }
.msg.user-msg { flex-direction: row-reverse; }
.msg-avatar {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.msg.bot-msg .msg-avatar {
  background: linear-gradient(135deg, var(--blue-pri), var(--cyan));
}
.msg.user-msg .msg-avatar {
  background: rgba(26,108,244,0.15);
  border: 1px solid rgba(26,108,244,0.3);
}
.msg-bubble {
  max-width: 80%;
  padding: 11px 15px;
  font-size: 14px; line-height: 1.55;
}
.msg.bot-msg .msg-bubble {
  background: rgba(26,108,244,0.1);
  border: 1px solid rgba(26,108,244,0.2);
  color: var(--white);
  border-radius: 14px 14px 14px 4px;
}
.msg.user-msg .msg-bubble {
  background: linear-gradient(135deg, var(--blue-pri), var(--blue-bri));
  color: #fff;
  border-radius: 14px 14px 4px 14px;
}

.typing-wrap { display: flex; gap: 8px; align-items: flex-end; }
.typing-bubble {
  background: rgba(26,108,244,0.1);
  border: 1px solid rgba(26,108,244,0.2);
  border-radius: 14px 14px 14px 4px;
  padding: 12px 16px;
  display: flex; gap: 5px; align-items: center;
}
.typing-bubble span {
  width: 7px; height: 7px;
  background: var(--blue-glow); border-radius: 50%;
  animation: typingDot 1.3s ease-in-out infinite;
}
.typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.typing-bubble span:nth-child(3) { animation-delay: 0.4s; }

.chat-quick-btns {
  padding: 0 14px 12px;
  display: flex; flex-wrap: wrap; gap: 7px;
  flex-shrink: 0;
}
.quick-btn {
  background: rgba(26,108,244,0.08);
  border: 1px solid rgba(26,108,244,0.25);
  color: var(--blue-glow);
  padding: 6px 13px; border-radius: 20px;
  font-size: 12px; font-family: 'Rajdhani', sans-serif;
  font-weight: 600; letter-spacing: 0.5px;
  white-space: nowrap;
  transition: all 0.2s;
}
.quick-btn:hover {
  background: rgba(26,108,244,0.2);
  border-color: var(--blue-glow);
  color: var(--white);
}

.chat-footer {
  padding: 12px 14px;
  border-top: 1px solid rgba(26,108,244,0.12);
  display: flex; gap: 10px; align-items: center;
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  background: rgba(26,108,244,0.06);
  border: 1px solid rgba(26,108,244,0.2);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 24px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px; outline: none;
  transition: border-color var(--transition);
}
.chat-input:focus { border-color: var(--blue-pri); }
.chat-input::placeholder { color: var(--text-dim); }
.chat-send {
  width: 42px; height: 42px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-pri), var(--blue-bri));
  border: none; border-radius: 50%;
  color: #fff; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.chat-send:hover { transform: scale(1.1); box-shadow: 0 4px 14px rgba(26,108,244,0.45); }
.chat-send:active { transform: scale(0.95); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .tech-categories { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  .container { padding: 0 24px; }
  #navbar { padding: 14px 24px; }
  .nav-menu {
    display: none;
    position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(3,5,8,0.98); backdrop-filter: blur(24px);
    padding: 28px 24px; flex-direction: column; gap: 28px;
    border-bottom: 1px solid var(--border);
  }
  .nav-menu.open { display: flex; }
  .hamburger { display: flex; }

  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .hero-text { order: 2; }
  .hero-visual { order: 1; }
  .hero-stats { order: 3; }
  .eyebrow { justify-content: center; }
  .hero-btns { justify-content: center; }
  .hero-sub { margin: 0 auto 40px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-item:last-child { border-right: none; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); }

  .services-grid { grid-template-columns: 1fr; }
  .process-timeline::before { display: none; }

  .tech-categories { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 80px 0 40px; }
  .section-services, .section-process, .section-tech, .section-contact { padding: 80px 0; }
  .hero-logo { max-width: 280px; }
  .tech-categories { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .chat-window { width: calc(100vw - 48px); right: 24px; bottom: 104px; }
  footer { padding: 48px 0 24px; }
}
