/* --- Modern Creative Homepage Styles --- */

:root {
  --brand-blue: #295087;
  --brand-orange: #FF9800;
  --brand-bg: #f7f9fc;
  --brand-dark: #1a1a1a;
  --brand-light: #fff;
  --brand-gray: #e9eef5;
  --brand-gradient: linear-gradient(120deg, #295087 0%, #3476d1 100%);
}

body {
  background: var(--brand-bg);
  font-family: 'Poppins', 'Noto Sans SC', Arial, sans-serif;
  color: var(--brand-dark);
  margin: 0;
  padding: 0;
}

/* --- HERO --- */
#hero.hero-section {
  min-height: 100vh;
  width: 100vw;
  background: url('../../image/Home/lobby.jpg') center center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
#hero.hero-section .hero-overlay {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, rgba(41,80,135,0.55) 0%, rgba(52,118,209,0.35) 100%);
  z-index: 1;
}
#hero.hero-section .hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -2px;
  line-height: 1.1;
  text-shadow: 0 4px 24px rgba(0,0,0,0.18);
  color: #fff !important;
}
.hero-underline {
  width: 70px;
  height: 5px;
  background: var(--brand-orange);
  margin: 0 auto 24px auto;
  border-radius: 2px;
}
.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 36px;
  color: #e9eef5;
  font-weight: 400;
}
.hero-section .btn-primary {
  background: var(--brand-orange);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 18px 40px;
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 16px rgba(41,80,135,0.08);
  transition: background 0.2s, box-shadow 0.2s;
}
.hero-section .btn-primary:hover {
  background: #e68900;
  box-shadow: 0 8px 24px rgba(41,80,135,0.16);
}
.scroll-down-indicator {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  font-size: 2.2rem;
  color: #fff;
  opacity: 0.7;
  animation: bounce 1.6s infinite;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 18px); }
}

/* --- ABOUT US --- */
.about-section {
  background: var(--brand-light);
  padding: 100px 0 80px 0;
  position: relative;
}
.about-content {
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.about-text {
  flex: 1 1 340px;
  min-width: 280px;
  font-size: 1.15rem;
  color: var(--brand-dark);
  line-height: 1.7;
}
.about-text h2 {
  font-size: 2.2rem;
  color: var(--brand-blue);
  margin-bottom: 18px;
}
.about-text .btn-secondary {
  background: #fff;
  color: var(--brand-blue);
  border: 2px solid var(--brand-orange);
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 24px;
  transition: background 0.2s, color 0.2s;
}
.about-text .btn-secondary:hover {
  background: var(--brand-orange);
  color: #fff;
}
.about-image {
  flex: 1 1 340px;
  min-width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(41,80,135,0.10);
}

/* --- FEATURED PROJECTS --- */
.projects-section {
  background: var(--brand-bg);
  padding: 100px 0 80px 0;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
  margin-top: 48px;
}
.project-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(41,80,135,0.07);
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
  position: relative;
}
.project-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(41,80,135,0.13);
}
.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
}
.project-title {
  color: var(--brand-blue);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 18px 0 6px 0;
}
.projects-section .btn-primary {
  margin-top: 36px;
}

/* --- PRODUCT HIGHLIGHTS CAROUSEL --- */
.products-section {
  background: var(--brand-light);
  padding: 100px 0 80px 0;
}

.product-carousel-container {
  position: relative;
  max-width: 900px;
  margin: 48px auto 0;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-carousel {
  width: 100%;
  overflow: visible;
  border-radius: 16px;
  position: relative;
}

.products-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(.77,0,.18,1);
  width: 200%;
}

