/* assets/css/style.css - NEXTOS Stylesheet */

:root {
  --bg: #0b0b0b;
  --muted: #bfbfbf;
  --accent: #2487ce;
  --glass: rgba(255, 255, 255, 0.03);
  --header-h: 80px;
  --max-w: 1200px;
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Neon progress bar */
#wenprogressbar {
  position: fixed; left: 0; top: 0; height: 4px; z-index: 10000; width: 0;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  background-color: #0072ff;
  box-shadow: 0 0 12px #00c6ff, 0 0 28px #0072ff;
  transition: width 0.12s linear;
  visibility: visible;
  transform: translateZ(0);
}

/* Header */
#site-header {
  position: fixed; left: 0; right: 0; top: 0; height: var(--header-h);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(6, 6, 6, 0.5);
  z-index: 9998;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.header-inner {
  width: 90%; max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; padding: 0 12px;
}
.logo {
  font-weight: 900;
  letter-spacing: 0.3rem;
  font-size: 3.1rem;
  color: #fff;
}
.logo .os {
  color: var(--accent);
}

/* Nav */
nav { position: relative; }
.nav-links {
  display: flex; gap: 1.2rem; list-style: none; margin: 0; padding: 0;
}
.nav-links li { list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 700; transition: color 0.18s; }
.nav-links a:hover { color: var(--accent); }
.menu-toggle { display: none; background: transparent; border: 0; color: var(--muted); font-size: 1.6rem; cursor: pointer; }

/* Snap container & sections */
.snap-container { scroll-snap-type: y proximity; overflow-y: auto; height: 100vh; }
.snap-section {
  scroll-snap-align: center; /* Changed to center */
  min-height: 100vh; /* Full viewport height */
  display: flex; align-items: center; justify-content: center;
  padding: 18px; /* Reduced top/bottom padding */
  position: relative;
}
.section-inner { z-index: 3; max-width: var(--max-w); width: 100%; text-align: center; padding-top: 0; /* Removed padding-top */ }

/* Background layer */
.has-bg .bg-layer {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  z-index: 1; overflow: hidden; pointer-events: none; background: var(--bg);
}
.logo-bg-img { width: 70%; max-width: 1100px; opacity: 0.20; filter: blur(24px) saturate(1.05); transform: scale(1); transition: transform 25s linear; }
.has-bg .logo-bg-img { animation: logoZoom 25s ease-in-out infinite alternate; }
@keyframes logoZoom { from { transform: scale(1); } to { transform: scale(1.07); } }

/* Features */
.features-grid { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.feature-card { width: 260px; border-radius: 12px; background: linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)); padding: 18px; text-align: left; }
.feature-card h3 { margin: 0 0 8px; color: #fff; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* Devices grid */
.devices-grid { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.device-card {
  width: 170px; border-radius: 14px; padding: 18px; background: linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  text-align: center; transition: transform 0.28s ease, box-shadow 0.28s ease; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}
.device-card img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(36, 135, 206, 0.12); transition: transform 0.28s ease; }
.device-card h4 { margin: 10px 0 6px; font-size: 1rem; }
.device-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.device-card:hover { transform: translateY(-10px); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); }
.device-card:hover img { transform: scale(1.05); }

/* Team grid */
.team-grid { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.team-member {
  width: 170px; border-radius: 14px; padding: 18px; background: linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  text-align: center; transition: transform 0.28s ease, box-shadow 0.28s ease; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}
.team-member img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(36, 135, 206, 0.12); transition: transform 0.28s ease; }
.team-member h4 { margin: 10px 0 6px; font-size: 1rem; }
.team-member p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.team-member:hover { transform: translateY(-10px); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); }
.team-member:hover img { transform: scale(1.05); }

/* Download button */
.download-btn {
  display: inline-block; padding: 12px 26px; border-radius: 10px; background: linear-gradient(90deg, var(--accent), #1b7fc0);
  color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 8px 30px rgba(36, 135, 206, 0.12);
}

/* Fade animation */
.fade-card { opacity: 1; transform: translateY(0) scale(1); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-card:not(.in-view) { opacity: 0; transform: translateY(18px) scale(0.98); }

/* Footer */
footer { padding: 28px 0; text-align: center; color: #9aa0a6; background: transparent; }

/* Responsive */
@media (max-width: 900px) {
  .nav-links {
    display: none; position: absolute; top: var(--header-h); right: 12px;
    flex-direction: column; background: rgba(8, 8, 8, 0.96); padding: 14px; border-radius: 12px; min-width: 200px; gap: 12px;
    z-index: 9999; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }
  .nav-links.open {
    display: flex; opacity: 1; visibility: visible; transform: translateY(0);
  }
  .menu-toggle { display: inline-block; }
  .logo { letter-spacing: 0.15rem; font-size: 2.1rem; }
  .logo-bg-img { opacity: 0.24; }
  .device-card { width: 150px; }
  .team-member { width: 150px; }
}