/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.7;
  color: #333;
  background-color: #F8F8F8;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
}

/* --- Header --- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease-in-out;
  background: transparent;
}

#header.scrolled {
  background: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

#header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  line-height: 0px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
}

#header.scrolled .logo {
  color: #2C3E50;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0; /* Reset margin for ul */
  padding: 0; /* Reset padding for ul */
}

.nav-menu a {
  color: #fff;
  font-weight: 600;
  padding-bottom: 5px;
  position: relative;
  transition: color 0.3s;
}

#header.scrolled .nav-menu a {
  color: #333;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #E67E22;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #E67E22;
  transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8em;
  cursor: pointer;
}

#header.scrolled .menu-toggle {
    color: #333;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('./images/hero_banner.png') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 120px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 550px;
  position: relative;
  z-index: 1;
  border-radius: 0px;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: -1;
}
.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 4em;
  margin-bottom: 25px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}
.hero p {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

@media (max-width: 600px) {
  .hero {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('./images/hero_banner_sp.png') no-repeat center center/cover;
  }
  .hero h1 {
    font-size: 2.5em;
  }
  .hero p {
    font-size: 1.1em;
    margin-bottom: 30px;
  }
}

.btn {
  display: inline-block;
  background: #E67E22;
  color: #fff;
  padding: 16px 35px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1em;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.btn:hover {
  background: #D35400;
  transform: translateY(-3px);
}

/* --- Responsive Menu --- */
@media (max-width: 992px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }

  .nav-menu.active {
    display: block;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }

  .nav-menu li {
    text-align: center;
  }

  .nav-menu a,
  #header.scrolled .nav-menu a {
    display: block;
    padding: 12px 20px;
    color: #333; /* Always dark on mobile dropdown */
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    background: #f8f8f8;
    color: #E67E22;
  }
  
  .nav-menu a::after {
      display: none; /* No underline on mobile */
  }

  .menu-toggle {
    display: block;
  }
}

/* --- Section --- */
section {
  padding: 80px 0;
  background: #fff;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
section h2 {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  font-size: 3em;
  margin-bottom: 60px;
  color: #2C3E50;
  position: relative;
  padding-bottom: 10px;
}
section h2::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 80px; height: 4px;
  background: #E67E22;
  border-radius: 2px;
}

@media (max-width: 600px) {
  section h2 {
    font-size: 2em;
    margin-bottom: 40px;
  }
  
}
/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  text-align: center;
}
.feature-item {
  background: #FDFDFD;
  padding: 35px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.feature-item i {
  font-size: 3.5em;
  color: #E67E22;
  margin-bottom: 20px;
}
.feature-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6em;
  margin-bottom: 12px;
  color: #333;
  font-weight: 600;
}
.feature-item p {
  font-size: 1em;
  color: #555;
}

/* --- Portfolio Grid --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.portfolio-item {
  background: #FDFDFD;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.portfolio-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.portfolio-item:hover img {
  transform: scale(1.03);
}
.portfolio-item .portfolio-info {
  padding: 25px;
  text-align: left;
}
.portfolio-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4em;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
}
.portfolio-item p {
  font-size: 0.95em;
  color: #666;
}
.portfolio-desc {
  margin: 0 auto 32px auto;
  max-width: 700px;
  font-size: 1.15em;
  color: #444;
  background: #f8f6f2;
  border-left: 5px solid #E67E22;
  padding: 18px 24px 18px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(230,126,34,0.06);
  font-style: italic;
  line-height: 1.7;
}
@media (max-width: 600px) {
  .portfolio-desc {
    font-size: 1em;
    padding: 12px 10px 12px 12px;
    border-radius: 7px;
  }
}

/* --- Timeline/Process --- */
.timeline {
  position: relative;
  margin: 0 auto;
  max-width: 700px;
  padding-left: 30px;
}
.timeline-step {
  display: flex;
  align-items: flex-start;
  position: relative;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s forwards;
  animation-fill-mode: forwards;
}
.timeline-step:nth-child(1) { animation-delay: 0.1s; }
.timeline-step:nth-child(2) { animation-delay: 0.3s; }
.timeline-step:nth-child(3) { animation-delay: 0.5s; }
.timeline-step:nth-child(4) { animation-delay: 0.7s; }
.timeline-step:nth-child(5) { animation-delay: 0.9s; }
.timeline-icon {
  background: #E67E22;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(230,126,34,0.15);
  margin-right: 24px;
  position: relative;
  z-index: 2;
}
.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 27px;
  top: 54px;
  width: 4px;
  height: 50px;
  background: linear-gradient(to bottom, #E67E22 60%, #fff 100%);
  border-radius: 2px;
  z-index: 1;
}
.timeline-content {
  background: #FDFDFD;
  padding: 22px 28px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
  min-width: 0;
  flex: 1;
  animation: fadeIn 1s;
}
.timeline-content h3 {
  font-size: 1.2em;
  color: #E67E22;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
}
.timeline-content p {
  color: #555;
  font-size: 1em;
  margin: 0;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 600px) {
  .timeline {
    padding-left: 0;
    max-width: 100%;
  }
  .timeline-step {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 36px;
    padding-left: 0;
  }
  .timeline-icon {
    margin-bottom: 12px;
    margin-right: 0;
    width: 44px;
    height: 44px;
    font-size: 1.5em;
  }
  .timeline-step:not(:last-child)::after {
    display: none;
  }
  .timeline-content {
    padding: 16px 14px;
    font-size: 0.98em;
  }
  .timeline-content h3 {
    font-size: 1.08em;
    margin-bottom: 6px;
  }
}

