/* Reset some defaults */
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #ffffff;
  color: #333333;
  transition: background-color 2s ease, color 2s ease;
}

/* Header with Responsive Nav */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background-color: #333;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.2rem;
  font-weight: bold;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  display: block;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

nav ul li a:hover {
  background-color: #f18626;
  color: #fff;
  border-radius: 4px;
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* WhatsApp Floating Button */
.whatsapp_float {
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  z-index: 100;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  outline: none;
}

.whatsapp_float:hover {
  transform: scale(1.2);
  outline: none;
}

.whatsapp_float:focus-visible {
  outline: 2px solid #128c7e;
  outline-offset: 4px;
}

.whatsapp_float img {
  width: 35px;
  height: 35px;
}

/* Sections Layout */
section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}

/* Headings */
h2 {
  color: #003366;
  margin-bottom: 20px;
  border-bottom: 2px solid #f18626;
  padding-bottom: 5px;
  transition: color 3s ease;
}

/* Lists */
ul {
  list-style-type: square;
  padding-left: 20px;
}

/* Work Items */
.work-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 20px;
}

.work-item img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-right: 20px;
}

.description {
  flex: 1;
}

.description h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #0072bc;
}

.description p {
  font-size: 1em;
  color: #444;
  line-height: 1.5;
}

/* Responsive work item */
@media (max-width: 768px) {
  .work-item {
    flex-direction: column;
    text-align: center;
  }

  .work-item img {
    margin-right: 0;
    margin-bottom: 20px;
  }
}

/* Testimonials */
.testimonial-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  height: 160px;
  margin: 30px auto;
  background: #f4f4f4;
  border-left: 5px solid #f18626;
  border-radius: 5px;
  padding: 20px;
  box-sizing: border-box;
  font-style: italic;
  color: #333;
}

.testimonial {
  position: absolute;
  width: 100%;
  top: 0;
  left: 100%;
  opacity: 0;
  transition: all 3s ease;
  transform: translateX(0);
}

.testimonial.active {
  left: 0;
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.testimonial.exit-left {
  transform: translateX(-100%);
  opacity: 0;
  z-index: 1;
}

/* Footer */
footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 30px;
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  background-color: rgb(238, 230, 230);
  color: rgb(17, 16, 16);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(235, 230, 230, 0.3);
  z-index: 999;
}

#backToTop:hover {
  background-color: #f3ecec;
}

/* Dark Mode */
body.light-mode {
  background-color: #ffffff;
  color: #333;
}

body.dark-mode {
  background-color: #1e1e1e;
  color: #f1f1f1;
}

body.dark-mode header {
  background-color: #121212;
  color: #f18626;
}

body.dark-mode nav {
  background-color: #2c2c2c;
}

body.dark-mode nav ul li a {
  color: #f1f1f1;
}

body.dark-mode nav ul li a:hover {
  background-color: #f18626;
  color: #fff;
}

body.dark-mode .testimonial-slider,
body.dark-mode .gallery img,
body.dark-mode form,
body.dark-mode footer {
  background-color: #2b2b2b;
  color: #f1f1f1;
}

/* Mode Toggle Button */
.mode-toggle {
  position: fixed;
  top: 50px;
  right: 35px;
  background: #131212;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .mode-toggle {
    top: 20px;
    right: 15px;
    padding: 8px;
    font-size: 16px;
  }

  .hamburger {
    display: block;
  }

  #navMenu {
    display: none;
    width: 100%;
    background-color: #333;
  }

  #navMenu ul {
    flex-direction: column;
    align-items: center;
  }

  #navMenu.show {
    display: flex;
  }
}

@media (max-width: 480px) {
  #backToTop {
    width: 40px;
    height: 40px;
    font-size: 20px;
    bottom: 70px;
  }

  .whatsapp_float {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
  }

  .whatsapp_float img {
    width: 30px;
    height: 30px;
  }
}
