/* --- BASIC RESET --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background-image: url('/img/bg1.png');
  background-size: cover;
  padding-top: 70px;
    background-position: center; 
}

/* --- HEADER --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
  gap: 20px;
  /*background: rgba(30, 41, 59, 0.5);*/
}

.header.hide {
  top: -100px;
}

header.scrolled {
    background: rgba(7, 0, 0, 0.5);
}

.logo {
  flex: 1; /* optional: allows better spacing distribution */
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

.logo img {
  width: 40%;
  height: auto;
  display: block;
  box-shadow: #fff;
}

.call {
  white-space: nowrap;
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  padding-right: 12px;
}

/* --- NAVIGATION --- */
nav {
  display: flex;
  align-content: space-around;
  color: #fff;
  padding: 0px;
  width: max-content;
}

.menu {
  display: flex;
  gap: 15px;
  padding: 05px;
}

.menue {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 24px;
  white-space: nowrap;
  padding-right: 20px;
}

.menue:hover {
  color: #007BFF;
}

/* --- HAMBURGER --- */
.hamburger {
  display: none;
  position: fixed;
  top: 10px;
  right: 20px;
  font-size: 30px;
  color: white;
  background: none;
  border: none;
  z-index: 2001;
  cursor: pointer;
}


/* --- HERO SECTION --- */
.hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  /*background: rgba(30, 41, 59, 0.5);*/
  color: #fff;
  padding: 10px 5px;
  text-align: center;
  gap: 20px;

}

.hero .text {
  flex: 2;
}

.hero .image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.robo {
  max-width: 100%;
  height: auto;
  animation:
    slideInFromRight 1.5s ease forwards,
    twistY 1s ease-in-out 1.6s forwards;
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100vw);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes twistY {
  100% {
    transform: translateX(0) rotateY(360deg);
  }
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
}

.hero button {
  margin-top: 20px;
  padding: 10px 20px;
  background: #38bdf8;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 5px;
}

/* --- SECTIONS --- */
section {
  padding: 60px 20px;
  text-align: center;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

#services, #why, #portfolio, #testimonials, #contact {
  /*background: rgba(30, 41, 59, 0.5);*/
  margin-top: 10px;
  height: 450px;
  justify-content: center;
  align-items: center;

}

.services, .features, .portfolio, .testimonials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.card, .cardp {
  color: black;
  font-weight: bold;
  background: #f1f5f9;
  padding: 20px;
  width: 250px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cardp {
  padding: 5px;
  width: 300px;
}

form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  background: #0ea5e9;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}

footer {
  background: #0f172a;
  color: white;
  text-align: center;
  padding: 20px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    margin-right: 18px;

  }

  header {
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  .menu, .menue {
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    display: none;
  }

  .logo {
    margin-left: 0;
    justify-content: center;
  }

  .logo img {
    width: 50%;
  }

  .call {
    font-size: 14px;
    padding: 5px 0;
    text-align: center;
  }

  .hero {
    flex-direction: column;
    padding-top: 100px;
    text-align: center;

  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .robo {
    max-width: 80%;
    margin: 20px auto;
  }

  .services, .features, .portfolio, .testimonials {
    flex-direction: column;
    /*background: rgba(30, 41, 59, 0.5);*/
    justify-content: center;
    align-items: center;
  }

  #services, #why, #portfolio, #testimonials, #contact {
    /*background: rgba(30, 41, 59, 0.5);*/
    height: auto;
    justify-content: center;
    align-items: center;
  }

  .card, .cardp {
    width: 90%;
  }

  form {
    width: 90%;
    padding: 10px;
  }

  footer {
    padding: 15px;
    font-size: 14px;
  }
}
