/* ===== 80s Synthwave Theme ===== */

/* ---------------------------------
    Theme Colors & Variables
---------------------------------- */
:root {
  --bg: rgb(10, 11, 19);
  --panel: rgb(17, 18, 37);
  --panel-alt: rgb(12, 13, 26);
  --text: rgb(232, 232, 242);
  --muted: rgb(167, 167, 199);

  --neon-pink: rgb(255, 60, 172);
  --neon-cyan: rgb(43, 210, 255);
  --neon-violet: rgb(120, 75, 160);

  --glow: 0 0 12px rgba(255, 60, 172, 0.45), 0 0 32px rgba(43,210,255,.25);

  --container: 1100px;
}

/* ----- General Setup ----- */
* { box-sizing: border-box; }

html,body { 
  margin: 0; 
  padding: 0; 
}

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

/* ---------------------------------
   Base body styles - font and text color
---------------------------------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
}

/* ---------------------------------
   Scanlines overlay
---------------------------------- */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 4px);
  mix-blend-mode: overlay;
  opacity: .35;
  z-index: 999;
}

/* ---------------------------------
   Containers
---------------------------------- */
.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* ---------------------------------
   Header
---------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(10,11,19,.9), rgba(10,11,19,.65));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgb(28, 29, 50);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  font-family: "Press Start 2P", monospace;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 1px;
}

.logo .neon-spark {
  color: var(--neon-pink);
}

/* ---------------------------------
   Navigation (desktop)
---------------------------------- */
.nav-toggle {
  display: none;
  background: none; 
  color: var(--text); 
  border: 1px solid rgb(42, 43, 70);
  padding: 6px 10px; 
  border-radius: 6px; 
  font-size: 16px;
}

.nav-menu {
  list-style: none; 
  margin: 0; 
  padding: 0;
  display: flex; 
  gap: 24px;
}

.nav-menu a {
  text-decoration: none; 
  color: var(--muted); 
  font-weight: 600;
}

.nav-menu a:hover { 
  color: var(--text); 
}

/* ---------------------------------
   Navigation (mobile/tablet)
---------------------------------- */
@media (max-width: 800px) {
  .nav-toggle { 
    display: inline-block;
  }

  .nav-menu {
    position: absolute; 
    right: 16px; 
    top: 56px;
    background: var(--panel);
    border: 1px solid rgb(42, 43, 70);
    border-radius: 10px;
    padding: 12px;
    display: none;
    flex-direction: column; 
    gap: 10px;  
  }

  .nav-menu.open { 
    display: flex; 
  }

  .nav-menu a {
    padding: 8px 10px;
    border-radius: 8px;
  }

  .nav-menu a:hover { 
    background: var(--neon-pink); 
  }
}

/* ---------------------------------
   Hero
---------------------------------- */
.hero {
  position: relative;
  padding: 50px 0 100px;
}

.hero-inner {
  display: grid; 
  gap: 36px;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner { 
    grid-template-columns: 1fr; 
  }
}

.glow-title {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(22px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: 1px;
  color: white;
  text-shadow:
    0 0 6px rgba(255,60,172,.6),
    0 0 20px rgba(43,210,255,.35),
    0 0 34px rgba(120,75,160,.35);
}

.role {
  font-family: Orbitron, sans-serif;
  color: var(--neon-cyan);
  text-shadow: var(--glow);
  font-weight: 700;
  margin: 12px 0 6px;
}

.tagline { 
  color: var(--text); 
  max-width: 56ch; 
}

.cta-row { 
  display: flex; 
  gap: 16px; 
  margin-top: 32px;
}

/* ---------------------------------
   Buttons and hoverings
---------------------------------- */
.btn {
  display: inline-block; 
  text-decoration: none;
  border: 1px solid rgb(42, 43, 70); 
  border-radius: 10px;
  padding: 10px 16px; 
  font-weight: 700;
  color: var(--text); 
  background: rgb(24, 26, 49);
}

.btn:hover {
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
  transform: translateY(-1px);
  color: rgb(10, 11, 19);
}

/* ---------------------------------
   Profile image
---------------------------------- */
.hero-image-wrap { 
  position: relative; 
  max-width: 250px; 
  justify-self: end;
}

@media (max-width: 900px) { 
  .hero-image-wrap {
    justify-self: start; /* align left on small screens */
  } 
}

.hero-image {
  border-radius: 50%; 
  border: 3px solid rgba(255,60,172,.6);
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
}

.neon-frame {
  position: absolute; 
  inset: -20px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(255,60,172,.35), rgba(43,210,255,.35));
  filter: blur(16px); 
  z-index: -1;
}

/* ---------------------------------
   80s style grid floor
---------------------------------- */
.grid-floor {
  position: absolute; 
  left: 0; 
  right: 0; 
  bottom: -2px; 
  height: 200px;
  background:
    linear-gradient(to top, rgba(5, 30, 155, 0.458), rgba(6, 14, 122, 0.23) 60%),   /* fade to top */
    repeating-linear-gradient(rgb(220, 10, 237) 0 2px, transparent 2px 25px),                   /* horizontal lines (rows) */
    repeating-linear-gradient(90deg, rgb(220, 10, 237) 0 2px, transparent 2px 80px);            /* vertical lines (columns) */
  transform: perspective(200px) rotateX(60deg);
  transform-origin: bottom;
  border-right: 1px solid rgb(220, 10, 237);
}

/* Sections */
.section { 
  padding: 75px 0; 
  background: var(--panel-alt); 
  border-top: 1px solid rgb(28, 29, 50); 
}

.section.alt { 
  background: var(--panel); 
}

.section-title {
  font-family: Orbitron, sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  margin: 0 0 20px;
  color: var(--neon-cyan); 
  text-shadow: var(--glow);
}

