/* ==========================================================================
   ASPY MEDICARES - Premium Aesthetic & Dermatology Machines CSS Stylesheet
   Design Inspiration: Apple + Siemens Healthineers + Candela Medical + Alma
   ========================================================================== */

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

:root {
  --primary-color: #0A2F66;
  --secondary-color: #16C5D8;
  --accent-color: #24D4E4;
  --bg-color: #F8FCFF;
  --dark-bg: #071827;
  --dark-bg-card: #0c2336;
  --white-card: #ffffff;
  
  --primary-gradient: linear-gradient(135deg, #0A2F66 0%, #16C5D8 100%);
  --secondary-gradient: linear-gradient(135deg, #16C5D8 0%, #24D4E4 100%);
  --accent-gradient: linear-gradient(135deg, #0A2F66 0%, #24D4E4 100%);
  --dark-gradient: linear-gradient(185deg, #071827 0%, #0c263d 100%);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Poppins', sans-serif;
  
  --card-radius: 20px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 10px 30px rgba(10, 47, 102, 0.04);
  --shadow-hover: 0 20px 40px rgba(10, 47, 102, 0.1);
  --glow-cyan: 0 0 25px rgba(22, 197, 216, 0.35);
  
  --navbar-height: 85px;
}

/* 2. Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: #334e68;
  line-height: 1.6;
}
body, html{
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: 700;
}

a {
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
  border: 3px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--secondary-gradient);
  z-index: 9999;
  width: calc(0% - 10px); /* Adjust for scrollbar width */
  transition: width 0.1s ease-out;
}

/* Cursor Glow Container */
.cursor-glow-element {
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(22, 197, 216, 0.08) 0%, rgba(22, 197, 216, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease;
  opacity: 0;
}
body:hover .cursor-glow-element {
  opacity: 1;
}

/* 3. Helper Utilities & Animations */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-cyan-gradient {
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bg-dark-premium {
  background-color: var(--dark-bg);
  color: #e2f1fc;
}
.bg-dark-premium h1, 
.bg-dark-premium h2, 
.bg-dark-premium h3, 
.bg-dark-premium h4,
.bg-dark-premium h5,
.bg-dark-premium h6 {
  color: #ffffff;
}

/* products hover effect  */
/* Desktop Only */
@media (min-width: 992px) {

    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navbar .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all .3s ease;
        border-radius: 12px;
        min-width: 240px;
    }

    .navbar .dropdown-item {
        padding: 12px 20px;
        transition: .3s;
    }

    .navbar .dropdown-item:hover {
        background: #f5f5f5;
        color: #0d6efd;
        padding-left: 28px;
    }
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-soft);
  border-radius: var(--card-radius);
}
.glass-panel-dark {
  background: rgba(7, 24, 39, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border-radius: var(--card-radius);
}

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
  padding-right: var(--bs-gutter-x, .75rem);
  padding-left: var(--bs-gutter-x, .75rem);
}

/* Buttons */
.btn-premium {
  font-family: var(--font-accent);
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 14px;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.btn-premium-primary {
  background: var(--primary-gradient);
  color: #ffffff !important;
  border: none;
}
.btn-premium-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary-gradient);
  z-index: -1;
  opacity: 0;
  transition: var(--transition-smooth);
}
.btn-premium-primary:hover::before {
  opacity: 1;
}
.btn-premium-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-cyan);
}
.btn-premium-secondary {
  background: transparent;
  color: var(--primary-color) !important;
  border: 2px solid var(--secondary-color);
}
.btn-premium-secondary:hover {
  background: rgba(22, 197, 216, 0.1);
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(22, 197, 216, 0.15);
}
.btn-premium-white {
  background: var(--primary-color) !important;
  /* color: var(--primary-color) !important; */
  border: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.btn-premium-white:hover {
  background: var(--secondary-gradient);
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: var(--glow-cyan);
}
.btn-premium i {
  transition: transform 0.3s ease;
}
.btn-premium:hover i {
  transform: translateX(4px);
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes pulseGlow {
  0% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
  100% { opacity: 0.3; transform: scale(1); }
}
@keyframes infiniteRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes shine {
  100% { left: 125%; }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}
.animate-rotate {
  animation: infiniteRotate 25s linear infinite;
}

@keyframes kenburns-zoom {
  0% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Floating Shapes background elements */
.shape-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.45;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.shape-blob-1 {
  width: 400px;
  height: 400px;
  background-color: var(--secondary-color);
  top: -100px;
  right: -50px;
  animation: pulseGlow 10s ease-in-out infinite;
}
.shape-blob-2 {
  width: 500px;
  height: 500px;
  background-color: #24d4e4;
  bottom: -150px;
  left: -100px;
  animation: pulseGlow 15s ease-in-out infinite;
  animation-delay: 2s;
}
.shape-blob-3 {
  width: 350px;
  height: 350px;
  background-color: #0d4494;
  top: 50%;
  right: 15%;
  animation: pulseGlow 12s ease-in-out infinite;
  animation-delay: 4s;
}

/* 4. Navbar Navigation Styles */
.navbar-premium {
  height: var(--navbar-height);
  z-index: 1000;
  left: 0;
  right: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  width: 100%;
  max-width: 100vw;
  height: 75px;
  transition: var(--transition-smooth);
}

.navbar-premium > .container {
  max-width: min(1140px, 100%);
  min-width: 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  max-width: clamp(140px, 20vw, 200px);
  min-width: 0;
} 
#navbar-logo,
.navbar-brand svg {
  height: 55px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.navbar-premium .navbar-collapse {
  min-width: 0;
}

.navbar-premium .navbar-nav {
  max-width: 100%;
}

.nav-link {
  font-family: var(--font-accent);
  font-size: 15px;
  font-weight: 500;
  color: var(--primary-color);
  padding: 8px 16px !important;
  position: relative;
  transition: var(--transition-smooth);
}
.nav-link:hover, .nav-link.active {
  color: var(--secondary-color) !important;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 60%;
}
.nav-link.active::after {
  /* Ensure active link underline is always visible */
  width: 60%; 
}

/* Dropdown Toggle Arrow Color Fix */
.navbar-premium .nav-link.dropdown-toggle::after {
  /* Ensures the dropdown arrow is visible and matches the text color */
  color: inherit;
  vertical-align: 0.2em; /* Aligns arrow better with text */
  margin-left: 0.4em;
}

/* 5. New Premium Hero Section */
.hero-premium-section {
  padding-top: 40px;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  padding-top: var(--navbar-height);
  color: #ffffff;
}

.hero-background-image {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero2.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
  animation: kenburns-zoom 15s ease-out forwards;
}

.hero-background-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 47, 102, 0.7) 0%, rgba(10, 47, 102, 0.55) 50%, rgba(10, 47, 102, 0.2) 100%);
  z-index: 2;
}

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

.hero-main-heading {
  font-family: var(--font-heading);;
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Scroll Down Indicator */
.scroll-indicator-wrapper {
  position: absolute;
  bottom: 30px;
  left: 50px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}

.scroll-indicator-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  position: relative;
  margin-bottom: 8px;
}

.scroll-indicator-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--secondary-color);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: float 2.5s infinite;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .hero-premium-section {
    min-height: 80vh;
    text-align: center;
  }
  .hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-cta-buttons {
    justify-content: center;
  }
  .scroll-indicator-wrapper {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 575.98px) {
  .hero-premium-section { min-height: 75vh; }
  .hero-cta-buttons { flex-direction: column; width: 100%; max-width: 320px; }
  .hero-cta-buttons .btn-premium { width: 100%; justify-content: center; }
}

