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

:root {
  --navy: #095642;
  --navy-light: #0d6b52;
  --accent: #b8412e;
  --text: #000000;
  --text-muted: #3d3d3d;
  --bg: #ffffff;
  --bg-alt: #f4f7f5;
  --border: #d4ddd9;
  --radius: 2px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* CONTAINER */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* NAVBAR */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
#navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  padding: 0.75rem 2rem;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-logo-img {
  width: 280px;
  height: auto;
  display: block;
  filter: none;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: #fff;
  transition: width 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

/* HERO */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background-image: url('photos/hero.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

/* fallback για mobile που δεν υποστηρίζει fixed attachment */
@media (max-width: 768px) {
  #hero {
    background-attachment: scroll;
  }
}

.hero-img-wrap { display: none; }

/* FADE-IN ON SCROLL */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9,86,66,0.2) 0%,
    rgba(9,86,66,0.1) 50%,
    rgba(0,0,0,0.72) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 4rem 2rem;
}

.hero-text {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
.hero-text h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.hero-text p {
  color: rgba(255,255,255,0.85);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 300;
  letter-spacing: 0.06em;
}

/* SECTION LABEL */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* BIO */
#bio {
  padding: 7rem 0;
  background: var(--bg);
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.bio-img-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.bio-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.bio-text p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  line-height: 1.8;
}
.bio-activity {
  margin-top: 2rem;
}
.bio-activity img {
  width: 100%;
  display: block;
}

/* POSITIONS */
#positions {
  padding: 7rem 0;
  background: var(--bg-alt);
}
#positions h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 3.5rem;
  line-height: 1.2;
}
.positions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.position-card {
  background: var(--bg);
  padding: 2.5rem;
  border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s, opacity 0.6s ease, transform 0.6s ease;
  opacity: 0;
  transform: translateY(28px) scale(0.97);
}
.position-card.card-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.position-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(37,99,168,0.08);
}
.position-card--wide {
  grid-column: 1 / -1;
}
.position-icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.position-icon svg {
  width: 100%;
  height: 100%;
}
.position-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}
.position-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* INSTAGRAM */
#instagram {
  padding: 7rem 0;
  background: var(--bg);
}
#instagram h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}
.instagram-grid {
  columns: 3;
  column-gap: 0.75rem;
}
.ig-placeholder {
  width: 100%;
  height: 280px;
  background: var(--bg-alt);
  margin-bottom: 0.75rem;
  break-inside: avoid;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.ig-post {
  display: block;
  text-decoration: none;
  break-inside: avoid;
  margin-bottom: 0.75rem;
}
.ig-img-wrap {
  position: relative;
  overflow: hidden;
}
.ig-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.ig-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9,86,66,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ig-overlay svg {
  width: 36px;
  height: 36px;
}
.ig-post:hover .ig-img-wrap img { transform: scale(1.05); }
.ig-post:hover .ig-overlay { opacity: 1; }

@media (max-width: 768px) {
  .instagram-grid { columns: 2; }
}

/* CONTACT */
#contact {
  padding: 7rem 0;
  background: var(--navy);
}
#contact .section-label { color: rgba(255,255,255,0.5); }
#contact h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}
.contact-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: stretch;
}
.contact-side {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 0.5rem;
}
.contact-sub {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.8;
}
.contact-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s;
}
.contact-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.contact-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}
@media (max-width: 768px) {
  .contact-two-col { grid-template-columns: 1fr; gap: 3rem; }
}

/* CONTACT FORM */
.contact-form {
  width: 100%;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.form-field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 0.75rem 1rem;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  border-radius: 0;
  width: 100%;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.12);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-submit {
  margin-top: 0.5rem;
  padding: 0.85rem 2.5rem;
  background: #b8412e;
  color: #fff;
  border: none;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  width: 100%;
}
.form-submit:hover { background: #a03525; }
.form-submit:disabled { opacity: 0.6; cursor: default; }
.form-success {
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.1);
  color: #86efac;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border-left: 3px solid #86efac;
}
.form-error {
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.1);
  color: #fca5a5;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border-left: 3px solid #fca5a5;
}
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
}

/* FOOTER */
footer {
  padding: 1.5rem 2rem;
  background: #111827;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
footer span, footer a {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  text-decoration: none;
}
.footer-links { display: flex; gap: 1.5rem; }
footer a:hover { color: rgba(255,255,255,0.7); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block;
    padding: 0.85rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  #navbar { position: fixed; background: var(--navy); padding: 1rem 2rem; }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .bio-img-wrap img { aspect-ratio: 4/3; }

  .positions-grid { grid-template-columns: 1fr; }
  .position-card--wide { grid-column: auto; }

  #bio, #positions, #contact { padding: 4rem 0; }
}
