/* ============================================
   iDev Tech Hub — Core Stylesheet
   Dark tech · Electric Cyan · Sharp & Modern
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --cyan: #00E5FF;
  --cyan-dim: #00b8cc;
  --cyan-glow: rgba(0,229,255,0.18);
  --blue: #0057FF;
  --navy: #050d1a;
  --navy2: #080f1e;
  --card: #0b1525;
  --card2: #0e1c2e;
  --border: rgba(0,229,255,0.12);
  --border2: rgba(255,255,255,0.06);
  --text: #ccd9f0;
  --muted: #5a7099;
  --white: #f0f6ff;
  --green: #00ff88;
  --orange: #FF6B35;
  --r: 10px;
  --r2: 18px;
  --shadow: 0 8px 40px rgba(0,0,0,0.5);
  --glow: 0 0 30px rgba(0,229,255,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Instrument Sans', sans-serif;
  background: var(--navy);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

/* ---- 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: width .2s, height .2s, background .2s;
  mix-blend-mode: screen;
}
.cursor-ring {
  width: 36px; height: 36px; border: 1.5px solid rgba(0,229,255,0.5);
  border-radius: 50%; position: fixed; pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%); transition: transform .08s ease, width .2s, height .2s, border-color .2s;
}
body:hover .cursor { opacity: 1; }

/* ---- NOISE TEXTURE OVERLAY ---- */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1000;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 5%;
  background: rgba(5,13,26,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s;
}
.navbar.scrolled { padding: .7rem 5%; }

.nav-logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; background: var(--cyan); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: .95rem;
  color: var(--navy); letter-spacing: -1px; flex-shrink: 0;
  box-shadow: 0 0 20px rgba(0,229,255,0.4);
}
.logo-text { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--white); line-height: 1.1; }
.logo-text span { display: block; font-size: .65rem; font-weight: 400; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }

.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .88rem; font-weight: 500; letter-spacing: .3px; transition: color .2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 1.5px; background: var(--cyan); transition: width .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--cyan); color: var(--navy); font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: .82rem; padding: .6rem 1.4rem; border-radius: 6px;
  text-decoration: none; letter-spacing: .5px; transition: all .2s;
  box-shadow: 0 0 16px rgba(0,229,255,0.25);
}
.nav-cta:hover { background: var(--white); box-shadow: 0 0 24px rgba(0,229,255,0.4); transform: translateY(-1px); }

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

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 600;
  width: 56px; height: 56px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  text-decoration: none; transition: transform .25s, box-shadow .25s;
  animation: float-pulse 3s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.12); box-shadow: 0 6px 28px rgba(37,211,102,0.6); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-tooltip {
  position: absolute; right: 68px; background: var(--card); color: var(--white);
  padding: .4rem .9rem; border-radius: 6px; font-size: .78rem; white-space: nowrap;
  border: 1px solid var(--border); opacity: 0; pointer-events: none; transition: opacity .2s;
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; }
@keyframes float-pulse { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* ---- SHARED SECTION STYLES ---- */
section { padding: 6rem 5%; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .7rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1rem;
}
.section-eyebrow::before { content: ''; width: 24px; height: 1.5px; background: var(--cyan); }
.section-title { font-family: 'Syne', sans-serif; font-size: clamp(1.9rem,4vw,3rem); font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 1rem; }
.section-sub { font-size: 1rem; color: var(--muted); line-height: 1.7; max-width: 520px; }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 600; font-size: .9rem; padding: .8rem 1.8rem; border-radius: 8px; transition: all .22s; border: none; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--cyan); color: var(--navy); box-shadow: 0 0 20px rgba(0,229,255,.22); }
.btn-primary:hover { background: var(--white); transform: translateY(-2px); box-shadow: 0 0 30px rgba(0,229,255,.35); }
.btn-ghost { background: transparent; color: var(--cyan); border: 1.5px solid rgba(0,229,255,.4); }
.btn-ghost:hover { background: var(--cyan-glow); border-color: var(--cyan); }
.btn-dark { background: var(--card2); color: var(--white); border: 1px solid var(--border2); }
.btn-dark:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---- CARD BASE ---- */
.card {
  background: var(--card); border: 1px solid var(--border2); border-radius: var(--r2);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.card:hover { border-color: var(--border); transform: translateY(-4px); box-shadow: var(--glow); }

/* ---- GRID DECORATIVE LINE ---- */
.grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(0,229,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes slideLeft { from{opacity:0;transform:translateX(30px)} to{opacity:1;transform:translateX(0)} }
@keyframes glow-pulse { 0%,100%{box-shadow:0 0 20px rgba(0,229,255,.2)} 50%{box-shadow:0 0 40px rgba(0,229,255,.4)} }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- FOOTER ---- */
footer {
  background: var(--navy2); border-top: 1px solid var(--border);
  padding: 4rem 5% 2rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: .88rem; color: var(--muted); line-height: 1.7; margin: 1rem 0 1.5rem; max-width: 280px; }
.footer-social { display: flex; gap: .7rem; }
.social-btn {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  color: var(--muted); font-size: .9rem; transition: all .2s;
}
.social-btn:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-glow); }
.footer-col h4 { font-family: 'Syne', sans-serif; font-size: .85rem; font-weight: 700; color: var(--white); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul a { text-decoration: none; color: var(--muted); font-size: .85rem; transition: color .2s; display: flex; align-items: center; gap: .4rem; }
.footer-col ul a:hover { color: var(--cyan); }
.footer-col ul a::before { content: '›'; color: var(--cyan); opacity: 0; transition: opacity .2s; }
.footer-col ul a:hover::before { opacity: 1; }
.footer-bottom { border-top: 1px solid var(--border2); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.footer-bottom p { font-size: .78rem; color: var(--muted); }
.footer-bottom a { color: var(--cyan); text-decoration: none; }

/* ---- FORM INPUTS ---- */
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea {
  background: rgba(255,255,255,.04); border: 1px solid var(--border2);
  color: var(--white); font-family: inherit; font-size: .92rem;
  padding: .78rem 1rem; border-radius: 8px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,229,255,.1);
}
.form-group select option { background: var(--card); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  section { padding: 4rem 5%; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: 65px; left: 0; right: 0; background: rgba(5,13,26,.97);
    padding: 2rem 5%; gap: 1.5rem; border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
  }
  .nav-links.open + .nav-cta { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}
