/* ========================================================
   Kenn Lipa — Modern Resume Stylesheet
   ======================================================== */

/* ---------- VARIABLES ---------- */
:root {
  --accent: #3fafff;
  --accent-glow: rgba(63, 175, 255, 0.35);
  --bg: #0b0f19;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --text: #cdd6e0;
  --text-bright: #f0f4f8;
  --text-muted: #7b8a9e;
  --radius: 14px;
  --radius-sm: 8px;
  --font:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: #6ec5ff;
}
ul {
  list-style: none;
}

/* ---------- UTILITY ---------- */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAVIGATION ---------- */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-bright);
  letter-spacing: -0.5px;
}
.nav-logo span {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 15, 25, 0.97);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-links.open {
    max-height: 420px;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
  }
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  font-size: 0.9rem;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
  color: #fff;
}
.btn-outline {
  padding: 8px 20px;
  border: 1px solid var(--accent);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent) !important;
  transition:
    background var(--transition),
    color var(--transition);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff !important;
}

/* ---------- SECTIONS ---------- */
section {
  padding: 100px 0;
}
section:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin-top: 12px;
  border-radius: 2px;
}
.section-body {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 640px;
}

/* ---------- HERO ---------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(63, 175, 255, 0.08) 0%,
      transparent 60%
    ),
    var(--bg);
}
.hero-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 28px;
  border: 3px solid var(--border);
  box-shadow: 0 0 40px var(--accent-glow);
}
#hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.accent {
  color: var(--accent);
}
.tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.hero-bio {
  max-width: 520px;
  margin: 0 auto 32px;
  color: var(--text);
}

/* ---------- TIMELINE (Experience) ---------- */
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 48px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition:
    background var(--transition),
    border-color var(--transition);
}
.timeline-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(63, 175, 255, 0.2);
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 30px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.timeline-date {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(63, 175, 255, 0.1);
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.timeline-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 2px;
}
.timeline-item h4 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.timeline-item ul {
  padding-left: 18px;
  list-style: disc;
}
.timeline-item li {
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--text);
}

/* ---------- SKILLS ---------- */
.skills-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 2.4rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.skills-icons i {
  transition:
    color var(--transition),
    transform var(--transition);
}
.skills-icons i:hover {
  color: var(--accent);
  transform: translateY(-4px);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.skill-card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition:
    background var(--transition),
    border-color var(--transition);
}
.skill-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(63, 175, 255, 0.18);
}
.skill-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 6px;
}
.skill-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- PROJECTS ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.project-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: visible;
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}
.project-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(63, 175, 255, 0.2);
  transform: translateY(-4px);
}
.project-card img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.project-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(63, 175, 255, 0.1);
  color: var(--accent);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.project-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 4px;
}
.project-info p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.store-badges a {
  flex-shrink: 0;
}
.store-badges img {
  height: 36px;
  width: auto;
}

/* ---------- EDUCATION ---------- */
.edu-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.edu-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 4px;
}
.edu-degree {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 4px;
}
.edu-detail {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- AWARDS ---------- */
.awards-list li {
  font-size: 0.92rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.awards-list li:last-child {
  border-bottom: none;
}
.awards-list i {
  color: #f5c542;
  margin-right: 10px;
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 40px 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
  section {
    padding: 64px 0;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .timeline {
    padding-left: 20px;
  }
}