/* --- Testimonials --- */
.testimonials-slider {
  display: flex;
  overflow-x: auto;
  gap: 30px;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #E67E22 rgba(0,0,0,0.1);
  cursor: grab;
}
.testimonials-slider.active { cursor: grabbing; }
.testimonials-slider::-webkit-scrollbar { height: 8px; }
.testimonials-slider::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 10px;
}
.testimonials-slider::-webkit-scrollbar-thumb {
  background-color: #E67E22;
  border-radius: 10px;
  border: 2px solid rgba(0,0,0,0.05);
}
.testimonial-item {
  flex: 0 0 380px;
  background: #FDFDFD;
  padding: 35px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
  text-align: center;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}
.testimonial-item p {
  font-style: italic;
  margin-bottom: 20px;
  color: #444;
  font-size: 1.05em;
}
.testimonial-item .customer-info {
  font-weight: 700;
  color: #E67E22;
  font-size: 1.1em;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: #FDFDFD;
  padding: 45px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.contact-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
  font-size: 1.05em;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 22px;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  font-size: 1.05em;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #E67E22;
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
  outline: none;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form button {
  background: #E67E22;
  color: #fff;
  padding: 18px 35px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.2em;
  transition: background 0.3s, transform 0.2s;
  width: 100%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.contact-form button:hover {
  background: #D35400;
  transform: translateY(-3px);
}

@media (max-width: 600px) {
  .contact-form {
    padding: 20px;
  }
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form textarea {
    font-size: 1em;
    padding: 10px;
    margin-bottom: 18px;
  }
  .contact-form button {
    font-size: 1.1em;
    padding: 15px;
  }
}
.privacy-note {
  margin-top: 14px;
  color: #888;
  font-size: 1em;
  background: #f8f8f8;
  border-radius: 8px;
  padding: 10px 16px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(230,126,34,0.06);
  font-style: italic;
}

/* --- Footer --- */
footer {
  background: #2C3E50;
  color: #E0E0E0;
  text-align: center;
  padding: 40px 0;
  margin-top: 30px;
  border-radius: 0px;
}
footer p {
  margin: 8px 0;
  font-size: 0.95em;
}
footer .social-icons {
  margin-top: 20px;
  margin-bottom: 15px;
}
footer .social-icons a {
  color: #E0E0E0;
  font-size: 1.8em;
  margin: 0 12px;
  text-decoration: none;
  transition: color 0.3s, transform 0.2s;
}
footer .social-icons a:hover {
  color: #E67E22;
  transform: translateY(-3px);
}
footer .social-icons a img {
  width: 30px;
  height: 30px;
}

/* --- Popup/Lightbox --- */
.project-lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s forwards;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.projectSwiper {
  width: 90%;
  max-width: 1000px;
  height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  background: #000;
}
.projectSwiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}
.projectSwiper .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
#project-lightbox-caption {
  position: absolute;
  bottom: 20px;
  text-align: center;
  color: #fff;
  font-size: 1.2em;
  padding: 10px 20px;
  background: rgba(0,0,0,0.7);
  border-radius: 5px;
  max-width: 80%;
  transform: translateX(-50%);
  left: 50%;
  box-sizing: border-box;
}
.project-lightbox .close-btn {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1001;
  text-shadow: 0 0 5px rgba(0,0,0,0.7);
}
.project-lightbox .close-btn:hover,
.project-lightbox .close-btn:focus {
  color: #E67E22;
  text-decoration: none;
  cursor: pointer;
}
.projectSwiper .swiper-button-next,
.projectSwiper .swiper-button-prev {
  color: #fff;
  width: 45px;
  height: 45px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  transition: background 0.3s, color 0.3s;
}
.projectSwiper .swiper-button-next:hover,
.projectSwiper .swiper-button-prev:hover {
  background: #E67E22;
  color: #fff;
}
.projectSwiper .swiper-button-next:after,
.projectSwiper .swiper-button-prev:after {
  font-size: 1.2em;
}
.projectSwiper .swiper-pagination-bullet {
  background: #CCC;
  opacity: 0.8;
}
.projectSwiper .swiper-pagination-bullet-active {
  background: #E67E22;
  opacity: 1;
  transform: scale(1.2);
}

