/* Google Fonts: Poppins (primary font) & Inter (fallback/utility) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Colors */
  --color-primary: #0e3d8b;
  /* Robbialac Blue */
  --color-secondary: #ff5e14;
  /* Orange/Red highlight */
  --color-accent: #ffb800;
  /* Warm yellow */
  --color-text-dark: #1e293b;
  /* Dark neutral slate-800 */
  --color-text-muted: #64748b;
  /* Muted slate-500 */
  --color-bg-light: #f8fafc;
  /* Light section backgrounds slate-50 */
  --color-border: #e2e8f0;
  /* Divider slate-200 */

  /* Fonts */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Inter', sans-serif;

  /* Rainbow line colors */
  --rainbow-gradient: linear-gradient(to right,
      #0e3d8b,
      #2ea64f,
      #ffd000,
      #ff5e14,
      #e61a27,
      #7a3194,
      #0e3d8b);
}

/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text-dark);
  background-color: #f5eee9;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Rainbow Line at Very Top */
.rainbow-top-bar {
  height: 5px;
  width: 100%;
  background: var(--rainbow-gradient);
  background-size: 200% 100%;
  animation: rainbow-flow 8s linear infinite;
  position: fixed;
  z-index: 1050;
}

@keyframes rainbow-flow {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: -200% 0%;
  }
}

/* Header Styles */
.site-header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 105px;
  /* Adjust header height to fit double-bar */
}

.header-left {
  display: flex;
  align-items: center;
}

.logo-link {
  display: inline-block;
}

.logo {
  height: 70px;
  width: auto;
  display: block;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  height: 100%;
  justify-content: center;
  flex-grow: 1;
  padding-left: 30px;
}

.header-top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  width: 100%;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.top-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.top-link i {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.top-link:hover,
.top-link:hover i {
  color: var(--color-primary);
}

.header-main-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  padding-top: 10px;
  gap: 25px;
}

/* Main Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.main-nav a i {
  font-size: 10px;
  color: var(--color-text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.main-nav a:hover i {
  color: var(--color-primary);
  transform: translateY(2px);
}

/* Search Button */
.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dark);
  font-size: 16px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.search-btn:hover {
  color: var(--color-primary);
  transform: scale(1.1);
}

