* {
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
}

:root {
  --bg-color: #1f242d;
  --second-bg-color: #323946;
  --main-color: #7cf03d;
  --white-color: #fff;
  --disabled-color: #fff3;
}

html {
  font-size: 62.5%;
}

body {
  color: var(--white-color);
  background-color: var(--second-bg-color);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-size: 3rem;
  color: var(--white-color);
  font-weight: 700;
}

nav a {
  font-size: 2rem;
  color: var(--white-color);
  font-weight: 500;
  margin-left: 3.5rem;
  transition: 0.5s;
}

nav a:hover,
nav a.active {
  color: var(--main-color);
}

#menu-icon {
  font-size: 4rem;
}

h2 {
  margin-top: 9rem;
  color: white;
  font-size: 5rem;
  text-align: center;
}

h2 span {
  color: var(--main-color);
}

.services-active {
  padding: 4rem 9%;
}

.services-box h3 {
  font-size: 3rem;
  margin: 0.5rem 0 2rem;
  text-align: center;
  margin-top: 0.5rem;
  transition: 0.5s;
}

.services-box p {
  font-size: 2.4rem;
  font-weight: 600;
}

.services-container .services-box:hover {
  border-color: var(--main-color);
  transform: scale(1.02);
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}
.services-box {
  padding: 3rem 2.5rem;
  background: var(--bg-color);
  border: 0.2rem solid var(--second-bg-color);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: 0.5s;
  height: calc((50 /) 3);
}

