/* ===== CSS VARIABLES ===== */
:root {
  --primary-color: #1D2E4A;
  --secondary-color: #8A8D92;
  --accent-color: #1D3557;
  --success-color: #1D2E4A;
  --warning-color: #8A8D92;
  --danger-color: #14203A;
  --light-bg: #F8F9FA;
  --dark-bg: #0F1419;
  --text-dark: #1D3557;
  --text-light: #666666;
  --border-light: #E0E0E0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 24px rgba(29, 46, 74, 0.15);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: #fff;
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

h1, .display-1, .display-2, .display-3, .display-4 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

p {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* ===== NAVBAR STYLES ===== */
.navbar {
  background: linear-gradient(135deg, var(--accent-color), var(--dark-bg)) !important;
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border-bottom: 2px solid var(--primary-color);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.brand-icon {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.brand-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.nav-link {
  color: #fff !important;
  font-weight: 600;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  text-shadow: 0 0 8px rgba(29, 46, 74, 0.3);
}

/* Navbar Toggler (Mobile Menu Button) */
.navbar-toggler {
  border: 2px solid var(--primary-color) !important;
  padding: 0.45rem 0.75rem !important;
  border-radius: 6px;
  transition: var(--transition);
  background-color: rgba(29, 46, 74, 0.1) !important;
}

.navbar-toggler:hover {
  background-color: rgba(29, 46, 74, 0.2) !important;
  box-shadow: 0 0 12px rgba(29, 46, 74, 0.3);
}

.navbar-toggler:not(.collapsed) {
  background-color: rgba(29, 46, 74, 0.3) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231D2E4A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 8h22M4 15h22M4 22h22'/%3e%3c/svg%3e");
  width: 1.5rem;
  height: 1.5rem;
  background-size: 100%;
}

/* Mobile Menu Styling */
.navbar-collapse {
  transition: var(--transition);
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(29, 53, 87, 0.95);
    border-top: 1px solid var(--primary-color);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    margin-top: 0.5rem;
    border-radius: 0 0 8px 8px;
  }

  .navbar-nav {
    gap: 0 !important;
    padding: 0 1rem;
  }

  .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.75rem 0 !important;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-align: center;
  }

  .nav-link:last-child {
    border-bottom: none !important;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(29, 46, 74, 0.1);
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .btn-cta {
    margin-top: 1rem !important;
    width: 100%;
    text-align: center;
  }
}

.btn-cta {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  border: none !important;
  color: white !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 25px !important;
  font-weight: 700 !important;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(29, 46, 74, 0.3);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(29, 46, 74, 0.5);
  color: white !important;
}

/* ===== BUTTON STYLES ===== */
.btn {
  font-weight: 700;
  padding: 0.7rem 2rem;
  border-radius: 30px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(-1px);
}

/* ===== TOUCH & MOBILE OPTIMIZATIONS ===== */
/* Ensure buttons are large enough for touch targets (min 44x44px) */
.btn,
button,
a.btn,
.nav-link,
.social-icon,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}

/* Better touch feedback for interactive elements */
@media (hover: none) and (pointer: coarse) {
  /* Mobile-first touch styles */
  .btn:active {
    background-color: rgba(29, 46, 74, 0.2);
  }

  .nav-link:active {
    background-color: rgba(29, 46, 74, 0.1);
  }

  /* Reduce animation complexity on mobile for better performance */
  * {
    animation-duration: 0.5s !important;
    transition-duration: 0.3s !important;
  }

  /* Disable hover effects on mobile */
  .service-card:hover {
    transform: none;
  }

  .card:hover {
    transform: none;
  }
}

/* Optimize for touch devices */
@media (max-width: 767.98px) {
  /* Prevent zoom on input focus */
  input,
  textarea,
  select {
    font-size: 16px !important;
  }

  /* Touch-friendly spacing */
  button,
  a.btn,
  .nav-link {
    padding: 0.75rem 1.5rem !important;
  }

  /* Improved click areas */
  .social-icon {
    min-width: 50px;
    min-height: 50px;
  }

  /* Better spacing between interactive elements */
  .btn + .btn {
    margin-left: 0.5rem;
  }

  /* Full-width buttons on mobile */
  .btn-block,
  .w-100 {
    width: 100% !important;
  }

  /* Prevent double tap zoom */
  a, button {
    -webkit-touch-callout: none;
  }

  /* Improve form usability */
  .form-control,
  .form-select {
    font-size: 16px;
    min-height: 44px;
    padding: 0.75rem 1rem;
  }

  /* Prevent spurious selection */
  body {
    -webkit-user-select: none;
    -webkit-user-select: text;
    -webkit-user-select: none;
    user-select: text;
  }

  input, textarea {
    -webkit-user-select: text;
    user-select: text;
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #3A4F6E) !important;
  color: white !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3A4F6E, var(--primary-color)) !important;
  color: white;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), #5B5E63) !important;
  color: white !important;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #5B5E63, var(--secondary-color)) !important;
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color), #14203A) !important;
  color: white !important;
}

