/*
  Alex Corbin — Portfolio Styles
  Dark, modern, minimalist. Responsive with CSS Grid & Flexbox.
*/

:root {
  --bg: #0a192f;
  --bg-elev: #0f213f;
  --text: #ccd6f6;
  --muted: #94a3b8;
  --accent: #64ffda;
  --accent-2: #00aaff;
  --card: #0e1a31;
  --outline: rgba(100, 255, 218, 0.25);
  --ring: rgba(100, 255, 218, 0.12);
  --shadow: rgba(2, 12, 27, 0.7);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}

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

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  z-index: 1000;
  backdrop-filter: saturate(160%) blur(8px);
  background: rgba(10, 25, 47, 0.6);
  border-bottom: 1px solid rgba(100, 255, 218, 0.1);
  width: 100%;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
  padding: 8px 10px;
  border: 1px solid var(--outline);
  border-radius: 8px;
}

.primary-nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-link { color: var(--muted); position: relative; transition: color .2s ease; }
.nav-link:hover { color: var(--text); }
.code-slash { color: var(--accent); margin-right: 8px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--outline); transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
.btn-accent { color: #0a192f; background: var(--accent); font-weight: 600; }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--ring); }
.btn-lg { padding: 14px 22px; font-size: 1.05rem; }

.resume-btn { margin-left: 16px; }

.nav-toggle { display: none; width: 40px; height: 40px; background: transparent; border: none; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 26px; }

/* Hero */
.section-hero { position: relative; min-height: 88vh; display: grid; place-items: center; padding: 80px 0; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.55; }
.hero-content { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 8px; letter-spacing: 1px; }
.accent { color: var(--accent); }
.hero-title { font-family: Poppins, Inter, sans-serif; font-size: clamp(40px, 9vw, 72px); margin: 0; line-height: 1.05; }
.hero-subtitle { font-size: clamp(18px, 4.5vw, 28px); color: var(--muted); margin: 8px 0 18px; }
.hero-blurb { max-width: 720px; color: var(--text); opacity: .9; }
.hero-cta { margin-top: 26px; }

/* Sections */
.section { padding: 96px 0; position: relative; }
.section, .section-hero { scroll-margin-top: 80px; }
.section-title { font-family: Poppins, Inter, sans-serif; font-weight: 700; font-size: clamp(22px, 4.5vw, 28px); margin: 0 0 24px; display: inline-flex; align-items: center; gap: 12px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.skills-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.skills-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--outline); border-radius: 10px; background: linear-gradient(180deg, rgba(100,255,218,0.05), rgba(0,0,0,0)); }
.skills-list i { width: 18px; height: 18px; color: var(--accent); }

/* Timeline */
.timeline { position: relative; margin-left: 6px; }
.timeline:before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--outline), transparent 10%, var(--outline)); opacity: 0.6; }
.timeline-item { position: relative; padding-left: 36px; margin: 28px 0; }
.timeline-dot { position: absolute; left: 0; top: 6px; width: 16px; height: 16px; background: var(--bg); border: 2px solid var(--accent); border-radius: 50%; box-shadow: 0 0 0 6px var(--ring); }
.timeline-content { background: var(--card); border: 1px solid var(--outline); border-radius: 14px; padding: 18px 18px 12px; box-shadow: 0 10px 30px -10px var(--shadow); }
.role { margin: 0 0 6px; font-size: 1.05rem; }
.company { color: var(--accent); }
.dates { color: var(--muted); font-size: .95rem; margin-bottom: 8px; }
.bullets { margin: 0; padding-left: 18px; }
.bullets li { margin: 10px 0; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card { display: grid; grid-template-rows: 180px 1fr; border: 1px solid var(--outline); border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(100,255,218,0.02)); box-shadow: 0 10px 30px -10px var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -18px var(--shadow); border-color: rgba(100, 255, 218, 0.4); }
.project-media { position: relative; background: radial-gradient(1200px 300px at -10% 120%, rgba(100,255,218,.3), transparent), linear-gradient(180deg, #0f213f, #071224); }
.project-media:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.35)); }
.project-media--quantum { background-image: radial-gradient(800px 240px at 90% -10%, rgba(100,255,218,.35), transparent), linear-gradient(180deg, #111827, #0a192f); }
.project-media--briefly { background-image: radial-gradient(800px 240px at 10% -10%, rgba(0,170,255,.35), transparent), linear-gradient(180deg, #0c243b, #0a192f); }
.project-media--syncboard { background-image: radial-gradient(800px 240px at 50% -10%, rgba(100,255,218,.25), transparent), linear-gradient(180deg, #0c1c30, #0a192f); }
.project-content { padding: 16px 16px 14px; }
.project-title { margin: 0 0 8px; font-size: 1.1rem; font-weight: 600; }
.project-desc { margin: 0 0 12px; color: var(--text); opacity: .9; }
.tech-list { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; margin: 0 0 14px; padding: 0; }
.tech-list li { border: 1px solid var(--outline); padding: 6px 10px; border-radius: 999px; color: var(--muted); font-size: .9rem; }
.project-links { display: flex; gap: 12px; }
.icon-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--outline); background: rgba(255,255,255,0.02); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.icon-link:hover { transform: translateY(-2px); border-color: rgba(100,255,218,0.6); background: rgba(100,255,218,0.08); }
.icon-link i { width: 18px; height: 18px; color: var(--text); }

/* Contact */
.section-contact { text-align: center; }
.contact-sub { color: var(--muted); max-width: 720px; margin: 0 auto 18px; }
.socials { margin-top: 18px; display: flex; gap: 12px; justify-content: center; }

/* Footer */
.site-footer { padding: 28px 0 40px; color: var(--muted); text-align: center; border-top: 1px solid rgba(100,255,218,0.08); background: rgba(0,0,0,0.1); }

/* Custom Cursor */
#cursor { position: fixed; pointer-events: none; inset: 0; z-index: 9999; }
.cursor-dot { position: fixed; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%); opacity: .95; mix-blend-mode: difference; }
.cursor-ring { position: fixed; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--accent); transform: translate(-50%, -50%); opacity: .25; transition: width .2s ease, height .2s ease, opacity .2s ease, border-color .2s ease; }
.cursor-active .cursor-ring { width: 56px; height: 56px; opacity: .35; }

/* Magnetic elements helpers */
.magnetic { position: relative; display: inline-flex; }

/* Reveal animations */
[data-animate] { opacity: 0; transform: translateY(18px); will-change: transform, opacity; }
.revealed { opacity: 1 !important; transform: translateY(0) !important; transition: transform 600ms cubic-bezier(.2,.8,.2,1), opacity 600ms ease; }

/* Responsive */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .primary-nav { display: none; position: fixed; top: 64px; left: 0; right: 0; background: rgba(10,25,47,.96); border-bottom: 1px solid rgba(100,255,218,0.1); max-height: calc(100vh - 64px); overflow-y: auto; }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li { border-top: 1px solid rgba(100,255,218,0.08); }
  .primary-nav a { display: block; padding: 14px; }
  .resume-btn { display: none; }
  .nav-toggle { display: inline-block; }
  .projects-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}

/* Offset body for fixed header */
body { padding-top: 64px; }


