
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --cyan: #00E5FF;
  --teal: #11c5bb;
  --bg: #040814;
  --surface: #091120;
  --muted: #95A2BD;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { min-height: 100dvh; font-family: 'Inter', sans-serif; background: var(--bg); color: #fff; -webkit-font-smoothing: antialiased; }
img, video, canvas { display: block; max-width: 100%; height: auto; }

.container { max-width: 1200px; margin-inline: auto; padding-inline: 1.5rem; }

/* Glass panel */
.glass {
  background: rgba(9,17,32,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
}
.cyber-border { border: 1px solid rgba(0,229,255,0.18); }
.shadow-panel { box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,229,255,0.06); }
.shadow-glow  { box-shadow: 0 0 20px rgba(0,229,255,0.25); }
.shadow-cyan  { box-shadow: 0 0 40px rgba(0,229,255,0.15); }

/* Background grid */
body::before {
  content:'';
  position:fixed; inset:0; z-index:-1;
  background-image:
    linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events:none;
}

/* Text gradient */
.text-gradient {
  background: linear-gradient(135deg, #fff 40%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navbar */
.nav-link { transition: color 180ms ease; }
.nav-active { color: #fff !important; }
.nav-link:hover { color: #fff; }

/* Dropdown */
.dropdown-menu {
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
}
.dropdown-group:hover .dropdown-menu,
.dropdown-group:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--cyan); color: #030a12;
  font-weight: 700; font-size: 0.9rem;
  padding: 0.75rem 1.75rem; border-radius: 9999px; border: none;
  cursor: pointer; text-decoration: none; min-height: 48px;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  white-space: nowrap;
}
.btn-primary:hover { background: #33ecff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,229,255,0.35); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--cyan);
  font-weight: 700; font-size: 0.9rem;
  padding: 0.75rem 1.75rem; border-radius: 9999px;
  border: 1.5px solid rgba(0,229,255,0.4);
  cursor: pointer; text-decoration: none; min-height: 48px;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
  white-space: nowrap;
}
.btn-outline:hover { background: rgba(0,229,255,0.08); border-color: var(--cyan); transform: translateY(-1px); }

/* Service icon box */
.service-icon {
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 1rem;
  background: rgba(0,229,255,0.1);
  color: var(--cyan);
  border: 1px solid rgba(0,229,255,0.2);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

/* Form input */
.form-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  padding: 0.8rem 1.1rem;
  color: #fff;
  font-size: 0.9rem;
  width: 100%;
  transition: border-color 180ms ease;
}
.form-input:focus { outline: none; border-color: var(--cyan); }
.form-input::placeholder { color: var(--muted); }

/* Back to top */
#back-to-top {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 99;
  display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 9999px;
  background: var(--cyan); color: #030a12;
  opacity: 0; pointer-events: none;
  transition: opacity 300ms ease, transform 300ms ease;
  transform: translateY(8px);
  box-shadow: 0 4px 20px rgba(0,229,255,0.4);
  text-decoration: none;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Animations */
@keyframes float {
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-10px);}
}
.animate-float { animation: float 3s ease-in-out infinite; }

@keyframes fadeup {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}
.animate-fadeup { animation: fadeup 0.55s cubic-bezier(0.16,1,0.3,1) forwards; }

@keyframes pulse-glow {
  0%,100%{ box-shadow:0 0 20px rgba(0,229,255,0.2); }
  50%    { box-shadow:0 0 40px rgba(0,229,255,0.5); }
}

/* Responsive */
@media(max-width:768px){
  .btn-primary, .btn-outline { font-size:0.85rem; padding:0.65rem 1.25rem; min-height:44px; }
}

@media(prefers-reduced-motion:reduce){
  *, *::before, *::after { animation-duration:0.01ms !important; transition-duration:0.01ms !important; }
}
