/* ============================================================
   VINEIN // OS  —  SECTIONS STYLESHEET
   sections.css  →  about · portfolio · stats · skills · resume · contact · music · footer
   ============================================================ */

/* ---------- shared HUD card ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .35s, box-shadow .35s, transform .35s var(--ease), background .35s;
}
.card::before, .card::after { content: ''; position: absolute; width: 14px; height: 14px;
  border: 2px solid var(--red); opacity: 0; transition: opacity .35s; }
.card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.card::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.card:hover { border-color: var(--red-line); transform: translateY(-4px);
  box-shadow: 0 24px 60px -30px var(--red-glow); }
.card:hover::before, .card:hover::after { opacity: 1; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 360px 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

.about-figure { position: relative; }
.about-portrait { position: relative; border: 1px solid var(--red-line); overflow: hidden; background: #000;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 92% 100%, 0 100%); }
.about-portrait img { width: 100%; display: block; filter: contrast(1.05); transition: transform .6s var(--ease); }
.about-figure:hover .about-portrait img { transform: scale(1.04); }
.about-portrait .scan { position: absolute; left: 0; right: 0; height: 36%; top: -36%;
  background: linear-gradient(180deg, transparent, rgba(255,45,45,.18), transparent);
  animation: holoscan 4s var(--ease) infinite; }
@keyframes holoscan { 0%{top:-36%} 100%{top:100%} }
.about-figure .a-corner { position: absolute; width: 26px; height: 26px; border: 2px solid var(--red); z-index: 3; }
.about-figure .a-corner.tl { top: -7px; left: -7px; border-right: 0; border-bottom: 0; }
.about-figure .a-corner.tr { top: -7px; right: -7px; border-left: 0; border-bottom: 0; }
.about-label { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; color: var(--dim); }
.about-label .on { color: var(--red); display: inline-flex; align-items: center; gap: .4rem; }
.about-label .on::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 8px var(--red); animation: blink 1.2s steps(2) infinite; }

.about-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  color: var(--white); line-height: 1.25; letter-spacing: .01em; }
.about-bio { color: var(--light); font-size: 1.12rem; margin-top: 1.25rem; text-wrap: pretty; }
.about-sub { color: var(--muted); margin-top: 1rem; text-wrap: pretty; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: 2rem 0; }
.info-card { position: relative; padding: .9rem 1.1rem; background: var(--bg-2); border: 1px solid var(--line);
  border-left: 2px solid var(--red-line); transition: border-color .3s, background .3s; }
.info-card:hover { border-left-color: var(--red); background: var(--surface); }
.info-label { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dim); margin-bottom: .25rem; }
.info-value { font-size: 1.02rem; font-weight: 600; color: var(--light); }
.info-value a { word-break: break-word; }
.status-available { color: var(--red); display: inline-flex; align-items: center; gap: .4rem; }
.status-available::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 8px var(--red); animation: blink 1.2s steps(2) infinite; }
.about-extra { color: var(--muted); }
.about-extra strong { color: var(--light); }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.project-card { position: relative; display: block; padding: 2rem 1.6rem; min-height: 230px;
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 86% 100%, 0 100%);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; }
.project-card .glow { position: absolute; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, var(--red-soft), transparent 70%);
  top: -60px; right: -60px; opacity: 0; transition: opacity .45s; filter: blur(6px); }
.project-card:hover { transform: translateY(-6px); border-color: var(--red-line);
  box-shadow: 0 30px 70px -34px var(--red-glow); }
.project-card:hover .glow { opacity: 1; }
.project-icn { width: 76px; height: 76px; display: grid; place-items: center; background: var(--bg-2);
  border: 1px solid var(--line); margin-bottom: auto; transition: border-color .4s; }
.project-card:hover .project-icn { border-color: var(--red); }
.project-icn img { width: 48px; height: 48px; object-fit: contain; }
.project-card .p-name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--white); margin-top: 1.6rem; letter-spacing: .02em; }
.project-card .p-go { display: inline-flex; align-items: center; gap: .5rem; margin-top: .5rem;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; color: var(--red);
  opacity: .65; transition: gap .3s, opacity .3s; }
.project-card:hover .p-go { gap: .9rem; opacity: 1; }
.project-card .p-num { position: absolute; top: 1.2rem; right: 1.4rem; font-family: var(--font-mono);
  font-size: .68rem; color: var(--dim); letter-spacing: .1em; }

/* ============================================================
   STATS
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.stat-card { position: relative; text-align: center; padding: 2.6rem 1.5rem; background: var(--surface);
  border: 1px solid var(--line); overflow: hidden;
  clip-path: polygon(0 0, 96% 0, 100% 18%, 100% 100%, 4% 100%, 0 82%);
  transition: border-color .35s, transform .35s var(--ease), box-shadow .35s; }
.stat-card:hover { border-color: var(--red-line); transform: translateY(-5px);
  box-shadow: 0 24px 60px -34px var(--red-glow); }
.stat-icon { font-size: 1.6rem; color: var(--red); margin-bottom: 1rem; filter: drop-shadow(0 0 12px var(--red-glow)); }
.stat-number { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.6rem, 7vw, 4rem);
  color: var(--white); line-height: 1; text-shadow: 0 0 30px var(--red-glow); }
.stat-number .plus { color: var(--red); }
.stat-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-top: .8rem; }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 3rem; }
.skill-item { }
.skill-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .55rem; }
.skill-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--light); letter-spacing: .02em; }
.skill-level { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; color: var(--red); text-transform: uppercase; }
.skill-bar { height: 7px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; position: relative; }
.skill-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--red-deep), var(--red));
  box-shadow: 0 0 14px var(--red-glow); transition: width 1.2s var(--ease); position: relative; }
.skill-fill::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 14px;
  background: var(--red-bright); box-shadow: 0 0 10px 2px var(--red); }

.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.tool-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: .9rem;
  padding: 1.8rem 1rem; background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.tool-card .glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, var(--red-dim), transparent 70%);
  opacity: 0; transition: opacity .4s; }
.tool-card:hover { transform: translateY(-5px); border-color: var(--red-line);
  box-shadow: 0 22px 50px -30px var(--red-glow); }
.tool-card:hover .glow { opacity: 1; }
.tool-card img { width: 50px; height: 50px; object-fit: contain; position: relative;
  filter: grayscale(40%); transition: filter .35s, transform .35s var(--ease); }
.tool-card:hover img { filter: grayscale(0); transform: scale(1.08); }
.tool-card span { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; color: var(--muted); position: relative; }

/* ============================================================
   RESUME  /  CONSTELLATION TIMELINE
   ============================================================ */
