/* ============================================
   CHRISTOS MOIRAS — LEVEL DESIGN PORTFOLIO
   ============================================ */
/* ===== 1. CUSTOM PROPERTIES ===== */
:root {
  /* Colors */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: #111111;
  --bg-tag: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #888888;
  --accent: #4da6ff;
  --accent-hover: #7dc0ff;
  --yt-red: #c4302b;
  --yt-red-hover: #e53935;
  /* Spacing */
  --nav-height: 64px;
  --section-padding: 120px 5%;
  --section-padding-mobile: 80px 5%;
  /* Effects */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 50px;
  --transition-fast: 0.2s ease;
  --transition: 0.35s ease;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 16px 40px rgba(0, 0, 0, 0.6);
  /* Font */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== 2. RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.menu-open {
  overflow: hidden;
}
img, video {
  display: block;
  max-width: 100%;
}
/* Εξαίρεση για hero videos που είναι absolute positioned */
.project-hero-video,
.hero-video {
  max-width: none;
}
::selection {
  background: var(--accent);
  color: var(--bg-primary);
}
/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== 3. FOCUS / ACCESSIBILITY ===== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* ===== HERO READABILITY IMPROVEMENT ===== */
.hero p {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.95;
  text-transform: uppercase;
}
.scroll-down {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 12px 28px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 1;
  transition: all 0.3s ease;
  animation: none;
}
.scroll-down:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

/* ===== 4. NAVIGATION ===== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 5%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition-fast);
}
.main-nav.scrolled {
  background: rgba(0, 0, 0, 0.95);
}
.nav-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Logo */
.nav-logo {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  position: relative; /* ← ΑΠΑΡΑΙΤΗΤΟ για το underline */
}
.nav-logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-logo:hover::after,
.nav-logo.active::after {
  width: 100% !important;
  background: var(--accent) !important;
}
/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  position: relative;
  transition: color var(--transition-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100% !important;
  background: var(--accent) !important;
}
/* Resume CTA */
.nav-cta {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--transition-fast);
}
.nav-cta:hover {
  background: rgba(255, 255, 255, 0.15);
}
.nav-cta::after {
  display: none;
}
/* Hamburger Toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
/* Hamburger → X animation */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== 5. HERO ===== */
.hero {
  position: relative;
  height: 70vh;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.hero-content {
  z-index: 1;
  max-width: 900px;
  padding: 0 1.5rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.hero h2 {
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.hero p {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  opacity: 0.7;
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
}

.scroll-down {
  display: inline-block;
  font-size: 1.2rem;
  color: var(--text-primary);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
  animation: bounce 2.5s ease infinite;
}

.scroll-down:hover {
  opacity: 1;
}


/* ===== 6. SECTIONS (shared) ===== */
.projects-section {
  padding: var(--section-padding);
  text-align: center;
}

.projects-section + .projects-section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 4rem;
  line-height: 1.7;
}


/* ===== 7. PROJECTS GRID ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}


/* ===== 8. PROJECT CARDS ===== */
.project-item {
  text-decoration: none;
  color: inherit;
  display: block;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
  cursor: pointer;
}

a.project-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

/* Coming Soon cards — no hover lift */
.project-coming-soon {
  cursor: default;
  opacity: 0.8;
}

.project-coming-soon:hover {
  transform: none;
  box-shadow: none;
}

/* Thumbnail wrapper */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-secondary);
}

.project-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

a.project-item:hover .project-media {
  transform: scale(1.05);
}

/* Project text */
.project-info {
  padding: 1.2rem 1.2rem 1.4rem;
  text-align: left;
}

.project-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.project-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}


/* ===== 9. BADGES ===== */
.badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
}


/* ===== 10. SECTION CTA (YouTube) ===== */
.section-cta {
  margin-top: 3.5rem;
  text-align: center;
}

.youtube-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--yt-red);
  color: white;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(196, 48, 43, 0.3);
}

.youtube-button:hover {
  background: var(--yt-red-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(196, 48, 43, 0.45);
}

.youtube-button svg {
  flex-shrink: 0;
}


/* ===== 11. ABOUT ===== */
.about-section {
  padding: var(--section-padding);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-section .section-title {
  margin-bottom: 2.5rem;
}

.about-content {
  text-align: left;
}

.about-text {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.skills-group {
  margin-bottom: 2.5rem;
  text-align: center;
}

.skills-group:last-child {
  margin-bottom: 0;
}

.skills-group h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.tags span {
  background: var(--bg-tag);
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-fast);
}

.tags span:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}


/* ===== 12. FOOTER ===== */
.site-footer {
  padding: 5rem 5% 3rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg-secondary);
}

.footer-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.footer-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.6;
}


/* ===== 13. ANIMATIONS ===== */

