/* ═══════════════════════════════════════════
   THANASIS KOUFOS — PORTFOLIO
   style.css
═══════════════════════════════════════════ */

:root {
  --bg:     #060810;
  --bg2:    #080c18;
  --neon:   #00f5c8;
  --neon2:  #7b2fff;
  --neon3:  #ff3c6f;
  --text:   #e8eaf6;
  --muted:  #5a6080;
  --card:   rgba(255,255,255,0.03);
  --border: rgba(0,245,200,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  overflow: hidden;
  cursor: none;
}

/* ── Custom Cursor ── */
#cursor {
  position: fixed; width: 10px; height: 10px;
  border-radius: 50%; background: var(--neon);
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .15s, height .15s, background .15s;
  mix-blend-mode: screen;
}
#cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--neon);
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0.4;
  transition: width .2s, height .2s, opacity .2s;
}

/* ── Noise overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1; opacity: 0.35;
}

/* ── Scanlines ── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,245,200,0.015) 2px, rgba(0,245,200,0.015) 4px
  );
  pointer-events: none; z-index: 2;
}

/* ── Ambient blobs ── */
.blob {
  position: fixed; border-radius: 50%;
  filter: blur(80px); pointer-events: none; z-index: 3; opacity: 0.15;
}
.blob-1 { width: 500px; height: 500px; background: var(--neon2); top: -150px; right: -100px; }
.blob-2 { width: 400px; height: 400px; background: var(--neon); bottom: -100px; left: -80px; opacity: 0.08; }
.blob-3 { width: 300px; height: 300px; background: var(--neon3); bottom: 100px; right: 200px; opacity: 0.10; }

/* ── Progress line ── */
#progress-line {
  position: fixed; top: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--neon2));
  box-shadow: 0 0 10px var(--neon);
  z-index: 200; transition: width .5s cubic-bezier(.4,0,.2,1);
  width: 0;
}

/* ── Logo ── */
#logo {
  position: fixed; left: 36px; top: 36px;
  font-family: 'Space Mono', monospace; font-size: 13px;
  color: var(--neon); z-index: 100; letter-spacing: 0.2em;
  text-transform: uppercase;
}
#logo::before { content: '> '; }

/* ── Section counter ── */
#section-counter {
  position: fixed; left: 36px; bottom: 36px;
  font-family: 'Space Mono', monospace; font-size: 11px;
  color: var(--muted); z-index: 100; letter-spacing: 0.15em;
}
#section-counter span { color: var(--neon); }

/* ── Page view counter ── */
#pageview-badge {
  position: fixed; left: 36px; bottom: 64px;
  font-family: 'Space Mono', monospace; font-size: 10px;
  color: var(--muted); z-index: 100; letter-spacing: 0.12em;
}
#pageview-badge span { color: var(--neon2); }

/* ── Nav dots ── */
#nav-dots {
  position: fixed; right: 36px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 14px; z-index: 100;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted); cursor: pointer;
  transition: background .3s, transform .3s, box-shadow .3s;
  position: relative;
}
.dot::after {
  content: attr(data-label);
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-family: 'Space Mono', monospace; font-size: 10px;
  color: var(--neon); opacity: 0; white-space: nowrap;
  transition: opacity .2s; letter-spacing: 0.1em;
}
.dot:hover::after, .dot.active::after { opacity: 1; }
.dot.active {
  background: var(--neon);
  box-shadow: 0 0 12px var(--neon), 0 0 24px rgba(0,245,200,0.4);
  transform: scale(1.4);
}
.dot:hover { background: var(--neon); transform: scale(1.2); }

/* ── Nav arrows ── */
.nav-arrow {
  position: fixed; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(0,245,200,0.04);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 100; color: var(--neon);
  font-size: 18px; transition: all .3s;
}
.nav-arrow:hover {
  background: rgba(0,245,200,0.15); border-color: var(--neon);
  box-shadow: 0 0 20px rgba(0,245,200,0.3);
}
#arrow-up   { top: 24px; }
#arrow-down { bottom: 24px; }

/* ══════════════════════════════════════
   SECTIONS
══════════════════════════════════════ */
.section {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
  z-index: 10; transform: translateY(40px);
  padding: 60px 80px;
}
.section.active  { opacity: 1; pointer-events: all; transform: translateY(0); }
.section.exit-up { opacity: 0; transform: translateY(-40px); }
.section.exit-down { opacity: 0; transform: translateY(40px); }