/* Shop Now Button */
.btn-shop-now {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.arrow-circle {
  width: 26px;
  height: 26px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.arrow-circle svg {
  transition: transform 0.3s ease;
}

.btn-shop-now:hover {
  background-color: #0b3170;
  box-shadow: 0 4px 15px rgba(14, 61, 139, 0.3);
  transform: translateY(-1px);
}

.btn-shop-now:hover .arrow-circle svg {
  transform: translate(2px, -2px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .header-container {
    padding: 0 20px;
    height: 90px;
  }

  .logo {
    height: 55px;
  }

  .main-nav ul {
    gap: 16px;
  }

  .header-main-bar {
    gap: 15px;
  }

  .btn-shop-now {
    padding: 8px 18px;
    font-size: 13px;
  }
}

/* Hero Section Styles */
.hero-section {
  width: 100%;
 /* background-color: #f5eee9;*/
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 1140;
  max-width: 1920px;
  display: block;
}

/* About Section Styles */
.about-section {
  width: 100%;
  background-color: #f5eee9;
  padding: 0 0 80px 0;
  overflow: hidden;
}

.about-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.about-content {
  width: 40%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-title {
  font-size: 42px;
  font-weight: 600;
  color: #0f294a;
  /* Deep brand blue */
  line-height: 1.25;
  margin-bottom: 25px;
}

.about-title span.brand-pink {
  background: linear-gradient(to right, #e22c5e, #ff5e14, #e22c5e);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-gradient-flow 5s linear infinite;
  font-weight: 600;
  display: inline-block;
}

@keyframes text-gradient-flow {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: -200% center;
  }
}

.btn-more-about {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background-color: #e8e1da;
  /* Beige pill background */
  color: #0f294a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 6px 6px 18px;
  border-radius: 50px;
  margin-bottom: 45px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-more-about .arrow-circle {
  width: 28px;
  height: 28px;
  background-color: #0f294a;
  /* Deep blue badge */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  /* White arrow */
  transition: transform 0.3s ease;
}

.btn-more-about .arrow-circle i {
  font-size: 11px;
  transition: transform 0.3s ease;
}

.btn-more-about:hover {
  background-color: #ded6ce;
  /* Darker beige on hover */
  transform: translateY(-1px);
}

.btn-more-about:hover .arrow-circle i {
  transform: translateX(3px);
}

.about-swiper-container {
  width: 100%;
  max-width: 550px;
}

.about-swiper {
  width: 100%;
  padding-bottom: 40px !important;
}

.about-swiper .swiper-slide {
  height: auto;
}

.about-swiper .slide-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 323 / 210;
  display: block;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

/* Custom Swiper Pagination Styling (Dashes) */
.about-swiper .swiper-pagination-bullets {
  bottom: 0px !important;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.about-swiper .swiper-pagination-bullet {
  background: #c3bbb3 !important;
  /* Beige/grey bullet */
  opacity: 1 !important;
  width: 12px !important;
  height: 4px !important;
  border-radius: 2px !important;
  margin: 0 6px 0 0 !important;
  transition: all 0.3s ease !important;
}

.about-swiper .swiper-pagination-bullet-active {
  background: #0f294a !important;
  /* Active deep blue */
  width: 24px !important;
}

.about-image-wrap {
  width: 60%;
  display: flex;
  justify-content: flex-end;
}

.about-right-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1019 / 780;
  display: block;
  border-radius: 20px;
}

/* About Section Responsive */
@media (max-width: 1024px) {
  .about-container {
    flex-direction: column;
    gap: 40px;
    padding: 0 20px;
  }

  .about-content {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .about-title {
    font-size: 38px;
  }

  .btn-more-about {
    margin-bottom: 35px;
  }

  .about-swiper-container {
    max-width: 100%;
  }

  .about-swiper .swiper-pagination-bullets {
    justify-content: center;
  }

  .about-image-wrap {
    width: 100%;
    justify-content: center;
  }

  .about-right-img {
    max-width: 80%;
  }
}

@media (max-width: 576px) {
  .about-section {
    padding: 60px 0;
  }

  .about-title {
    font-size: 30px;
  }

  .about-right-img {
    max-width: 100%;
  }
}

/* Solutions Section Styles */
.solutions-section {
  width: 100%;
  background-color: #f5eee9;
  padding: 80px 0 40px 0;
}

.solutions-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 45px;
}

.section-title {
  font-family: var(--font-primary);
  font-size: 55px;
  font-weight: 400;
  color: #0E2157;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-subtitle {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 400;
  color: #252B37;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .solutions-section {
    padding: 50px 0 30px 0;
  }

  .section-title {
    font-size: 38px;
  }

  .section-subtitle {
    font-size: 18px;
  }
}

/* Solutions Swiper Slider Styles */
.solutions-swiper-container {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: visible;
  /* Ensure arrows sitting outside container borders are visible */
}

.solutions-swiper {
  width: 100%;
  overflow: hidden;
  /* Hide cards overflowing the active slide area */
  padding: 15px 0 25px 0;
  /* Space for the slide-up animation */
}

.solutions-swiper .swiper-wrapper {
  overflow: visible;
  /* Swiper needs wrapper overflow visible to load items */
}

.solutions-swiper .swiper-slide {
  height: auto;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 24px;
  display: flex;
  justify-content: center;
}

/* Lift on Hover Animation */
.solutions-swiper .swiper-slide:hover {
  transform: translateY(-10px);
}

.solution-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 340 / 679;
  display: block;
  border-radius: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

/* Custom Navigation Buttons (Visible only on Hover) */
.solutions-swiper-container .swiper-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: #ffffff;
  color: #0e3d8b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  z-index: 10;
  cursor: pointer;
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.solutions-swiper-container .swiper-nav-btn i {
  font-size: 16px;
}

/* Hover State to show Arrows */
.solutions-swiper-container:hover .swiper-nav-btn {
  opacity: 1;
  pointer-events: auto;
}

.solutions-swiper-container .swiper-nav-btn:hover {
  background-color: #0e3d8b;
  color: #ffffff;
}

.solutions-swiper-container .swiper-nav-btn.prev-btn {
  left: -80px;
  /* Positioned left outside the container */
}

.solutions-swiper-container .swiper-nav-btn.next-btn {
  right: -80px;
  /* Positioned right outside the container */
}

/* Responsive adjustments for Navigation */
@media (max-width: 768px) {
  .solutions-swiper-container {
    padding: 0;
  }

  .solutions-swiper-container .swiper-nav-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 42px;
    height: 42px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .solutions-swiper-container .swiper-nav-btn.prev-btn {
    left: 10px;
  }

  .solutions-swiper-container .swiper-nav-btn.next-btn {
    right: 10px;
  }
}

/* Visualizer Section Styles */
.visualizer-section {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visualizer-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 907;
  max-width: 1920px;
  display: block;
}

/* Perfect Colour Section Styles */
.perfect-colour-section {
  width: 100%;
  background-color: #f5eee9;
  padding: 80px 0 40px 0;
}

.perfect-colour-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Perfect Colour Swiper Slider Styles */
.perfect-colour-swiper-container {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: visible;
  /* Ensure arrows sitting outside container borders are visible */
}

.perfect-colour-swiper {
  width: 100%;
  overflow: hidden;
  /* Hide cards overflowing the active slide area */
  padding: 15px 0 25px 0;
  /* Space for the slide-up animation */
}

.perfect-colour-swiper .swiper-wrapper {
  overflow: visible;
}

.perfect-colour-swiper .swiper-slide {
  height: auto;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 24px;
  display: flex;
  justify-content: center;
}

/* Lift on Hover Animation */
.perfect-colour-swiper .swiper-slide:hover {
  transform: translateY(-10px);
}

.perfect-colour-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 804 / 601;
  display: block;
  border-radius: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

/* Custom Navigation Buttons (Visible only on Hover) */
.perfect-colour-swiper-container .swiper-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: #ffffff;
  color: #0e3d8b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  z-index: 10;
  cursor: pointer;
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.perfect-colour-swiper-container .swiper-nav-btn i {
  font-size: 16px;
}

/* Hover State to show Arrows */
.perfect-colour-swiper-container:hover .swiper-nav-btn {
  opacity: 1;
  pointer-events: auto;
}

.perfect-colour-swiper-container .swiper-nav-btn:hover {
  background-color: #0e3d8b;
  color: #ffffff;
}

.perfect-colour-swiper-container .swiper-nav-btn.prev-btn {
  left: -25px;
  /* Offset to overlap the edge of the container slightly */
}

.perfect-colour-swiper-container .swiper-nav-btn.next-btn {
  right: -25px;
}

/* Responsive adjustments for Navigation */
@media (max-width: 768px) {
  .perfect-colour-swiper-container .swiper-nav-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 42px;
    height: 42px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .perfect-colour-swiper-container .swiper-nav-btn.prev-btn {
    left: 10px;
  }

  .perfect-colour-swiper-container .swiper-nav-btn.next-btn {
    right: 10px;
  }
}

/* Shop Online Section Styles */
.shop-online-section {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
}

.shop-online-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1919 / 609;
  max-width: 1400px;
  display: block;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .shop-online-section {
    padding: 30px 0;
  }

  .shop-online-img {
    padding: 0 20px;
  }
}

/* Follow Us Section Styles */
.follow-us-section {
  width: 100%;
  background-color: #f5eee9;
  padding: 60px 0 100px 0;
}

.follow-us-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.follow-us-swiper-container {
  position: relative;
  width: 100%;
  padding: 0;
}

.follow-us-swiper {
  width: 100%;
  overflow: hidden;
  padding: 10px 0 20px 0;
}

.follow-us-card {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.follow-us-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.follow-us-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 300 / 375;
  display: block;
  border-radius: 24px;
  transition: transform 0.5s ease;
}

.follow-us-card:hover .follow-us-card-img {
  transform: scale(1.05);
}

.follow-us-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 61, 139, 0.6);
  /* Brand blue overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.follow-us-card:hover .follow-us-overlay {
  opacity: 1;
}

.follow-us-overlay i {
  color: #ffffff;
  font-size: 32px;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.follow-us-card:hover .follow-us-overlay i {
  transform: scale(1);
}

@media (max-width: 768px) {
  .follow-us-section {
    padding: 40px 0 60px 0;
  }

  .follow-us-container {
    padding: 0 20px;
  }

  .prefooter-section {
    padding: 40px 0 60px 0;
  }

  .prefooter-container {
    padding: 0 20px;
  }
}

/* Prefooter Section Styles */
.prefooter-section {
  width: 100%;
  background-color: #f5eee9;
  background-image: url('../imgs/prefooter/foooter.png');
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% auto;
  min-height: 48.4vw;
  /* Aspect ratio of foooter.png */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 80px 0 100px 0;
  box-sizing: border-box;
}

.prefooter-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.prefooter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  justify-content: center;
  align-items: center;
}

.prefooter-card {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prefooter-card:hover {
  transform: translateY(-6px) scale(1.02);
}

.prefooter-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
}

/* Aspect ratios for prefooter images to avoid layout shifts */
.prefooter-grid .prefooter-card:nth-child(1) .prefooter-img {
  aspect-ratio: 335 / 156;
}

.prefooter-grid .prefooter-card:nth-child(2) .prefooter-img {
  aspect-ratio: 362 / 156;
}

.prefooter-grid .prefooter-card:nth-child(3) .prefooter-img {
  aspect-ratio: 335 / 156;
}

.prefooter-grid .prefooter-card:nth-child(4) .prefooter-img {
  aspect-ratio: 354 / 156;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .prefooter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .prefooter-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 380px;
    margin: 0 auto;
  }
}

/* Back to Top Button Styles */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-primary);
  /* Brand blue */
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(14, 61, 139, 0.3);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.back-to-top i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-secondary);
  /* Highlight orange on hover */
  box-shadow: 0 6px 18px rgba(255, 94, 20, 0.4);
}

.back-to-top:hover i {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .back-to-top i {
    font-size: 16px;
  }
}
