/* ------------------------------
   Final V1 Retro Resume Hub
   ------------------------------ */

/* Theme tokens / variables */
:root{
  --bg-1: #0d0b1f;
  --bg-2: #16123a;
  --ink: #f7f3ff;

  --neon-1: #7df9ff;
  --neon-2: #ff8ad4;
  --neon-3: #ffe66d;

  --panel: rgba(0, 70, 90, 0.85);
  --panel-soft: rgba(0, 120, 140, 0.60);

  --radius-big: 38px;
  --radius-med: 22px;
  --radius-small: 14px;

  --shadow-soft: 0 10px 35px rgba(0,0,0,0.45);
  --glow: 0 0 18px rgba(125,249,255,0.35),
          0 0 30px rgba(255,138,212,0.25);
}

/* ------------------------------
   Global base
   ------------------------------ */

*{
  box-sizing: border-box;
}

body{
  margin:0;
  font-family: system-ui, "Trebuchet MS", Arial, sans-serif;
  color: var(--ink);

  /* Repeating arcade background + dark overlay */
  background:
    linear-gradient(rgba(13, 11, 31, 0.65), rgba(13, 11, 31, 0.65)),
    url("images/arcade-carpet-lightning.png");
  background-size: 450px 450px;
  background-repeat: repeat;
  background-attachment: fixed;

  min-height:100vh;
  overflow-x:hidden;
}

