
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #000;
  color: #fff;
}

header {
    background-color: #111;
    margin: 2rem auto; 
    padding: 10px;
    border-radius: 20px;
    width: 1000px; 
}

.nav-container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    max-width: 100%; 
    margin: 0 auto;
}

.logo {
    padding-right: 90px;
    font-size: 1.5em;
    color: #fff; 
    font-style: MuseoModerno;
}

nav a {
    color: #fff; 
    text-decoration: none;
    margin: 0 1em; 
    font-size: 1.1em;
}

nav a:hover {
    color: #00bcd4; 
    transition: color 0.3s ease; 
}


.hero {
  text-align: center;
  padding: 2em 0;
  background-size: cover;
  font-size: 2.5em;
  font-family: MuseoModerno;

}

.hero img{
        width: 1200px;
        height: 672px;
        padding: 40px 40px;
        border-radius: 22px 0px 0px 0px;
        border: 1px 0px 0px 0px;

}

.hero h1 {
  font-size: 3em;
  margin-bottom: 1em;
}

.projects {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5em;
    padding: 2em 1em;
    max-width: 1200px;
    margin: 0 auto;
}

.project img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.project h3 {
  margin: 0.5em 0 0.2em;
}

.subscribe {
  background-color: #111;
  padding: 2em 1em;
  text-align: center;
}

.subscribe h2 {
  font-size: 1.8em;
  margin-bottom: 1em;
}

.subscribe form {
  display: flex;
  justify-content: center;
  gap: 0.5em;
}

.subscribe input {
    padding: 0.5em;
    font-size: 1em;
    background-color: #000000;
}

.subscribe button {
    padding: 0.5em 1em;
    background-color: #928DD3;
    color: #fff;
    border: none;
    cursor: pointer;
}

footer {
    display: flex;
    text-align: center;
    justify-content: space-between;
    padding: 1em;
    background-color: #111;
}
.contact {
    width: 10%;
    background-color: transparent;
    border: 1px solid #fff;
    border-radius: 5px;
    padding: 10px 20px;
    color: #fff;
    cursor: pointer;
}
/* General Mobile Optimization */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: center;
  }

  nav a {
    margin: 0.5em 0;
  }

  .hero h1 {
    font-size: 2em;
    margin-bottom: 1em;
  }

  .projects {
    grid-template-columns: 1fr;
    gap: 1em;
  }

  .subscribe form {
    flex-direction: column;
    gap: 0.5em;
  }

  .subscribe input {
    width: 100%;
  }

  .subscribe button {
    width: 100%;
  }
}

/* Specific for iPhones (portrait mode) */
@media (max-width: 430px) {
  .hero h1 {
    font-size: 1.8em;
  }

  .nav-container {
    padding: 0.5em;
  }

  nav a {
    font-size: 0.9em;
  }

  .projects {
    padding: 1em;
  }

  .project h3 {
    font-size: 1.2em;
  }

  .subscribe h2 {
    font-size: 1.5em;
  }
}

/* Specific for iPads (portrait mode) */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5em;
  }

  .projects {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em;
  }

  .project h3 {
    font-size: 1.4em;
  }

  .subscribe form {
    flex-direction: row;
    gap: 1em;
  }

  .subscribe input {
    width: auto;
  }

  .subscribe button {
    width: auto;
  }
}
