/* Tailwind Directives */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Header Styles */
header {
background: transparent;
transform: translateY(0);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
position: fixed;
width: 100%;
z-index: 1000;
}

header.scrolled {
background: linear-gradient(135deg, rgba(58, 12, 163, 0.95), rgba(67, 97, 238, 0.95));
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* New class for hiding header when scrolling down */
header.header-hidden {
transform: translateY(-100%);
}

/* Ensure smooth transition when header reappears */
header.scrolled:not(.header-hidden) {
transform: translateY(0);
transition: transform 0.3s ease-in-out;
}

.scrolled .services-dropdown {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(8px);
color: #000000;
border: 1px solid rgba(0, 0, 0, 0.1);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.scrolled .services-dropdown a {
color: #1f2937;
transition: color 0.2s ease;
}

.scrolled .services-dropdown a:hover {
color: #3b82f6;
background: rgba(59, 130, 246, 0.1);
}

.scrolled .services-dropdown::before {
border-bottom-color: rgba(255, 255, 255, 0.95);
}

header.hide {
  transform: translateY(-100%);
}

/* Smooth transition for navigation links */
header a,
header button {
  transition: color 0.3s ease, transform 0.3s ease;
}

header a:hover,
header button:hover {
  transform: translateY(-1px);
}

/* Dropdown animation */
.services-dropdown {
  transform-origin: top;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.group:hover .services-dropdown {
  transform: translateY(0) scale(1);
}

header.scrolled a,
header.scrolled button {
  color: #ffffff;
}

/* Navigation */
.services-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    0 0 20px rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transform-origin: top;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 1rem;
  min-width: 220px;
  z-index: 50;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%);
  background-position: 10px 0, 10px 0, 0 0, 0 0;
  background-size: 20px 20px;
  background-repeat: repeat;
}

.services-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: rotate(45deg);
  border-radius: 2px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: -3px -3px 5px rgba(0, 0, 0, 0.04);
}

.group:hover .services-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.services-dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: #1f2937;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  margin-bottom: 0.25rem;
  opacity: 0;
  transform: translateX(-10px);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.group:hover .services-dropdown a {
  opacity: 1;
  transform: translateX(0);
}

.services-dropdown a:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
  border-color: rgba(59, 130, 246, 0.2);
}

/* Add delay to each dropdown item */
.services-dropdown a:nth-child(1) { transition-delay: 0.05s; }
.services-dropdown a:nth-child(2) { transition-delay: 0.1s; }
.services-dropdown a:nth-child(3) { transition-delay: 0.15s; }
.services-dropdown a:nth-child(4) { transition-delay: 0.2s; }
.services-dropdown a:nth-child(5) { transition-delay: 0.25s; }

/* Enhanced dropdown toggle animation */
.services-dropdown-toggle svg {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.services-dropdown-toggle:hover svg {
  transform: translateY(2px);
}

.group:hover .services-dropdown-toggle svg {
  transform: rotate(180deg);
}

.mobile-menu {
  transform-origin: top;
  background: transparent;
  transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease, color 0.3s ease;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  background: #ffffff;
  color: #000000;
}

.mobile-menu.active a,
.mobile-menu.active button {
  color: #000000;
}

header.scrolled .mobile-menu.active {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

header.scrolled .mobile-menu.active a,
header.scrolled .mobile-menu.active button {
  color: #000000;
}

.mobile-services-toggle svg {
  transition: transform 0.2s ease;
}

.mobile-services-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.mobile-services {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.mobile-services.active {
  max-height: 400px;
  opacity: 1;
}

/* Hero Section */
.hero-section {
position: relative;
height: 100vh;
overflow: hidden;
background-color: #000;
}

/* Improved Hero Slide Styling */
.hero-slide {
background-size: cover;
background-position: center;
transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
position: absolute;
inset: 0;
opacity: 0;
}

.hero-slide::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.7) 100%);
z-index: 1;
}

.hero-slide::after {
content: '';
position: absolute;
inset: 0;
background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.6) 100%);
z-index: 2;
}

/* Enhanced Content Positioning */
.hero-slide .container {
position: relative;
z-index: 10;
}

.hero-slide.active {
opacity: 1;
z-index: 10;
}

