/* ============================================================
   Logan Kessler — Personal Website
   Palette: Light, colorful, futuristic
   ============================================================ */

:root {
  --bg:         #f7f6f2;
  --bg-card:    #ffffff;
  --ink:        #0d0d0d;
  --ink-muted:  #555555;
  --ink-faint:  #999999;

  /* Vibrant accent trio */
  --coral:      #ff4f4f;
  --violet:     #7c3aed;
  --cyan:       #00c2cb;
  --lime:       #8bde3f;
  --amber:      #f59e0b;

  --accent:     var(--violet);
  --accent2:    var(--coral);
  --accent3:    var(--cyan);

  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 4px 32px rgba(0,0,0,0.08);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.12);

  --font-sans:  'Space Grotesk', sans-serif;
  --font-mono:  'Space Mono', monospace;

  --nav-h:      64px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

img { display: block; max-width: 100%; }

/* ── Container ────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Nav ──────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

#nav.scrolled {
  background: rgba(247,246,242,0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--violet), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Animated gradient orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 520px; height: 520px;
  top: -120px; left: -80px;
  background: radial-gradient(circle, #c084fc, #7c3aed);
  animation-delay: 0s;
}

.orb-2 {
  width: 420px; height: 420px;
  top: 30%; right: -60px;
  background: radial-gradient(circle, #67e8f9, #00c2cb);
  animation-delay: -3s;
}

.orb-3 {
  width: 340px; height: 340px;
  bottom: -80px; left: 35%;
  background: radial-gradient(circle, #fda4af, #ff4f4f);
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.04); }
}

/* Fine grid overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 2rem) 2.5rem 6rem;
  max-width: 820px;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--violet);
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 100px;
  padding: 0.35em 1em;
  margin-bottom: 1.75rem;
}

.hero-name {
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.name-accent {
  background: linear-gradient(135deg, var(--violet) 0%, var(--coral) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--ink-muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8em 1.8em;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--coral));
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(124,58,237,0.45); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(0,0,0,0.15);
}
.btn-ghost:hover {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.25);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem; left: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  z-index: 2;
}

.scroll-line {
  width: 48px; height: 1px;
  background: linear-gradient(90deg, var(--violet), transparent);
  animation: pulse-line 2s ease-in-out infinite;
}

@keyframes pulse-line {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Shared Section Styles ────────────────────────────────── */
section {
  padding: 7rem 0;
}

#hero { padding: 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.section-heading {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 3rem;
}

.highlight {
  background: linear-gradient(135deg, var(--violet), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── About ────────────────────────────────────────────────── */
#about { background: #fff; }

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  color: var(--ink-muted);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-text p strong { color: var(--ink); }

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pill {
  padding: 0.4em 1em;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1.5px solid transparent;
  cursor: default;
  transition: transform 0.15s ease;
}

.pill:nth-child(1) { background: rgba(124,58,237,0.1); color: var(--violet); border-color: rgba(124,58,237,0.2); }
.pill:nth-child(2) { background: rgba(0,194,203,0.1); color: #0097a7; border-color: rgba(0,194,203,0.2); }
.pill:nth-child(3) { background: rgba(255,79,79,0.1); color: var(--coral); border-color: rgba(255,79,79,0.2); }
.pill:nth-child(4) { background: rgba(139,222,63,0.12); color: #4a7c1b; border-color: rgba(139,222,63,0.3); }
.pill:nth-child(5) { background: rgba(245,158,11,0.1); color: #92670b; border-color: rgba(245,158,11,0.25); }
.pill:nth-child(6) { background: rgba(124,58,237,0.08); color: var(--violet); border-color: rgba(124,58,237,0.15); }

.pill:hover { transform: translateY(-2px); }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border: 1.5px solid rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--violet), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.3;
}

/* ── Experience ───────────────────────────────────────────── */
#experience { background: var(--bg); }

.timeline {
  position: relative;
  margin-bottom: 4rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--violet), var(--coral), var(--cyan));
  border-radius: 2px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.timeline-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--violet);
  position: relative;
  z-index: 1;
  margin-top: 4px;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}

.timeline-item:nth-child(2) .timeline-dot { border-color: var(--coral); }
.timeline-item:nth-child(3) .timeline-dot { border-color: var(--cyan); }

.timeline-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  border: 1.5px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.timeline-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2em 0.7em;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-active {
  background: rgba(139,222,63,0.15);
  color: #3a6b0a;
  border: 1px solid rgba(139,222,63,0.35);
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.timeline-org {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.timeline-bullets {
  list-style: none;
  margin-bottom: 1.25rem;
}

.timeline-bullets li {
  font-size: 0.92rem;
  color: var(--ink-muted);
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.45rem;
  line-height: 1.6;
}

.timeline-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.timeline-item:nth-child(2) .timeline-bullets li::before { color: var(--coral); }
.timeline-item:nth-child(3) .timeline-bullets li::before { color: var(--cyan); }

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 0.25em 0.7em;
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink-muted);
  border: 1px solid rgba(0,0,0,0.08);
}

/* Education block */
.edu-block {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(0,194,203,0.06));
  border: 1.5px solid rgba(124,58,237,0.15);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
}

.edu-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.edu-degree {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.edu-detail {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.edu-courses {
  font-size: 0.8rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* ── Skills ───────────────────────────────────────────────── */
#skills { background: #fff; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.skill-group {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  border: 1.5px solid rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-group:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.skill-group-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.4rem 0;
}

/* Language color dots */
.skill-icon {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lang-java   { background: #f89820; }
.lang-python { background: #3776ab; }
.lang-cs     { background: #9b4f96; }
.lang-cpp    { background: #00599c; }

/* Cert block */
.cert-block {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(245,158,11,0.07), rgba(255,79,79,0.05));
  border: 1.5px solid rgba(245,158,11,0.2);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}

.cert-icon {
  font-size: 1.2rem;
  color: var(--amber);
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.cert-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.cert-detail {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ── Contact ──────────────────────────────────────────────── */
#contact {
  background: var(--bg);
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.contact-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact-heading { margin-bottom: 1rem; }

.contact-sub {
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  min-width: 320px;
  justify-content: center;
  box-shadow: var(--shadow);
}

.contact-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--violet);
  color: var(--violet);
}

.contact-link-icon {
  font-size: 1.1rem;
  opacity: 0.6;
}

/* Footer */
.contact-footer {
  margin-top: 5rem;
  padding: 1.75rem 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  border-top: 1px solid rgba(0,0,0,0.07);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline::before { display: none; }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-dot { display: none; }
}

@media (max-width: 600px) {
  .hero-content { padding-left: 1.5rem; padding-right: 1.5rem; }
  #nav { padding: 0 1.25rem; }
  .nav-links { gap: 1.5rem; }
  .container { padding: 0 1.25rem; }
  .contact-link { min-width: unset; width: 100%; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}