.product-slide {
  flex: 0 0 50%;
  padding: 0 12px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.product-card {
  background: var(--brand-gray);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(41,80,135,0.06);
  padding: 32px 18px 24px 18px;
  text-align: center;
  transition: transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
  height: 420px;
  display: flex;
  flex-direction: column;
  max-width: 350px;
  width: 100%;
  margin: 0 auto;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 18px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(41,80,135,0.08);
}

.product-title {
  color: var(--brand-orange);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 12px 0 6px 0;
}

.product-card p {
  flex-grow: 1;
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.product-link {
  display: inline-block;
  background: var(--brand-blue);
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.3s ease;
  margin-top: auto;
}

.product-link:hover {
  background: var(--brand-orange);
  color: white;
}

/* Carousel Navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
  padding: 0 8px;
}

.carousel-btn {
  pointer-events: all;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(41,80,135,0.15);
  color: var(--brand-blue);
  font-size: 1.2rem;
}

.carousel-btn:hover {
  background: var(--brand-orange);
  color: white;
  transform: scale(1.1);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(41,80,135,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--brand-orange);
  transform: scale(1.2);
}

.dot:hover {
  background: var(--brand-blue);
}

.products-section .btn-primary {
  margin-top: 36px;
}

/* --- PRODUCT HIGHLIGHTS STATIC GRID --- */
.products-grid-static {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .products-grid-static {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* --- PRODUCT HIGHLIGHTS HORIZONTAL SCROLL --- */
.products-row-scroll {
  display: flex;
  flex-direction: row;
  gap: 32px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-top: 48px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.products-row-scroll::-webkit-scrollbar {
  height: 0.5em;
  background: transparent;
}
.products-row-scroll::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.08);
  border-radius: 8px;
}
.product-card {
  flex: 0 0 340px;
  max-width: 340px;
  min-width: 260px;
  scroll-snap-align: start;
}
@media (max-width: 900px) {
  .products-row-scroll {
    gap: 20px;
  }
  .product-card {
    flex: 0 0 80vw;
    max-width: 90vw;
    min-width: 220px;
  }
}
@media (max-width: 600px) {
  .products-row-scroll {
    gap: 12px;
  }
  .product-card {
    flex: 0 0 92vw;
    max-width: 98vw;
    min-width: 180px;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .product-carousel-container {
    max-width: 98vw;
  }
  .product-card {
    max-width: 320px;
    height: 380px;
  }
}
@media (max-width: 768px) {
  .product-carousel-container {
    max-width: 100vw;
    padding: 0 0px;
  }
  .products-track {
    width: 400%;
  }
  .product-slide {
    flex: 0 0 100%;
    padding: 0 8px;
  }
  .product-card {
    padding: 24px 12px 18px 12px;
    height: 360px;
    max-width: 95vw;
  }
  .carousel-nav {
    padding: 0 2px;
  }
}
@media (max-width: 480px) {
  .product-carousel-container {
    max-width: 100vw;
    padding: 0;
  }
  .product-slide {
    padding: 0;
  }
  .product-card {
    height: 320px;
    margin: 0 4px;
    max-width: 98vw;
  }
  .carousel-nav {
    padding: 0 2px;
  }
  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

/* --- PARTNERS --- */
.partners-section {
  background: var(--brand-bg);
  padding: 80px 0 60px 0;
}
.partners-logos {
  display: flex;
  gap: 36px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 36px;
}
.partners-logos img {
  height: 54px;
  filter: grayscale(1) brightness(0.85);
  opacity: 0.7;
  transition: filter 0.2s, opacity 0.2s;
}
.partners-logos img:hover {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

/* --- TESTIMONIALS --- */
.testimonials-section {
  background: var(--brand-light);
  padding: 100px 0 80px 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--brand-bg);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(41,80,135,0.06);
  padding: 36px 28px 28px 28px;
  text-align: center;
  position: relative;
  font-size: 1.1rem;
  color: var(--brand-dark);
}
.testimonial-card:before {
  content: '“';
  font-size: 3rem;
  color: var(--brand-orange);
  position: absolute;
  left: 24px; top: 10px;
  opacity: 0.18;
}
.testimonial-card h5 {
  color: var(--brand-blue);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 18px;
}

/* --- SECTION TITLES --- */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 18px;
  text-align: center;
  position: relative;
}
.section-title.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s, transform 0.7s;
}
.section-title.reveal.visible {
  opacity: 1;
  transform: none;
}

/* --- ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s, transform 0.7s;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .about-content { flex-direction: column; gap: 36px; }
  .about-image img { max-width: 100%; }
}
@media (max-width: 600px) {
  .hero-title { font-size: 2.1rem; }
  .about-section, .projects-section, .products-section, .testimonials-section { padding: 60px 0 40px 0; }
  .projects-grid, .products-grid, .testimonials-grid { gap: 18px; }
}

/* ================== DARK MODE OVERRIDES FOR HOME PAGE ================== */
@media (prefers-color-scheme: dark) {
  /* --- Root Variables Override --- */
  :root {
    --brand-blue: #4a9eff;
    --brand-orange: #ffaa33;
    --brand-bg: #121212;
    --brand-dark: #e0e0e0;
    --brand-light: #1a1a1a;
    --brand-gray: #2a2a2a;
    --brand-gradient: linear-gradient(120deg, #1a1a1a 0%, #2a2a2a 100%);
  }

  /* --- Body Override --- */
  body {
    background: #121212 !important;
    color: #e0e0e0 !important;
  }

  /* --- Hero Section --- */
  #hero.hero-section .hero-overlay {
    background: linear-gradient(120deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%) !important;
  }

  .hero-title {
    color: #f5f5f5 !important;
  }

  .hero-subtitle {
    color: #d0d0d0 !important;
  }

  .hero-underline {
    background: var(--brand-orange) !important;
  }

  /* --- Section Backgrounds --- */
  .about-section,
  .projects-section,
  .products-section,
  .testimonials-section,
  .partners-section {
    background: #1a1a1a !important;
    color: #e0e0e0 !important;
  }

  /* --- Cards --- */
  .about-card,
  .project-card,
  .product-card,
  .testimonial-card {
    background: #2a2a2a !important;
    color: #e0e0e0 !important;
    border: 1px solid #444 !important;
  }

  .about-card:hover,
  .project-card:hover,
  .product-card:hover,
  .testimonial-card:hover {
    background: #333333 !important;
    border-color: #555 !important;
  }

  /* --- Text Elements --- */
  .section-title {
    color: #f5f5f5 !important;
  }

  .testimonial-card h5 {
    color: var(--brand-blue) !important;
  }

  .testimonial-card:before {
    color: var(--brand-orange) !important;
  }

  /* --- Buttons --- */
  .hero-section .btn-primary {
    background: var(--brand-orange) !important;
    color: #000 !important;
  }

  .hero-section .btn-primary:hover {
    background: #ff9900 !important;
    color: #000 !important;
  }

  /* --- Partners Section --- */
  .partners-logos img {
    filter: grayscale(1) brightness(1.5) !important;
    opacity: 0.6 !important;
  }

  .partners-logos img:hover {
    filter: grayscale(0) brightness(1.2) !important;
    opacity: 1 !important;
  }

  /* --- Scroll Indicator --- */
  .scroll-down-indicator {
    color: #f5f5f5 !important;
  }

  /* --- General Text Elements --- */
  h1, h2, h3, h4, h5, h6 {
    color: #f5f5f5 !important;
  }

  p, span, div {
    color: inherit !important;
  }

  /* --- Force override for any remaining white backgrounds --- */
  *[style*="background: white"],
  *[style*="background-color: white"],
  *[style*="background: #fff"],
  *[style*="background-color: #fff"],
  *[style*="background: #ffffff"],
  *[style*="background-color: #ffffff"] {
    background: #2a2a2a !important;
    color: #e0e0e0 !important;
  }

  /* --- Force override for any remaining dark text --- */
  *[style*="color: #000"],
  *[style*="color: black"],
  *[style*="color: #333"],
  *[style*="color: #666"],
  *[style*="color: #1a1a1a"] {
    color: #e0e0e0 !important;
  }
}