/* Force premium hero to be visible on all devices and hide other hero sections if any */
.hero-premium-section {
  display: flex !important;
}

.hero-slider-section {
  display: none !important;
}

/* Why Choose Us Cards */
.why-card {
  height: 100%;
  padding: 40px 30px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.why-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0;
  z-index: -1;
  transition: var(--transition-smooth);
}
.why-card:hover {
  transform: translateY(-8px);
  color: #ffffff;
  box-shadow: var(--shadow-hover);
  border-color: transparent !important;
}
.why-card:hover h4, .why-card:hover p, .why-card:hover i {
  color: #ffffff !important;
}
.why-card:hover::after {
  opacity: 1;
}
.why-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(22, 197, 216, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}
.why-icon-box i {
  font-size: 28px;
  color: var(--secondary-color);
  transition: var(--transition-smooth);
}
.why-card:hover .why-icon-box {
  background: rgba(255,255,255,0.2);
}
.why-card:hover .why-icon-box i {
  transform: rotate(360deg);
}

/* 6. Product Grid Section */
.product-card {
  position: relative;
  background: var(--white-card);
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid rgba(10, 47, 102, 0.05);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card-img-wrapper {
  position: relative;
  overflow: hidden;
  background: #f0f7fd;
  padding: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 320px;
}
.product-card-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: var(--transition-smooth);
}
.product-card:hover .product-card-img {
  transform: scale(1.08) translateY(-5px);
}
.product-card-body {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.product-card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.product-card-desc {
  font-size: 14px;
  color: #627d98;
  margin-bottom: 20px;
  flex-grow: 1;
}
.product-card-specs {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}
.product-card-specs li {
  font-size: 13.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #486581;
}
.product-card-specs li i {
  color: var(--secondary-color);
}
.product-card-footer {
  margin-top: auto;
}

/* Dedicated Products Page */
.products-hero-section {
  padding: 160px 0 90px;
  background:
    radial-gradient(circle at 15% 20%, rgba(22, 197, 216, 0.28), transparent 34%),
    linear-gradient(135deg, #071827 0%, #0a2f66 58%, #071827 100%);
}
.products-showcase-section {
  padding: 90px 0;
}
.product-buying-guide-section {
  padding: 80px 0 30px;
}
.product-buying-guide-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(22, 197, 216, 0.1), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  pointer-events: none;
}
.product-guidance-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(10, 47, 102, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 50px rgba(10, 47, 102, 0.08);
}
.product-guidance-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.product-guidance-item i {
  color: var(--secondary-color);
  font-size: 22px;
  line-height: 1.2;
  margin-top: 2px;
}
.product-guidance-item h3 {
  margin-bottom: 4px;
  font-size: 18px;
  color: var(--primary-color);
}
.product-guidance-item p {
  margin: 0;
  color: #627d98;
  font-size: 14.5px;
}
.product-brochure-card {
  min-height: 460px;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 24px 60px rgba(10, 47, 102, 0.18);
  isolation: isolate;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}
.product-brochure-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-position: center;
  background-size: cover;
  z-index: -2;
  transition: transform 0.7s ease;
}
.product-brochure-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 32px 76px rgba(10, 47, 102, 0.26);
}
.product-brochure-card:hover::before {
  transform: scale(1.1);
}
.product-brochure-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 24, 39, 0.1) 0%, rgba(7, 24, 39, 0.78) 58%, rgba(7, 24, 39, 0.95) 100%),
    linear-gradient(135deg, rgba(10, 47, 102, 0.25), rgba(22, 197, 216, 0.08));
  z-index: -1;
}
.product-brochure-content {
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #fff;
}
.product-brochure-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.product-brochure-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  line-height: 1.12;
  margin-bottom: 12px;
  color: #fff;
}
.product-brochure-content p {
  min-height: 78px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}