/* Improved Text Animation - Content stays visible during transitions */
.hero-slide h1,
.hero-slide p,
.hero-slide .flex {
opacity: 1;
transform: translateY(0);
transition: none; /* Remove transitions to prevent blinking */
}

.hero-slide.active h1,
.hero-slide.active p,
.hero-slide.active .flex {
opacity: 1;
transform: translateY(0);
}

/* Enhanced Navigation Dots */
.hero-dots {
display: flex;
gap: 12px;
align-items: center;
justify-content: center;
position: relative;
z-index: 30;
background-color: rgba(0, 0, 0, 0.3);
backdrop-filter: blur(4px);
border-radius: 20px;
padding: 8px 12px;
transform: translateY(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
opacity: 0;
transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.hero-section:hover .hero-dots {
transform: translateY(0);
opacity: 1;
}

.hero-dots button {
width: 12px;
height: 12px;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.3); /* All dots have the same base color */
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
padding: 0;
border: 2px solid transparent;
cursor: pointer;
}

.hero-dots button.active {
background-color: rgba(255, 255, 255, 0.9); /* Active dot is brighter white */
transform: scale(1.2);
box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
border-color: rgba(255, 255, 255, 0.5);
}

/* Enhanced Hero Navigation - Hide and Show on Hover */
.hero-section #prev-slide,
.hero-section #next-slide {
opacity: 0;
transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.hero-section #prev-slide {
transform: translateX(-10px);
}

.hero-section #next-slide {
transform: translateX(10px);
}

.hero-section:hover #prev-slide,
.hero-section:hover #next-slide {
opacity: 1;
transform: translateX(0);
}

/* Improved arrow styling */
.hero-section #prev-slide,
.hero-section #next-slide {
background-color: rgba(0, 0, 0, 0.3);
backdrop-filter: blur(4px);
border: 1px solid rgba(255, 255, 255, 0.2);
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition: all 0.3s ease;
}

.hero-section #prev-slide:hover,
.hero-section #next-slide:hover {
background-color: rgba(0, 0, 0, 0.5);
transform: scale(1.1);
}

/* Mobile adjustments for Hero Navigation */
@media (max-width: 768px) {
    .hero-section { height: 85vh; }
}

/* Marquee */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  animation: marquee 20s linear infinite;
}

.marquee-wrapper:hover .animate-marquee {
  animation-play-state: paused;
}

/* Services Section */
.services-section {
    background: var(--section-bg-2);
    padding: 5rem 0;
}

.services-section h2::after {
    content: '';
    display: block;
    height: 4px;
    width: 96px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    margin: 1rem auto 0;
}

.services-section button {
    transition: all 0.3s ease;
}

.services-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bg-orange-50 {
    background-color: #fff7ed;
}

.bg-pink-50 {
    background-color: #fdf2f8;
}

.bg-green-50 {
    background-color: #f0fdf4;
}

.bg-purple-50 {
    background-color: #f5f3ff;
}

.bg-indigo-50 {
    background-color: #eef2ff;
}

.bg-gray-900 {
    background-color: #111827;
}

.text-orange-600 {
    color: #f97316;
}

.text-pink-600 {
    color: #ec4899;
}

.text-green-600 {
    color: #16a34a;
}

.text-purple-600 {
    color: #9333ea;
}

.text-indigo-600 {
    color: #4f46e5;
}

.border-orange-500 {
    border-color: #f97316;
}

.border-pink-500 {
    border-color: #ec4899;
}

.border-green-500 {
    border-color: #16a34a;
}

.border-purple-500 {
    border-color: #9333ea;
}

.border-indigo-500 {
    border-color: #4f46e5;
}

.bg-orange-100 {
    background-color: #ffedd5;
}

.bg-pink-100 {
    background-color: #fce7f3;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-purple-100 {
    background-color: #ede9fe;
}

.bg-indigo-100 {
    background-color: #e0e7ff;
}

.text-orange-400 {
    color: #fb923c;
}

.text-pink-400 {
    color: #f472b6;
}

.text-green-400 {
    color: #4ade80;
}

.text-purple-400 {
    color: #a855f7;
}

.text-indigo-400 {
    color: #818cf8;
}

/* Client Success Stories Styles */
#case-studies {
  padding: 5rem 1rem;
  text-align: center;
  background: #f9fafb;
  position: relative;
  overflow: hidden;
}

