/* Back to Top button styles */
.back-to-top {
  background: linear-gradient(90deg, #8e2de2 0%, #4a00e0 100%);
  color: white;
  padding: 0.6em 1.5em;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin: 2rem auto 1.5rem auto;
  display: block;
  box-shadow: 0 2px 12px rgba(72,0,224,0.10);
  transition: transform 0.15s, box-shadow 0.15s;
}
.back-to-top:hover, .back-to-top:focus {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 20px rgba(142,45,226,0.18);
  outline: none;
}
:root{
  --bg: #0b0f14;
  --surface: #0f1720;
  --card: #0b1220;
  --text: #e6eef6;
  --muted: #98a4b0;
  --accent: #7dd3fc;
  --accent-2: #a78bfa;
  --control-bg: rgba(255,255,255,0.06);
  --control-fg: #fff;
}

/* Base page styles (dark theme) */
html,body{height:100%;}
body{
  margin:0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: linear-gradient(180deg, #061018 0%, var(--bg) 100%);
  color: var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
  padding: 1rem 1.25rem;
}

a{ color: var(--accent); }
a:visited{ color: var(--accent-2); }

/* Animated header gradient tuned for dark background */
header h1 {
  font-family: 'B612', sans-serif;
  font-size: 3.5rem; /* increased size for stronger header presence */
    font-weight: 700;
    text-align: center;
    background: linear-gradient(90deg, #7dd3fc 0%, #a78bfa 33%, #f472b6 66%, #ffd166 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite, fadeInOut 6s ease-in-out infinite;
}

/* Add this to your CSS file */
h2 {
  background: linear-gradient(90deg, #8e2de2 0%, #4a00e0 100%);
  color: white;
  padding: 0.5em 1em;
  border-radius: 6px;
  display: inline-block;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    header h1 { animation: none; opacity:1; background-position:50% 50%; }
}

/* Carousel styles (dark-adjusted) */
.carousel {
  position: relative;
  max-width: 640px; /* reduced size */
  margin: 1.5rem auto;
  padding: 0.25rem;
  background: transparent;
  /* expose a variable so children can align to the carousel height */
  --carousel-height: 360px;
}
.carousel__track-container { overflow: hidden; border-radius:8px; }
.carousel__track { display:flex; transition: transform 0.5s ease; list-style:none; padding:0; margin:0; }
.carousel__slide { min-width:100%; box-sizing:border-box; padding:0.25rem; }
.carousel__slide img { display:block; width:100%; height:auto; border-radius:6px; box-shadow: 0 8px 20px rgba(2,6,23,0.65); background: var(--card); }
.carousel__button {
  position:absolute; top:50%; transform:translateY(-50%);
  background: var(--control-bg); color:var(--control-fg); border:none; padding:0.5rem 0.8rem; font-size:1.6rem; cursor:pointer; border-radius:6px;
}
.carousel__button:focus{ outline:2px solid var(--accent); }
.carousel__button--prev{ left:0.5rem; }
.carousel__button--next{ right:0.5rem; }
.carousel__nav { text-align:center; margin-top:0.5rem; }
.carousel__indicator { display:inline-block; width:10px; height:10px; margin:0 4px; background: rgba(255,255,255,0.08); border-radius:50%; cursor:pointer; }
.carousel__indicator.is-selected { background: var(--accent); box-shadow: 0 0 6px rgba(125,211,252,0.35); }

@media (max-width: 900px) { header h1 { font-size: 2.6rem; } }
@media (max-width: 600px) { .carousel{ max-width:100%; } header h1{ font-size:2.2rem; } }
@media (max-width: 800px) {
  .carousel__side{ display:none; }
}

/* Center the main name on the page */
.name {
  text-align: center;
  font-family: 'B612', sans-serif;
  font-size: 2rem;
  margin: 1.5rem 0 0.5rem 0;
  font-weight: 700;
  color: white;
  background: linear-gradient(90deg, #8e2de2 0%, #4a00e0 100%);
  padding: 0.5em 1em;
  border-radius: 6px;
  display: inline-block;
}
@media (max-width:600px){ .name{ font-size:1.6rem; } }

/* Page grid: side menu + main content */
.page-grid{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.25rem;
  align-items: start;
  max-width: 1200px;
  margin: 1rem auto;
  width: calc(100% - 2.5rem);
}
.side-menu{
  /* neon purple background */
  background: linear-gradient(180deg, #5b21b6 0%, #7c3aed 50%, #c084fc 100%);
  border-radius: 12px;
  padding: 1rem;
  /* soft outer glow matching purple */
  box-shadow: 0 8px 40px rgba(124,58,237,0.18), 0 2px 8px rgba(0,0,0,0.45);
  border: 1px solid rgba(167,139,250,0.18);
}

.side-menu__inner{ display:flex; flex-direction:column; gap:0.5rem; }
.side-menu__title{ font-size:1.05rem; margin:0 0 0.25rem 0; color:var(--text); font-weight:700; }
.side-menu__list{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:0.25rem; }
.side-menu__list a{ color:#efe6ff; text-decoration:none; padding:0.45rem 0.5rem; border-radius:8px; display:inline-block; }
.side-menu__list a:hover, .side-menu__list a:focus{ color:var(--accent-2); background: rgba(167,139,250,0.08); outline:none; }
.side-menu__subtitle{ margin-top:0.75rem; font-size:0.95rem; color: rgba(255,255,255,0.85); }
.side-menu__contact{ margin:0.25rem 0; color:var(--text); }
.side-menu__social{ list-style:none; margin:0; padding:0; display:flex; gap:0.5rem; }

.side-menu__activity{ background: rgba(255,255,255,0.01); padding:0.6rem; border-radius:8px; margin-top:0.5rem; }
.side-menu__activity-text{ margin:0 0 0.5rem 0; color:var(--muted); font-size:0.95rem; }
.side-menu__activity-more{ color:var(--accent); text-decoration:none; font-weight:600; }
.side-menu__activity-more:hover, .side-menu__activity-more:focus{ text-decoration:underline; }

/* Main content tweaks so carousel remains centered inside the main column */
.main-content{ display:flex; flex-direction:column; gap:1rem; }

/* Responsive: collapse side menu under 880px */
@media (max-width: 880px){
  .page-grid{ grid-template-columns: 1fr; width:100%; margin:0.5rem 0; }
  .side-menu{ order:2; width:100%; }
  .main-content{ order:1; }
  .site-nav__list{ justify-content:space-around; }
}

/* PC gallery (side-by-side thumbnails) */
.pc-gallery{ display:flex; gap:0.5rem; align-items:center; justify-content:flex-start; margin-top:0.5rem; }
.pc-gallery img{ width: calc((100% / 3) - 0.5rem); height: auto; border-radius:8px; box-shadow: 0 8px 18px rgba(2,6,23,0.45); object-fit:cover; }
@media (max-width:720px){ .pc-gallery{ flex-wrap:wrap; } .pc-gallery img{ width: calc(50% - 0.5rem); } }
@media (max-width:420px){ .pc-gallery img{ width:100%; } }

/* hobby images between paragraphs */
.hobby-img{ display:block; max-width:420px; width:100%; height:auto; margin:0.6rem 0 1rem 0; border-radius:8px; box-shadow: 0 8px 20px rgba(2,6,23,0.45); }
@media (min-width:900px){ .hobby-img{ max-width:520px; } }


/* Top horizontal navigation */
.site-nav{
  width:100%;
  /* neon purple tab bar to match side menu */
  background: linear-gradient(180deg, #5b21b6 0%, #7c3aed 45%, rgba(192,132,252,0.95) 100%);
  border-bottom: 1px solid rgba(167,139,250,0.12);
  position: sticky;
  top: 0;
  z-index: 60; /* keep above content */
  box-shadow: 0 6px 22px rgba(124,58,237,0.10);
  backdrop-filter: blur(6px);
}
.site-nav__list{
  list-style:none;
  margin:0;
  padding:0.5rem 1rem;
  display:flex;
  gap:1rem;
  justify-content:center;
  align-items:center;
}
.site-nav__link{
  color: #efe6ff; /* light text on purple */
  text-decoration:none;
  padding:0.6rem 1rem;
  border-radius:8px;
  font-weight:600;
}
.site-nav__link:hover,
.site-nav__link:focus{
  color: var(--accent-2);
  background: rgba(167,139,250,0.08);
  outline: none;
}
.site-nav__link.active{
  color: #fff;
  background: rgba(167,139,250,0.16);
  box-shadow: 0 8px 24px rgba(124,58,237,0.18);
}

@media (max-width:480px){
  .site-nav__list{ gap:0.25rem; padding:0.4rem; }
  .site-nav__link{ padding:0.5rem 0.6rem; font-size:0.95rem; }
}

/* Resume page photo and intro - hero centered */
.resume-header{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  min-height:80vh; /* center in viewport */
  gap:1rem;
  max-width:1000px;
  margin:0 auto;
  padding: 2rem 1rem;
}
.resume-photo{
  /* show the whole image and scale responsively */
  width: clamp(360px, 60vw, 1000px);
  height: auto; /* preserve aspect ratio, don't crop */
  object-fit: contain;
  border-radius:12px;
  box-shadow: 0 12px 36px rgba(2,6,23,0.6);
}
.resume-intro{ max-width:760px; }

@media (max-width:900px){ .resume-photo{ width: clamp(280px, 70vw, 700px); } }
@media (max-width:600px){ .resume-header{ min-height: auto; padding:1rem; } .resume-photo{ width: clamp(180px, 80vw, 400px); } }

/* Section title used on gallery page */
.section-title{
  text-align:center;
  font-family: 'B612', sans-serif;
  font-size: 2rem;
  margin: 1.25rem 0 0.5rem 0;
  color: var(--text);
  font-weight: 700;
}
@media (max-width:600px){ .section-title{ font-size:1.6rem; } }

/* Streaming banner */

.site-banner{
  /* make the banner stretch edge-to-edge (full viewport width) */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: linear-gradient(90deg, rgba(167,139,250,0.08), rgba(125,211,252,0.06));
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  overflow: hidden;
  /* increase vertical padding to make the banner about twice as tall */
  padding: 0.5rem 0;
  box-sizing: border-box;
}
.site-banner__marquee{
  display: block;
  white-space: nowrap;
  overflow: hidden;
}
.site-banner__marquee .marquee__track{
  display: inline-flex;
  align-items: center;
  will-change: transform;
  /* animate the track across its full width (faster) */
  animation: marquee-track 30s linear infinite;
}
.site-banner__marquee .marquee__inner{
  display: inline-block;
  padding-right: 2rem;
  font-weight: 800;
  color: var(--accent);
  font-family: 'B612', sans-serif;
  /* slightly larger text to match increased banner height */
  font-size: 1.25rem;
}

/* animate track from 0 -> -50% of its own width (with duplicated content this forms a seamless loop) */
@keyframes marquee-track{
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

@media (max-width:600px){ .site-banner__marquee{ font-size:0.95rem; } .site-banner__marquee .marquee__inner{ font-size:1rem; } }

@media (prefers-reduced-motion: reduce){
  .site-banner__marquee{ animation:none; }
}

/* Footer styles */
.site-footer{
  margin-top: 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.02));
  border-top: 1px solid rgba(255,255,255,0.03);
  padding: 0.9rem 1rem;
  color: var(--muted);
}
.site-footer__inner{ max-width:1200px; margin:0 auto; display:flex; gap:1rem; justify-content:space-between; align-items:center; }
.site-footer__left{ display:flex; flex-direction:column; gap:0.35rem; }
.site-footer__contact a{ color:var(--accent); text-decoration:none; }
.site-footer__copy{ margin:0; font-size:0.95rem; }

/* footer follow links */
/* footer follow list — show vertically and match footer text */
.site-footer__follow-title{ margin:0; color:var(--muted); font-family: inherit; font-weight:400; font-size:0.95rem; }
.site-footer__follow{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:0.5rem; align-items:flex-start; }
.site-footer__follow a{ color:var(--muted); text-decoration:none; padding:0.15rem 0; border-radius:6px; }
.site-footer__follow a:hover, .site-footer__follow a:focus{ color:var(--text); background: rgba(125,211,252,0.04); padding-left:0.25rem; }

@media (max-width:600px){ .site-footer__inner{ flex-direction:column; gap:0.5rem; text-align:center; } .site-footer__follow{ flex-wrap:wrap; gap:0.5rem; } }

/* zoom effect for hovered or scrolled-into sections */
.zoomable{
  transition: transform 260ms cubic-bezier(.2,.9,.2,1), box-shadow 260ms ease;
  will-change: transform;
  transform-origin: 50% 10%;
}
.zoomable:hover,
.zoomable.in-viewport{
  transform: scale(1.035);
  box-shadow: 0 18px 44px rgba(2,6,23,0.25);
  z-index: 4;
}


@media (min-width:601px){ .site-footer__inner{ align-items:flex-start; } }