.btn-outline-light {
  border: 2px solid white !important;
  color: white !important;
  font-weight: 700;
}

.btn-outline-light:hover {
  background: white !important;
  color: var(--accent-color) !important;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--dark-bg) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle, rgba(29, 46, 74, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: float 20s linear infinite;
  z-index: 0;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  animation: slideInUp 1s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 4rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: zoomIn 0.8s ease-out;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), 
              transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== CARD STYLES ===== */
.service-card {
  background: white;
  border: none;
  border-radius: 15px;
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.card-title {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== SECTION STYLES ===== */
section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* ===== GRADIENT BACKGROUNDS ===== */
.gradient-nav {
  background: linear-gradient(135deg, var(--accent-color), var(--dark-bg)) !important;
}

.gradient-footer {
  background: linear-gradient(135deg, var(--dark-bg), var(--accent-color)) !important;
}

.gradient-bg {
  background: linear-gradient(135deg, var(--light-bg), white);
}

/* ===== FOOTER STYLES ===== */
footer {
  background: linear-gradient(135deg, var(--dark-bg), var(--accent-color));
  color: white;
  padding: 4rem 0 1rem;
  border-top: 3px solid var(--primary-color);
}

.footer-brand {
  font-weight: 800;
  font-size: 1.8rem;
  color: white;
  transition: var(--transition);
}

.footer-brand:hover {
  transform: scale(1.05);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: var(--primary-color);
  transform: translateY(-3px) scale(1.1);
}

.hover-link {
  transition: var(--transition);
  position: relative;
}

.hover-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
}

.hover-link:hover::after {
  width: 100%;
}

/* ===== COUNTER ANIMATION ===== */
.counter {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

/* ===== FORM STYLES ===== */
.form-control,
.form-select {
  border: 2px solid var(--border-light);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(29, 46, 74, 0.25);
  outline: none;
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.7rem;
}

/* ===== ALERT STYLES ===== */
.alert {
  border: none;
  border-radius: 10px;
  animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-danger {
  background: linear-gradient(135deg, rgba(255, 64, 129, 0.1), rgba(138, 141, 146, 0.1));
  border-left: 4px solid var(--danger-color);
  color: var(--danger-color);
}

.alert-success {
  background: linear-gradient(135deg, rgba(0, 216, 74, 0.1), rgba(29, 46, 74, 0.1));
  border-left: 4px solid var(--success-color);
  color: var(--success-color);
}

/* ===== VIDEO BACKGROUND ===== */
.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(29, 53, 87, 0.7), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Extra Small Devices (xs) - Mobile Phones (< 576px) */
@media (max-width: 575.98px) {
  :root {
    font-size: 14px;
  }

  h1 {
    font-size: 1.75rem;
    margin-bottom: 0.8rem;
  }

  h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  p {
    font-size: 0.95rem;
  }

  /* Navbar Mobile */
  .navbar {
    padding: 0.75rem 0;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .brand-icon {
    font-size: 1.3rem;
  }

  .brand-text {
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .navbar-toggler {
    border: 2px solid var(--primary-color) !important;
    padding: 0.25rem 0.5rem;
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231D2E4A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

  .nav-link {
    padding: 0.75rem 0 !important;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover {
    padding-left: 0.5rem !important;
  }

  .btn-cta {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem;
  }

  /* Main Content */
  main {
    margin-top: 70px !important;
  }

  /* Hero Section */
  .hero {
    min-height: 50vh;
    padding: 2rem 0;
  }

  .hero h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  .hero p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .btn {
    width: 100%;
    margin-bottom: 0.5rem !important;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 0.5rem 1rem !important;
  }

  /* Cards and Sections */
  .card {
    border-radius: 8px;
  }

  .card-body {
    padding: 1.25rem;
  }

  section {
    padding: 2rem 0 !important;
  }

  .container, .container-lg {
    padding: 0 1rem;
  }

  /* Footer */
  .row.g-4 {
    row-gap: 2rem !important;
  }

  .col-lg-4, .col-lg-3, .col-lg-2, .col-md-6 {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  footer h6 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  /* Counter Animations */
  .counter {
    font-size: 2rem;
  }

  /* Forms */
  .form-control,
  .form-select {
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
  }

  /* WhatsApp Button */
  .social-icon[style*="position: fixed"] {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.5rem !important;
    bottom: 20px !important;
    right: 20px !important;
  }

  /* Text Alignment */
  .text-md-start {
    text-align: center !important;
  }

  .text-md-end {
    text-align: center !important;
  }

  /* Flexbox Adjustments */
  .d-flex.gap-3 {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Social Icons in Footer */
  .footer-brand {
    justify-content: center;
    margin-bottom: 1.5rem;
  }
}

/* Small Devices (sm) - Tablets & Large Phones (576px - 768px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .counter {
    font-size: 2.5rem;
  }

  section {
    padding: 2.5rem 0;
  }

  .btn-lg {
    padding: 0.7rem 1.5rem !important;
  }

  main {
    margin-top: 75px !important;
  }

  .col-md-6 {
    margin-bottom: 1.5rem;
  }
}

/* Medium Devices (md) - Tablets (768px - 992px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero {
    min-height: 55vh;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .counter {
    font-size: 2.75rem;
  }

  section {
    padding: 3rem 0;
  }

  .nav-link {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem;
  }
}

/* Large Devices (lg) - Desktops (≥992px) */
@media (min-width: 992px) {
  .nav-link::after {
    width: 0;
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 80%;
  }

  .hero {
    min-height: 70vh;
  }

  .navbar-collapse {
    padding-top: 0;
  }
}

/* Extra Large Devices (xl) - Large Desktops (≥1200px) */
@media (min-width: 1200px) {
  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.75rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .counter {
    font-size: 3.5rem;
  }

  section {
    padding: 4rem 0;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .social-icon[style*="position: fixed"],
  .btn-cta,
  footer {
    display: none;
  }

  body {
    margin: 0;
    padding: 0;
  }
}

/* =====================================================
   MODERN STYLE & ANIMATION UPGRADES
   ===================================================== */

/* ----- Animated gradient overlay on every .hero section ----- */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    rgba(29, 46, 74, 0.28) 0%,
    rgba(138, 141, 146, 0.22) 35%,
    rgba(29, 53, 87, 0.15) 65%,
    rgba(29, 46, 74, 0.28) 100%);
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
  transform: translateY(var(--hero-parallax, 0px));
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ----- Staggered reveal grids (cards fade/slide in one after another) ----- */
.stagger-grid > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-grid > *.stagger-in {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Image zoom on card hover ----- */
.service-card img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover img {
  transform: scale(1.09);
}

/* Icon flourish on hover for icon-only card visuals */
.service-card .card-icon-visual i {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .card-icon-visual i {
  transform: scale(1.15) rotate(-4deg);
}

/* ----- Button ripple micro-interaction ----- */
.btn {
  position: relative;
  overflow: hidden;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  animation: rippleAnim 0.6s ease-out;
}

@keyframes rippleAnim {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

/* ----- Scroll-to-top button ----- */
.scroll-top-btn {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition);
  z-index: 1000;
}

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

.scroll-top-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 30px rgba(29, 46, 74, 0.45);
  color: white;
}

/* ----- Toast notifications (site messages) ----- */
.toast-stack {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
  width: calc(100% - 40px);
}

.gedox-toast {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--success-color);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: toastIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gedox-toast.alert-danger,
.gedox-toast.alert-error {
  border-left-color: var(--danger-color);
}

.gedox-toast.alert-warning {
  border-left-color: var(--warning-color);
}

.gedox-toast.toast-out {
  opacity: 0;
  transform: translateX(30px);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 576px) {
  .toast-stack {
    top: auto;
    bottom: 90px;
    right: 12px;
    left: 12px;
    max-width: none;
    width: auto;
  }
}

/* ----- Image loading shimmer (skeleton) ----- */
.img-shimmer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #eef1f4 25%, #e2e8ef 37%, #eef1f4 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.img-shimmer img {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.img-shimmer.loaded {
  animation: none;
  background: none;
}

.img-shimmer.loaded img {
  opacity: 1;
}

/* Respect users who prefer reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =====================================================
   STRICT BRAND PALETTE: NAVY / GRAY / WHITE ONLY
   Overrides Bootstrap's built-in semantic colors
   (success green, warning yellow, danger red) so the
   whole site stays within the GEDOX brand palette.
   ===================================================== */

.bg-success, .btn-success, .btn-success:hover {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff !important;
}

.bg-warning {
  background-color: var(--secondary-color) !important;
  color: #fff !important;
}

.bg-warning.text-dark {
  color: #fff !important;
}

.bg-danger, .btn-danger, .btn-danger:hover {
  background-color: #14203A !important;
  border-color: #14203A !important;
  color: #fff !important;
}

.text-success {
  color: var(--primary-color) !important;
}

.text-warning {
  color: var(--secondary-color) !important;
}

.text-danger {
  color: #14203A !important;
}

.alert-success {
  background-color: #F0F1F3 !important;
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}

.alert-danger {
  background-color: #F0F1F3 !important;
  border-color: #14203A !important;
  color: #14203A !important;
}

.alert-warning {
  background-color: #F0F1F3 !important;
  border-color: var(--secondary-color) !important;
  color: #5B5E63 !important;
}

.alert-success .btn-close,
.alert-danger .btn-close,
.alert-warning .btn-close {
  filter: none;
}

/* ----- Public-facing status badges (stock, availability) ----- */
.badge-in-stock {
  background: var(--primary-color) !important;
  color: #fff !important;
}

.badge-on-order {
  background: var(--secondary-color) !important;
  color: #fff !important;
}

.badge-out-of-stock {
  background: var(--dark-bg) !important;
  color: #fff !important;
}

.badge-featured {
  background: var(--primary-color) !important;
  color: #fff !important;
}