#case-studies h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #1e3a8a;
}

#case-studies .subtitle {
  color: #4b5563;
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  font-size: clamp(1rem, 3vw, 1.25rem);
  line-height: 1.6;
}

.carousel {
  position: relative;
  height: 580px;
  display: grid;
  place-items: center;
  perspective: 1600px;
  overflow: hidden;
  padding: 0 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.card {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  width: clamp(300px, 85vw, 400px);
  height: 540px;
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1), filter 0.9s, opacity 0.9s, box-shadow 0.4s;
  user-select: none;
}

.card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  transform: translate(-50%, -4px) scale(1.02) rotateY(0deg);
}

.card__hero {
  height: 220px;
  border-radius: 1.5rem 1.5rem 0 0;
  overflow: hidden;
  position: relative;
}

.card__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  loading: lazy;
  transition: transform 0.8s ease-out;
}

.card__hero:hover img {
  transform: scale(1.12);
}

.card__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent 60%);
}

.card__category {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 1.25rem 0 0 1.25rem;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
}

.card__category:hover {
  transform: scale(1.05);
}

.card__title {
  font: 700 clamp(1.2rem, 3.5vw, 1.5rem)/1.4 "Inter", sans-serif;
  padding: 1.25rem 1.5rem 0.5rem;
  color: #1e3a8a;
}

.card__desc {
  font-size: 0.9rem;
  color: #4b5563;
  padding: 0.75rem 1.5rem 1.25rem;
  flex: 1;
  line-height: 1.6;
}

.card__link {
  display: flex;
  align-items: center;
  padding: 0 1.5rem 1.5rem;
  color: #2563eb;
  font-weight: 500;
  font-size: 0.9rem;
}

.card__link:hover {
  color: #1e3a8a;
}

.card__link svg {
  width: 16px;
  height: 16px;
  margin-left: 0.5rem;
  transition: transform 0.3s;
}

.card__link:hover svg {
  transform: translateX(4px);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.5rem 1.5rem;
}