.product-brochure-btn {
  width: 100%;
  justify-content: center;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}
.product-brochure-btn:hover {
  color: var(--primary-color);
  background: #fff;
  border-color: #fff;
}

/* --- Brochure Modal Redesign --- */
.brochure-modal .modal-dialog {
  width: calc(100% - 1rem);
  max-width: 800px;
  margin: 0.75rem auto;
  height: calc(100vh - 1.5rem);
}

.brochure-modal .modal-content {
  border: 0;
  border-radius: 16px; /* Softer corners */
  box-shadow: 0 20px 60px rgba(10, 47, 102, 0.2);
  background-color: #fff;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.brochure-modal form {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.brochure-modal .modal-header {
  flex-shrink: 0;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid #e9ecef;
}
.brochure-modal .modal-header .btn-close {
  background-size: 0.8rem;
}
.brochure-modal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1.75rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.brochure-modal .modal-footer {
  flex-shrink: 0;
  padding: 1rem 1.75rem;
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Form Styling */
.brochure-modal .form-label {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 14px;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.brochure-required {
  color: var(--secondary-color);
  font-weight: 800;
}

.brochure-modal .form-control,
.brochure-modal .form-select {
  height: 56px;
  border-radius: 12px;
  border: 1px solid #ced4da;
  box-shadow: none;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.brochure-modal textarea.form-control {
  min-height: 140px;
  height: auto;
}

.brochure-modal .form-control:focus,
.brochure-modal .form-select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(22, 197, 216, 0.2);
}
.brochure-modal .form-control::placeholder {
  color: #adb5bd;
  opacity: 1;
}

/* Modal Footer Buttons */
.brochure-modal .modal-footer .btn {
  min-height: 50px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
}
.brochure-modal .modal-footer .btn-outline-secondary {
  border-color: #ced4da;
  color: #495057;
}
.brochure-modal .modal-footer .btn-outline-secondary:hover {
  background-color: #e9ecef;
  color: #212529;
}

/* Modal Animation */
.fade.brochure-modal .modal-dialog {
  transform: scale(0.95);
  transition: transform 0.3s ease-out;
}
.fade.brochure-modal.show .modal-dialog {
  transform: scale(1);
}

/* 3D Border Glow on Hover (Candela/Apple Luxury) */
.glow-card-wrapper {
  position: relative;
  border-radius: var(--card-radius);
  padding: 1px;
  transition: var(--transition-smooth);
  background: transparent;
}
.glow-card-wrapper:hover {
  background: var(--secondary-gradient);
  box-shadow: var(--glow-cyan);
}

/* Responsive adjustments for the modal */
@media (min-width: 992px) {
  .brochure-modal .modal-dialog {
    width: calc(100% - 3rem);
    max-width: 920px;
    margin: 1.5rem auto;
    height: calc(100vh - 3rem);
  }

  .brochure-modal .modal-content {
    max-height: 100%;
  }
}

@media (max-width: 991.98px) {
  .brochure-modal .modal-dialog {
    width: calc(100% - 1rem);
    max-width: none;
    height: calc(100vh - 1rem);
    margin: 0.5rem auto;
  }
}

@media (max-width: 575.98px) {
  .brochure-modal .modal-dialog {
    width: calc(100% - 0.75rem);
    margin: 0.375rem auto;
    height: calc(100vh - 0.75rem);
  }

  .brochure-modal .modal-content {
    border-radius: 14px;
  }

  .brochure-modal .modal-header,
  .brochure-modal .modal-body,
  .brochure-modal .modal-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brochure-modal .modal-footer {
    flex-direction: column-reverse;
    gap: 0.75rem;
  }
  .brochure-modal .modal-footer .btn {
    width: 100%;
  }
}



/* 7. Working Process Timeline */
.timeline-container {
  position: relative;
  padding: 40px 0;
}
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--primary-gradient);
  transform: translateX(-50%);
  border-radius: 2px;
  z-index: 1;
}
.timeline-item {
  position: relative;
  margin-bottom: 60px;
  z-index: 2;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-dot {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 4px solid var(--secondary-color);
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: var(--glow-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-dot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
}
.timeline-content {
  width: 45%;
  padding: 30px;
  background: #ffffff;
  border-radius: var(--card-radius);
  border: 1px solid rgba(10, 47, 102, 0.05);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
}
.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
  text-align: right;
}
.timeline-number {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: rgba(22, 197, 216, 0.15);
  position: absolute;
  top: 15px;
  right: 25px;
}
.timeline-item:nth-child(odd) .timeline-number {
  left: 25px;
  right: auto;
}

@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
  }
  .timeline-dot {
    left: 20px;
  }
  .timeline-content {
    width: calc(100% - 50px);
    margin-left: 50px !important;
    text-align: left !important;
  }
  .timeline-item:nth-child(odd) .timeline-number {
    right: 25px;
    left: auto;
  }
}