/* stagger children on enter */
.section.active .stagger > * {
  animation: fadeUp 0.5s cubic-bezier(.4,0,.2,1) both;
}
.section.active .stagger > *:nth-child(1) { animation-delay: 0.05s; }
.section.active .stagger > *:nth-child(2) { animation-delay: 0.12s; }
.section.active .stagger > *:nth-child(3) { animation-delay: 0.19s; }
.section.active .stagger > *:nth-child(4) { animation-delay: 0.26s; }
.section.active .stagger > *:nth-child(5) { animation-delay: 0.33s; }
.section.active .stagger > *:nth-child(6) { animation-delay: 0.40s; }
.section.active .stagger > *:nth-child(7) { animation-delay: 0.47s; }
.section.active .stagger > *:nth-child(8) { animation-delay: 0.54s; }
.section.active .stagger > *:nth-child(9) { animation-delay: 0.61s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Shared typography ── */
.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 0.35em;
  color: var(--neon); text-transform: uppercase;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before { content: '//'; color: var(--muted); }

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 24px;
}

/* ── Neon-stroke word (like "digital", "Tools", "Projects") ── */
.neon-word {
    color: var(--neon);
  text-shadow: 0 0 30px rgba(0,245,200,0.5);
  font-style: normal;
}

/* ── Buttons ── */
.btn-primary {
  padding: 12px 32px; background: var(--neon);
  color: var(--bg); font-family: 'Space Mono', monospace;
  font-size: 12px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; border: none; cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: all .3s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover {
  background: var(--bg); color: var(--neon);
  box-shadow: 0 0 30px rgba(0,245,200,0.5);
  outline: 1px solid var(--neon);
}
.btn-ghost {
  padding: 12px 32px; background: transparent;
  color: var(--neon); font-family: 'Space Mono', monospace;
  font-size: 12px; letter-spacing: 0.15em;
  text-transform: uppercase; border: 1px solid var(--border);
  cursor: pointer; transition: all .3s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost:hover {
  border-color: var(--neon); background: rgba(0,245,200,0.07);
  box-shadow: 0 0 20px rgba(0,245,200,0.2);
}

/* ══════════════════════════════════════
   SECTION 1 — HERO
══════════════════════════════════════ */
#s-hero {
  flex-direction: column; align-items: flex-start;
  max-width: 900px; margin: 0 auto;
}

.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: 0.3em;
  color: var(--neon); text-transform: uppercase;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before {
  content: ''; width: 40px; height: 1px;
  background: var(--neon); box-shadow: 0 0 8px var(--neon);
}

/* Hero name — "Thanasis" gets the neon-stroke treatment */
.hero-name {
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 800; line-height: 0.95;
  letter-spacing: -0.03em; margin-bottom: 8px;
}
.hero-name .neon-word {
  font-size: inherit;
  display: inline;
  color: var(--neon);
  text-shadow: 0 0 40px rgba(0,245,200,0.5);
  animation: neon-pulse 3s ease-in-out infinite;
}

@keyframes neon-pulse {
  0%, 100% { text-shadow: 0 0 20px rgba(0,245,200,0.25); }
  50%       { text-shadow: 0 0 50px rgba(0,245,200,0.5), 0 0 80px rgba(0,245,200,0.2); }
}

.hero-title {
  font-family: 'Space Mono', monospace;
  font-size: clamp(14px, 2vw, 20px);
  color: var(--muted); margin-bottom: 36px;
}
.typewriter::after {
  content: '|'; color: var(--neon);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-desc {
  font-size: 16px; line-height: 1.7;
  color: rgba(232,234,246,0.65); max-width: 540px; margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ══════════════════════════════════════
   SECTION 2 — ABOUT
══════════════════════════════════════ */
#s-about {
  gap: 80px; align-items: center;
  max-width: 1100px; margin: 0 auto; width: 100%;
}
.about-left, .about-right { flex: 1; }

.about-text {
  font-size: 15px; line-height: 1.8;
  color: rgba(232,234,246,0.65); margin-bottom: 20px;
}

.info-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-top: 28px;
}
.info-item {
  padding: 14px 16px; background: var(--card);
  border: 1px solid var(--border); border-left: 2px solid var(--neon);
  transition: all .3s;
}
.info-item:hover { background: rgba(0,245,200,0.05); border-color: var(--neon); }
.info-label {
  font-family: 'Space Mono', monospace; font-size: 9px;
  letter-spacing: 0.2em; color: var(--muted);
  text-transform: uppercase; margin-bottom: 4px;
}
.info-value { font-size: 13px; color: var(--text); }

.exp-timeline { display: flex; flex-direction: column; gap: 20px; }
.exp-item {
  padding: 18px 20px; background: var(--card);
  border: 1px solid var(--border);
  position: relative; overflow: hidden; transition: all .3s;
}
.exp-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--neon2);
  box-shadow: 0 0 10px var(--neon2);
}
.exp-item:hover { border-color: rgba(123,47,255,0.4); background: rgba(123,47,255,0.05); }
.exp-date {
  font-family: 'Space Mono', monospace; font-size: 10px;
  color: var(--neon2); letter-spacing: 0.1em; margin-bottom: 4px;
}
.exp-role  { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.exp-company { font-size: 13px; color: var(--muted); }

/* ══════════════════════════════════════
   SECTION 3 — SKILLS
══════════════════════════════════════ */
#s-skills {
  flex-direction: column;
  max-width: 900px; margin: 0 auto; width: 100%;
}
.skills-header { margin-bottom: 32px; }

