* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  transition: background 0.3s;
  background-color: rgb(250, 250, 250);
  font-size: 1rem;
}
footer {
  background-color: black;
  color: white;
  width: 100%;
  font-family: 'Open Sans', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  bottom: 0;
  left: 0;
}
.hero {
  height: 100vh;
  background-image: url('https://img.martoncreative.com/img/12.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  width: auto;
  height: auto;
  padding: 10%;
}
.logo {
  max-width: 40%;
  height: auto;
  margin-bottom: 3%;
}
.logo, .tagline {
  opacity: 0;
  transition: opacity 1s ease;
}
body.loaded .logo, body.loaded .tagline {
  opacity: 1;
}
.tagline {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.5;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
  height: auto;
}
.navbar.visible {
  opacity: 1;
}
.navbar-logo-img {
  width: 100%;
}
.navbar-menu {
  display: flex;
  gap: 20px;
  padding: 15px;
}
.nav-item {
  text-decoration: none;
  color: #333;
  padding-bottom: 1em;
  position: relative;
  border-bottom: 0.1em solid transparent;
  transition: border-color 0.1s ease;
  display: inline-block;
  text-align: center;
  font-size: 1rem;
}
.nav-item:hover, .nav-item.active {
  border-bottom: 0.1em solid #696969;
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.bar {
  width: 30px;
  height: 2px;
  background-color: #333;
  transition: 0.3s;
}
.dropdown {
  display: none;
  position: absolute;
  top: 60px;
  right: 20px;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 999;
}
.dropdown.visible {
  display: block;
}
.dropdown-item {
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  background-color: #f4f4f4;
}
#about {
  background-color: rgb(250, 250, 250);
  height: 100%;
}
#services {
  background-color: rgb(255, 255, 255);
  height: 100%;
}
#portfolio {
  background-color: rgb(250, 250, 250);
  height: 100%;
}
#team {
  background-color: rgb(250, 250, 250);
  height: 100%;
}
#contact {
  background-color: rgb(250, 250, 250);
  height: 100%;
}
.about-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  margin: auto;
}
.about-content {
  display: flex;
  width: 90%;
  justify-content: space-between;
}
.about-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 5rem;
  margin-top: 5rem;
}
.about-logo {
  display: block;
  margin-top: 5rem;
  margin-bottom: 5rem;
  width: 4rem;
  height: auto;
}
.about-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: justify;
  font-size: 1rem;
  line-height: 1.8rem;
  white-space: pre-wrap;
  letter-spacing: normal;
}
.about-text p {
  font-size: 1rem;
  color: #666;
}
.services-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 0;
}
.services-title {
  font-size: 1.75rem;
  margin-bottom: 5rem;
  font-weight: bold;
}
.services-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem 4rem;
  width: 90%;
  max-width: 1200px;
}
.service-item {
  flex: 0 0 calc(33.33% - 3.33rem);
  max-width: 200px;
  text-align: center;
  min-width: 150px;
}
.service-icon {
  font-size: 3.5rem;
  color: #333;
  display: block;
  margin-bottom: 1rem;
  transition: color 0.3s, transform 0.3s;
}
.service-item:hover .service-icon {
  color: #000;
  transform: scale(1.2);
}
.service-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.service-item span {
  font-size: 1rem;
  color: #666;
  line-height: 1;
  display: block;
}
.intro {
  text-align: center;
  margin-bottom:3rem;
  margin-top: 5rem;
}
.process-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.process-step {
  flex: 1;
  min-width: 5rem;
  text-align: center;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
}
.arrow {
  width: 30px;
  height: 20px;
  flex-shrink: 0;
}
.intro h1 {
  font-size: 1.75rem;
  color: #000000;
  line-height: 1.5;
}
.intro p {
  font-size: 1rem;
  color: #777;
  line-height: 1.5;
}
.process-container h2 {
  font-size: 1.2rem;
  color: #000000;
  margin: 0 0 10px 0;
}
.process-container p {
  font-size: 0.875rem;
  color: #777;
  margin: 0;
}
.portfolio-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.portfolio-title {
  font-size: 1.75rem;
  width: 100%;
  justify-content: center;
  margin-top: 5rem;
  margin-bottom: 5%;
}
.logo-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-left: 5%;
  padding-right: 5%;
}
.logo-item {
  flex: 1 0 11.11%;
  max-width: 11.11%;
  box-sizing: border-box;
}
.logo-item img {
  display: block;
  width: 100%;
  padding: 10%;
}
.carousel {
  text-align: center;
  margin: auto;
  position: relative;
  width: 100%;
  margin-top: 5%;
}
.carousel-images {
  display: flex;
  position: relative; 
}
.carousel-image {
  width: 100%;
  height: auto;
  opacity: 0; 
  transition: opacity 1s ease; 
  position: absolute; 
  top: 0;
  left: 0;
}
.carousel-image.active {
  opacity: 1; 
  position: relative; 
}
.image {
  width: 100%;
  height: auto;
}
.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.5rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: bold;
  text-align: center;
  z-index: 10;
  letter-spacing: 0.2em;
}
.team-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-left: 5%;
  margin-right: 5%;
}
.team-header {
  font-size: 1.75rem;
  margin-top: 5rem;
}
.team-description {
  text-align: center;
  font-size: 1rem;
  margin: 2rem;
  color: #666;
}
.team-description span {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.5;
}
.primary-team-members {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.primary-member {
  flex: 1;
  margin: 2rem;
  text-align: center;
  min-width: 300px;
}
.member-photo {
  width: 100px;
  height: auto;
  border-radius: 50%;
}
.member-name {
  font-size: 1.25rem;
  margin: 0.5rem;
}
.member-role {
  font-size: 0.875rem;
  display: block;
  color: #666;
}
.member-bio {
  font-size: 0.875rem;
  display: block;
  line-height: 1.5;
  padding-top: 5%;
  color: #666;
}
.secondary-team-members {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.secondary-member {
  flex: 1;
  margin: 0.3rem;
  min-width: 150px;
  text-align: center;
}
.secondary-member .member-name {
  display: block;
  font-size: 1rem;
}
.secondary-member .member-role {
  font-size: 0.875rem;
  color: #666;
}
.contact-section {
  flex-direction: column;
  max-width: 1200px;
  width: 90%;
  margin: auto;
  margin-top: 5rem;
  margin-bottom: 5rem;
  font-family: 'Open Sans', sans-serif;
}
.contact-header {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 5%;
}
.contact-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
  width: 90%;
}
.contact-top {
  background: none;
}
.contact-bottom {
  text-align: center;
  margin: 2rem;
}
.contact-bottom h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.contact-bottom p {
  font-size: 0.875rem;
  margin: 5px 0;
}
.contact-form {
  display: flex;
  flex-direction: column;
}
.form-group {
  margin-bottom: 15px;
  margin-top: 0;
  padding-top: 0;
}
.form-left, .form-right {
  flex: 1;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: #bbb;
  opacity: 1;
  font-style: italic;
}
.form-group textarea {
  height: 150px;
  resize: vertical;
}
button[type="submit"] {
  width: 100%;
  padding: 15px;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 8px;
}
button[type="submit"]:hover {
  background-color: #333;
}
@media (max-width: 1024px) {
  .tagline {
      font-size: 1.5rem;
  }
  .navbar {
      opacity: 1;
      transition: none;
  }
  .navbar-menu {
      display: none;
      flex-direction: column;
      align-items: center;
  }
  .navbar-menu.active {
      display: flex;
  }
  .hamburger {
      display: flex;
  }
  .dropdown-item {
      display: flex;
  }
  .logo {
      max-width: 40%;
      margin-bottom: 5%;
  }
  .about-content {
      flex-direction: column;
      align-items: center;
  }
  .about-text {
      text-align: center;
      font-size: 0.875rem;
      line-height: 1.5rem;
  }
  .about-text p {
      font-size: 0.875rem;
      color: #666;
  }
  .about-logo {
      margin-top: 5rem;
      width: 3rem;
  }
  .about-title, .services-title, .portfolio-title {
      margin-bottom: 3rem;
      font-size: 1.5rem;
  }
  .intro h1{
      font-size: 1.5rem;
  }
  .services-icons {
      gap: 2rem 2rem;
      width: 80%;
  }
  .service-item {
      flex: 0 0 calc(50% - 1rem);
      max-width: none;
      min-width: 0;
  }
  .process-container {
    flex-direction: column;
    align-items: center;
}
.process-step {
    width: 100%;
    max-width: 300px; 
}
.arrow {
    transform: rotate(90deg); 
    margin: 10px 0;
}
  .logo-item {
      flex: 1 0 16.66%;
      max-width: 16.66%;
  }
  .carousel-caption {
      font-size: 1.25rem;
  }
  .primary-team-members {
      flex-direction: column;
  }
  .team-header {
      font-size: 1.5rem;
  }
  .team-description {
      font-size: 1rem;
  }
  .member-name {
      font-size: 1rem;
  }
  .member-role {
      font-size: 0.75rem;
  }
  .member-bio {
      font-size: 0.75rem;
  }
  .secondary-member .member-name {
      font-size: 1rem;
  }
  .secondary-member .member-role {
      font-size: 0.75rem;
  }
}
@media (max-width: 600px) {
  .form-container {
      flex-direction: column;
  }
}
@media (min-width: 1024px) {
  .dropdown-item {
      display: none;
  }
}
@media (prefers-color-scheme: dark) {
  body {
      background-color: #1a1a1a;
      color: #e0e0e0;
  }
  footer {
      background-color: #333;
      color: #ddd;
  }
  .hero::before {
      background-color: rgba(0, 0, 0, 0.7);
  }
  .overlay {
      color: #ddd;
  }
  .tagline {
      color: #ddd;
  }
  .navbar {
      background: rgba(40, 40, 40, 0.9);
  }
  .navbar-logo-img {
      filter: invert(100%);
  }
  .nav-item {
      color: #ddd;
  }
  .nav-item:hover, .nav-item.active {
      border-bottom: 0.1em solid #bbb;
  }
  .dropdown {
      background-color: #333;
  }
  .dropdown-item {
      color: #ddd;
  }
  .dropdown-item:hover {
      background-color: #444;
  }
  .bar {
      background-color: #ddd;
  }
  .section {
      background-color: #2a2a2a;
  }
  #about {
      background-color: #1a1a1a;
  }
  .about-text p {
      color: #bbb;
  }
  .about-logo {
      filter: invert(100%);
  }
  #services {
      background-color: #222;
  }
  .service-item span {
      color: #bbb;
  }
  .service-icon {
      filter: invert(100%);
  }
  .service-item h3 {
      color: #ddd;
  }
  #portfolio {
      background-color: #1a1a1a;
  }
  .logo-item img {
      filter: invert(100%);
  }
  .carousel {
      background-color: #1a1a1a;
  }
  .carousel-caption {
      color: #ddd;
  }
  #team {
      background-color: #1a1a1a;
  }
  .team-description {
      color: #bbb;
  }
  .member-name {
      color: #ddd;
  }
  .member-role {
      color: #bbb;
  }
  .member-bio {
      color: #bbb;
  }
  .secondary-member .member-role {
      color: #bbb;
  }
  #contact {
      background-color: #1a1a1a;
  }
  .contact-header, .company-name {
      color: #ddd;
  }
  .company-address, .company-email {
      color: #bbb;
  }
  .form-group input, .form-group textarea {
      background-color: #333;
      color: #ddd;
      border: 1px solid #555;
  }
  .form-group input::placeholder, .form-group textarea::placeholder {
      color: #999;
  }
  button[type="submit"] {
      background-color: #444;
  }
  button[type="submit"]:hover {
      background-color: #666;
  }
  h2, h3 {
      color: #ddd;
  }
  .process-step {
      border: 1px solid #555;
      background-color: #2a2a2a;
  }
  .arrow {
      filter: invert(100%);
  }
  .intro h1 {
      color: #ddd;
  }
  .intro p {
      color: #bbb;
  }
  .process-container h2 {
      color: #ddd;
  }
  .process-container p {
      color: #bbb;
  }
}
@media (prefers-reduced-motion: no-preference) {
  body, .navbar, .section, footer, img[src$=".svg"], img[src$=".webp"] {
      transition: background-color 0.3s ease, color 0.3s ease, filter 0.3s ease;
  }
}