/* Arcade-carpet speckle layer (subtle extra sparkle) */
.bg-texture{
  position: fixed;
  inset: 0;
  pointer-events:none;
  opacity:0.22;
  background:
    radial-gradient(2px 2px at 10% 20%, #ff8ad4 30%, transparent 31%),
    radial-gradient(2px 2px at 40% 70%, #7df9ff 30%, transparent 31%),
    radial-gradient(1.5px 1.5px at 70% 30%, #ffe66d 30%, transparent 31%),
    radial-gradient(1.5px 1.5px at 85% 80%, #baffc9 30%, transparent 31%);
  background-size: 120px 140px;
  mix-blend-mode: screen;
}

/* CRT scanline overlay */
.crt{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:100;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.03),
      rgba(255,255,255,0.03) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: overlay;
  opacity:0.25;
}

/* Generic indent helper */
.indent{
  display:block;
  margin-left: 2.5em;
}

/* Focus rings */
a:focus-visible,
button:focus-visible{
  outline: 3px dashed var(--neon-3);
  outline-offset: 4px;
}

/* Page entrance animation */
@keyframes pageIn{
  from{
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Neon flicker */
@keyframes neonFlicker{
  0%, 100% { text-shadow: 0 0 6px rgba(125,249,255,0.6); }
  50%      { text-shadow: 0 0 12px rgba(255,138,212,0.8); }
}

/* ------------------------------
   Main layout
   ------------------------------ */

.page{
  position: relative;
  width: min(1200px, 96vw);
  margin: clamp(16px, 3vw, 34px) auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: auto 110px;
  gap: clamp(12px, 2.5vw, 22px);
  align-items: stretch;
  animation: pageIn 0.35s ease-out;
}

/* LEFT: Organic nav cluster */
.nav-cluster{
  position: relative;
  z-index: 3;
  padding: 30px 22px 18px;
  background: var(--panel);
  border-radius: var(--radius-big);
  box-shadow: var(--shadow-soft), var(--glow);
  backdrop-filter: blur(8px);

  /* organic overlap into hero */
  transform: translate(12px, 8px) rotate(-1deg);
  margin-right: -60px;
  border-top-right-radius: 80px;
  border-bottom-right-radius: 120px;
  border: 2px solid rgba(255,255,255,0.08);
}

.site-title{
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: 0.5px;
  text-shadow: 0 2px 0 rgba(0,0,0,0.5);
}

.site-sub{
  margin: 0 0 16px;
  font-size: 0.98rem;
  opacity:0.9;
}

.side-nav{
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.nav-btn{
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration:none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 12px 14px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(75, 0, 130, 0.85), rgba(138, 43, 226, 0.60));
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow: 0 6px 0 rgba(0,0,0,0.4);
  position: relative;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  cursor:pointer;
}

.nav-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(0,0,0,0.5), var(--glow);
  filter: saturate(1.15);
  animation: neonFlicker 0.9s infinite alternate;
}

/* ------------------------------
   Hero + panels
   ------------------------------ */

.hero{
  position: relative;
  z-index:1;
  border-radius: var(--radius-big);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background:
    radial-gradient(800px circle at 70% 20%, rgba(125,249,255,0.10), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.10));
  min-height: clamp(420px, 58vh, 640px);
}

.hero-image{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  filter: contrast(1.05) saturate(1.08);
}

/* Bottom-right hero caption card */
.hero-card{
  position:absolute;
  right: clamp(14px, 2.2vw, 22px);
  bottom: 15px;
  width: min(360px, 85%);
  padding: 16px 16px;
  background: rgba(13,11,31,0.82);
  border: 2px solid rgba(255,255,255,0.10);
  border-radius: 26px;
  box-shadow: var(--shadow-soft), var(--glow);
  backdrop-filter: blur(6px);
  transform: rotate(3deg);
}

.hero-card h2{
  margin:0 0 6px;
  font-size: 1.25rem;
}
.hero-card p{
  margin:0;
  line-height:1.35;
  font-size: 0.98rem;
  opacity:0.95;
}

/* Resume panel on hero */
.resume-panel{
  position:absolute;
  left: clamp(55px, 2vw, 22px);
  top: clamp(14px, 2vw, 22px);
  width: min(420px, 90%);
  background: rgba(22,18,58,0.85);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  transform: rotate(-0.6deg);
}

.resume-panel h3{
  margin:0 0 8px;
  font-size:1.08rem;
}
.resume-panel ul{
  margin:0;
  padding-left:18px;
  line-height:1.45;
}

/* Panel used for feedback form */
.form-panel{
  position:absolute;
  left: clamp(14px, 2vw, 22px);
  top: clamp(14px, 2vw, 22px);
  width: min(520px, 95%);
  background: rgba(22,18,58,0.92);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 16px 18px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
}

/* Panel used for job table */
.table-panel{
  position:absolute;
  left: clamp(14px, 2vw, 22px);
  top: clamp(14px, 2vw, 22px);
  width: min(700px, 96%);
  background: rgba(22,18,58,0.92);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 16px 18px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
}

.table-panel h2,
.form-panel h2{
  margin: 0 0 6px;
}
.table-panel p,
.form-panel p{
  margin: 0 0 10px;
}

/* ------------------------------
   Bottom nav bar + dot buttons
   ------------------------------ */

.bottom-bar{
  grid-column: 1 / -1;
  display:flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 2vw, 16px);
  padding: 10px 12px;

  background: var(--panel);
  border-radius: 999px;
  box-shadow: var(--shadow-soft), var(--glow);
  border: 2px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(8px);

  transform: translateY(-8px);
}

/* Capsule-shaped bottom buttons */
.dot-btn{
  width: clamp(120px, 12vw, 75px);   /* wide */
  height: clamp(45px, 5vw, 60px);    /* shorter */
  border-radius: 999px;              /* pill shape */

  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;

  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.22), transparent 45%),
    linear-gradient(160deg, rgba(75, 0, 130, 0.85), rgba(138, 43, 226, 0.60));
  border: 3px solid rgba(255,255,255,0.16);
  box-shadow: 0 7px 0 rgba(0,0,0,0.45);

  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.dot-btn:hover{
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 0 rgba(0,0,0,0.5), var(--glow);
  filter: saturate(1.2);
  animation: neonFlicker 0.9s infinite alternate;
}

.dot-btn.active{
  outline: 3px solid rgba(255,230,109,0.9);
  box-shadow: 0 0 20px rgba(255,230,109,0.6), 0 9px 0 rgba(0,0,0,0.5);
  transform: translateY(-2px) scale(1.05);
}

.dot-label{
  font-size: 0.85rem;
  text-align:center;
  text-shadow: 0 2px 0 rgba(0,0,0,0.6);
  padding: 0 6px;
}

/* ------------------------------
   Forms (feedback, etc.)
   ------------------------------ */

.feedback-form{
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.feedback-form label{
  display:block;
  margin-top:10px;
  font-size:0.95rem;
  font-weight:600;
}

.feedback-form input[type="text"],
.feedback-form input[type="email"],
.feedback-form select,
.feedback-form textarea{
  width: 100%;
  margin-top:4px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.25);
  font:inherit;
  background: rgba(13,11,31,0.9);
  color: var(--ink);
}

.feedback-form textarea{
  resize: vertical;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus{
  outline:2px solid var(--neon-1);
  outline-offset:2px;
}

.checkbox-row{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.feedback-submit,
.primary-btn{
  margin-top:14px;
  width:100%;
  padding:10px 14px;
  border-radius:999px;
  border:none;
  font-weight:800;
  cursor:pointer;
  background:
    linear-gradient(180deg, rgba(125,249,255,0.20), rgba(255,138,212,0.4));
  color: var(--ink);
  box-shadow: 0 6px 0 rgba(0,0,0,0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.feedback-submit:hover,
.primary-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(0,0,0,0.5), var(--glow);
}

/* ------------------------------
   Tables (jobs, etc.)
   ------------------------------ */

.job-table,
.styled-table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.95rem;
}

.job-table th,
.job-table td,
.styled-table th,
.styled-table td{
  padding: 8px 10px;
  text-align: left;
}

.job-table thead,
.styled-table thead{
  background: rgba(125,249,255,0.18);
}

.job-table tbody tr:nth-child(even),
.styled-table tbody tr:nth-child(even){
  background: rgba(255,255,255,0.03);
}

.job-table th,
.styled-table th{
  font-weight: 700;
}

.job-table td,
.styled-table td{
  border-top: 1px solid rgba(255,255,255,0.08);
}

.styled-table caption{
  caption-side: bottom;
  padding-top: 6px;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ------------------------------
   Modals (about, contact, gallery, recognition)
   ------------------------------ */

.modal{
  position: fixed;
  inset:0;
  background: rgba(0,0,0,0.55);
  display:grid;
  place-items:center;
  z-index: 99;
}

.modal[hidden]{
  display:none;
}

.modal-card{
  width: min(560px, 92vw);
  background: rgba(22,18,58,0.95);
  padding: 18px 18px 14px;
  border-radius: 26px;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  position: relative;
}

/* Wider / scrollable modal (gallery, big content) */
.modal-card-wide,
.modal-card-photo{
  max-height: 90vh;
  max-width: 700px;
  overflow-y: auto;
}

.modal-close{
  position:absolute;
  top:10px;
  right:12px;
  background:transparent;
  border:none;
  color:white;
  font-size: 20px;
  cursor:pointer;
}

/* ------------------------------
   Gallery layouts
   ------------------------------ */

/* Split layout: main image + thumbs (if used) */
.gallery-layout{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

/* Main display area */
.gallery-main{
  background: rgba(13,11,31,0.9);
  border-radius: 20px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vertical column of thumbs */
.gallery-thumbs{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-thumb{
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.gallery-thumb img{
  display: block;
  width: 100%;
  height: auto;
}

.gallery-thumb:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.7);
  filter: saturate(1.1);
}

/* Simple 3-column grid of clickable images */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.gallery-grid-img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.gallery-grid-img:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.7);
}

/* Recognition / headshot images inside modals */
.recognition-image,
.headshot-image{
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  margin: 10px auto 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* Shared caption style */
.caption{
  font-size: 0.95rem;
  opacity: 0.9;
  text-align: center;
}

/* ------------------------------
   Misc components (podcast list, etc.)
   ------------------------------ */

.podcast-list{
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
}

.podcast-list li{
  margin: 6px 0;
  line-height: 1.4;
}

.podcast-list a{
  color: var(--neon-1);
  text-decoration: underline;
  font-weight: 600;
}

.podcast-list a:hover{
  color: var(--neon-2);
}

/* ------------------------------
   Responsive tweaks
   ------------------------------ */

@media (max-width: 898px){
  .page{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 110px;
  }

  .nav-cluster{
    transform: none;
    margin-right: 0;
    border-radius: var(--radius-big);
  }

  .hero{
    min-height: 46vh;
  }

  .bottom-bar{
    transform: none;
    border-radius: var(--radius-big);
    flex-wrap: wrap;
    padding: 12px;
  }
}

@media (max-width: 800px){
  .gallery-layout{
    grid-template-columns: 1fr;
  }
}

