/* --- Reset and Base Styles --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f6f9;
  color: #333;
  transition: background-color 0.3s, color 0.3s;
}
header {
  background: #2c3e50;
  color: #fff;
  padding: 1% 2.5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
header h1 {
  font-size: 180%;
  flex-shrink: 0;
  margin-right: 2em;
}
.navbar { 
  display: flex; 
  gap: 2%; 
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
}
.navbar .icon {
  display: none;
}

@media screen and (max-width: 800px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2.5em;
    height: 2.5em;
    cursor: pointer;
    margin-left: auto;
    margin-right: 0;
    position: absolute;
    right: 2.5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
    background: url('../list.png') center center no-repeat;
    background-size: 1.8em 1.8em;
    border: none;
  }
  .menu-toggle div {
    display: none;
  }
  .navbar {
    display: none;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    padding: 0.5em 1em;
    background: #2c3e50;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    border-radius: 0 0 1em 1em;
    box-shadow: 0 0.25em 1.125em rgba(44,62,80,0.18);
  }
  .navbar.responsive {
    display: flex;
  }
  header {
    padding-right: 3.5em;
  }
  .hero h2 {
    font-size: 18vw;
  }
  .hero p {
    font-size: 11vw;
  }
}

.navbar a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s, background 0.3s;
  background: #2c3e50;
  border: none;
  border-radius: 0.5em;
  padding: 0.4em 1em;
  font-size: 100%;
  box-sizing: border-box;
  display: inline-block;
}
.navbar a:hover {
  color: #fff;
  background: #2980b9;
  border: none;
  border-radius: 0.5em;
}

.clean-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.selector,
.language-select {
  background: #2c3e50;
  color: #fff;
  border: none;
  border-radius: 0.5em;
  max-width: 100%;
  min-width: 8em;
  width: 5em;
  font-size: 100%;
  cursor: pointer;
  transition: background 0.3s;
  height: 2.2em;
  line-height: 1.2em;
  display: inline-block;
  box-sizing: border-box;
  vertical-align: middle;
  padding:0.4em 1em;
}
.selector{
  max-width: 100%;
  min-width: 5.5em;
  width: 2em;
}
.navbar, .selector, .language-select {
  align-items: center;
}

.selector:hover, .language-select:hover {
  background: #2980b9;
}

.toggle-theme {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4em;
  cursor: pointer;
  transition: color 0.3s;
}

/* --- Hero Section --- */
.hero {
  color: #000;
  margin: 4em 20% 3em 20%;
  height: 25em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 0.4em solid #2980b9;
  border-radius: 1em;
  box-shadow: 0 0.4em 1.5em rgba(0, 0, 0, 0.3);
  text-shadow: 0.2em 0.2em 0.3em white; 
  font-size: clamp(1rem, 2vw, 1.5rem); 
  padding: 2em 5vw;
}
.hero h2 { 
  font-size: clamp(2rem, 7vw, 4rem);
  margin-bottom: 0.1em; 
}
.hero p { 
  font-size: clamp(1.2rem, 4vw, 2rem);
}

@media screen and (max-width: 800px) {
  .hero {
    margin: 2em 4vw 2em 4vw;
    height: auto;
    padding: 1.2em 3vw; 
  }
  .hero h2 {
    font-size: clamp(1.5rem, 12vw, 2.5rem);
  }
  .hero p {
    font-size: clamp(1rem, 7vw, 1.5rem);
  }
}

.section-title {
  text-align: center;
  margin-bottom: 1em;
  color: #2c3e50;
  font-size: 200%;
  transition: color 0.3s;
}