.tags li {
  font-size: 0.75rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.tags li:hover {
  transform: scale(1.05);
}

.tag-blue { background: #dbeafe; color: #1e40af; }
.tag-purple { background: #ede9fe; color: #6b21a8; }
.tag-green { background: #d1fae5; color: #065f46; }
.tag-yellow { background: #fef9c3; color: #854d0e; }
.tag-red { background: #fee2e2; color: #991b1b; }

.card[data-pos="0"] {
  transform: translate(-50%, 0) scale(1) rotateY(0deg);
  filter: blur(0);
  opacity: 1;
  z-index: 3;
}

.card[data-pos="1"],
.card[data-pos="-1"] {
  transform: translate(calc(-50% + 260px), 0) scale(0.94) rotateY(-30deg);
  filter: blur(1px);
  opacity: 0.88;
  z-index: 2;
}

.card[data-pos="-1"] {
  transform: translate(calc(-50% - 260px), 0) scale(0.94) rotateY(30deg);
}

.card:not([data-pos]) {
  transform: translate(-50%, 0) scale(0.85);
  filter: blur(2.5px);
  opacity: 0.55;
  z-index: 1;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  aspect-ratio: 1;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  background: #ffffff;
  color: #1e3a8a;
  font-size: 1.5rem;
  line-height: 46px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
  background: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.nav:focus {
  outline: none;
}

.nav:active {
  transform: translateY(-50%) scale(0.98);
}

.nav--prev { left: 1.5rem; }
.nav--next { right: 1.5rem; }

.nav-dots {
  position: absolute;
  bottom: 0.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(162, 160, 160, 0.423);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.dot:hover {
  background: rgba(61, 58, 58, 0.423);
  transform: scale(1.2);
}

.dot.active {
  background: #2563eb;
  transform: scale(1.4);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .carousel { height: 560px; }
  .card { width: clamp(280px, 90vw, 360px); height: 520px; }
  .card[data-pos="1"], .card[data-pos="-1"] {
    transform: translate(calc(-50% + 220px), 0) scale(0.92) rotateY(-26deg);
  }
  .card[data-pos="-1"] {
    transform: translate(calc(-50% - 220px), 0) scale(0.92) rotateY(26deg);
  }
  .card__hero { height: 200px; }
}

@media (max-width: 480px) {
  #case-studies { padding: 3rem 0.5rem; margin: 0.75rem; }
  .nav { display: none; }
  .carousel { height: 540px; padding: 0 1rem; }
  .card { width: clamp(280px, 90vw, 320px); height: 500px; }
  .card__hero { height: 180px; }
  .nav-dots { bottom: 1.5rem; }

  .card[data-pos="1"], .card[data-pos="-1"] {
    transform: translate(calc(-50% + 40%), 0) scale(0.95) rotateY(0deg); /* Further reduced translation for better fit */
    filter: blur(0.5px); /* Slightly less blur */
    opacity: 0.9; /* Slightly less visible to focus on center */
  }
  .card[data-pos="-1"] {
    transform: translate(calc(-50% - 40%), 0) scale(0.95) rotateY(0deg); /* Further reduced translation for better fit */
  }
  .card:not([data-pos]) {
    transform: translate(-50%, 0) scale(0.85); /* Smaller for non-visible cards */
    filter: blur(2px); /* More blur for non-visible cards */
    opacity: 0.3; /* Less visible for non-visible cards */
  }
}

@media (max-width: 400px) {
  .carousel { height: 500px; padding: 0 0.5rem; }
  .card { width: clamp(260px, 95vw, 300px); height: 460px; }
  .card__hero { height: 160px; }

  .card[data-pos="1"], .card[data-pos="-1"] {
    transform: translate(calc(-50% + 20%), 0) scale(0.92) rotateY(0deg); /* Minimal translation for very small screens */
    filter: blur(0.3px);
    opacity: 0.85;
  }
  .card[data-pos="-1"] {
    transform: translate(calc(-50% - 20%), 0) scale(0.92) rotateY(0deg);
  }
  .card:not([data-pos]) {
    transform: translate(-50%, 0) scale(0.8);
    filter: blur(2.5px);
    opacity: 0.2;
  }
}

.cta-pop-bar {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 120%);
  background: #eac6f7;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 32px;
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.cta-pop-bar.active {
  transform: translate(-50%, 0);
}
.cta-pop-bar .cta-btn {
  background: #222;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 1rem;
  margin-left: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.cta-pop-bar .cta-btn:hover {
  background: #444;
}

.popup-container {
  display: none;
}

/* Team Section */
.team-section {
    background: var(--section-bg-3);
    padding: 5rem 0;
}

.team-section h2::after {
    content: '';
    display: block;
    height: 4px;
    width: 96px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    margin: 1rem auto 0;
}

.team-member img {
    transition: transform 0.5s ease;
}

.team-member:hover img {
    transform: scale(1.05);
}

/* Team Members Grid Responsiveness */
#team-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: start;
}

.team-member {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Tablet responsiveness */
@media (min-width: 641px) and (max-width: 1023px) {
    #team-members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .team-member {
        max-width: 100%;
    }
}

/* Desktop responsiveness */
@media (min-width: 1024px) {
    #team-members-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2.5rem;
    }

    .team-member {
        max-width: 400px;
    }
}

#teamModal {
    transition: opacity 0.3s ease;
}

#teamModal.hidden {
    opacity: 0;
    pointer-events: none;
}

#teamModal.active {
    opacity: 1;
}

#modalContent {
    max-height: 90vh;
    overflow-y: auto;
}

/* Close button styles for team modal */
.close-team-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 60;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 0.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.close-team-modal:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.close-team-modal i {
    width: 1.5rem;
    height: 1.5rem;
}

/* Mobile-specific styles for team modal */
@media (max-width: 768px) {
    #teamModal .grid {
        grid-template-columns: 1fr;
    }
    #teamModal .h-96 {
        height: 300px;
    }
    
    /* Ensure close button is visible and properly positioned on mobile */
    .close-team-modal {
        top: 0.75rem;
        right: 0.75rem;
        background: rgba(255, 255, 255, 0.9);
        padding: 0.5rem;
    }
    
    .close-team-modal i {
        width: 1.75rem;
        height: 1.75rem;
    }
}

@media (max-width: 640px) {
    .team-section {
        padding: 3rem 0;
    }

    #team-members-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-member {
        max-width: 100%;
    }

    /* Further adjustments for smaller screens */
    .close-team-modal {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.75rem;
    }

    .close-team-modal i {
        width: 2rem;
        height: 2rem;
    }
}

