/* === Basic theme styles for the editable Nagode clone === */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: #f8f9fa;
  color: #222;
  padding-top: 90px; /* match fixed header height to prevent overlap */
  scroll-behavior: smooth; /* smooth scroll for anchor links */
}

/* Fix anchor scrolling for sticky navbar */
section {
  scroll-margin-top: 90px; /* equal to header height */
}



/* === Sticky Header (updated for visibility) === */
/* === Sticky Header (solid black) === */
/* === Sticky Header (fully solid black) === */
/* Fixed height header, vertically center content */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1020;
    height: 90px; /* fix the navbar height */
    background-color: #111 !important;
    padding: 0; /* remove top/bottom padding */
    display: flex;
    align-items: center; /* vertically center logo and nav links */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}



/* Optional: shrink header on scroll */
header.shrink {
  padding-top: 0.3rem !important;
  padding-bottom: 0.3rem !important;
  background-color: #111 !important; /* solid black even on shrink */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
/* Alias for scroll effect applied by JS */
header.scrolled {
  padding-top: 0.3rem !important;
  padding-bottom: 0.3rem !important;
  background-color: #111 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* Header Navigation Links */
header .nav-link {
  color: #fff; /* white text */
  font-weight: 500;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4); /* subtle shadow for readability */
}

header .nav-link:hover {
  color: #dcb98b; /* soft gold on hover */
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* Navbar Flex & Responsive Menu */
header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

header .nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
}

header .nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  /* Allow header to grow when content stacks on small screens */
  header { height: auto; padding: 8px 0; }

  /* Stack header children vertically for clean mobile layout */
  header .container { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }

  header .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #111; /* solid black background */
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1rem 0;
  }

  header .nav-menu.show {
    display: flex;
  }

  header .nav-toggle {
    display: block;
    align-self: flex-end;
  }
}

/* Header contact info */
.contact-info a {
  opacity: 0.9;
}
.contact-info a:hover {
  opacity: 1;
  color: #dcb98b !important;
}


/* Logo fallback text */
#logo-fallback {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  font-size: 1.2rem;
}

/* === Preloader Overlay === */
#preloader {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #ffffff;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}
#preloader .preloader-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
#preloader .preloader-brand img {
  height: 72px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}
#preloader .preloader-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
  height: 40px;
}
#preloader .preloader-bars span {
  width: 6px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f7d26c, #d4af37); /* gold gradient */
  animation: preBeat 1s ease-in-out infinite;
}
#preloader .preloader-bars span:nth-child(2) { animation-delay: 0.1s; }
#preloader .preloader-bars span:nth-child(3) { animation-delay: 0.2s; }
#preloader .preloader-bars span:nth-child(4) { animation-delay: 0.3s; }
#preloader .preloader-bars span:nth-child(5) { animation-delay: 0.4s; }

@keyframes preBeat {
  0%, 100% { height: 10px; opacity: 0.8; }
  50% { height: 28px; opacity: 1; }
}

/* === Hero Section === */
#hero-slider .item {
  padding: 2rem 0;
}

/* Hero Section Background Slider */
.hero-section {
  position: relative;
  width: 100%;
  height: 400px; /* default desktop height */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

/* Responsive hero height and text scaling */
@media (max-width: 992px) {
  .hero-section { height: 360px; }
}
@media (max-width: 768px) {
  #hero-slider .item { padding: 1rem 0; }
  .hero-section { height: 300px; }
  .hero-section #hero-slider h1,
  .hero-section #hero-slider .display-6 { font-size: 1.5rem; }
  .hero-section #hero-slider p.lead { font-size: 1rem; }
}
@media (max-width: 480px) {
  .hero-section { height: 270px; }
  #chat-icon { width: 48px; height: 48px; left: 16px; bottom: 16px; }
  #chat-box { width: 280px; }
}

/* Light overlay for readability (almost invisible) */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1); /* very light, almost invisible */
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

/* Hero slider text */
.hero-section #hero-slider h1,
.hero-section #hero-slider .display-6 {
  font-weight: 700;
  color: #fff; /* white text */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); /* subtle shadow for contrast */
}

