/* =========================================================
   Philip Tzimopou · style.css
   ========================================================= */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/open-sans-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/open-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #061127;
  --bg-deep: #040b1c;
  --text: #eaf1ff;
  --muted: #a3b4d3;
  --accent: #3dd8f5;
  --accent-strong: #7ae6fa;
  --accent-ink: #032130;
  --line: rgba(150, 190, 255, 0.075);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(170, 205, 255, 0.15);
  --frost-top: rgba(255, 255, 255, 0.10);
  --frost-bottom: rgba(255, 255, 255, 0.035);
  --frost-border: rgba(255, 255, 255, 0.20);
  --frost-blur: 18px;
  --radius: 18px;
  --wrap: 1140px;
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.7);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(900px 600px at 85% -10%, rgba(40, 110, 255, 0.28), transparent 70%),
    radial-gradient(700px 500px at -10% 40%, rgba(30, 170, 230, 0.12), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Απαλές φωτεινές κηλίδες κατά μήκος της σελίδας, για να έχει
   το γυαλί κάτι να θολώσει πίσω του */
main { position: relative; }
main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(520px 420px at 8% 30%, rgba(40, 120, 255, 0.20), transparent 70%),
    radial-gradient(480px 380px at 92% 45%, rgba(61, 216, 245, 0.13), transparent 70%),
    radial-gradient(560px 420px at 15% 66%, rgba(70, 90, 255, 0.16), transparent 70%),
    radial-gradient(520px 400px at 88% 88%, rgba(61, 216, 245, 0.12), transparent 70%);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(1040px, 100% - 40px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 14px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Γυαλί ---------- */
.glass {
  background: linear-gradient(155deg, var(--frost-top), var(--frost-bottom));
  border: 1px solid var(--frost-border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(var(--frost-blur)) saturate(160%);
          backdrop-filter: blur(var(--frost-blur)) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    var(--shadow);
}
/* Αν ο browser δεν υποστηρίζει blur, πιο αδιαφανές φόντο για να διαβάζεται */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(14, 28, 56, 0.92); }
}

/* ---------- Κουμπιά ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 8px 24px -10px rgba(61, 216, 245, 0.6);
}
.btn:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--glass-hover); border-color: rgba(170, 205, 255, 0.3); }

.btn--small { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }

/* ---------- Γενικά ενότητες ---------- */
.kicker {
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section { padding-block: clamp(22px, 3vw, 36px); }
.section--tight { padding-block: clamp(12px, 2vw, 20px); }

.section__head { margin-bottom: clamp(28px, 4vw, 40px); max-width: 820px; }
.section__head h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 700; }
.section__intro { color: var(--muted); margin-top: 12px; }

/* ---------- 2. Υπηρεσίες ---------- */
.cta {
  margin-top: 18px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  border-color: rgba(61, 216, 245, 0.40);
  background: linear-gradient(120deg, rgba(61, 216, 245, 0.14), rgba(255, 255, 255, 0.05) 60%);
}
.cta__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; }
.cta p { color: var(--muted); }

/* ---------- 3. Εκπαίδευση / 7. Newsletter ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px 48px;
  padding: clamp(28px, 5vw, 52px);
}
.feature h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 700; margin-bottom: 16px; }
.feature__text p:not(.kicker) { color: var(--muted); max-width: 58ch; }
.feature__text p + p { margin-top: 10px; }
.feature--accent {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(61, 216, 245, 0.16), transparent 70%),
    linear-gradient(155deg, var(--frost-top), var(--frost-bottom));
}

/* ---------- 4. Βίντεο ---------- */
.videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.video {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 8px;
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}
.video:hover { transform: translateY(-4px); border-color: rgba(61, 216, 245, 0.5); }
.video__thumb { display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 9; background: #0b1a36; }
.video__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.video:hover .video__thumb img { transform: scale(1.03); }
.video__title {
  display: block;
  padding: 14px 10px 10px;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.45;
}

/* ---------- 5. Αριθμοί ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat { padding: 30px 32px; position: relative; overflow: hidden; }
.stat::before {
  content: "";
  position: absolute;
  left: 32px; top: 0;
  width: 48px; height: 3px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
}
.stat__value {
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.stat__label { color: var(--muted); margin-top: 6px; font-weight: 600; }

/* ---------- 6. Σχόλια (σε HTML, στο ύφος του σκοτεινού YouTube) ---------- */
.comments { columns: 3 300px; column-gap: 18px; }
.yt { display: block; break-inside: avoid; margin: 0 0 18px; padding: 0; min-width: 0; }
.yt__inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 20px 16px;
  color: #f1f1f1;
  min-width: 0;
}
.yt__avatar {
  --hue: 200;
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
  background: hsl(var(--hue) 45% 38%);
  display: grid;
  place-items: center;
}
.yt__avatar::before {               /* αρχικό γράμμα, φαίνεται μέχρι να μπει η φωτογραφία */
  content: attr(data-initial);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}
.yt__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt__body { min-width: 0; flex: 1; }
.yt__meta { font-size: .82rem; line-height: 1.4; margin: 2px 0 6px; overflow-wrap: anywhere; }
.yt__user { font-weight: 600; color: #f1f1f1; }
.yt__time { color: #aaaaaa; white-space: nowrap; }
.yt__text { font-size: 1rem; line-height: 1.55; color: #f1f1f1; overflow-wrap: anywhere; }
.yt__actions { display: flex; align-items: center; gap: 18px; margin-top: 12px; color: #aaaaaa; font-size: .8rem; }
.yt__like, .yt__dislike { display: inline-flex; align-items: center; gap: 6px; }
.yt__actions svg { width: 18px; height: 18px; fill: none; stroke: #f1f1f1; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.yt__heart { position: relative; width: 22px; height: 22px; }
.yt__heart img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.yt__heart i {
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 12px;
  height: 11px;
  background: #ff3b5c;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21.5 10.3 20C4.4 14.6.5 11.1.5 6.8.5 3.3 3.2.6 6.7.6c2 0 3.9.9 5.3 2.4C13.4 1.5 15.3.6 17.3.6c3.5 0 6.2 2.7 6.2 6.2 0 4.3-3.9 7.8-9.8 13.2z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21.5 10.3 20C4.4 14.6.5 11.1.5 6.8.5 3.3 3.2.6 6.7.6c2 0 3.9.9 5.3 2.4C13.4 1.5 15.3.6 17.3.6c3.5 0 6.2 2.7 6.2 6.2 0 4.3-3.9 7.8-9.8 13.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Εμφάνιση κατά το scroll (μόνο αν τρέχει JS) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .video, .video__thumb img, .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .videos { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .videos { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .comments { columns: 1; }
  .yt { margin-bottom: 14px; }
  .yt__inner { padding: 16px 16px 12px; gap: 12px; }
  .cta .btn, .feature .btn { width: 100%; }
  .cta { padding: 22px; }
  .stat { padding: 26px 24px; }
  .stat::before { left: 24px; }
}
