* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

html{
  interpolate-size: allow-keywords;
}

/* Σταθερή εικόνα στο background χωρίς zoom */
body {
  background-image: url("background.jpg");
  background-repeat: no-repeat;
  background-position: center top; /* εικόνα ξεκινάει από πάνω */
  background-attachment: fixed;    /* η εικόνα μένει σταθερή όταν scroll */
  background-size: 100% auto;      /* γεμίζει οριζόντια, διατηρεί αναλογία */
}


nav {
  width: fit-content;
  margin: 3rem auto;

  padding: 8px;
  /*   background: black; */
  border-radius: 8px;

  @supports (corner-shape: squircle) {
    border-radius: 24px;
    border-shape: squircle;
  }

  ul:has(:not(:hover)) {
    anchor-name: --test;
  }

  &::before {
    z-index: -2;
    background-attachment: fixed;
    background-image: url("background.jpg");
  }

  &::after {
    backdrop-filter: blur(2px);
    background-color: hsl(200 100% 100% / 0.1);
    z-index: -1;
  }

  & > ul {
    position: relative;

    &::after {
      content: "";
      position: absolute;
      z-index: -3;
      inset: -8px;
      border-radius: 8px;

      @supports (corner-shape: squircle) {
        border-radius: 24px;
        border-shape: squircle;
      }
      background: hsl(0 0% 0% / 0.8);
      backdrop-filter: blur(2px);
    }
  }

  &::before,
  &::after {
    content: "";
    border-radius: 8px;

    position-anchor: --test;
    position: absolute;
    top: calc(anchor(bottom) - 4px);
    left: calc(anchor(left) + 1rem);
    right: calc(anchor(right) + 1rem);
    bottom: anchor(bottom);

    transition: 500ms;
    transition-timing-function: linear(
      0,
      0.008 1.1%,
      0.031 2.2%,
      0.129 4.8%,
      0.257 7.2%,
      0.671 14.2%,
      0.789 16.5%,
      0.881 18.6%,
      0.957 20.7%,
      1.019 22.9%,
      1.063 25.1%,
      1.094 27.4%,
      1.114 30.7%,
      1.112 34.5%,
      1.018 49.9%,
      0.99 59.1%,
      1
    );
  }

  &:has(a:hover)::before,
  &:has(a:hover)::after {
    @supports (corner-shape: squircle) {
      corner-shape: squircle;
      border-radius: 50%;
    }
    top: anchor(top);
    left: anchor(left);
    right: anchor(right);
  }

  &:has(li:first-of-type a:hover)::before,
  &:has(li:first-of-type a:hover)::after {
    @supports (corner-shape: squircle) {
      border-radius: 32px 50% 50% 32px;
    }
  }

  &:has(li:last-of-type a:hover)::before,
  &:has(li:last-of-type a:hover)::after {
    @supports (corner-shape: squircle) {
      border-radius: 50% 32px 32px 50%;
    }
  }

  > ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
  }

  a {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: white;

    &:hover {
      position: relative;
      display: block;
      anchor-name: --test;
    }
  }
}

html {
  color-scheme: dark;
}

body {

  font-family: system-ui;
  font-size: 16px; /* normal base size */
}

.content section {
  display: none;
}

#home:target {
  display: block;
  margin-top: 5rem;
  text-align: center;
  color: white;
}

/* Services Section */
.services {
  padding: 80px 20px;
}

.services .container {
  max-width: 1200px;
  margin: auto;
}

.section-title {
	
  text-align: center;
  font-weight: 700;
  margin-bottom: 60px;
  color: #DFE3EE;
}



/* Grid Layout */
.boxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .boxes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .boxes {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Box Styling */
.box {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Heading */
.heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.heading img {
  width: 48px;
  height: 48px;
}

.heading h2 {
  font-size: 20px;
  font-weight: 600;
  color: #111;
}

/* Content */
.content p {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

.title {
  margin: 100px 0 50px 0;
  letter-spacing: 3px;
  color: #DFE3EE; 
}

/* ===== ABOUT US SECTION ===== */

.about {
  margin-top: 0;          /* pushes it below nav */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-text {
  max-width: 700px;
  margin-top: 10px;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #DFE3EE;
}

/* ===== LOGO / COMPANY NAME ===== */

header {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.logo {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-align: center;
  color: #ffffff;
}

/* Mobile fix */
@media (max-width: 600px) {
  .logo {
    font-size: 1.6rem;
    letter-spacing: 2px;
  }
}

/* ===== SOFT BACKGROUND OVERLAY ===== */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); /* άλλαξε ένταση εδώ */
  z-index: -1;  
}

.contact {
  margin-top: 0;          /* pushes it below nav */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-text {
  max-width: 700px;
  margin-top: 10px;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #DFE3EE;
}

@media (max-width: 768px) {
  nav > ul {
    flex-direction: row;   /* keep it horizontal */
    flex-wrap: wrap;       /* allow wrapping if screen is too narrow */
    justify-content: center;
  }

  nav a {
    padding: 0.5rem 0.8rem; /* smaller padding for mobile */
    font-size: 0.95rem;     /* adjust font size for phone */
  }
}

@media (max-width: 600px) {
  .title,
  .section-title {
    font-size: 1.4rem;
    margin: 60px 0 30px 0;
  }

  .about-text,
  .contact-text {
    font-size: 1rem;
    padding: 0 15px;
  }
}