.hero-section #hero-slider p.lead {
  color: #fff; /* white paragraph text */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-section #hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill container without distortion */
  z-index: 2;
  position: absolute;
  top: 0;
  left: 0;
}


/* === Section Titles === */
section h2 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #222;
  position: relative;
}
section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #6f42c1, #b37df5);
  margin-top: 8px;
  border-radius: 2px;
}

/* === Card Styling (glowing purple effect) === */
.card {
  border: 2px solid #e8e0f5;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(111, 66, 193, 0.2);
  transition: all 0.4s ease;
  background: #fff;
}
.card:hover {
  border-color: #6f42c1;
  box-shadow: 0 0 20px rgba(111, 66, 193, 0.6);
  transform: translateY(-4px);
}
.card-body {
  padding: 1.5rem;
}

/* === Product Cards (border glow) === */
#products .border {
  border: 2px solid #e0d4f9 !important;
  border-radius: 10px !important;
  box-shadow: 0 0 10px rgba(111, 66, 193, 0.15);
  transition: all 0.4s ease;
}
#products .border:hover {
  border-color: #6f42c1 !important;
  box-shadow: 0 0 20px rgba(111, 66, 193, 0.6);
  transform: translateY(-3px);
}

/* === Business Units Cards with Icons (No color effect) === */
.unit-card {
  border: 2px solid #e8e0f5;
  border-radius: 12px;
  transition: all 0.4s ease;
  padding: 2rem 1rem;
  background: #fff;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.unit-card .unit-icon {
  font-size: 40px;
  margin-bottom: 1rem;
  color: #6f42c1; /* fixed color */
}

.unit-card h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #222; /* fixed color */
}

.unit-card p {
  color: #555; /* fixed color */
  font-size: 0.95rem;
}

/* Thumbnail image at the top of unit cards */
.unit-card .thumb {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 2px solid #e8e0f5;
}
.unit-card .thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

/* === Map Embed === */
.map-embed {
  position: relative;
  width: 100%;
  min-height: 380px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 14px rgba(0,0,0,0.08);
  border: 2px solid #e8e0f5;
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Hover effect - only lift and shadow, no color changes */
.unit-card:hover {
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.15);
  transform: translateY(-5px);
  background: #fff;
}

/* Overlay removed */
.unit-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent; /* keep overlay transparent */
  border-radius: 12px;
}

/* Change text colors on hover for contrast */
.unit-card:hover .unit-icon,
.unit-card:hover h5,
.unit-card:hover p {
  color: inherit !important;
}

/* === Footer === */
footer {
  font-size: 0.95rem;
  background-color: #111;
  color: #ddd;
}
footer h5 {
  color: #fff;
  margin-bottom: 1rem;
}
footer p {
  margin-bottom: 0.5rem;
}

/* === Utility === */
.rounded {
  border-radius: 0.5rem !important;
}

/* === Inline editor styles === */
.editor-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1050;
  box-shadow: 0 0 10px rgba(111, 66, 193, 0.4);
  background: linear-gradient(90deg, #6f42c1, #b37df5);
  border: none;
}
.editor-toggle:hover {
  box-shadow: 0 0 15px rgba(111, 66, 193, 0.7);
}
.editor-panel {
  position: fixed;
  right: 1rem;
  bottom: 3.5rem;
  width: 340px;
  max-height: 70vh;
  overflow: auto;
  display: none;
  border: 1px solid #6f42c1;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(111, 66, 193, 0.4);
  background: #fff;
}
.editor-panel.show {
  display: block;
}
.editor-panel .card-header {
  background: linear-gradient(90deg, #6f42c1, #b37df5);
  color: #fff;
}

/* === Chat Icon (bottom-left floating) === */
#chat-icon {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  background-color: #007bff;
  color: #fff;
  border-radius: 50%;
  z-index: 1100;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
#chat-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* === Chat Box (hidden initially) === */
#chat-box {
  position: fixed;
  left: 20px;
  bottom: 90px;
  width: 320px;
  max-height: 400px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  z-index: 1101;
  display: none; /* initially hidden */
  flex-direction: column;
  overflow: hidden;
  font-family: Arial, sans-serif;
}
#chat-box.show { display: flex; }
#chat-box header {
  background: #007bff;
  color: #fff;
  padding: 10px 15px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#chat-box header #chat-close {
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
}
#chat-box .chat-content {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #f8f9fa;
}
#chat-box .chat-footer {
  padding: 10px;
  border-top: 1px solid #ddd;
}
#chat-box .chat-footer input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  outline: none;
}
/* === Text Animation Card for About Section === */
.text-animation-card {
  background-color: #4B0082; /* deep purple background */
  color: #fff;
  padding: 60px 30px;
  border-radius: 16px;
  min-height: 350px; /* fixed height for stable layout */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  text-align: center;
}