.resume-summary { margin-bottom: 4rem; }
.summary-card { position: relative; padding: 2.2rem; background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--red); }
.resume-h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--white);
  letter-spacing: .02em; margin-bottom: .6rem; }
.summary-card p { color: var(--muted); text-wrap: pretty; }
.summary-card ul { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.4rem; }
.summary-card li { display: flex; align-items: center; gap: .6rem; color: var(--light); font-size: .98rem; }
.summary-card li i { color: var(--red); }

.constellation { position: relative; padding: 1rem 0; }
.constellation-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(var(--red-line), var(--red), var(--red-line)); transform: translateX(-50%); }
.constellation-line::before { content: ''; position: absolute; left: 50%; top: 0; width: 3px; height: 64px;
  background: var(--red); box-shadow: 0 0 14px var(--red); transform: translateX(-50%);
  animation: pulse-down 3s var(--ease) infinite; }
@keyframes pulse-down { 0%{top:0;opacity:0} 12%{opacity:1} 88%{opacity:1} 100%{top:100%;opacity:0} }

.node { position: relative; width: 50%; padding: 1.5rem 2.5rem; margin-bottom: 1.5rem; }
.node-left { left: 0; text-align: right; }
.node-right { left: 50%; }
.node-dot { position: absolute; top: 2.4rem; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--red); box-shadow: 0 0 0 4px var(--bg), 0 0 16px var(--red-glow); z-index: 2; }
.node-left .node-dot { right: -8px; }
.node-right .node-dot { left: -8px; }
.node-card { position: relative; padding: 1.6rem 1.8rem; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .35s, box-shadow .35s, transform .35s var(--ease); }
.node-card:hover { border-color: var(--red-line); transform: translateY(-3px); box-shadow: 0 20px 50px -30px var(--red-glow); }
.node-date { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; color: var(--red);
  text-transform: uppercase; margin-bottom: .6rem; }
.node-location { color: var(--dim); font-size: .9rem; font-family: var(--font-mono); margin-bottom: .7rem; }
.node-card p { color: var(--muted); text-wrap: pretty; }
.node-card ul { margin-top: .6rem; }
.node-card li { color: var(--muted); padding-left: 1.1rem; position: relative; margin-bottom: .35rem; }
.node-card li::before { content: '▸'; position: absolute; left: 0; color: var(--red); }
.node-card strong { color: var(--light); }
.node-left .node-card li { text-align: left; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.5rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-card { position: relative; padding: 1.6rem 1.8rem; background: var(--surface); border: 1px solid var(--line);
  border-left: 2px solid var(--red-line); transition: border-color .3s, transform .3s var(--ease); }
.contact-card:hover { border-left-color: var(--red); transform: translateX(4px); }
.contact-icon { font-size: 1.3rem; color: var(--red); margin-bottom: .8rem; filter: drop-shadow(0 0 10px var(--red-glow)); }
.contact-card p { color: var(--muted); word-break: break-word; }

.form-inner { position: relative; padding: 2.2rem; background: var(--surface); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { position: relative; margin-bottom: 1.8rem; }
.form-group input, .form-group textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line);
  color: var(--white); font-family: var(--font-body); font-size: 1.05rem; padding: 1rem .9rem; resize: vertical;
  transition: border-color .3s, box-shadow .3s; }
