/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #004d61; /* Σκούρο Τυρκουάζ */
  --accent-color: #88395b; /* Ζωηρό Κεχριμπαρένιο */
  --highlight-color: #2ec4b6; /* Φωτεινό Τυρκουάζ */
  --timeline-date-color: #1a237e; /* Νέο: Βαθύ Μπλε για ημερομηνίες */
  --timeline-title-color: #d72660; /* Νέο: Έντονο Ροζ/Κόκκινο για τίτλους */
  --timeline-line-color: #2ec4b6; /* Νέο: Φωτεινό Τυρκουάζ για γραμμή/κύκλους */
  --bg-light: #f0f4f8; /* Απαλό Γαλάζιο */
  --text-dark: #102a43; /* Πολύ Σκούρο Μπλε */
  --section-padding: 60px;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  scroll-behavior: smooth;
}

/* Container */
.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

/* Header & Navigation */
header {
  position: fixed;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 100;
  top: 0;
  left: 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

/* Menu Toggle Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 5px;
  z-index: 101;
}

.menu-toggle i {
  transition: transform 0.3s ease;
}

.menu-toggle.active i {
  transform: rotate(90deg);
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  border-radius: 6px;
}

nav a:hover {
  color: var(--primary-color);
  background-color: rgba(0, 77, 97, 0.1);
}

nav .social-link {
  color: var(--accent-color);
  font-weight: 600;
}

nav .social-link:hover {
  color: var(--primary-color);
  background-color: rgba(0, 77, 97, 0.1);
}

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

/* Hero Section */
.hero {
  height: 70vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, #440017 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
  margin-top: 80px; /* Adjusted for header height */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.05)"/></svg>');
  opacity: 0.1;
}

.hero-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 15px;
  max-width: 800px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 0;
}

/* Sections */
section {
  padding: var(--section-padding) 0;
}

#about,
#legal {
  background: #fff;
}

#request {
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 50%, #d4edff 100%);
  position: relative;
  padding: 80px 0;
}

#request::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(0,77,97,0.05)"/></svg>');
  opacity: 0.8;
}

#legal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(136,57,91,0.03)"/></svg>');
  opacity: 0.5;
}

#faq {
  background: #f9f9f9;
}

#contact {
  background: #f9f9f9;
}

section h3 {
  text-align: center;
  margin-bottom: 25px;
  color: var(--primary-color);
  font-size: 1.8rem;
  position: relative;
  z-index: 1;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  justify-content: center;
  justify-items: center;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, minmax(250px, 1fr));
  }
}

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

.card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 320px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#request .cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  justify-content: center;
  justify-items: center;
}

@media (max-width: 600px) {
  #request .cards {
    grid-template-columns: 1fr;
  }
  #request {
    padding: 60px 0;
  }
}

#request .card {
  border-left: 6px solid var(--primary-color);
  width: 100%;
  max-width: 350px;
  padding: 30px 25px;
  box-shadow: 0 8px 25px rgba(0, 77, 97, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

#request .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 77, 97, 0.25);
}

#request .card h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

#request .card p {
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 500;
}

#legal .card {
  border-left: 4px solid var(--accent-color);
}

.card ul {
  list-style: disc inside;
  margin-top: 10px;
}

/* FAQ */
.faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.1rem;
  background: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f5f5f5;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary-color);
}

.faq-question.active::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 20px;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  line-height: 1.6;
  color: var(--text-dark);
}

.faq-answer p {
  margin: 0;
}

/* Contact Form */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: #fff;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 77, 97, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  grid-column: span 2;
  padding: 15px 0;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.contact-form button:hover {
  background: #005590;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form button:active {
  transform: translateY(0);
}

/* Footer */
footer {
  background: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

footer .container {
  display: flex;
  justify-content: center;
}

footer p {
  margin: 0;
}

footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-color);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.social-link i {
  font-size: 1.3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 10px 0;
  }

  .logo img {
    height: 40px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    opacity: 0;
    visibility: hidden;
  }

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

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    width: 100%;
  }

  nav li {
    width: 100%;
    text-align: center;
  }

  nav a {
    padding: 15px 20px;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    justify-content: center;
    width: 100%;
  }

  nav a:hover {
    background-color: rgba(0, 77, 97, 0.05);
  }

  nav .social-link {
    justify-content: center;
  }

  nav .social-link:hover {
    background-color: rgba(0, 77, 97, 0.05);
  }

  .hero {
    margin-top: 70px;
    height: auto;
    min-height: 70vh;
    padding: 40px 20px;
  }

  .hero-content {
    padding: 20px;
  }

  .hero-content h3 {
    font-size: 1.5rem;
  }

  .contact-form {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 15px;
  }

  .contact-form button {
    grid-column: 1;
    padding: 12px 0;
    font-size: 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 10px 12px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .contact-form textarea {
    min-height: 100px;
  }

  #contact {
    padding: 40px 0;
  }

  #contact h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .logo-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .contact-form {
    padding: 0 10px;
  }

  .contact-form label {
    font-size: 0.95rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 8px 10px;
  }
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
  text-align: justify;
}

.about-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-logo img {
  width: 100%;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.about-logo img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-logo {
    order: -1;
  }

  .about-logo img {
    max-width: 200px;
  }
}

/* Timeline Styles */
.timeline {
  position: relative;
  margin: 40px 0 0 0;
  padding-left: 7.5px;
  border-left: 6px solid var(--timeline-line-color); /* Updated color */
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-date {
  position: absolute;
  top: 50%;
  left: -120px;
  transform: translateY(-50%);
  min-width: 80px;
  font-weight: 600;
  color: var(--timeline-date-color); /* Updated color */
  font-size: 1.05rem;
  text-align: right;
  white-space: nowrap;
  background: none;
  padding: 0;
  border: none;
  box-shadow: none;
  z-index: 2;
}

.timeline-content {
  background: #fff;
  padding: 18px 22px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(136, 57, 91, 0.08);
  color: var(--text-dark);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-left: 20px;
}

.timeline-content strong {
  display: block;
  color: var(--primary-color); /* Changed to primary color */
  font-size: 1.13rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--timeline-line-color); /* Updated color */
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--timeline-line-color); /* Updated color */
  z-index: 1;
}

@media (max-width: 700px) {
  .timeline {
    padding-left: 16px;
    border-left-width: 3px;
  }
  .timeline-date {
    left: -100px;
    min-width: 60px;
    font-size: 1rem;
  }
  .timeline-item::before {
    left: -16px;
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 500px) {
  .timeline-date {
    position: static;
    display: block;
    text-align: left;
    margin-bottom: 6px;
    left: 0;
    min-width: 0;
    font-size: 0.95rem;
  }
  .timeline-content strong {
    font-size: 1rem;
  }
  .timeline {
    padding-left: 0;
    border-left: none;
  }
  .timeline-item {
    padding-left: 0;
  }
  .timeline-item::before {
    display: none;
  }
}