/* --- 11. Simplified Gallery --- */
.simple-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem; /* 16px */
  box-shadow: 0 10px 25px rgba(10, 47, 102, 0.08);
  height: 300px;
  transition: box-shadow 0.3s ease;
}

.simple-gallery-item:hover {
  box-shadow: 0 15px 35px rgba(10, 47, 102, 0.15);
}

.simple-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.simple-gallery-item:hover img {
  transform: scale(1.08);
}

.simple-gallery-item .simple-gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 25, 41, 0.75); /* Dark blue overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.simple-gallery-item:hover .simple-gallery-overlay {
  opacity: 1;
}

.simple-gallery-overlay span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  padding: 0 1rem;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
}

.simple-gallery-item:hover .simple-gallery-overlay span {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 767.98px) {
  .simple-gallery-item {
    height: 280px;
  }
}

/* 9. About Page Timeline / Timeline Counter */
.counter-box {
  padding: 30px;
  text-align: center;
  transition: var(--transition-smooth);
}
.counter-number {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.counter-label {
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #627d98;
}

.timeline-spiral {
  position: relative;
  padding: 60px 0;
}
.timeline-spiral::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: dashed rgba(10, 47, 102, 0.15);
  transform: translateX(-50%);
}
.timeline-node {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 80px;
}
.timeline-node-card {
  width: 40%;
  padding: 30px;
}
.timeline-node:nth-child(even) {
  flex-direction: row-reverse;
}
.timeline-node-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 15px rgba(10, 47, 102, 0.2);
  z-index: 2;
}
.timeline-node-year {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
}

