
:root {
  --primary-blue: #0a192f;
  --secondary-white: #ffffff;
  --overlay-dark: rgba(10, 25, 47, 0.6);
}

:lang(el) body,
:lang(el) h1,
:lang(el) h2,
:lang(el) h3,
:lang(el) p,
:lang(el) a {
  font-family: 'IBM Plex Sans', sans-serif !important;
  letter-spacing: 0.5px;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary-blue);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
}

.navbar {
  transition: all 0.4s ease;
  padding: 1rem 0;
  flex-wrap: nowrap;
}

.navbar-brand {
  font-weight: 700;
  color: var(--secondary-white) !important;
  font-size: 1.5rem;
  letter-spacing: 3px;
}

@media (max-width: 991px) {
  .navbar-brand img {
    max-height: 70px !important;
    width: auto;
  }
}

.nav-link {
  color: var(--secondary-white) !important;
  white-space: nowrap;
  font-weight: 400;
  margin-left: 20px;
  font-size: 0.9rem;
  text-transform: uppercase;
  position: relative;
}

.nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: var(--secondary-white);
  transition: width .3s;
}

.nav-link:hover::after {
  width: 100%;
}

.navbar.scrolled {
  background-color: var(--primary-blue);
  padding: 0.8rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.hero-section {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../img/boatyard_top.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--secondary-white);
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.5rem;
  font-weight: bold;
}

#services-header {
  color: var(--primary-blue);
  padding-top: 1.5rem;
  padding-right: 1rem;
  padding-left: 1rem;
}

#services-header h2 {
  text-align: center;
  font-weight: 700;
  font-size: 2.5rem;
}

#services-header p {
  text-align: center;
  padding-top: 0.5rem;
  font-size: 1.5rem;
}

.services-section {
  padding-top: 0.5rem;
  padding-bottom: 0;
  background-color: #f8f9fa;
}

.service-category {
  margin-bottom: 0;
}

.service-header {
  margin-top: 5rem;
  padding-top: 0.5rem;
  background-color: #f8f9fa;
}

.service-header h2 {
  text-align: center;
  margin-top: 0px;
  color: var(--primary-blue);
  font-size: 2rem;
}

.service-header p {
  padding-top: 1rem;
  padding-left: 10rem;
  padding-right: 10rem;
  text-align: justify;
}

@media (max-width: 991px) {
  .service-header p {
    padding-top: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: justify;
  }
}

.service-img-wrap {
  position: relative;
  height: 400px;
  overflow: hidden;
  cursor: pointer;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-img-wrap:hover img {
  transform: scale(1.05);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.service-img-wrap:hover .service-overlay {
  background: rgba(10, 25, 47, 0.7);
}

.service-text {
  color: var(--secondary-white);
  text-align: center;
  padding: 20px;
  z-index: 2;
}

.service-text h4 {
  font-size: 1.5rem;
  border-bottom: 1px solid transparent;
  display: inline-block;
  transition: border-color 0.3s;
}

.service-img-wrap:hover .service-text h4 {
  border-color: var(--secondary-white);
}

.contact-section {
  padding: 5rem 0 0 0;
  background-color: var(--secondary-white);
}

.contact-form-container {
  max-width: 800px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
}

.form-control {
  border: none;
  border-bottom: 2px solid var(--primary-blue);
  border-radius: 0;
  padding: 15px;
  background: transparent;
}

.form-control:focus {
  box-shadow: none;
  border-color: #4a6fa5;
  background: transparent;
}

.btn-submit {
  background-color: var(--primary-blue);
  color: var(--secondary-white);
  padding: 12px 40px;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.3s;
  margin-top: 20px;
}

.btn-submit:hover {
  background-color: #162f50;
  color: #fff;
}

.map-container {
  margin: 10px;
}

footer {
  background-color: var(--primary-blue);
  color: var(--secondary-white);
  padding: 40px 0;
  text-align: center;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .service-img-wrap {
    height: 250px;
  }

  .service-text h4 {
    font-size: 1.2rem;
  }
}

.why-us-section {
  background-color: var(--primary-blue);
  color: var(--secondary-white);
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  display: inline-block;
}

section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--secondary-white);
  margin: 15px auto 0;
}

