/* =========================================================
   Alfred Syatsukwa — Cybersecurity Portfolio
   style.css
   ========================================================= */

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: #080d1a;
  color: #dde6f0;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(0, 255, 135, 0.2);
  color: #00ff87;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #080d1a;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 135, 0.3);
  border-radius: 3px;
}

strong {
  color: #dde6f0;
  font-weight: 600;
}

/* === CSS VARIABLES === */
:root {
  --bg: #080d1a;
  --bg-2: #0c1225;
  --bg-card: rgba(12, 20, 40, 0.85);
  --green: #00ff87;
  --cyan: #00d4ff;
  --purple: #a78bfa;
  --text: #dde6f0;
  --muted: #8899aa;
  --border: rgba(0, 255, 135, 0.15);
  --radius: 12px;
  --transition: 0.3s ease;
}

/* === BACKGROUND EFFECTS === */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 135, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 135, 0.035) 1px, transparent 1px);
  background-size: 55px 55px;
  z-index: -2;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: -1;
}

.bg-glow-1 {
  background: rgba(0, 255, 135, 0.055);
  top: -250px;
  right: -150px;
}

.bg-glow-2 {
  background: rgba(124, 58, 237, 0.055);
  bottom: -250px;
  left: -150px;
}

/* === NAVIGATION === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 13, 26, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--green);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-logo span {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
}

.hero-content {
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 255, 135, 0.08);
  border: 1px solid rgba(0, 255, 135, 0.25);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--green);
  margin-bottom: 1.75rem;
  letter-spacing: 0.06em;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.hero-greeting {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
}

.hero-name {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.12;
  margin-bottom: 0.6rem;
}

.hero-role-line {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--muted);
  margin-bottom: 1.75rem;
  font-weight: 400;
  line-height: 1.6;
}

.hero-role {
  color: var(--green);
  font-weight: 600;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--green);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.hero-location i {
  color: var(--cyan);
}

.hero-bio {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 1.85;
}

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

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.03em;
}

.btn-primary {
  background: var(--green);
  color: #080d1a;
}

.btn-primary:hover {
  background: #1aff96;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 255, 135, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(221, 230, 240, 0.2);
}

.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

/* === SECTIONS === */
section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.6rem;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), transparent);
  margin-top: 1rem;
  border-radius: 2px;
}

/* === CARDS === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: rgba(0, 255, 135, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 14px 45px rgba(0, 255, 135, 0.09);
}

/* === ABOUT SECTION === */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1.3rem;
  font-size: 0.98rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-item {
  border-left: 3px solid var(--green);
}

.stat-number {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--green);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.4;
}

/* === SKILLS === */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
}

.skill-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  font-size: 1.3rem;
}

.skill-card-icon.green { background: rgba(0, 255, 135, 0.1); color: var(--green); }
.skill-card-icon.cyan  { background: rgba(0, 212, 255, 0.1); color: var(--cyan); }
.skill-card-icon.purple { background: rgba(167, 139, 250, 0.1); color: var(--purple); }

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* === TAGS === */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.tag {
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.73rem;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid;
}

.tag.green  { border-color: rgba(0, 255, 135, 0.3);  color: var(--green);  background: rgba(0, 255, 135, 0.07); }
.tag.cyan   { border-color: rgba(0, 212, 255, 0.3);  color: var(--cyan);   background: rgba(0, 212, 255, 0.07); }
.tag.purple { border-color: rgba(167, 139, 250, 0.3); color: var(--purple); background: rgba(167, 139, 250, 0.07); }

/* === PAGE HERO (inner pages) === */
.page-hero {
  padding: 10rem 0 4rem;
  text-align: center;
}

.page-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.page-hero-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === TIMELINE === */
.timeline {
  position: relative;
  padding-left: 2.25rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green) 0%, rgba(0, 255, 135, 0.08) 100%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.55rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid #080d1a;
  box-shadow: 0 0 12px rgba(0, 255, 135, 0.5);
}

.timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--green);
  margin-bottom: 0.6rem;
  letter-spacing: 0.06em;
  display: block;
}

.timeline-card {
  padding: 1.5rem 1.75rem;
}

.timeline-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.timeline-card .org {
  font-size: 0.85rem;
  color: var(--cyan);
  margin-bottom: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.timeline-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
}