/* Testimonials Section */
.testimonials-section {
position: relative;
overflow: hidden;
}

.testimonials-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
}

.testimonials-slider {
width: 100%;
overflow: hidden;
position: relative;
margin: 0 auto;
padding: 1rem 0;
}

.testimonials-track {
display: flex;
transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
will-change: transform;
width: 100%;
position: relative;
}

.testimonial-slide {
flex-shrink: 0;
padding: 0.5rem;
box-sizing: border-box;
width: 100%;
}

.testimonial-slide > div {
height: 100%;
background: white;
border-radius: 1rem;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
border: 1px solid rgba(59, 130, 246, 0.1);
}

.testimonial-slide > div:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
border-color: rgba(59, 130, 246, 0.2);
}

.testimonial-indicators {
display: flex;
justify-content: center;
margin-top: 2rem;
gap: 0.5rem;
}

.testimonial-indicators button {
width: 10px;
height: 10px;
border-radius: 50%;
border: none;
padding: 0;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
background-color: #e5e7eb;
}

.testimonial-indicators button:hover {
transform: scale(1.2);
background-color: #d1d5db;
}

.testimonial-indicators button.bg-blue-600 {
background-color: #2563eb;
transform: scale(1.2);
}

#testimonial-prev, 
#testimonial-next {
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 10;
background: white;
border: 1px solid #e5e7eb;
}

#testimonial-prev:hover, 
#testimonial-next:hover {
transform: scale(1.1);
border-color: #2563eb;
background-color: #f8fafc;
}

#testimonial-prev:hover svg, 
#testimonial-next:hover svg {
color: #2563eb;
}

/* Mobile-friendly rules */
@media (max-width: 768px) {
.testimonial-slide {
width: 100% !important;
padding: 0.75rem;
}

.testimonial-slide > div {
height: 100%;
margin: 0 auto;
max-width: 90%;
}

.testimonials-track {
gap: 0;
}

.testimonial-slide > div {
min-height: 340px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1023px) {
.testimonial-slide {
width: 50%;
}
}

/* Desktop */
@media (min-width: 1024px) {
.testimonial-slide {
width: 33.33%;
}
}

.carousel {
position: relative;
}

.carousel-dots {
position: relative;
left: auto;
bottom: auto;
transform: none;
margin-top: 2rem;
margin-bottom: 0;
}

.carousel-dots button,
.carousel-indicator {
width: 18px;
height: 18px;
border-radius: 50%;
background: rgba(59,130,246,0.15);
border: 2px solid #e0e7ef;
box-shadow: 0 2px 8px rgba(59,130,246,0.10);
margin: 0 0.25rem;
transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
cursor: pointer;
outline: none;
position: relative;
}

.carousel-dots button.active,
.carousel-indicator.active {
background: linear-gradient(135deg, #3b82f6, #2563eb);
border: 2px solid #3b82f6;
box-shadow: 0 0 0 6px rgba(59,130,246,0.12);
transform: scale(1.25);
}

.carousel-dots button:focus-visible {
outline: 2px solid #3b82f6;
outline-offset: 2px;
}

/* FAQ Section */
.faq-section {
    background-color: #f9fafb;
}

.faq-item .accordion-content {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.faq-item .accordion-content.active {
    max-height: 500px;
    opacity: 1;
}

.icon-container {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plus-icon, .minus-icon {
    position: absolute;
    transition: all 0.3s ease;
}

.faq-item button[aria-expanded="true"] .plus-icon {
    display: none;
}

.faq-item button[aria-expanded="true"] .minus-icon {
    display: block;
}

.faq-search {
    transition: all 0.2s ease;
}

.faq-search:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.faq-category {
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.faq-item {
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Contact Section */
#contact-form input,
#contact-form textarea,
#contact-form select {
    transition: all 0.2s ease;
}

#contact-form input:focus,
#contact-form textarea:focus,
#contact-form select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
}

#contact-form button[type="submit"] {
    transition: all 0.3s ease;
}

#contact-form button[type="submit"]:hover {
    background-color: #2563eb;
    transform: scale(1.05);
}

#contact-form button[type="submit"]:disabled {
    background-color: #93c5fd;
    cursor: not-allowed;
    transform: none;
}

#contact-form-success {
    transition: opacity 0.3s ease;
}

