/* ==========================================================================
   Ελπίδα Βουτσά — futuristic "aurora horizon" theme (sea, sky, mountains)
   Shared stylesheet for all pages.
   ========================================================================== */

:root {
  --bg: #050d13;
  --bg-alt: #0a1820;
  --panel: rgba(14, 30, 36, 0.55);
  --panel-solid: #0e1e2422;
  --border: rgba(94, 234, 212, 0.22);

  --cyan: #2dd4bf;
  --magenta: #eab766;
  --violet: #5aa9e6;
  --amber: #eab766;

  --text: #eaf3f2;
  --text-dim: #9db3ae;
  --text-faint: #5d7570;

  --grad-primary: linear-gradient(135deg, var(--cyan), var(--violet) 55%, var(--magenta));
  --grad-text: linear-gradient(90deg, var(--cyan), var(--violet));

  --glow-cyan: 0 0 8px rgba(45, 212, 191, 0.45), 0 0 24px rgba(45, 212, 191, 0.2);
  --glow-magenta: 0 0 8px rgba(234, 183, 102, 0.4), 0 0 24px rgba(234, 183, 102, 0.18);

  --radius: 14px;
  --nav-height: 76px;

  --font-display: "Exo 2", "Segoe UI", sans-serif;
  --font-body: "Titillium Web", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(45, 212, 191, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 75%);
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

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

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

/* ---------------------------------- headings / type ---------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.6rem, 7.5vw, 5.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--grad-text);
  box-shadow: var(--glow-cyan);
}

.lede {
  color: var(--text-dim);
  font-size: 1.2rem;
  max-width: 620px;
}

/* ---------------------------------- nav ---------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(5, 6, 12, 0.6);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--text);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border-radius: 999px;
  position: relative;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(45, 212, 191, 0.08);
  box-shadow: inset 0 0 0 1px var(--border);
}

.nav-links a.active {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(45, 212, 191, 0.5);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------------------------------- buttons ---------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(45, 212, 191, 0.06);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  box-shadow: var(--glow-cyan);
  background: rgba(45, 212, 191, 0.12);
  transform: translateY(-2px);
}

.btn-solid {
  background: var(--grad-primary);
  border: none;
  color: #05060c;
  font-weight: 700;
}

.btn-solid:hover {
  box-shadow: var(--glow-magenta);
}

/* ---------------------------------- hero ---------------------------------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  z-index: 1;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-portrait {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(45,212,191,0.08), 0 30px 80px -20px rgba(45,212,191,0.2);
  aspect-ratio: 4 / 5;
  min-height: 380px;
}

.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(5,6,12,0.9));
  pointer-events: none;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

/* full-bleed photographic hero (home page) */

.hero-media {
  align-items: flex-end;
  padding-bottom: 110px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-alt);
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  filter: saturate(1.1) contrast(1.04);
  transition: opacity 1.8s ease;
}

.hero-bg img.active {
  opacity: 1;
  animation: heroDrift 18s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.5%, -1.5%, 0); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 13, 19, 0.4) 0%, rgba(5, 13, 19, 0.22) 38%, rgba(5, 13, 19, 0.96) 100%),
    linear-gradient(90deg, rgba(5, 13, 19, 0.82) 0%, rgba(5, 13, 19, 0.1) 60%);
}

.hero-media .container {
  position: relative;
  z-index: 2;
}

/* ---------------------------------- sections ---------------------------------- */

section {
  position: relative;
  z-index: 1;
  padding: 110px 0;
}

.section-head {
  margin-bottom: 56px;
  max-width: 720px;
}

/* ---------------------------------- cards / panels ---------------------------------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad-text);
  opacity: 0.6;
}

.grid {
  display: grid;
  gap: 28px;
}

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

/* ---------------------------------- gallery ---------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--bg-alt);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  border-color: rgba(94, 234, 212, 0.5);
  box-shadow: 0 24px 60px -24px rgba(45, 212, 191, 0.3);
}

.gallery-item-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.gallery-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.7s ease;
}

.gallery-item:hover .gallery-item-media img {
  transform: scale(1.07);
  filter: saturate(1.2);
}

.gallery-item-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 13, 19, 0.38);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.gallery-item:hover .gallery-item-view {
  opacity: 1;
}

.gallery-item-view span {
  padding: 11px 26px;
  border-radius: 999px;
  border: 1px solid rgba(234, 243, 242, 0.55);
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.gallery-item-caption {
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

/* lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 6, 12, 0.94);
  backdrop-filter: blur(8px);
  padding: 6vh 5vw;
}

.lightbox.open { display: flex; }

.lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 100%;
}

.lightbox-img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(45, 212, 191, 0.2);
}

.lightbox-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-align: center;
}

.lightbox-counter {
  color: var(--text-faint);
  font-size: 0.75rem;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}

.lightbox-close {
  position: fixed;
  top: 28px;
  right: 32px;
  font-family: var(--font-display);
  color: var(--text);
  background: rgba(45,212,191,0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 201;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 201;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.lightbox-nav:hover {
  background: rgba(45, 212, 191, 0.16);
  box-shadow: var(--glow-cyan);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ---------------------------------- stats strip ---------------------------------- */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  text-align: center;
  padding: 30px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stat-number {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------------------------------- timeline (exhibitions) ---------------------------------- */

.timeline {
  position: relative;
  padding-left: 36px;
  border-left: 1px solid var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 44px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -42px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: var(--glow-cyan);
}

.timeline-year {
  font-family: var(--font-display);
  color: var(--cyan);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  display: block;
}

.timeline-item h3 {
  margin-bottom: 6px;
}

.timeline-item p {
  color: var(--text-dim);
}

/* ---------------------------------- contact ---------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.field label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.field input,
.field textarea {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-list .ico {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: box-shadow 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.social-row a:hover {
  color: var(--cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-3px);
}

/* ---------------------------------- footer ---------------------------------- */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px 0;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  color: var(--text-dim);
}

/* ---------------------------------- reveal-on-scroll ---------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------- responsive ---------------------------------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; max-height: 46vh; min-height: 280px; }
  .hero-media { padding-bottom: 64px; }
  .grid-3, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }

  .lightbox-nav { width: 42px; height: 42px; font-size: 1.3rem; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 14px; right: 14px; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(5, 6, 12, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    text-align: center;
    padding: 14px;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