.lead { 
  color: var(--text); 
}

/* ---------------------------------
   About
---------------------------------- */
.two-col {
  display: grid; 
  gap: 28px; 
  grid-template-columns: 1.2fr .8fr;
}

@media (max-width: 900px) { 
  .two-col { 
    grid-template-columns: 1fr; 
  } 
}

/* Info */
.info {
  background: rgb(21, 22, 51);
  border: 1px solid rgb(42, 43, 70);
  border-radius: 12px;
  padding: 16px;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.info-list a {
  color: var(--neon-pink);
  text-decoration: none;
  font-weight: 600;
}

.info-list a:hover {
  color: var(--neon-cyan);
  text-shadow: var(--glow);
}

/* About cards */
.about-cards {
  list-style: none; 
  margin: 0; 
  padding: 0; 
  display: grid; 
  gap: 16px;
}

.about-cards li {
  background: rgb(21, 22, 51); 
  border: 1px solid rgb(42, 43, 70); 
  border-radius: 12px;
  padding: 16px;
}

.about-cards h3 {
  margin: 0 0 8px; 
  font-family: Orbitron, sans-serif; 
  color: var(--neon-pink);
}

/* ---------------------------------
   Projects
---------------------------------- */
.projects-grid {
  display: grid; 
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1100px) { 
  .projects-grid { 
    grid-template-columns: repeat(2, 1fr); 
  } 
}
@media (max-width: 720px) { 
  .projects-grid { 
    grid-template-columns: 1fr; 
  } 
}

/* Project cards */
.card {
  background: rgb(21, 22, 51); 
  border: 1px solid rgb(42, 43, 70); 
  border-radius: 14px; 
  overflow: hidden;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(255,60,172,.12), 0 6px 22px rgba(43,210,255,.12);
  border-color: rgb(58, 60, 104);
}

.card img { 
  aspect-ratio: 16/9; 
  object-fit: cover; 
}

.card-body { 
  padding: 14px; 
}

.card-body h3 { 
  margin: 6px 0 8px; 
  font-family: Orbitron, sans-serif;
}

.card-body p { 
  margin: 0 0 10px; 
  color: var(--muted); 
}

/* Tech chips */
.chips { 
  display: flex; 
  gap: 8px; 
  flex-wrap: wrap; 
  margin-bottom: 10px; 
}

.chip {
  background: rgb(27, 29, 61); 
  border: 1px solid rgb(42, 43, 70); 
  border-radius: 20px;
  padding: 4px 10px; 
  font-size: .85rem; 
  color: var(--muted);
}

/* Live / Code buttons */
.card-actions { 
  display: flex; 
  gap: 10px; 
}

/* ---------------------------------
   Skills list (pills)
---------------------------------- */
.skill-list {
  display: flex; 
  flex-wrap: wrap; 
  gap: 10px; 
  list-style: none; 
  margin: 0; 
  padding: 0;
}

.skill {
  background: linear-gradient(90deg, rgba(255,60,172,.15), rgba(43,210,255,.15));
  border: 1px solid rgb(42, 43, 70); 
  border-radius: 999px;
  padding: 8px 16px; 
  font-weight: 600;
}

/* ---------------------------------
   Contact form
---------------------------------- */
.narrow { 
  width: min(100% - 32px, 760px); 
}

.contact-form {
  display: grid; 
  gap: 16px; 
  margin-top: 10px;
}


/* Two-column grid for inputs on desktop */
.contact-form .grid {
  display: grid; 
  gap: 16px; 
  grid-template-columns: 1fr 1fr;
}

.contact-form label { 
  display: grid; 
  gap: 8px; 
}

/* Checkbox */
.contact-form label.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: none;
  accent-color: var(--neon-pink);
  cursor: pointer;
}

.contact-form label.checkbox-field span {
  display: inline-block;
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
}

.contact-form select {
  background: rgb(17, 18, 37);
  color: var(--text);
  border: 1px solid rgb(42, 43, 70);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}

@media (max-width: 700px) {
  .contact-form .grid { 
    grid-template-columns: 1fr; 
  }
}

/* Inputs and textarea */
.contact-form input, .contact-form textarea {
  background: rgb(17, 18, 37); 
  color: var(--text);
  border: 1px solid rgb(42, 43, 70); 
  border-radius: 10px;
  padding: 10px 12px; 
  outline: none;
}

.contact-form input:focus, .contact-form textarea:focus {
  border-color: rgb(58, 60, 104); 
  box-shadow: var(--glow);
}

.contact-form .full { 
  grid-column: 1 / -1; 
}

.contact-note { 
  color: var(--muted); 
  margin-top: 12px;
}

.contact-note a {
  color: var(--neon-pink);
  text-decoration: none;
  font-weight: 600;
}

.contact-note a:hover {
  color: var(--neon-cyan);
  text-shadow: var(--glow);
}

/* Mail symbol */
.material-symbols-outlined {
  display: inline-flex;
  vertical-align: middle;
  margin: 0 4px;
  color: var(--muted);
  font-size: 1.1em;
}

/* ---------------------------------
   Footer
---------------------------------- */
.site-footer {
  border-top: 1px solid #1c1d32;
  background: #0a0b13; 
  padding: 18px 0;
}

.footer-inner {
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 16px;
  color: var(--muted); 
}

.footer-inner a { 
  color: var(--muted); 
  text-decoration: none;
}

.socials {
  display: flex;
  gap: 16px;
}

.footer-inner a:hover { 
  color: var(--text); 
  text-shadow: var(--glow); 
}

@media (max-width: 700px) {
  .footer-inner { 
    flex-direction: column; 
    text-align: center; 
  }
}