.services-box .icon {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.services-box .icon i {
  font-size: 4rem;
}

.services-box .icon a {
  display: inline-flex;
  background: var(--white-color);
  border-radius: 50%;
  padding: 1rem;
  transition: 0.5s;
}

.services-box .icon a i {
  font-size: 3rem;
  color: var(--bg-color);
  transform: rotate(225deg);
}

.services-box:hover .icon :not(a i) {
  color: var(--main-color);
  transition: 0.5s;
}

.services-box:hover .icon a {
  background: var(--main-color);
}

.services-box:hover h3 {
  color: var(--main-color);
}

.services-box .icon a:hover i {
  transform: rotate(180deg);
}

footer .container {
  background-color: var(--bg-color);
  margin-top: 10rem;
}

footer .row {
  display: flex;
  justify-content: space-between;
  padding: 4rem 10rem;
  gap: 3rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li{
  font-size: 1.6rem;
}

.footer-col h4 {
  color: var(--white-color);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h4:hover{
  color: var(--main-color);
}

.footer-col h4::before {
  content: "";
  width: 7rem;
  height: 0.2rem;
  position: absolute;
  background: var(--main-color);
  bottom: -1rem;
}

.footer-col ul li {
  padding: 1rem 0;
}

.footer-col ul li a {
  color: var(--white-color);
  text-decoration: none;
  font-size: 2rem;
  opacity: 0.7;
  transition: 0.5s;
}

.footer-col ul li a:hover {
  color: var(--main-color);
  opacity: 1.5;
}

.footer-col input {
  border: none;
  width: 25rem;
  height: 4.5rem;
  display: block;
  padding-left: 2rem;
  margin: 1.4rem 0;
  font-size: 2rem;
}

.footer-col .inputsubmit {
  padding: 0 2rem;
  background-color: var(--main-color);
  border: none;
  color: black;
  font-size: 2rem;
}

.col p {
  color: var(--white-color);
  font-size: 1.6rem;
  
}

.footer .col a {
  color: var(--white-color);
}

.row hr {
  color: var(--white-color);
}

.row .social-icons {
  border-radius: 50%;
  margin-top: -1.4rem;
  display: flex;
  justify-content: flex-start;
  text-align: left;
}

.row .social-icons i {
  display: inline-flex;
  padding: 0.8rem;
  border: 0.2rem solid var(--main-color);
  border-radius: 50%;
  font-size: 1.7rem;
  color: var(--main-color);
  margin: 0 0.8rem;
  transition: 0.5s;
  left: 7rem;
}

.row .social-icons i:hover {
  background: var(--main-color);
  color: var(--bg-color);
  box-shadow: 0 0 1rem var(--main-color);
}

.footer-line {
  border: none;
  border-top: 0.1rem solid var(--white-color);
  margin: 3rem 0;
}

.row .col p a {
  color: var(--white-color);
  margin-left: 3.9rem;
  font-size: 1.7rem;
  margin-right: 2rem;
}

.row .col p a:hover {
  color: var(--main-color);
}

.row .col {
  display: flex;
  gap: 3rem;
}


/* ================= RESPONSIVE GLOBAL ================= */

@media (max-width: 1024px) {
  html {
    font-size: 58%;
  }
}

/* ================= MOBILE NAVBAR & HEADER ================= */

@media (max-width: 900px) {

  /* Header scrolls with page */
  header {
    position: relative;
    padding: 2rem 5%;
  }

  /* Menu icon visible */
  #menu-icon {
    display: block;
    cursor: pointer;
    color: var(--white-color);
  }

  /* Navbar vertical and hidden by default */
  nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: var(--bg-color);
    display: flex;
    flex-direction: column; /* vertical menu */
    text-align: center;
    gap: 1rem;
    padding: 2rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 100;
  }

  /* Show menu when active */
  nav.active {
    max-height: 500px; /* enough for all links */
  }

  /* Navbar links styling */
  nav a {
    margin: 0;
    font-size: 2.2rem;
    padding: 1rem 0;
    border-top: 0.1rem solid var(--main-color);
    transition: 0.3s;
  }

  nav a:first-child {
    border-top: none;
  }

  nav a:hover,
  nav a.active {
    color: var(--main-color);
  }

  /* FOOTER */
  footer .row {
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 4rem;
  }

  .footer-col h4{
    font-size: 4rem;
  }

  .footer-col ul li {
    font-size: 3rem;
  }

  .footer-col ul li a {
    font-size: 3rem;
  }

  .footer-col input {
    width: 80%;
    font-size: 3rem;
  }
  .row .col {
    justify-content: center;
    text-align: center;
  }

  .row .col p {
    justify-content: center;
    text-align: center;
    font-size: 3rem;
  }

  .row .col p a {
    font-size: 3rem;
    margin-left: 0;
    margin-top: 1rem;
    display: inline-block;
  }

  .social-icons {
    justify-content: center;
  }

  .social-icons i {
    font-size: 3rem;
    margin: 0 1rem;
  }
}

/* ================= SMALL SCREENS (PHONES) ================= */

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }

  .contact-form h3 {
    font-size: 2.4rem;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    font-size: 1.5rem;
  }

}
/* Language select styling */
.lang-select {
  appearance: none;          /* remove default arrow */
  -webkit-appearance: none;  /* Safari/Chrome */
  -moz-appearance: none;     /* Firefox */
  background-color: var(--bg-color);
  color: var(--white-color);
  font-size: 2.5rem;
  padding: 0.8rem 2.5rem 0.8rem 1rem; /* extra right space for arrow */
  border: 0.2rem solid var(--main-color);
  border-radius: 0.6rem;
  cursor: pointer;
  outline: none;
  position: relative;
  transition: all 0.3s ease;
}

/* Hover & focus effects */
.lang-select:hover,
.lang-select:focus {
  background-color: var(--second-bg-color);
  border-color: var(--main-color);
  color: var(--main-color);
}

/* Custom arrow using pseudo-element */
.lang-select-wrapper {
  position: relative;
  display: inline-block;
}

.lang-select-wrapper::after {
  content: "\25BC"; /* downward arrow */
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--main-color);
  font-size: 2.5rem;
}

/* Optional: small screens adjustment */
@media (max-width: 900px) {
  .lang-select {
    font-size: 1.6rem;
    padding: 0.6rem 2rem 0.6rem 0.8rem;
  }
}