.form-group textarea { min-height: 150px; }
.form-group label { position: absolute; left: .9rem; top: 1rem; font-family: var(--font-mono); font-size: .9rem;
  color: var(--dim); pointer-events: none; transition: transform .25s var(--ease), color .25s, font-size .25s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red), 0 0 26px -8px var(--red-glow); }
.form-group input:focus + label, .form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label, .form-group textarea:not(:placeholder-shown) + label {
  transform: translateY(-2.05rem) translateX(-.3rem); font-size: .66rem; letter-spacing: .14em; color: var(--red); }
.form-status { font-family: var(--font-mono); font-size: .82rem; margin-top: 1rem; min-height: 1.2em; color: var(--red); }

/* ============================================================
   MUSIC / STAGE
   ============================================================ */
.spotify-green { color: #1db954; font-weight: 700; }
.stage { position: relative; padding: 3rem 0 1rem; overflow: hidden; }
.stage-lights { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.spotlight { position: absolute; top: -10%; width: 220px; height: 120%; transform-origin: top center;
  background: linear-gradient(180deg, var(--red-soft), transparent 70%); filter: blur(14px); opacity: .5; }
.spot-1 { left: 12%; animation: sway 7s ease-in-out infinite; }
.spot-2 { left: 38%; animation: sway 6s ease-in-out infinite reverse; }
.spot-3 { right: 30%; animation: sway 8s ease-in-out infinite; }
.spot-4 { right: 8%;  animation: sway 5.5s ease-in-out infinite reverse; }
@keyframes sway { 0%,100%{transform:rotate(-10deg)} 50%{transform:rotate(10deg)} }
.playlists-grid { position: relative; z-index: 2; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.playlist-card { position: relative; padding: .55rem; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .35s, box-shadow .35s, transform .35s var(--ease); }
.playlist-card:hover { border-color: var(--red-line); transform: translateY(-4px);
  box-shadow: 0 24px 60px -32px var(--red-glow); }
.playlist-card iframe { display: block; width: 100%; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer { position: relative; padding: 4rem 0 2.5rem; background: var(--bg-2); border-top: 1px solid var(--line); overflow: hidden; }
#footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent); }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; color: var(--white); }
.footer-brand p { color: var(--muted); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; margin-top: .3rem; }
.footer-socials { display: flex; gap: .6rem; }
.footer-socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-2);
  color: var(--muted); transition: color .25s, border-color .25s, transform .25s var(--ease); }
.footer-socials a:hover { color: var(--red); border-color: var(--red); transform: translateY(-3px); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
.footer-bottom p { color: var(--dim); font-size: .85rem; }
.footer-bottom strong { color: var(--light); }

/* ---------- Scroll-to-top ---------- */
.scroll-top { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 900; width: 48px; height: 48px;
  display: grid; place-items: center; background: var(--surface); border: 1px solid var(--red-line); color: var(--red);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, visibility .3s, transform .3s var(--ease), box-shadow .3s;
  clip-path: polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px); }
.scroll-top.show { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { box-shadow: 0 0 0 1px var(--red), 0 10px 30px -10px var(--red-glow); transform: translateY(-3px); }

/* ---------- Sound toggle ---------- */
.sound-toggle { position: fixed; left: 1.4rem; bottom: 1.4rem; z-index: 900; width: 48px; height: 48px;
  display: grid; place-items: center; background: var(--surface); border: 1px solid var(--red-line); color: var(--red);
  font-size: .95rem; transition: color .25s, border-color .25s, box-shadow .25s, transform .25s var(--ease);
  clip-path: polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px); }
.sound-toggle:hover { box-shadow: 0 0 0 1px var(--red), 0 10px 30px -10px var(--red-glow); transform: translateY(-3px); }
.sound-toggle.muted { color: var(--dim); border-color: var(--line-2); }
.sound-toggle::after { content: ''; position: absolute; top: -5px; right: -5px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); opacity: 1; transition: opacity .25s; }
.sound-toggle.muted::after { opacity: 0; }