#contact-form-success:not(.hidden) {
    opacity: 1;
}

#contact-form-success.hidden {
    opacity: 0;
}



/* Lead Modal */
#lead-modal {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(.4,0,.2,1), transform 0.3s cubic-bezier(.4,0,.2,1);
    transform: scale(0.97);
}

#lead-modal.active {
    pointer-events: auto;
    opacity: 1;
    transform: scale(1);
}

#lead-modal .modal-content {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.3s cubic-bezier(.4,0,.2,1), transform 0.3s cubic-bezier(.4,0,.2,1);
}

#lead-modal.active .modal-content {
    opacity: 1;
    transform: scale(1);
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#lead-modal .modal-content {
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Enhanced Lead Modal Styles */
#lead-modal .form-group {
    margin-bottom: 1.25rem;
}

#lead-modal .form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #374151;
}

#lead-modal .form-group input,
#lead-modal .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-size: 1rem;
}

#lead-modal .form-group input:focus,
#lead-modal .form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#lead-modal .form-group input::placeholder,
#lead-modal .form-group textarea::placeholder {
    color: #9ca3af;
}

#lead-modal .error-message {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #ef4444;
}

#lead-modal .form-group input.invalid,
#lead-modal .form-group textarea.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

#lead-modal .submit-btn {
    background: linear-gradient(to right, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

#lead-modal .submit-btn:hover {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(59, 130, 246, 0.3);
}

#lead-modal .submit-btn:active {
    transform: translateY(0);
}

#lead-modal .submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#lead-modal .submit-btn .spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#lead-modal .submit-btn.loading .spinner {
    display: inline-block;
}

#lead-modal .submit-btn.loading span {
    display: none;
}

#lead-modal .success-message,
#lead-modal .error-message-box {
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-top: 1rem;
}

#lead-modal .success-message {
    background-color: #dcfce7;
    color: #15803d;
}

#lead-modal .error-message-box {
    background-color: #fee2e2;
    color: #b91c1c;
}

#lead-modal .success-icon,
#lead-modal .error-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

#lead-modal .success-icon {
    background-color: #bbf7d0;
}

#lead-modal .error-icon {
    background-color: #fecaca;
}

#lead-modal .success-icon i,
#lead-modal .error-icon i {
    width: 1.5rem;
    height: 1.5rem;
}

#lead-modal .success-icon i {
    color: #15803d;
}

#lead-modal .error-icon i {
    color: #b91c1c;
}

@media (max-width: 640px) {
    #lead-modal .modal-content {
        max-width: 98vw;
        min-width: 0;
        border-radius: 1rem;
    }
    #lead-modal .p-8 {
        padding: 1.25rem !important;
    }
    
    /* Mobile-specific styles for lead modal */
    #lead-modal .form-group {
        margin-bottom: 1rem;
    }
    
    #lead-modal .form-group input,
    #lead-modal .form-group textarea {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }
    
    #lead-modal .submit-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

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

#lead-modal .modal-animated-title,
#lead-modal .modal-animated-desc {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.3s, transform 0.3s;
}

#lead-modal.active .modal-animated-title {
    animation: fadeSlideUp 0.6s cubic-bezier(.4,0,.2,1) 0.1s forwards;
}

#lead-modal.active .modal-animated-desc {
    animation: fadeSlideUp 0.6s cubic-bezier(.4,0,.2,1) 0.25s forwards;
}

/* Error message animation */
.error-message {
    transition: opacity 0.3s ease;
}

.error-message:not(.hidden) {
    opacity: 1;
}

.error-message.hidden {
    opacity: 0;
}

/* Invalid input border */
input.invalid, textarea.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Newsletter Success Animation */
.newsletter-success-icon {
    display: inline-block;
    width: 48px;
    height: 48px;
    background: #10b981;
    border-radius: 50%;
    padding: 12px;
    margin: 0 auto;
}

.newsletter-success-icon svg {
    width: 100%;
    height: 100%;
    fill: white;
}

.newsletter-thank-you {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.newsletter-thank-you.visible {
    opacity: 1;
    transform: scale(1);
}

/* Scroll to Top Button Styles */
.scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
    overflow: hidden;
    border: none;
}

