/*
  Athanasios Thomoglou — Personal Website Styles
  Theme: Dark, glassy surfaces with neon-accent gradients
  Accent colors: cyan (#00E0FF) and violet (#7C5CFF)
*/

:root {
  --bg: #0b0f19;
  --bg-2: #0f1424;
  --surface: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --text: #e6ecff;
  --muted: #a3b1cc;
  --accent: #00e0ff;
  --accent-2: #7c5cff;
  --gradient: linear-gradient(120deg, var(--accent), var(--accent-2));
  --shadow: 0 10px 30px rgba(0, 8, 20, 0.5);
  --radius: 14px;
  --container: 1120px;
}

:root { color-scheme: dark; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(124, 92, 255, 0.2), transparent),
              radial-gradient(1000px 500px at 90% 10%, rgba(0, 224, 255, 0.18), transparent),
              radial-gradient(800px 800px at 50% 120%, rgba(0, 0, 0, 0.6), transparent),
              var(--bg);
}

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; position: relative; }

.section-title {
  font-family: Poppins, Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-size: 36px; margin: 0 0 28px; letter-spacing: 0.2px;
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: 16px; top: 16px; width: auto; height: auto; padding: 10px 14px;
  border-radius: 10px; background: var(--gradient); color: #001018; z-index: 100;
  box-shadow: var(--shadow); text-decoration: none; font-weight: 700;
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(140%) blur(10px);
  background: linear-gradient(180deg, rgba(15,20,36,0.85), rgba(15,20,36,0.65));
  border-bottom: 1px solid var(--border);
  transition: background 220ms ease, box-shadow 220ms ease;
}

.header.scrolled {
  background: linear-gradient(180deg, rgba(15,20,36,0.92), rgba(15,20,36,0.78));
  box-shadow: 0 10px 25px rgba(0, 8, 20, 0.6);
}

.nav-wrapper { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--gradient); font-weight: 700; color: #05101a; }
.brand-text { font-weight: 600; letter-spacing: 0.2px; }

.nav ul { display: flex; align-items: center; gap: 18px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 10px; }
.nav a:hover { background: rgba(255,255,255,0.06); }
.nav a.active { background: rgba(255,255,255,0.1); }



.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--border); text-decoration: none; color: var(--text); gap: 8px; cursor: pointer; }
.btn-small { height: 38px; padding: 0 14px; font-size: 14px; }
.btn-primary { background: var(--gradient); color: #001018; font-weight: 700; border: none; box-shadow: 0 10px 25px rgba(0, 224, 255, 0.25), 0 6px 20px rgba(124, 92, 255, 0.2); }
.btn-ghost { background: transparent; }
.btn:hover { transform: translateY(-1px); }

/* Focus visible outline for accessibility */
:where(a, button, .btn, input, textarea, select, .chip):focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.35), 0 0 0 6px rgba(124, 92, 255, 0.25);
}

.nav-toggle { display: none; background: transparent; border: none; width: 42px; height: 42px; border-radius: 10px; align-items: center; justify-content: center; }
.nav-toggle .bar { width: 22px; height: 2px; background: var(--text); display: block; margin: 4px 0; border-radius: 2px; transition: transform 200ms ease, opacity 200ms ease; }

/* Hamburger to X animation */
.nav-toggle.open .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: clip; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(1400px 700px at 80% -10%, rgba(0, 224, 255, 0.25), transparent),
                                   radial-gradient(1400px 700px at -10% 10%, rgba(124,92,255,0.25), transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 32px; padding-top: 40px; padding-bottom: 40px; }

/* Key Facts strip */
.facts-section { padding: 28px 0; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fact { background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); display: grid; gap: 4px; }
.fact .label { color: var(--muted); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.fact .value { font-weight: 700; }

/* Certifications badges */
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,0.05); color: var(--text); font-weight: 600; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(0,224,255,0.15); }