/* Container for images and text */
.image-carousel,
.text-carousel {
  position: relative;
  width: 100%;
  height: 200px; /* adjust height for images */
  overflow: hidden;
}

/* Each item stacked on top of each other */
.image-carousel .item,
.text-carousel .item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease-in-out;
}

.image-carousel .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Active item is visible */
.image-carousel .item.active,
.text-carousel .item.active {
  opacity: 1;
  z-index: 2;
}

.text-carousel .item p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #fff;
  text-align: center;
  padding: 0 10px;
}


/* Make logo small and independent of navbar height */
.navbar-brand img#site-logo {
    height: 80px !important;
    width: auto !important;
    display: block;
    object-fit: contain;
    vertical-align: middle;
}

/* Optional: even smaller on mobile */
@media (max-width: 768px) {
    .navbar-brand img#site-logo {
        height: 50px !important;
        width: auto !important;
    }
}

/* Only style the Contact link as a button */
.contact-btn {
  background-color: #6f42c1; /* solid purple */
  color: #fff !important;
  padding: 0.4rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Hover effect */
.contact-btn:hover {
  background-color: #5a349f; /* darker purple */
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(111, 66, 193, 0.4);
}

/* === IntersectionObserver Fade-in Helpers === */
.animate-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* === Testimonials === */
.testimonial-card {
  background: #fff;
  border: 2px solid #e8e0f5;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.15);
}
.testimonial-card .quote {
  font-size: 1.05rem;
  line-height: 1.6;
}
.testimonial-card .avatar {
  width: 40px;
  height: 40px;
  background: #6f42c1;
}

/* === Trust Counters === */
.counter-card {
  background: #fff;
  border: 2px solid #e8e0f5;
}
.counter-number {
  font-size: 2rem;
  font-weight: 700;
  color: #6f42c1;
}

/* Append plus sign to specific counter when requested */
.counter-number.counter-plus { display: inline-block; }
.counter-number.counter-plus::after { content: "+"; margin-left: 2px; font-weight: 700; }

/* Animation utilities */
.animate-fade-up { opacity: 0; transform: translateY(12px); animation: fadeUp .6s ease-out forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.animate-float { animation: floatY 4s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* === Sticky Footer Fix === */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto; /* grows to push footer down */
}

footer {
    flex-shrink: 0;
}

/* === Business Units inner hover animation === */
.unit-card:hover .unit-icon,
.unit-card:hover h5,
.unit-card:hover p {
  animation: zoomPulse 0.6s ease-in-out;
}

/* === Testimonials slider === */
.testimonial-slider { overflow: hidden; }
.testimonial-track {
  display: flex;
  gap: 1rem;
  will-change: transform;
  transition: transform 0.5s ease;
}
.testimonial-card { flex: 0 0 320px; max-width: 320px; }

/* === YouTube Section === */
.youtube-section .thumb {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid #e8e0f5;
}

/* === Hero Slide YouTube embed === */
.hero-section .video-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.hero-section .video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.youtube-section .thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.youtube-section .equalizer {
  display: inline-flex;
  gap: 4px;
  align-items: flex-end;
  height: 40px;
}
.youtube-section .equalizer span {
  width: 6px;
  background: linear-gradient(180deg, #b37df5, #6f42c1);
  animation: eqBeat 1s ease-in-out infinite;
}
.youtube-section .equalizer span:nth-child(2) { animation-delay: 0.2s; }
.youtube-section .equalizer span:nth-child(3) { animation-delay: 0.4s; }
.youtube-section .equalizer span:nth-child(4) { animation-delay: 0.6s; }
.youtube-section .equalizer span:nth-child(5) { animation-delay: 0.8s; }

/* === Mini scrolling gallery cards (step slider) === */
.mini-marquee { overflow: hidden; }
.mini-track {
  display: flex;
  gap: 0.75rem;
  will-change: transform;
  transition: transform 0.5s ease;
}
.mini-card {
  width: 180px;
  min-width: 180px;
  border: 2px solid #e8e0f5;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.mini-card img { width: 100%; height: 100px; object-fit: cover; }
.mini-card .caption { padding: 0.5rem; font-size: 0.85rem; }

/* === Partners slider === */
#partners .partners-slider { overflow: hidden; }
#partners .partners-track {
  display: flex;
  gap: 1rem;
  will-change: transform;
  transition: transform 0.5s ease;
}
#partners .partner-card {
  width: 160px;
  min-width: 160px;
  border: 2px solid #e8e0f5;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
#partners .partner-card img { width: 100%; height: auto; object-fit: contain; }

/* === Product Catalog === */
#product-catalog .control-bar h2 { font-weight: 700; }
#product-catalog .form-select, #product-catalog .form-control {
  min-height: 42px;
  border-radius: 10px;
  border: 2px solid #e8e0f5;
}
#product-catalog #categoryDescription {
  background: #f8f9fc;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 0.75rem 1rem;
}
#product-catalog .product-card {
  border: 2px solid #e8e0f5;
  border-radius: 12px;
  background: #fff;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#product-catalog .product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
#product-catalog .product-card .badge {
  background: linear-gradient(90deg, #6f42c1, #b37df5);
}

/* === Header contact social icons === */
.contact-info .social a { color: #fff; opacity: 0.9; }
.contact-info .social a:hover { color: #dcb98b; opacity: 1; }

/* Show contact info nicely on mobile */
@media (max-width: 768px) {
  .contact-info { display: flex !important; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
  .contact-info a.small { font-size: 0.8rem; }
  .contact-info .social { display: flex !important; }
}

/* === YouTube section background === */
.youtube-section {
  background: linear-gradient(90deg, #f3e4b2, #e6c975);
}

/* Keyframes */
@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes zoomPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes eqBeat {
  0%, 100% { height: 10px; }
  50% { height: 32px; }
}

/* --- New Professional Sections --- */
.pillars-grid .pillar-card {
  border: 2px solid #e8e0f5;
  border-radius: 16px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pillars-grid .pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3e4b2, #e6c975);
  color: #111;
  box-shadow: inset 0 2px 6px rgba(255,255,255,0.6);
}

.process-steps .step-card {
  position: relative;
  border: 2px solid #e8e0f5;
  border-radius: 16px;
  background: #fff;
}
.process-steps .step-card .step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #111;
  background: linear-gradient(135deg, #f3e4b2, #e6c975);
  box-shadow: inset 0 2px 6px rgba(255,255,255,0.6);
}

.badge-grid .badge-card {
  border: 2px solid #e8e0f5;
  border-radius: 16px;
  background: #fff;
}
.badge-grid .badge-card i {
  color: #6f42c1;
}

.cta-banner {
  background: linear-gradient(90deg, #111, #1a1a1a);
  color: #fff;
  border-top: 3px solid #e6c975;
  border-bottom: 3px solid #e6c975;
}
.cta-banner .btn.btn-outline-light {
  border-width: 2px;
}

@media (max-width: 576px) {
  .pillar-icon { width: 48px; height: 48px; }
  .process-steps .step-card .step-number { width: 36px; height: 36px; }
}

/* (Removed custom #whyus background animation and overrides to restore default styling) */