.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; width: 100%;
}
.skill-card {
  padding: 22px; background: var(--card);
  border: 1px solid var(--border);
  text-align: center; position: relative; overflow: hidden;
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.skill-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(0,245,200,0.08) 0%, transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.skill-card:hover { border-color: var(--neon); transform: translateY(-4px); }
.skill-card:hover::before { opacity: 1; }
.skill-card:hover .skill-icon { transform: scale(1.15); }
.skill-icon {
  font-size: 28px; margin-bottom: 10px;
  display: block; transition: transform .3s;
}
.skill-name {
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: 0.15em; color: var(--text);
  text-transform: uppercase; margin-bottom: 14px;
}
.skill-bar {
  height: 2px; background: rgba(255,255,255,0.06);
  border-radius: 2px; position: relative;
}
.skill-bar-fill {
  height: 100%; background: var(--neon); border-radius: 2px;
  transition: width 1.2s cubic-bezier(.4,0,.2,1) 0.3s;
  box-shadow: 0 0 8px rgba(0,245,200,0.6); width: 0;
}
.section.active .skill-bar-fill { width: var(--w); }
.skill-pct {
  position: absolute; right: 0; top: -18px;
  font-family: 'Space Mono', monospace; font-size: 10px; color: var(--neon);
}

.skills-tags {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px;
}
.skill-tag {
  padding: 6px 14px;
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--border); color: var(--muted); transition: all .3s;
}
.skill-tag:hover { border-color: var(--neon2); color: var(--neon2); }

/* ══════════════════════════════════════
   SECTION 4 — PROJECTS
══════════════════════════════════════ */
#s-projects {
  flex-direction: column;
  max-width: 1100px; margin: 0 auto; width: 100%;
}
.projects-header { margin-bottom: 24px; width: 100%; }

.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; width: 100%;
}
.project-card {
  padding: 24px; background: var(--card);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: all .35s; text-decoration: none; color: inherit;
}
.project-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--neon2));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.project-card:hover {
  border-color: rgba(0,245,200,0.3);
  transform: translateY(-6px);
  background: rgba(0,245,200,0.03);
}
.project-card:hover::after { transform: scaleX(1); }

.project-num {
  font-family: 'Space Mono', monospace; font-size: 10px;
  color: var(--muted); letter-spacing: 0.2em; margin-bottom: 16px;
}
.project-icon  { font-size: 26px; margin-bottom: 12px; }
.project-name  { font-size: 15px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.project-desc  {
  font-size: 12px; color: rgba(232,234,246,0.55);
  line-height: 1.65; flex: 1; margin-bottom: 16px;
}
.project-highlight {
  color: var(--neon); font-weight: 600;
}
.project-tags  { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.project-tag   {
  padding: 3px 10px;
  font-family: 'Space Mono', monospace; font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--border); color: var(--neon);
}
.project-link  {
  font-family: 'Space Mono', monospace; font-size: 10px;
  color: var(--neon); letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; display: flex; align-items: center; gap: 6px;
  transition: gap .2s;
}
.project-link:hover { gap: 12px; }

/* ══════════════════════════════════════
   SECTION 5 — CONTACT
══════════════════════════════════════ */
#s-contact {
  flex-direction: column; align-items: center; text-align: center;
  max-width: 700px; margin: 0 auto;
}
.contact-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.03em; margin-bottom: 20px;
}
.contact-sub {
  font-size: 16px; color: rgba(232,234,246,0.55);
  margin-bottom: 36px; line-height: 1.7;
}
.contact-links {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 32px;
}
.contact-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border: 1px solid var(--border);
  font-family: 'Space Mono', monospace; font-size: 11px;
  color: var(--text); text-decoration: none; letter-spacing: 0.08em;
  transition: all .3s;
}
.contact-item:hover {
  border-color: var(--neon); color: var(--neon);
  background: rgba(0,245,200,0.05);
  box-shadow: 0 0 20px rgba(0,245,200,0.15);
}
.contact-icon { font-size: 16px; }
.contact-footer {
  font-family: 'Space Mono', monospace; font-size: 10px;
  color: var(--muted); letter-spacing: 0.15em;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .section { padding: 60px 24px; }
  #s-about { flex-direction: column; gap: 30px; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; overflow-y: auto; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .skills-grid { grid-template-columns: 1fr; }
  .hero-name { font-size: 48px; }
}