.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

.scroll-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3); /* Matches gradient start color */
}

.scroll-to-top .progress-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.scroll-to-top .progress-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 4;
}

.scroll-to-top .progress-ring {
    fill: none;
    stroke: url(#progress-gradient);
    stroke-width: 4;
    stroke-dasharray: 188.5; /* 2 * π * 30 */
    stroke-dashoffset: 188.5;
    transition: stroke-dashoffset 0.4s ease-out;
    stroke-linecap: round;
}

.scroll-to-top .arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    fill: url(#arrow-gradient);
    transition: transform 0.3s ease;
}

.scroll-to-top:hover .arrow {
    transform: translate(-50%, -50%) translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 0.9; transform: scale(1); }
}

.scroll-to-top.visible {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

/* Additional styles to ensure scroll button is visible */
.scroll-to-top .progress-bg {
    stroke: #e5e7eb;
}

.scroll-to-top .progress-ring {
    stroke: url(#progress-gradient);
    stroke-dasharray: 188.5;
    stroke-dashoffset: 188.5;
}

.scroll-to-top .arrow {
    fill: url(#arrow-gradient);
}

/* Blog Newsletter Modal Styles */
#blog-newsletter-modal {
transition: opacity 0.3s ease;
}

#blog-newsletter-modal:not(.hidden) {
opacity: 1;
}

#blog-newsletter-modal .bg-white {
transform: translateY(0);
transition: transform 0.3s ease, opacity 0.3s ease;
}

#blog-newsletter-modal.hidden .bg-white {
transform: translateY(-20px);
opacity: 0;
}

/* Mobile Responsiveness for Blog Newsletter Modal */
@media (max-width: 768px) {
    #blog-newsletter-modal .bg-white {
        max-width: 95vw;
        width: 95vw;
        margin: 0 auto;
        padding: 2rem 1.5rem;
        border-radius: 1rem;
    }

    #blog-newsletter-modal .newsletter-icon {
        width: 4rem;
        height: 4rem;
        margin-bottom: 1.5rem;
    }

    #blog-newsletter-modal .newsletter-icon i {
        width: 2rem;
        height: 2rem;
    }

    #blog-newsletter-modal h3 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    #blog-newsletter-modal p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    #blog-newsletter-modal input[type="email"] {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        border-radius: 0.75rem;
        margin-bottom: 1rem;
    }

    #blog-newsletter-modal button[type="submit"] {
        padding: 1rem 2rem;
        font-size: 1rem;
        border-radius: 0.75rem;
        min-height: 3rem;
        width: 100%;
        margin-top: 0.5rem;
    }

    #blog-newsletter-modal .close-blog-newsletter-modal {
        top: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #blog-newsletter-modal .close-blog-newsletter-modal i {
        width: 1.25rem;
        height: 1.25rem;
    }
}

@media (max-width: 480px) {
    #blog-newsletter-modal .bg-white {
        max-width: 98vw;
        width: 98vw;
        padding: 1.5rem 1rem;
        margin: 1rem;
    }

    #blog-newsletter-modal .newsletter-icon {
        width: 3.5rem;
        height: 3.5rem;
        margin-bottom: 1.25rem;
    }

    #blog-newsletter-modal .newsletter-icon i {
        width: 1.75rem;
        height: 1.75rem;
    }

    #blog-newsletter-modal h3 {
        font-size: 1.375rem;
        margin-bottom: 0.875rem;
    }

    #blog-newsletter-modal p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    #blog-newsletter-modal input[type="email"] {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        margin-bottom: 0.875rem;
    }

    #blog-newsletter-modal button[type="submit"] {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        min-height: 2.75rem;
    }

    #blog-newsletter-modal .close-blog-newsletter-modal {
        top: 0.75rem;
        right: 0.75rem;
        width: 2.25rem;
        height: 2.25rem;
    }

    #blog-newsletter-modal .close-blog-newsletter-modal i {
        width: 1.125rem;
        height: 1.125rem;
    }

    #blog-newsletter-modal .text-xs {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

#blog-newsletter-form input[type="email"] {
transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#blog-newsletter-form input[type="email"]:focus {
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#blog-newsletter-form button[type="submit"] {
transition: background-color 0.3s ease, transform 0.2s ease;
}

