/* ============================================================
   SentientData.xyz — 3D Interactive Portfolio
   ============================================================ */

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

:root {
  /* Dark High-Contrast Palette */
  --bg: #050505;
  --fg: #ffffff;
  --muted: #a1a1aa;
  --wire: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(255, 255, 255, 0.03);
  
  --font-sans: 'Inter', sans-serif;
  --font-head: 'Outfit', sans-serif;

  --nav-h: 80px;
  --t-3d: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ══════════════════ RESET ══════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans); background: var(--bg); color: var(--fg);
  line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}

/* ══════════════════ TYPOGRAPHY ══════════════════ */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(3rem, 7vw, 6rem); font-weight: 900; }
h2 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 24px; }
h3 { font-size: clamp(1.2rem, 2vw, 1.8rem); margin-bottom: 16px; }
p { font-size: 1.1rem; color: var(--muted); }
a { color: inherit; text-decoration: none; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 8px 16px; border-radius: 100px; background: var(--card-bg); border: 1px solid var(--wire);
  color: var(--muted); margin-bottom: 24px;
}
.text-gradient {
  background: linear-gradient(135deg, #fff 0%, #555 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ══════════════════ LAYOUT ══════════════════ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 10; }
.section { padding: 160px 0; position: relative; z-index: 10; }

/* ══════════════════ NAVBAR ══════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  z-index: 1000; display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; transition: var(--t-3d); border-bottom: 1px solid transparent;
}
.navbar.scrolled { background: rgba(5,5,5,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--wire); }
.nav-brand { font-family: var(--font-head); font-weight: 900; font-size: 1.4rem; letter-spacing: -0.02em; }
.nav-menu { display: flex; gap: 8px; list-style: none; }
.nav-link { font-size: 0.9rem; font-weight: 500; color: var(--muted); padding: 8px 16px; border-radius: 100px; transition: var(--t-3d); }
.nav-link:hover, .nav-link.active { color: var(--fg); background: var(--card-bg); }

/* ══════════════════ UI COMPONENTS ══════════════════ */

/* Button */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 36px; border-radius: 100px; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  background: var(--fg); color: var(--bg); border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s; will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(255,255,255,0.25); }
.btn-outline { background: transparent; color: var(--fg); border: 2px solid var(--wire); }
.btn-outline:hover { background: var(--card-bg); border-color: var(--fg); box-shadow: 0 10px 40px rgba(255,255,255,0.05); }

/* 3D Glass Cards (Vanilla-Tilt targets) */
.glass-card {
  background: rgba(255,255,255,0.03); border: 1px solid var(--wire); border-radius: 24px;
  padding: 40px; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transform-style: preserve-3d; /* crucial for 3D sub-elements */
}
/* Items inside card pop out */
.glass-card > * { transform: translateZ(30px); }

/* Reveal Animations */
.reveal { opacity: 0; transform: translateY(40px); transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.d-1 { transition-delay: 0.1s; } .d-2 { transition-delay: 0.2s; } .d-3 { transition-delay: 0.3s; }

/* ══════════════════ RESPONSIVE ══════════════════ */
@media (max-width: 768px) {
  .section { padding: 100px 0; }
  .navbar { padding: 0 24px; }
  .nav-menu { display: none; }
  .container { padding: 0 24px; }
  .glass-card > * { transform: translateZ(10px); } /* reduce 3D pop on mobile */
}