@media (max-width: 768px) {
  .timeline-spiral::before {
    left: 20px;
  }
  .timeline-node {
    flex-direction: row !important;
    justify-content: flex-start;
  }
  .timeline-node-card {
    width: calc(100% - 60px);
    margin-left: 60px;
  }
  .timeline-node-circle {
    left: 20px;
  }
}

/* 10. Testimonials */
.testimonial-card {
  background: #ffffff;
  border: 1px solid rgba(10, 47, 102, 0.05);
  padding: 40px;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft);
  height: 100%;
}
.testimonial-rating {
  color: #f5b041;
  margin-bottom: 20px;
}
.testimonial-text {
  font-size: 16px;
  color: #486581;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 30px;
}
.testimonial-user {
  display: flex;
  align-items: center;
  gap: 15px;
}
.testimonial-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary-color);
}
.testimonial-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 2px;
}
.testimonial-title {
  font-size: 13px;
  color: #627d98;
}

/* 11. FAQ Accordion Styles */
.faq-accordion .accordion-item {
  border: 1px solid rgba(10, 47, 102, 0.06) !important;
  border-radius: 12px !important;
  margin-bottom: 15px;
  overflow: hidden;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}
.faq-accordion .accordion-item:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow-soft);
}
.faq-accordion .accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  color: var(--primary-color);
  padding: 22px 25px;
  background: transparent !important;
  box-shadow: none !important;
  transition: var(--transition-smooth);
}
.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--secondary-color);
}
.faq-accordion .accordion-button::after {
  background-size: 14px;
  transition: transform 0.3s ease;
}
.faq-accordion .accordion-body {
  padding: 10px 25px 25px;
  color: #486581;
  font-size: 15px;
  line-height: 1.7;
}

/* 12. Contact Form Details */
.form-floating-custom {
  position: relative;
  margin-bottom: 24px;
}
.form-floating-custom input,
.form-floating-custom textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(10, 47, 102, 0.02);
  border: 1px solid rgba(10, 47, 102, 0.08);
  border-radius: 12px;
  outline: none;
  font-size: 15px;
  transition: var(--transition-smooth);
}
.form-floating-custom label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #829ab1;
  pointer-events: none;
  transition: var(--transition-smooth);
  font-size: 15px;
}
.form-floating-custom textarea ~ label {
  top: 30px;
}
.form-floating-custom input:focus,
.form-floating-custom textarea:focus {
  border-color: var(--secondary-color);
  background: #ffffff;
  box-shadow: 0 0 10px rgba(22, 197, 216, 0.1);
}
.form-floating-custom input:focus ~ label,
.form-floating-custom input:not(:placeholder-shown) ~ label,
.form-floating-custom textarea:focus ~ label,
.form-floating-custom textarea:not(:placeholder-shown) ~ label {
  top: 0px;
  left: 15px;
  font-size: 11px;
  font-weight: 600;
  color: var(--secondary-color);
  background: #ffffff;
  padding: 0 8px;
  transform: translateY(-50%);
}