.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: 1.6px; font-size: 12px; margin: 0 0 14px; }
.title { font-family: Poppins, Inter, system-ui; font-weight: 800; font-size: clamp(36px, 6vw, 64px); margin: 0 0 12px; line-height: 1.05; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subtitle { color: var(--muted); font-size: 18px; line-height: 1.7; margin: 0 0 22px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-aside { display: flex; justify-content: center; }
.avatar-card { position: relative; width: min(360px, 80%); aspect-ratio: 1/1; border-radius: 24px; padding: 10px; background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.avatar-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; filter: saturate(1.02) contrast(1.02); }
.avatar-card .ring { position: absolute; inset: -2px; border-radius: 24px; padding: 2px; background: var(--gradient); -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; }

/* Parallax shapes */
.parallax { position: absolute; inset: 0; pointer-events: none; }
.shape { position: absolute; width: 220px; height: 220px; border-radius: 50%; filter: blur(24px); opacity: 0.35; will-change: transform; }
.shape-1 { top: 20%; left: -60px; background: radial-gradient(circle at 30% 30%, var(--accent), transparent); }
.shape-2 { top: 60%; right: -80px; background: radial-gradient(circle at 70% 70%, var(--accent-2), transparent); }
.shape-3 { bottom: 10%; left: 30%; background: radial-gradient(circle at 40% 60%, #19ffa7, transparent); }

/* Cards, grids */
.card { background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card-hover { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card-hover:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0, 224, 255, 0.18), 0 8px 24px rgba(124, 92, 255, 0.18); }

/* Lists inside cards */
.card ul { margin: 8px 0 0 18px; padding: 0; color: var(--muted); }
.card ul li { margin: 6px 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.skill-group h3 { margin: 0 0 10px; font-size: 18px; color: var(--text); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--text); padding: 10px 12px; border-radius: 999px; font-size: 14px; }

/* Timeline */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: linear-gradient(180deg, var(--accent), transparent); border-radius: 1px; }
.timeline-item { position: relative; padding: 10px 0 10px 18px; }
.timeline-item .dot { position: absolute; left: -2px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(0,224,255,0.15); }
.timeline-item h3 { margin: 0 0 4px; font-size: 18px; }
.timeline-item p { margin: 0; color: var(--muted); }

.muted { color: var(--muted); }

/* Blog links */
.link { color: var(--accent); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Contact */
.contact-form { width: 100%; max-width: 100%; margin: 0; }
.form-row { display: grid; gap: 10px; margin-bottom: 16px; }
label { color: var(--muted); font-size: 14px; font-weight: 500; }
input, textarea { 
  width: 100%; 
  background: rgba(255,255,255,0.04); 
  border: 1px solid var(--border); 
  border-radius: 12px; 
  padding: 14px 16px; 
  color: var(--text); 
  outline: none;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Adjust grid layout for contact section */
#contact .grid-2 {
  gap: 28px;
  align-items: stretch;
}

/* Contact details card */
#contact aside {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#contact .contact-list {
  margin-top: auto;
  padding-top: 8px;
}

/* Form submit button */
#contact .btn-primary {
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
}

/* Form status message */
.form-status {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
  min-height: 1.5em;
}
input::placeholder, textarea::placeholder { color: #8ea0bb; }
input:focus, textarea:focus { border-color: rgba(0, 224, 255, 0.6); box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.12); }
.form-status { min-height: 20px; color: #8df5ff; margin-top: 8px; }
.availability { color: var(--muted); margin-top: 10px; }

/* Contact details list */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.contact-list a { color: var(--text); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.04)); }
.footer .container { padding: 18px 24px; }
.footer p { margin: 0; color: var(--muted); text-align: center; }

/* Back to top */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border);
  background: var(--gradient); color: #001018; font-weight: 800; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease;
  box-shadow: 0 10px 25px rgba(0, 224, 255, 0.25), 0 6px 20px rgba(124, 92, 255, 0.2);
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-2px); }