/* Hero entrance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-down bounce */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Scroll fade-in (triggered by JS) */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay for grid items */
.project-item.fade-in:nth-child(1) { transition-delay: 0s; }
.project-item.fade-in:nth-child(2) { transition-delay: 0.1s; }
.project-item.fade-in:nth-child(3) { transition-delay: 0.2s; }
.project-item.fade-in:nth-child(4) { transition-delay: 0.15s; }


/* ===== 14. RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
  .projects-section {
    padding: 100px 5%;
  }

  .projects-grid {
    gap: 2rem;
  }
}

/* Mobile */
@media (max-width: 780px) {
  /* Hero */
  .hero {
    height: 80vh;
    min-height: 480px;
  }

  /* Sections */
  .projects-section {
    padding: var(--section-padding-mobile);
  }

  .section-subtitle {
    margin-bottom: 2.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 540px;
  }

  .project-item {
    max-width: 100%;
  }

  /* About */
  .about-section {
    padding: var(--section-padding-mobile);
  }

  /* Navigation — hamburger */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    font-size: 1.3rem;
  }

  .nav-link::after {
    bottom: -6px;
  }

  .nav-cta {
    margin-top: 1rem;
    padding: 0.7rem 2rem;
    font-size: 1.1rem;
  }

  /* Footer */
  .footer-links {
    flex-direction: column;
    gap: 1.2rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero {
    min-height: 420px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .youtube-button {
    font-size: 0.9rem;
    padding: 12px 22px;
  }
}


/* ===== 15. ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
/* Βελτιωμένο hover για τα project items */
.project-item {
  transition: all 0.35s ease;
  overflow: hidden;
  border-radius: 8px;           /* αν δεν το έχεις ήδη */
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.project-item:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
}

.video-wrapper,
.project-media {
  transition: all 0.4s ease;
}

.project-item:hover .project-media {
  transform: scale(1.08);
  filter: brightness(1.08) contrast(1.05);
}

/* Προαιρετικό: ελαφρύ overlay όταν κάνεις hover */
.video-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.4));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.project-item:hover .video-wrapper::after {
  opacity: 1;
}
.project-item.coming-soon {
  pointer-events: none;
  cursor: default;
}

.video-wrapper {
  position: relative;
}

.coming-soon-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 10;
}
/* ================= BACK BUTTON (GLOBAL PROJECT PAGES) ================= */

.back-link {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 1000;

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 10px 18px;
  border-radius: 50px;

  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;

  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255, 255, 255, 0.1);

  transition: all 0.3s ease;
}

/* Hover */
.back-link:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-4px);
}

/* Arrow styling */
.back-link .back-arrow {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.back-link:hover .back-arrow {
  transform: translateX(-3px);
}

}
/* ===================================================== */
/* =============== PROJECT MEDIA CONSISTENCY =========== */
/* ===================================================== */

/* Όλα τα project cards ίδιο cinematic ratio */
.project-item .video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
}

.project-item .project-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ================= PREMIUM STAGGER EFFECT ============ */
/* ===================================================== */

#mods .projects-grid .project-item:nth-child(1) {
  transform: translateY(0);
}

#mods .projects-grid .project-item:nth-child(2) {
  transform: translateY(20px);
}

#mods .projects-grid .project-item:nth-child(3) {
  transform: translateY(10px);
}

/* Smooth animation */
#mods .project-item {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Premium hover */
#mods .project-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* ===================================================== */
/* ================= RESPONSIVE FIX ==================== */
/* ===================================================== */

@media (max-width: 768px) {

  #mods .projects-grid {
    grid-template-columns: 1fr;
  }

  #mods .projects-grid .project-item:nth-child(3) {
    grid-column: auto;
    max-width: 100%;
    margin-top: 0;
  }

  #mods .projects-grid .project-item:nth-child(2),
  #mods .projects-grid .project-item:nth-child(3) {
    transform: none;
  }

}
/* Sequence arrows but KEEP original takeaways style */
.walkthrough-sequence li {
  position: relative;
  padding-bottom: 2.5rem;
}

.walkthrough-sequence li:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0.7rem;
  font-size: 1.1rem;
  opacity: 0.45;
}
/* Distinct separation between contribution tasks */
.task-separator {
  margin: 6rem 0 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.task-heading {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.task-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Move hero subtitle & CTA lower */
.hero-content {
  margin-top: 90px;
}
.nav-link.active::after {
  width: 100% !important;
  background: var(--accent) !important;
  transition: none;  /* προαιρετικό: να μην "τρεμοπαίζει" */
}
/* ================= ABOUT INTRO (Homepage) ================= */

.about-intro {
  padding: 80px 5% 40px;
  text-align: center;
  background: var(--bg-primary);
}

.about-intro-container {
  max-width: 800px;
  margin: 0 auto;
}

.about-intro p {
  font-size: 1.20rem;
max-width: 720px;
margin: 0 auto;
  color: var(--text-secondary);
  line-height: 1.8;
}