.map-container {
  height: 400px;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(10, 47, 102, 0.05);
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 13. Footer Styles */
.footer-wrapper {
  background-color: var(--dark-bg);
  background-image: radial-gradient(circle at 50% 120%, rgba(22, 197, 216, 0.1) 0%, rgba(7, 24, 39, 1) 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: 50px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}
.footer-logo, .footer-logo svg {
  max-width: 180px;
  /* margin-bottom: 25px; */
  height: auto;
}
.footer-heading {
  font-family: var(--font-heading);
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 5px;
  position: relative;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary-color);
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-smooth);
}
.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 6px;
}
.footer-social-icons {
  display: flex;
  gap: 12px;
}
.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.social-icon-btn:hover {
  background: var(--secondary-gradient);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: var(--glow-cyan);
}
.footer-newsletter-form {
  position: relative;
}
.footer-newsletter-input {
  width: 100%;
  padding: 12px 50px 12px 16px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  outline: none;
  transition: var(--transition-smooth);
}
.footer-newsletter-input:focus {
  border-color: var(--secondary-color);
  box-shadow: var(--glow-cyan);
}
.footer-newsletter-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  width: 40px;
  border-radius: 50%;
  background: var(--secondary-gradient);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.footer-newsletter-btn:hover {
  background: var(--primary-gradient);
  transform: scale(1.05);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  margin-top: 60px;
}

/* 14. Responsive Layout Adjustments */
@media (max-width: 1200px) {
  .hero-headline {
    font-size: 46px;
  }
  .caption-heading {
    font-size: 44px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-brand {
    max-width: 165px;
  }
  #navbar-logo,
  .navbar-brand svg {
    height: 66px;
  }
  .navbar-premium .nav-link {
    font-size: 14px;
    padding: 8px 10px !important;
  }
  .navbar-premium .btn-premium {
    padding: 10px 18px;
  }
}

@media (max-width: 991.98px) {
  .navbar-premium {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(10, 47, 102, 0.08);
    height: auto;
    padding: 0.5rem 1rem;
  }
  .navbar-premium .nav-link {
    color: var(--primary-color) !important;
    padding: 10px 0 !important;
    /* Set to inline-block to ensure the ::after pseudo-element's width is relative to the text content. */
    display: inline-block; 
  }
  .nav-link:hover::after, .nav-link.active::after {
    /* On mobile, the underline should span the full width of the link text for clarity. */
    width: 100%; 
    left: 0;
    transform: translateX(0);
  }
  .navbar-premium.dark-navbar-text .nav-link {
    color: var(--primary-color) !important;
  }
  /* 
   * FIX: Mobile Navbar Overflow
   * The previous 'padding: 20px' on .navbar-collapse caused a horizontal overflow.
   * The fix is to remove padding from the container and apply it to the inner ul (.navbar-nav) instead.
  */
  .navbar-premium .navbar-collapse {
    padding: 0; /* Remove horizontal padding to prevent overflow */
    width: 100%;
  }
  .navbar-premium .navbar-nav {
    width: 100%;
  }

  .carousel-caption-new {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .products-hero-section {
    padding: 130px 0 70px;
  }
  .product-buying-guide-section {
    padding: 60px 0 20px;
  }
  .products-showcase-section {
    padding: 60px 0;
  }
  .product-brochure-card,
  .product-brochure-content {
    min-height: 420px;
  }
  .product-brochure-content p {
    min-height: 95px;
  }
}

@media (max-width: 767.98px) {
  .product-brochure-content p {
    min-height: auto;
  }
}

/* 15. Floating WhatsApp Button */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  color: #FFF;
}

/* Responsive adjustments for mobile */
@media (max-width: 575.98px) {
  .floating-whatsapp-btn {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 575.98px) {
  .hero-slider-section {
    min-height: 80vh;
  }
  .caption-buttons {
    width: 100%;
    justify-content: center;
  }
  .product-brochure-content {
    padding: 24px;
  }
  .product-guidance-panel {
    padding: 22px;
  }
  .product-guidance-item h3 {
    font-size: 16px;
  }
  .product-brochure-content p {
    min-height: auto;
  }
  .btn-premium {
    padding: 12px 24px;
    font-size: 14px;
    margin-bottom: 12px;
  }
  .scroll-indicator {
    bottom: 20px;
  }
}