/* --- CTA --- */
.cta-bottom {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #E67E22;
  color: #fff;
  z-index: 999;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  padding: 16px 15px 8px 15px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  opacity: 0;
  transition: opacity 0.5s;
}
.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 1.15em;
  font-weight: 600;
  width: 100%;
  max-width: 600px;
}
.cta-title {
  font-size: 1.2em;
  font-weight: 700;
  text-align: center;
}
.cta-title i {
  margin-right: 8px;
  font-size: 1.2em;
}
.cta-buttons {
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}
.cta-btn, .cta-phone {
  width: 48%;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 10px; /* Nút vuông bo góc 10px */
  font-size: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(230,126,34,0.12);
  background: #fff;
  color: #E67E22;
  border: 1px solid #E67E22;
  transition: background 0.2s, color 0.2s;
}
.cta-btn:hover, .cta-phone:hover {
  background: #E67E22;
  color: #fff;
  border: 1px solid #fff;
}
@media (max-width: 600px) {
    .cta-content {
        flex-direction: row;
        gap: 0;
        padding: 0 10px;
        justify-content: space-between;
        align-items: center;
        font-size: 1em;
        max-width: 100vw;
    }
    .cta-title {
        display: none;
    }
    .cta-buttons {
        width: 100%;
        justify-content: space-between;
        gap: 0;
    }
    .cta-btn, .cta-phone {
        width: 48%;
        min-width: 48px;
        height: 48px;
        padding: 0;
        border-radius: 10px; /* Nút vuông bo góc 10px */
        font-size: 1em;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0;
        box-shadow: 0 2px 8px rgba(230,126,34,0.12);
        background: #fff;
        color: #E67E22;
        border: 1px solid #E67E22;
        transition: background 0.2s, color 0.2s;
    }
    .cta-btn i, .cta-phone i {
        margin: 0;
    }
    .cta-btn:hover, .cta-phone:hover {
        background: #E67E22;
        color: #fff;
        border: 1px solid #fff;
    }
}

/* --- Success Popup --- */
.success-popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s;
}
.success-popup-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(230,126,34,0.5);
  padding: 32px 24px 24px 24px;
  text-align: center;
  position: relative;
  max-width: 600px;
  width: 90%;
}
.success-popup-content h2 {
  color: #E67E22;
  margin-bottom: 18px;
}
.success-popup-content p {
  font-size: 1.12em;
  margin-bottom: 24px;
}
.success-popup-btn {
  display: inline-block;
  background: #E67E22;
  color: #fff;
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
  margin-top: 8px;
}
.success-popup-btn:hover {
  background: #F6B93B;
  color: #fff;
}
.close-success-popup {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.6em;
  color: #E67E22;
  cursor: pointer;
  font-weight: bold;
  background: none;
  border: none;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95);}
  to { opacity: 1; transform: scale(1);}
}

/* --- Social Fixed --- */
.social-fixed {
  position: fixed;
  right: 18px;
  bottom: 200px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.social-fixed-btn {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(230,126,34,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7em;
  color: #E67E22;
  transition: background 0.2s, color 0.2s;
  border: 1px solid #E67E22;
  text-decoration: none;
}
.social-fixed-btn.facebook:hover {
  background: #1877f3;
  color: #fff;
  border-color: #1877f3;
}
.social-fixed-btn.zalo:hover {
  background: #008fe5;
  border-color: #008fe5;
}
.social-fixed-btn img {
  display: block;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .social-fixed {
    right: 10px;
    bottom: 90px;
    gap: 10px;
  }
  .social-fixed-btn {
    width: 42px;
    height: 42px;
    font-size: 1.3em;
  }
}