#blog-newsletter-form button[type="submit"]:hover {
background-color: #2563eb;
transform: translateY(-2px);
}

#blog-newsletter-form button[type="submit"]:active {
transform: scale(0.98);
}

#blog-newsletter-form button[type="submit"]:disabled {
opacity: 0.7;
cursor: not-allowed;
transform: none;
}

.newsletter-success-icon {
animation: successIconPop 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.newsletter-success-icon svg {
width: 24px;
height: 24px;
stroke: white;
stroke-width: 2;
fill: none;
animation: checkmarkDraw 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.newsletter-thank-you-text {
opacity: 0;
transform: translateY(10px);
animation: thankYouSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

@keyframes successIconPop {
0% {
transform: scale(0);
opacity: 0;
}
50% {
transform: scale(1.2);
}
100% {
transform: scale(1);
opacity: 1;
}
}

@keyframes checkmarkDraw {
0% {
stroke-dashoffset: 100;
}
100% {
stroke-dashoffset: 0;
}
}

@keyframes thankYouSlideUp {
0% {
opacity: 0;
transform: translateY(10px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}

/* Add smooth transitions for form elements */
#newsletter-form input,
#newsletter-form button {
transition: all 0.2s ease;
}

#newsletter-form input:focus {
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#newsletter-form button:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

#newsletter-form button:active {
transform: translateY(0);
}

/* Loading spinner animation */
@keyframes spin {
to {
transform: rotate(360deg);
}
}

.animate-spin {
animation: spin 1s linear infinite;
}

/* Card Hover Effect */
.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

/* Image Scale Effect */
.image-scale {
    transition: transform 0.5s ease;
}
.image-scale:hover {
    transform: scale(1.08);
}

/* Category Badge */
.category-badge {
    transition: all 0.3s ease;
}
.category-badge:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Action Buttons */
.action-btn {
    transition: all 0.2s ease;
}
.action-btn:hover {
    background-color: #E5E7EB;
    transform: scale(1.1);
}

/* Meta Chips */
.meta-chip {
    background-color: #F3F4F6;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 50;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 90%;
}

/* Force solid header on specific pages like checkout */
body.checkout-page #header {
  background: linear-gradient(135deg, rgba(58, 12, 163, 0.95), rgba(67, 97, 238, 0.95));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body.checkout-page #header a,
body.checkout-page #header button {
  color: #ffffff;
}

#pay-later-button.selected {
    background-color: #10B981 !important;
    color: white !important;
    cursor: default !important;
}

#pay-now-button:disabled {
    background-color: #D1D5DB !important;
    color: #9CA3AF !important;
    cursor: not-allowed !important;
}
#payment-slider {
    transform: translateX(0%);
}

#pay-now-button.text-gray-800,
#pay-later-button.text-gray-800 {
    color: #1f2937;
}

#pay-now-button.text-gray-500,
#pay-later-button.text-gray-500 {
    color: #6b7280;
}

#payment-confirmation {
    transition: all 0.3s ease-in-out;
}

body.header-scrolled:not(.at-top) main {
    padding-top: 8rem;
}

/* About Section */
.about-section {
    position: relative;
    overflow: hidden;
}

.about-content {
    position: relative;
    z-index: 1;
}

.about-image img {
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* About Us Section Animations */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-left {
    transform: translateX(-20px);
}

.fade-in-right {
    transform: translateX(20px);
}

.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Blog Mobile Enhancements */
@media (max-width: 640px) {
    /* Blog hero section adjustments */
    .blog-hero-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    /* Blog search bar mobile optimization */
    .blog-search-container {
        margin-top: -20px;
    }

    .blog-search-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 16px;
    }

    /* Blog grid spacing on mobile */
    .blog-grid {
        gap: 1.5rem;
    }

    /* Blog card mobile adjustments */
    .blog-card {
        margin-bottom: 1rem;
    }

    /* Comments section mobile spacing */
    .comments-section {
        margin-top: 2rem;
        padding: 1rem;
    }

    .comment-form {
        gap: 1rem;
    }

    /* Back button mobile adjustments */
    .back-button {
        margin-bottom: 1.5rem;
        margin-top: 1.5rem;
    }

    /* Related blogs sidebar mobile */
    .related-blogs-sidebar {
        margin-top: 2rem;
    }
}

