/* =====================================================================
   Cybersphere — styles.css
   Modern, responsive one-page site for Christoph De Vleeschouwer.
   Palette: deep navy background, Azure-blue → cyan accent gradient.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg:            #070b16;
  --bg-2:          #0b1122;
  --surface:       rgba(255, 255, 255, 0.035);
  --surface-2:     rgba(255, 255, 255, 0.06);
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text:          #eaf0fb;
  --text-muted:    #93a0b8;
  --text-faint:    #64708a;

  --accent:        #2f9bff;   /* Azure blue  */
  --accent-2:      #22d3ee;   /* cyan        */
  --accent-3:      #7c5cff;   /* violet pop  */
  --accent-grad:   linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  --accent-glow:   rgba(47, 155, 255, 0.35);

  --radius:        18px;
  --radius-sm:     12px;
  --maxw:          1140px;

  --shadow:        0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60rem 40rem at 12% -8%, rgba(47, 155, 255, 0.16), transparent 60%),
    radial-gradient(50rem 40rem at 100% 0%, rgba(124, 92, 255, 0.13), transparent 55%),
    radial-gradient(45rem 45rem at 50% 120%, rgba(34, 211, 238, 0.08), transparent 60%);
}
/* Subtle grid */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, black, transparent 80%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { padding: 110px 0; position: relative; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-2);
  padding: 6px 14px; border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
  margin-bottom: 20px;
}
h1, h2, h3 { line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4.4vw, 46px); }
h3 { font-size: 21px; }
.section-head p { color: var(--text-muted); font-size: 18px; margin-top: 18px; }

.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 999px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-grad); color: #061019;
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px var(--accent-glow); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

/* ---------- Navigation ---------- */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
header.nav.scrolled {
  background: rgba(7, 11, 22, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
/* Brand logo image (nav + footer) */
.brand-logo { height: 56px; width: auto; display: block; }
.brand-logo-footer { height: 58px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--text-muted); font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }

.nav-right { display: flex; align-items: center; gap: 14px; }

/* Mobile menu button */
.menu-btn {
  display: none; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); width: 42px; height: 42px; border-radius: 11px;
  cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { padding: 170px 0 120px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }

.status-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  padding: 7px 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  margin-bottom: 26px;
}
.status-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero h1 { font-size: clamp(38px, 6vw, 64px); margin-bottom: 22px; }
.hero .lead { font-size: 19px; color: var(--text-muted); max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats .stat .num {
  font-size: 34px; font-weight: 700; letter-spacing: -0.03em;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stats .stat .lbl { font-size: 13.5px; color: var(--text-faint); margin-top: 2px; }

/* Hero visual card */
.hero-visual { position: relative; }
.orbit {
  position: relative; aspect-ratio: 1; max-width: 420px; margin-left: auto;
  display: grid; place-items: center;
}
.orbit .core {
  width: 130px; height: 130px; border-radius: 28px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  box-shadow: 0 30px 70px -20px var(--accent-glow), inset 0 0 40px rgba(255,255,255,0.25);
  animation: float 6s ease-in-out infinite;
}
.orbit .core svg { width: 62px; height: 62px; color: #061019; }
@keyframes float { 0%,100% { transform: translateY(-10px); } 50% { transform: translateY(10px); } }

.orbit .ring {
  position: absolute; border: 1px dashed var(--border-strong); border-radius: 50%;
}
.orbit .ring.r1 { inset: 14%; animation: spin 26s linear infinite; }
.orbit .ring.r2 { inset: -2%; animation: spin 40s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.orbit .chip {
  position: absolute; display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--text);
  padding: 8px 13px; border-radius: 12px;
  background: rgba(11, 17, 34, 0.9); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); backdrop-filter: blur(6px);
  animation: floatChip 5s ease-in-out infinite;
}
.orbit .chip svg { width: 15px; height: 15px; color: var(--accent-2); }
.orbit .chip.c1 { top: 4%; left: -6%; }
.orbit .chip.c2 { top: 34%; right: -12%; animation-delay: 1.2s; }
.orbit .chip.c3 { bottom: 6%; left: 2%; animation-delay: 2.1s; }
.orbit .chip.c4 { bottom: 22%; right: -6%; animation-delay: 0.6s; }
@keyframes floatChip { 0%,100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }

/* ---------- Cards / generic ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); background: var(--surface-2); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: start; }
.about-body p { color: var(--text-muted); font-size: 18px; margin-bottom: 20px; }
.about-body p strong { color: var(--text); font-weight: 600; }

.about-facts { display: grid; gap: 14px; }
.fact {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 18px;
}
.fact .ico {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(47,155,255,0.12); border: 1px solid rgba(47,155,255,0.25);
  display: grid; place-items: center; color: var(--accent);
}
.fact .ico svg { width: 20px; height: 20px; }
.fact .k { font-size: 13px; color: var(--text-faint); }
.fact .v { font-weight: 600; font-size: 15.5px; }

/* ---------- Services ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service .s-ico {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(47,155,255,0.2), rgba(34,211,238,0.14));
  border: 1px solid var(--border-strong);
  display: grid; place-items: center; color: var(--accent-2);
}
.service .s-ico svg { width: 26px; height: 26px; }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--text-muted); font-size: 15.5px; }
.service::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(30rem 12rem at 100% 0%, rgba(47,155,255,0.10), transparent 60%);
  opacity: 0; transition: opacity 0.35s;
}
.service:hover::after { opacity: 1; }

/* ---------- Expertise ---------- */
.expertise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.exp-cat h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 18px; }
.exp-cat h3 .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--accent-grad); }
.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tag {
  font-size: 14px; font-weight: 500; color: var(--text);
  padding: 7px 13px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.tag:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }

/* ---------- Certifications ---------- */
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cert { display: flex; gap: 18px; align-items: flex-start; }
.cert .badge {
  width: 62px; height: 62px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, #0a2540, #0e3a63);
  border: 1px solid rgba(47,155,255,0.4);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 10px 24px -12px var(--accent-glow);
}
.cert .badge svg { width: 32px; height: 32px; }
.cert .code { font-family: var(--mono); font-size: 13px; color: var(--accent-2); font-weight: 600; letter-spacing: 0.02em; }
.cert h3 { font-size: 17px; margin: 4px 0 6px; }
.cert p { font-size: 14px; color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact-wrap {
  background: linear-gradient(135deg, rgba(47,155,255,0.10), rgba(124,92,255,0.08));
  border: 1px solid var(--border-strong);
  border-radius: 26px; padding: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  position: relative; overflow: hidden;
}
.contact-wrap::before {
  content: ""; position: absolute; top: -40%; right: -10%; width: 40rem; height: 40rem;
  background: radial-gradient(circle, rgba(34,211,238,0.14), transparent 60%); pointer-events: none;
}
.contact-left h2 { margin-bottom: 16px; }
.contact-left p { color: var(--text-muted); font-size: 18px; }
.contact-methods { display: grid; gap: 14px; position: relative; }
.cm {
  display: flex; align-items: center; gap: 16px;
  background: rgba(7,11,22,0.5); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 18px;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.cm:hover { transform: translateX(4px); border-color: var(--accent); }
.cm .ico {
  width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
  background: var(--accent-grad); display: grid; place-items: center; color: #061019;
}
.cm .ico svg { width: 22px; height: 22px; }
.cm .k { font-size: 12.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.cm .v { font-weight: 600; font-size: 16px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border); padding: 44px 0 40px;
  color: var(--text-faint); font-size: 14.5px;
}
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-inner .brand { font-size: 17px; color: var(--text); }
footer a:hover { color: var(--text); }

/* ---------- Reveal animation ----------
   Only hide elements when JS is active (html.js). Without JS the content
   stays fully visible — progressive enhancement, never a blank page. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .certs { grid-template-columns: repeat(2, 1fr); }
  .expertise-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; padding: 40px 28px; gap: 34px; }
}
/* Collapse the inline nav into a hamburger before it gets crowded. */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  /* Mobile dropdown */
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 80px; left: 12px; right: 12px;
    background: rgba(11,17,34,0.97); backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border); border-radius: 16px; padding: 12px;
    box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 12px 16px; font-size: 16px; }
}

@media (max-width: 720px) {
  section { padding: 84px 0; }
  .grid-3, .certs { grid-template-columns: 1fr; }
  .hero .lead { font-size: 17px; }
  .hero-stats { gap: 26px; }
  .contact-methods .cm { padding: 14px; }
  h2 { font-size: 28px; }
}

/* On the smallest screens, drop the nav CTA — Contact lives in the menu. */
@media (max-width: 560px) {
  .nav-right .btn-primary { display: none; }
  .brand-logo { height: 40px; }
  .brand-logo-footer { height: 46px; }
}
@media (max-width: 400px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