/* Progress bar */
.progress-bar { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 70; background: rgba(255,255,255,0.06); }
.progress-bar .progress { display: block; width: 0%; height: 100%; background: var(--gradient); box-shadow: 0 0 12px rgba(0, 224, 255, 0.45); transition: width 80ms linear; }

/* Full-bleed parallax section */
.full-bleed { padding: 0; }
.parallax-section { position: relative; min-height: 62vh; display: grid; place-items: center; overflow: hidden; }
.parallax-section .parallax-media { position: absolute; inset: 0; background-image: url('./assets/brussels.jpg'); background-size: cover; background-position: center; will-change: transform; filter: saturate(1.05) contrast(1.05); }
.parallax-section .parallax-overlay { position: relative; z-index: 1; width: 100%; padding: 64px 0; background: linear-gradient(180deg, rgba(11,15,25,0.2), rgba(11,15,25,0.6)); }
.parallax-section .title { text-align: center; margin-bottom: 10px; }
.parallax-section .subtitle { text-align: center; margin-bottom: 18px; }

/* Portfolio: thumbnails and lightbox removed */

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.reveal-visible { opacity: 1; transform: none; transition: 600ms cubic-bezier(.2,.8,.2,1); }

/* Desktop Navigation */
.nav-toggle { display: none; }
.nav { display: block !important; }
.nav ul { display: flex; }
.nav a { display: inline-block; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  
  /* Adjust contact section for mobile */
  #contact .card {
    padding: 20px;
  }
  
  #contact .section-title {
    margin-bottom: 24px;
  }

  /* Mobile Navigation */
  .nav-toggle { 
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    z-index: 1000;
  }
  
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(11, 15, 25, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    z-index: 999;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  .nav.open {
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem;
  }
  
  .nav li {
    margin: 0.25rem 0;
  }
  
  .nav a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
  }
  
  .nav a:hover,
  .nav a:focus {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .nav .btn-primary {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }
  
  /* Prevent scrolling when mobile menu is open */
  body.menu-open {
    overflow: hidden;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}


/* ========================================
   ENHANCED SECTIONS - NEW STYLES
   ======================================== */

/* Timeline dates */
.timeline-item .date {
  display: inline-block;
  background: var(--gradient);
  color: var(--bg);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.timeline-item h4 {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0.5rem 0;
}

/* Certification list */
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.cert-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.cert-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(5px);
}

.cert-badge {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.cert-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.cert-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Project cards */
.project-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.tag {
  background: rgba(0, 224, 255, 0.1);
  color: var(--accent);
  padding: 0.35rem 0.85rem;
  border-radius: 12px;
  font-size: 0.8rem;
  border: 1px solid rgba(0, 224, 255, 0.3);
  transition: all 0.2s ease;
}

.tag:hover {
  background: rgba(0, 224, 255, 0.2);
  border-color: var(--accent);
}

/* Achievement list */
.achievement-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.achievement-list li {
  margin-bottom: 1.25rem;
  padding-left: 1.75rem;
  position: relative;
  line-height: 1.6;
}

.achievement-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

.achievement-list strong {
  color: var(--accent);
}

/* Enhanced fact grid for 4 items */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

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

@media (max-width: 480px) {
  .facts-grid {
    grid-template-columns: 1fr;
  }
}

/* Card enhancements for projects */
#projects .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#projects .card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

#projects .card p:first-of-type {
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

#projects .card p:last-of-type {
  flex-grow: 1;
}

/* Education section enhancements */
#education .grid-2 {
  gap: 2rem;
}

#education h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Timeline improvements */
.timeline-item ul {
  margin-top: 1rem;
}

.timeline-item ul li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.timeline-item p strong {
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .project-icon {
    font-size: 2.5rem;
  }

  .cert-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .timeline-item .date {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
  }
}
