*,
::after,
::before {
  box-sizing: border-box;
}

@media (prefers-reduced-motion:no-preference) {
    :root {
        scroll-behavior: smooth;
    }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

p{
  margin-top: 0;
}

h1, h2, h3, h4, h5, h6{
  margin-top: 0;
  margin-bottom: .5rem;
  line-height: 1.2;
  font-weight: 500;
}

button, input, optgroup, select, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;

}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 55px;
  height: 55px;
  border: 2px solid #6610f2; /* μωβ */
  border-radius: 50%;
  pointer-events: none; /* να μην εμποδίζει clicks */
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease, transform 0.15s ease;
  mix-blend-mode: difference; /* για πιο cool εφέ σε φωτεινά/σκοτεινά backgrounds */
  z-index: 9999;
  opacity: 0.9;
}

/* pulse animation */
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(102, 16, 242, 0.7);
  }
  50% {
    box-shadow: 0 0 10px 8px rgba(102, 16, 242, 0);
  }
}

/* Όταν ο cursor κινείται, κάνουμε pulse */
.custom-cursor.move {
  animation: pulse 1s infinite;
  background-color: rgba(102, 16, 242, 0.2);
  transform: translate(-50%, -50%) scale(1.3);
}

@media (hover: none) and (pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }

  body {
    cursor: auto;
  }
}

#about {
  scroll-margin-top: 90px;
}

/* nav */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #201e3a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-nav-container .nav-name {
  font-weight: bold;
  font-size: 1.5rem;
  text-decoration: none;
  color: white;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.menu-nav-container {
  display: flex;
}

.menu-nav-container a {
  margin-left: 20px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s ease;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.menu-nav-container a:hover {
  color: #6610f2;
}

.burger {
  width: 30px;
  height: 22px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 101;
}

.burger span {
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@keyframes fadeInLink {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .nav-bar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 15px;
  }

  .logo-nav-container .nav-name {
    font-size: 1.1rem;
  }

  .logo-nav-container {
    margin-top: 10px;
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(32, 30, 58, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 99;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Όταν το μενού είναι ανοιχτό, ενεργοποιούμε το overlay */
  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .burger {
    display: flex;
    margin-left: auto;
    margin-top: 10px;
  }

  .menu-nav-container {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    max-height: 0; /* κρυφό */
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
    visibility: hidden;
  }

  .menu-nav-container.active {
    max-height: 500px; /* αρκετό ύψος ώστε να εμφανίζει όλα τα links */
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

  .menu-nav-container a {
    width: 100%;
    padding: 12px 0;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 0;
    opacity: 0;
    animation: fadeInLink 0.4s ease forwards;
  }

  .menu-nav-container.active a:nth-child(1) {
    animation-delay: 0.1s;
  }

  .menu-nav-container.active a:nth-child(2) {
    animation-delay: 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* ✨ Slide-down animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-contact-info {
  display: none;
  flex-direction: column;
  width: 100%;
  padding: 20px 40px;
  padding-top: 32px;
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.5;
}

.menu-contact-info .contact-item {
  margin-bottom: 12px;
  user-select: none;
}

.menu-contact-info .contact-item strong {
  font-weight: 600;
  margin-right: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.menu-contact-info .contact-item span {
  color: #ccc;
}

/* Όταν το menu είναι active σε mobile, δείξε το contact info */
@media (max-width: 768px) {
  .menu-nav-container.active + .menu-contact-info {
    display: flex;
    animation: fadeInLink 0.4s ease forwards;
  }
}

/* Footer */
.site-footer {
  background-color: #201e3a;
  padding: 40px 20px;
  color: #fff;
  border-top: 4px solid #6610f2;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  min-width: 250px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-left p {
  margin: 0;
  font-size: 1rem;
}

.highlight {
  color: #b0aefb;
  font-weight: 600;
}

.footer-subtext {
  color: #a5a4c0;
  font-size: 0.9rem !important;
}

.footer-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-message {
  font-size: 1.1rem;
  color: #fff;
  font-style: italic;
  position: relative;
  margin: 0;
}

.quote-icon {
  color: #b0aefb;
  font-size: 1.5rem;
  line-height: 0;
  display: inline-block;
  vertical-align: middle;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #a5a4c0;
  font-size: 0.9rem;
}

.footer-location svg {
  flex-shrink: 0;
}

.footer-right {
  display: flex;
  justify-content: flex-end;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(176, 174, 251, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: rgba(176, 174, 251, 0.2);
  transform: translateY(-3px);
}

.social-links svg {
  transition: transform 0.3s ease;
}

.social-links a:hover svg {
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    align-items: center;
    text-align: center;
  }

  .footer-right {
    justify-content: center;
  }

  .footer-message {
    font-size: 1rem;
  }
}