.container {
  padding: 2em 2em;
  max-width: 80em;
  margin: auto;
}
/* --- Services --- */
.services {

        display: flex;
        flex-wrap: wrap;
        gap: 2em;
        justify-content: center;
        margin-top: 1em;
}
.center-service {
  grid-column: 1 / -1;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.service {
  flex: 1 1 20em;
  max-width: 25em;
  min-width: 17em;
  background: linear-gradient(135deg, #f4f6f9 60%, #e9eef3 100%);
  border: 0.1em solid #e0e7ef;
  border-radius: 1.125em;
  box-shadow: 0 0.25em 1.125em rgba(44,62,80,0.07);
  padding: 1.75em 1.5em 1.375em 1.5em;
  margin-bottom: 0.625em;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.service:not(:last-child)::after {
  content: '';
  display: block;
  height: 0.1em;
  width: 80%;
  margin: 1.75em auto 0 auto;
  background: linear-gradient(90deg, #e0e7ef 0%, #f4f6f9 100%);
  opacity: 0.55;
  border-radius: 0.125em;
  transition: background 0.3s;
}
.service-icon {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 0.625em;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.5em); }
}
.service:hover {
  transform: translateY(-0.3125em);
  box-shadow: 0 0.25em 0.9375em rgba(0,0,0,0.2);
  background: linear-gradient(135deg, #e9eef3 60%, #f4f6f9 100%);
}
.service h3 {
  color: #2980b9;
  margin-bottom: 0.625em;
  font-size: 140%;
  letter-spacing: 0.01em;
  transition: color 0.3s;
}
.service ul {
  text-align: left;
  margin: 0 0 0.625em 0;
  padding-left: 1.125em;
}
.service ul li {
  margin-bottom: 0.4375em;
  font-size: 100%;
  line-height: 1.6;
  list-style: disc inside;
}
.service p {
  font-size: 105%;
  margin-bottom: 0.75em;
  color: #333;
}
/* Generic content class */
.content {
  background-color: #ffffff;
  padding: 1.875em;
  margin: 2.5em 0;
  border-radius: 1.125em;
  box-shadow: 0 0.25em 1.125em rgba(44,62,80,0.07);
  line-height: 1.7;
  font-size: 105%;
  transition: background-color 0.3s, color 0.3s;
}
.content h2, .content h3 {
  margin-bottom: 0.9375em;
}
.content p {
  margin-bottom: 0.9375em;
  text-align: center;
}
/* --- About Section --- */
.about {
  background-color: #e9eef3;
  padding: 1.875em;
  border-radius: 1.125em;
  margin-top: 2.5em;
  box-shadow: 0 0.25em 1.125em rgba(44,62,80,0.07);
}
.about p {
  font-size: 105%;
  margin-bottom: 0.625em;
}
.about:hover {
  box-shadow: 0 0.5em 2em rgba(44,62,80,0.13);
  transform: translateY(-0.375em) scale(1.025);
  background: linear-gradient(135deg, #e9eef3 60%, #f4f6f9 100%);
  transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
}
body.dark .about:hover {
  box-shadow: 0 0.5em 2em rgba(44,62,80,0.18);
  background: linear-gradient(135deg, #23272b 60%, #181c22 100%);
}
/* --- Contact Section --- */
.contact {
  background-color: #e9eef3;
  padding: 1.875em;
  border-radius: 1.125em;
  text-align: center;
  margin-top: 3.125em;
  box-shadow: 0 0.25em 1.125em rgba(44,62,80,0.07);
}
.contact p { font-size: 105%; margin-bottom: 0.625em; }
.contact:hover {
  box-shadow: 0 0.5em 2em rgba(44,62,80,0.13);
  transform: translateY(-0.375em) scale(1.025);
  background: linear-gradient(135deg, #e9eef3 60%, #f4f6f9 100%);
  transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
}
body.dark .contact:hover {
  box-shadow: 0 0.5em 2em rgba(44,62,80,0.18);
  background: linear-gradient(135deg, #23272b 60%, #181c22 100%);
}
/* --- Footer --- */
footer {
  background: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 0.9375em 0;
  margin-top: 2.5em;
  transition: background-color 0.3s;
}
/* --- Dark Mode --- */
body.dark { background-color: #121212; color: #e0e0e0; }
body.dark .section-title { color: #f1c40f; }
body.dark .service {
  background: linear-gradient(135deg, #1e1e1e 60%, #23272b 100%);
  border-color: #23272b;
  color: #e0e0e0;
}
body.dark .hero{
  background: url('https://images.unsplash.com/photo-1556761175-4b46a572b786') no-repeat center center/cover;
  color: #000;
  height: 25em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 0.3125em solid #f1c40f;
  border-radius: 0.75em;
  box-shadow: 0 0.25em 0.9375em rgba(0, 0, 0, 0.3);
  margin: 4em 20% 3em 20%;
}
body.dark .service:not(:last-child)::after {
  background: linear-gradient(90deg, #23272b 0%, #181c22 100%);
  opacity: 0.35;
}
body.dark .service h3 { color: #f1c40f; }
body.dark .service p, body.dark .service ul li { color: #e0e0e0; }
body.dark .content {
  background: linear-gradient(120deg, #1f1f1f 60%, #1d1c1c 100%);
  color: #e0e0e0;
  border-radius: 1.125em;
  box-shadow: 0 0.25em 1.5em rgba(44,62,80,0.18);
  transition: background 0.3s, color 0.3s;
}
body.dark header { background: #1f1f1f; }
body.dark footer { background: #1f1f1f; }
body.dark .navbar a { color: #e0e0e0; background:#1f1f1f}
body.dark .navbar a:hover { color: #000; background:#f1c40f}
body.dark .about {
  background-color: #1f1f1f;
  border-radius: 1.125em;
  box-shadow: 0 0.25em 1.5em rgba(44,62,80,0.18);
}
body.dark .contact {
  background-color: #1f1f1f;
  border-radius: 1.125em;
  box-shadow: 0 0.25em 1.5em rgba(44,62,80,0.18);
}
body.dark .selector,
body.dark .language-select {
  background: #1e1e1e ;
  color: #e0e0e0;
  box-shadow: 0 0.125em 0.5em rgba(44,62,80,0.18);
}
body.dark .navbar.responsive {
  background: #1f1f1f;
}
body.dark .selector:hover,
body.dark .language-select:hover {
  background: #f1c40f;
  color: #000;
}
body.dark .service:hover {
  transform: translateY(-0.3125em);
  box-shadow: 0 0.25em 0.9375em rgba(44,62,80,0.22);
  background: linear-gradient(135deg, #23272b 60%, #181c22 100%);
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}

@media screen and (max-width: 800px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2.5em;
    height: 2.5em;
    cursor: pointer;
    margin-left: auto;
    margin-right: 0;
    position: absolute;
    right: 2.5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
  }
  .navbar {
    display: none;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    padding: 0.5em 1em;
    background: #2c3e50;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    border-radius: 0 0 1em 1em;
    box-shadow: 0 0.25em 1.125em rgba(44,62,80,0.18);
  }
  .navbar.responsive {
    display: flex;
  }
  header {
    padding-right: 3.5em;
  }
}