.feature-box {
  padding: 40px 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
  transition: all 0.4s ease;
  text-align: center;
}

.feature-box:hover {
  border-color: var(--secondary-white);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 25px;
  opacity: 0.8;
}

.feature-box h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.feature-box p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 0;
  text-align: justify;
}

h5 {
  text-align: center;
}

.about-section {
  padding: 5rem 0;
  background-color: var(--secondary-white);
  overflow: hidden;
}

.about-content {
  padding-right: 3rem;
}

.subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  color: #8892b0;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: block;
}

.about-title {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
}

.about-text {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-weight: 300;
  text-align: justify;
}

.btn-line {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 5px;
  transition: all 0.3s ease;
}

.btn-line::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-blue);
  transition: width 0.3s ease;
}

.btn-line:hover::after {
  width: 100%;
}

.about-image-wrapper {
  position: relative;
  height: 100%;
  min-height: 500px;
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 20px 20px 0px rgba(10, 25, 47, 0.1);
}

@media (max-width: 991px) {
  .about-content {
    padding-right: 0;
    margin-bottom: 3rem;
    text-align: center;
  }

  .about-image-wrapper {
    min-height: 300px;
  }

  .btn-line::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

#contact-info .row {
  vertical-align: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.success {
  color: green;
  margin-top: 2rem;
  font-size: 2rem;
}

.custom-alert {
  border-radius: 0;
  border: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.alert-success {
  background-color: #198754;
  color: #fff;
}

.alert-success .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.alert-danger {
  background-color: #dc3545;
  color: #fff;
}

.alert-danger .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

hr {
  margin: 0;
  padding: 0;
}

#company-watermarks {
  margin-bottom: 10rem;
  row-gap: 2rem;
}

@media (max-width: 991px) {
  #company-watermarks {
    margin-bottom: 10rem;
    row-gap: 2rem;
    text-align: center;
  }
}

a {
  color: var(--primary-blue);
}

#name {
  display: none;
}

/* --- LANGUAGE SWITCHER NAVBAR --- */
.lang-switch {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary-white);
  letter-spacing: 1px;
}

.lang-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5); /* Αχνό για την ανενεργή γλώσσα */
  transition: color 0.3s ease;
}

.lang-link:hover, .lang-link.active {
  color: var(--secondary-white); /* Λευκό για την ενεργή */
}

.lang-separator {
  margin: 0 5px;
  opacity: 0.3;
}

@media (max-width: 768px) {

  /* Διόρθωση για το Hero Image που ζουμάρει */
  .hero-section {
    /* Αντί για 100vh (όλη η οθόνη), το βάζουμε στο 60% του ύψους */
    height: 60vh;
    /* Ή εναλλακτικά βάλε σταθερό ύψος π.χ. height: 500px; */

    /* Βεβαιωνόμαστε ότι έχει ένα ελάχιστο ύψος για να χωράει το κείμενο */
    min-height: 450px;

    /* Σημαντικό: Κεντράρισμα της εικόνας */
    /* Δοκίμασε 'center center' ή 'center top' ανάλογα που είναι το θέμα της φωτογραφίας σου */
    background-position: center center !important;
    background-attachment: scroll !important;
    background-size: cover !important;
    height: 100vh !important;
    min-height: 500px;
  }

  /* Προσαρμογή του κειμένου για να χωράει στο μικρότερο ύψος */
  .hero-content h1 {
    font-size: 2rem; /* Μικρότερος τίτλος */
    margin-bottom: 0.5rem;
  }

  .hero-content p {
    font-size: 1rem;
    padding: 0 20px; /* Λίγο περιθώριο δεξιά αριστερά */
  }
}