/* === PROJECTS GRID === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.project-icon {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
}

.project-link {
  font-size: 0.78rem;
  color: var(--green);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  transition: gap var(--transition), color var(--transition);
}

.project-link:hover {
  gap: 0.6rem;
}

/* === PITCH / VIDEO PLACEHOLDER === */
.video-placeholder {
  max-width: 820px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border: 2px dashed rgba(0, 255, 135, 0.22);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 255, 135, 0.045) 0%, transparent 65%);
  pointer-events: none;
}

.video-placeholder:hover {
  border-color: rgba(0, 255, 135, 0.4);
  box-shadow: 0 0 60px rgba(0, 255, 135, 0.06);
}

.play-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(0, 255, 135, 0.1);
  border: 2px solid rgba(0, 255, 135, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--green);
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}

.video-placeholder:hover .play-btn {
  background: rgba(0, 255, 135, 0.18);
  border-color: var(--green);
  box-shadow: 0 0 35px rgba(0, 255, 135, 0.25);
  transform: scale(1.06);
}

.video-placeholder-text {
  text-align: center;
  position: relative;
  z-index: 1;
}

.video-placeholder-text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.video-placeholder-text p {
  font-size: 0.9rem;
  color: var(--muted);
}

.pitch-info {
  max-width: 820px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pitch-info-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.pitch-info-card .icon {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.pitch-info-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.pitch-info-card p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.55;
}

/* === HIGHLIGHTS BANNER === */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.highlight-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.highlight-label {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

/* === FOOTER === */
footer {
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-copy span {
  color: var(--green);
}

.footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-links a {
  color: var(--muted);
  font-size: 1.05rem;
  transition: color var(--transition), transform var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--green);
  transform: translateY(-2px);
}

/* === HERO PHOTO === */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-inner .hero-content {
  max-width: none;
}

.hero-photo-wrap {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.hero-photo-frame {
  position: relative;
  width: 270px;
  height: 320px;
  flex-shrink: 0;
}

/* Gradient glow border */
.hero-photo-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--green) 0%, rgba(0, 212, 255, 0.5) 60%, transparent 100%);
  z-index: 0;
  opacity: 0.85;
}

/* Offset decorative border */
.hero-photo-frame::after {
  content: '';
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(0, 255, 135, 0.2);
  border-radius: 22px;
  z-index: -1;
}

.hero-photo {
  width: 270px;
  height: 320px;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
  display: block;
  position: relative;
  z-index: 1;
  filter: grayscale(100%) contrast(1.08) brightness(0.88);
  transition: filter var(--transition);
}

.hero-photo-frame:hover .hero-photo {
  filter: grayscale(80%) contrast(1.08) brightness(0.92);
}

.hero-photo-badge {
  position: absolute;
  bottom: -14px;
  left: -14px;
  background: rgba(8, 13, 26, 0.92);
  border: 1px solid rgba(0, 255, 135, 0.25);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  backdrop-filter: blur(16px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

.hero-photo-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .typing-cursor {
    animation: none;
  }
  .hero-badge::before {
    animation: none;
  }
}

/* === RESPONSIVE === */
@media (max-width: 1000px) {
  .hero-inner {
    grid-template-columns: 1fr 240px;
    gap: 2.5rem;
  }

  .hero-photo-frame,
  .hero-photo {
    width: 220px;
    height: 265px;
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero-photo-wrap {
    order: -1;
  }

  .hero-photo-frame,
  .hero-photo {
    width: 170px;
    height: 200px;
  }

  .hero-photo-frame::after {
    bottom: -10px;
    right: -10px;
  }

  .hero-photo-badge {
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-location,
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.25rem;
  }

  .nav-links {
    position: fixed;
    top: 61px;
    left: 0;
    right: 0;
    background: rgba(8, 13, 26, 0.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-toggle {
    display: flex;
  }

  .container {
    padding: 0 1.25rem;
  }

  .hero {
    padding: 7rem 0 4rem;
  }

  section {
    padding: 3.5rem 0;
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .pitch-info {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .page-hero {
    padding: 8rem 0 3rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .highlights-grid {
    grid-template-columns: 1fr 1fr;
  }
}
