/* Import Poppins font from Google Fonts */
/* Fonts are now loaded in index.html with preconnect; remove CSS @import to avoid render blocking */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

:root {
  --primary-color: #2c3e50;
  --secondary-color: #d64646;
  --text-color: #333;
  --white: #ffffff;
  --light-bg: rgba(255, 255, 255, 0.9);
  --transition-speed: 0.3s;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --info-color: #3498db;
  --gradient-primary: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  --gradient-secondary: linear-gradient(135deg, #d64646 0%, #e74c3c 100%);
  --gradient-success: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  --gradient-info: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
  --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.2);
  scroll-padding-top: 80px;
}

/* html {
  scroll-behavior: smooth;
} */

body {
  line-height: 1.6;
  background: linear-gradient(rgba(255, 0, 0, 0.5), rgba(255, 0, 0, 0.5)), url("images/bgmain.webp");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ===== Header & Navigation Styles ===== */
header {
  background-color: var(--white);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-speed) ease;
}

header.scrolled {
  padding: 0.2rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-container img {
  width: 170px;
  height: 50px;
  cursor: pointer;
  object-fit: contain;
  transition: transform var(--transition-speed) ease;
}

.nav-container img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color var(--transition-speed) ease;
  position: relative;
  cursor: pointer;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary-color);
  transition: width var(--transition-speed) ease;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.nav-links a:hover::after {
  width: 100%;
}

.dropdown {
  position: relative;
}

.services-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  border-radius: 4px;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  max-height: 0;
  overflow: hidden;
}

.services-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: 500px;
}

.dropdown:hover .services-dropdown,
.dropdown:active .services-dropdown,
.dropdown .services-dropdown.active {
  display: block;
}

.services-dropdown a {
  color: var(--text-color);
  display: block;
  padding: 0.5rem 1rem;
  transition: all var(--transition-speed) ease;
}

.services-dropdown a:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateX(5px);
}

.nav-links li:hover .services-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown>a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown>a .fa-chevron-down {
  transition: transform var(--transition-speed) ease;
  font-size: 0.8rem;
}

.dropdown:hover>a .fa-chevron-down {
  transform: rotate(180deg);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: color var(--transition-speed) ease;
}

.mobile-menu-btn:hover {
  color: var(--secondary-color);
}

/* ===== Home Wrapper and Category Styles ===== */
.home-wrapper {
  display: flex;
  justify-content: center; /* Center the promo banner */
  align-items: flex-start;
  gap: 2rem;
  max-width: 1400px;
  margin: 6rem auto 3rem;
  padding: 0 2rem;
  position: relative;
}

/* New responsive wrapper for categories */
.home-categories-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.category-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}

.category-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), #ff6b9d, #a174ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.category-container:hover::before {
  transform: scaleX(1);
}

.category-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Media query for stacking on smaller screens */
@media (max-width: 900px) {
  .home-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .home-categories-wrapper {
    grid-template-columns: 1fr; /* Single column on smaller screens */
  }
}

.category-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

.category-content h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color), #ff6b9d);
  border-radius: 2px;
}

.category-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.category-item {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.4s ease;
  border: 1px solid rgba(214, 70, 70, 0.1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.category-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(214, 70, 70, 0.1), transparent);
  transition: left 0.6s ease;
}

.category-item:hover::before {
  left: 100%;
}

.category-item i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  display: block;
  transition: all 0.3s ease;
}

.category-item:hover i {
  transform: scale(1.08);
  color: #ff6b9d;
}

.category-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.category-item:hover h4 {
  color: var(--secondary-color);
}

.category-item p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.category-item:hover p {
  color: var(--primary-color);
}

/* ===== Enhanced Promo Banner Styles ===== */
.promo-banner {
  flex: 1;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.promo-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(214, 70, 70, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(44, 62, 80, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(214, 70, 70, 0.05) 0%, transparent 50%);
  /* Disable infinite particle animation for performance */
  animation: none;
  z-index: 0;
}

.promo-banner:hover {
  transform: translateY(-8px);
}

.promo-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4rem 3rem;
  border-radius: 20px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  z-index: 1;
  transform: translateY(30px);
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards 0.2s;
  overflow: hidden;
}

.promo-content::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), #a174ff, var(--primary-color));
  background-size: 400% 400%;
  border-radius: 22px;
  z-index: -1;
  animation: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.promo-content:hover::before {
  opacity: 1;
}

.promo-content::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, var(--secondary-color), #ff6b9d);
  border-radius: 50%;
  opacity: 0.1;
  animation: none;
}

.promo-banner h2 {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, #a174ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  animation: none;
}

.promo-banner h2::after {
  content: "";
  position: absolute;
  width: 0;
  height: 4px;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--secondary-color), #ff6b9d, #a174ff, var(--primary-color));
  background-size: 200% 100%;
  border-radius: 2px;
  animation: expandWidth 0.8s ease forwards 0.5s;
}

.promo-banner p {
  font-size: 1.3rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  line-height: 1.6;
  position: relative;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards 0.6s;
}

/* Enhanced Promo Button */
.promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gradient-secondary);
  color: var(--white);
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: var(--shadow-medium);
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
}

.promo-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.promo-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-heavy);
  border-color: var(--secondary-color);
}

.promo-btn:hover::before {
  left: 100%;
}

.promo-btn i {
  font-size: 18px;
}

/* ===== Enhanced About Us Section ===== */
.about-container {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 4rem 1rem;
  margin: 2rem auto;
  border-radius: 20px;
  max-width: 1150px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 95%;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: scroll; /* avoid fixed backgrounds for perf */
}

.about-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), #ff6b9d, #a174ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 2;
}

.about-container:hover::before {
  transform: scaleX(1);
}

.about-container::after { content: none; }

.about-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.about-container h2 {
  font-size: 3rem;
  font-weight: 780;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, #a174ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.about-container h2::before { content: none; }

.about-container h2::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--secondary-color), #ff6b9d, #a174ff, var(--primary-color));
  border-radius: 2px;
}

.about-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  position: relative;
  z-index: 2;
  margin-top: 1rem;
}

.about-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: auto;
  min-height: 300px;
}

.about-card:nth-child(1) {
  animation-delay: 0.2s;
}

.about-card:nth-child(2) {
  animation-delay: 0.4s;
}

.about-card:nth-child(3) {
  animation-delay: 0.6s;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--secondary-color), #ff6b9d, #a174ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.about-card:hover::before {
  transform: scaleX(1);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.quote-icon {
  font-size: 4rem;
  background: linear-gradient(135deg, var(--secondary-color), #ff6b9d);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  position: absolute;
  top: 25px;
  right: 25px;
  font-family: Georgia, serif;
  opacity: 0.8;
  transition: all 0.3s ease;
  transform: rotate(0deg);
}

.about-card:hover .quote-icon {
  transform: rotate(10deg) scale(1.1);
  opacity: 1;
}

.about-text {
  margin: 2rem 0 2rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #2c3e50;
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
  position: relative;
}

.about-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: -1rem;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--secondary-color), transparent);
  border-radius: 2px;
}

.about-text::-webkit-scrollbar {
  width: 6px;
}

.about-text::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.about-text::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--secondary-color), #ff6b9d);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.about-text::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff6b9d, var(--secondary-color));
}

.card-footer {
  margin-top: auto;
  border-top: 1px solid rgba(214, 70, 70, 0.2);
  padding-top: 1.5rem;
  position: relative;
}

.card-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--secondary-color), #ff6b9d);
  transform: scaleX(0);
  transition: transform 0.6s ease;
}

.about-card:hover .card-footer::before {
  transform: scaleX(1);
}

.card-footer h3 {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--secondary-color), #ff6b9d);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
  position: relative;
}

.card-footer p {
  font-size: 1rem;
  color: #666;
  font-weight: 400;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.about-card:hover .card-footer p {
  color: var(--primary-color);
  opacity: 1;
}

.card-rating {
  display: flex;
  gap: 0.3rem;
  margin-top: 1rem;
  justify-content: center;
}

.star {
  color: #ffd700;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

/* remove staggered keyframe delays to avoid JS/CSS animation cost */

.about-card:hover .star {
  transform: scale(1.2);
}

/* ===== Section Styles ===== */
.services,
.experiences,
.contact,
.frequently .slider-container {
  background-color: var(--light-bg);
  padding: 3rem;
  margin: 2rem auto;
  border-radius: 10px;
  max-width: 1000px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.services h2,
.experiences h2,
.contact h2,
.frequently h2,
.slider-container h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.services h2::after,
.experiences h2::after,
.contact h2::after,
.frequently h2::after,
.slider-container h2::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -10px;
  left: 0;
  background-color: var(--secondary-color);
  transition: width 1s ease;
}

.services.visible h2::after,
.experiences.visible h2::after,
.contact.visible h2::after,
.frequently.visible h2::after,
.slider-container.visible h2::after {
  width: 70%;
}

.service {
  margin-bottom: 2rem;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  will-change: transform, box-shadow;
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background-color: var(--light-bg);
  cursor: pointer;
}

.service h3 {
  margin: 0;
  color: var(--primary-color);
  font-weight: 600;
}

.toggle-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
}

.service.active .toggle-btn {
  transform: rotate(180deg);
}

.service>p {
  padding: 0 1.5rem;
  margin-top: 1rem;
}

.service-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 1.5rem;
}

.service.active .service-details {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.service-details p {
  margin-bottom: 0.5rem;
}

.service-details ul {
  list-style-type: none;
  padding-left: 1rem;
}

.service-details li {
  position: relative;
  padding: 0.3rem 0;
}

.service-details li:before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.service ul {
  list-style-type: none;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.services-dropdown li {
  padding: 0.5rem 0;
}

.service li {
  position: relative;
  padding: 0.3rem 0;
}

.service li:before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.service:hover::before {
  transform: scaleX(1);
}

.service:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/*Experience Section*/
.experiences::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.experiences:hover::before {
  transform: scaleX(1);
}

.experiences:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.experiences-content {
  width: 100%;
}

.section-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #473f3f;
  margin-bottom: 3rem;
  max-width: 900px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #121638;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #d64646, #a174ff);
}

.experience-categories {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.category-tab {
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  background-color: white;
  color: #555;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-tab.active {
  background: linear-gradient(135deg, #d64646, #a174ff);
  color: white;
  box-shadow: 0 5px 20px rgba(125, 90, 255, 0.3);
  border: 1px solid rgba(125, 90, 255, 0.2);
}

.category-tab:hover:not(.active) {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.experience-list {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.experience-list.active {
  display: grid;
  opacity: 1;
}

.experience-card {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  animation-name: myScrollAnimation;
  animation-duration: 0.9s;
  animation-timeline: view();
  animation-range: entry 0% cover 55%;
}

.experience-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(125, 90, 255, 0.1);
  border-color: rgba(125, 90, 255, 0.2);
}

.card-number {
  background: linear-gradient(135deg, #d64646, #a174ff);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}


.card-content h3 {
  font-size: 1.2rem;
  color: #121638;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.card-content p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

@keyframes myScrollAnimation {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced motion: show immediately */
@media (prefers-reduced-motion: reduce) {
  .card-content {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== Contact Section Styles ===== */
.contact {
  background-color: var(--light-bg);
  color: var(--primary-color);
  padding: 3rem;
  margin: 2rem auto;
  border-radius: 10px;
  max-width: 1200px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.contact:hover::before {
  transform: scaleX(1);
}

.contact:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.contact h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 2.5rem;
}

.contact h2::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  background-color: rgba(214, 70, 70, 0.1);
  border-radius: 50%;
  left: -15px;
  top: -10px;
  z-index: -1;
  transform: scale(0);
  transition: transform 0.4s ease;
}

.contact:hover h2::before {
  transform: scale(1);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.2rem;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.contact-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.contact-item:hover {
  background-color: var(--white);
  transform: translateX(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-left: 3px solid var(--secondary-color);
}

.contact-item:hover::after {
  width: 100%;
}

.contact-item i {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-top: 0.5rem;
  transition: all 0.3s ease;
  background-color: rgba(214, 70, 70, 0.1);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.contact-item:hover i {
  transform: scale(1.1) rotate(5deg);
  background-color: var(--secondary-color);
  color: var(--white);
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-item:hover .contact-info h3 {
  color: var(--secondary-color);
}

.contact-info p,
.contact-info a {
  color: var(--text-color);
  font-size: 0.95rem;
  transition: color 0.3s ease;
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Common Question */
.frequently {
  background-color: var(--light-bg);
  color: var(--primary-color);
  padding: 3rem;
  margin: 2rem auto;
  border-radius: 10px;
  max-width: 1200px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.frequently::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.frequently:hover::before {
  transform: scaleX(1);
}

.frequently h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 2.5rem;
}

.frequently h2::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  background-color: rgba(214, 70, 70, 0.1);
  border-radius: 50%;
  left: -15px;
  top: -10px;
  z-index: -1;
  transform: scale(0);
  transition: transform 0.4s ease;
}

.dropdown-container:hover::after {
  width: 100%;
}

.dropdown-container {
  border: 1px solid #444;
  border-radius: 8px;
  margin: 10px;
  background-color: #d64646;
  position: relative;
  overflow: hidden;
}

.dropdown-button {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 18px;
  text-align: left;
  cursor: pointer;
}

.dropdown-icon {
  width: 24px;
  height: 24px;
  fill: white;
  transition: transform 0.3s;
}

.dropdown-content {
  height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
}

.dropdown-container.open .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-container.open .dropdown-content {
  height: auto;
  opacity: 1;
  padding-bottom: 20px;
}

.content-padding {
  padding: 0 20px;
  color: rgb(235, 235, 235);
  line-height: 1.5;
}

/* Tax Compliance Styles */
.tax-compliance-container {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tax-compliance-title {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 8px;
}

.tax-compliance-content {
  color: #333;
  line-height: 1.6;
}

/* Legal Updates Styles */
.legal-update-container {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.legal-update-title {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 8px;
}

.legal-update-content {
  color: #333;
  line-height: 1.6;
}

.legal-update-section {
  margin-bottom: 15px;
}

.legal-update-section h4 {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.legal-update-section p {
  margin-bottom: 10px;
}

.legal-update-section ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.legal-update-section li {
  margin-bottom: 5px;
}

.legal-update-footer {
  font-style: italic;
  text-align: right;
  margin-top: 20px;
  color: #666;
}

/* ===== Footer Styles ===== */
footer {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 1.5rem 1rem 1.5rem;
  margin-top: auto;
  position: relative;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.9rem;
}

.footer-wave {
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%23ffffff' opacity='.25'%3E%3C/path%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' fill='%23ffffff' opacity='.5'%3E%3C/path%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%23ffffff' opacity='.75'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo img {
  max-width: 130px;
  height: auto;
}

.footer-contact {
  flex: 2;
  min-width: 200px;
}

.footer-social {
  flex: 1;
  min-width: 180px;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  position: relative;
  padding-bottom: 0.4rem;
}

h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 35px;
  background: linear-gradient(90deg, var(--white), transparent);
}

address {
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

address p {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: baseline;
}

address i {
  margin-right: 8px;
  min-width: 14px;
  opacity: 0.8;
}

address a {
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

address a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.phone {
  font-size: 0.85rem;
}

.phone span {
  font-weight: 600;
}

.social-icons {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.2rem;
  margin-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ===== Enhanced Pop-up Form Styles ===== */
.form-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  animation: fadeIn 0.4s ease;
}

.form-popup.show {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  /* apply blur only when visible and with lighter radius for smoother performance */
  backdrop-filter: blur(4px);
}

.form-container {
  background: var(--white);
  border-radius: 25px;
  box-shadow: var(--shadow-heavy);
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  animation: slideUp 0.5s ease;
  border: 3px solid transparent;
  background-clip: padding-box;
}

.form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-secondary);
  border-radius: 25px;
  padding: 3px;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: -1;
}

/* Colorful Header */
.form-header {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 25px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.form-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  /* Disable infinite rotation for performance */
  animation: none;
}

.form-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.form-header .close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all var(--transition-speed) ease;
  z-index: 2;
}

.form-header .close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg) scale(1.1);
}

/* Colorful Form Body */
.form-body {
  padding: 30px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  overflow-y: auto;
  max-height: calc(90vh - 100px);
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.form-group label b {
  background: var(--gradient-info);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e1e8ed;
  border-radius: 15px;
  font-size: 16px;
  transition: all var(--transition-speed) ease;
  background: var(--white);
  position: relative;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(214, 70, 70, 0.1);
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Colorful Terms Container */
.terms-container {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: var(--gradient-info);
  border-radius: 15px;
  border-left: 5px solid var(--warning-color);
  position: relative;
  overflow: hidden;
}

.terms-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
      rgba(255, 255, 255, 0.1) 25%,
      transparent 25%,
      transparent 75%,
      rgba(255, 255, 255, 0.1) 75%);
  background-size: 20px 20px;
  animation: none;
}

/* Respect users who prefer reduced motion */
/* @media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
} */

/* Enable fixed background only on larger screens where it's smoother */
@media (min-width: 1024px) {
  body {
    background-attachment: fixed;
  }
}

.terms-container input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--secondary-color);
  position: relative;
  z-index: 1;
}

.terms-container label {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--white);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.terms-container a {
  color: var(--warning-color);
  text-decoration: none;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.terms-container a:hover {
  text-decoration: underline;
  color: #fff;
}

/* Colorful Buttons */
.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn {
  flex: 1;
  padding: 15px 25px;
  border: none;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 120px;
}

.btn::before {
  display: none;
}

.btn {
  background: var(--gradient-secondary);
  color: var(--white);
  opacity: 0.6;
  pointer-events: none;
  box-shadow: var(--shadow-light);
}



.btn.enabled {
  opacity: 1;
  pointer-events: auto;
}

.btn.enabled:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

.btn_cancel {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: var(--white);
  box-shadow: var(--shadow-light);
  flex: 1;
  padding: 15px 25px;
  border: none;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 120px;
}

.btn_cancel:hover {
  background: linear-gradient(135deg, #495057 0%, #343a40 100%);
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

/* For the slider */
.slider-container {
  max-width: 850px;
  margin: auto;
  border-radius: 15px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.9);
  color: black;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Our Team carousel (namespaced: tc-*) */
.team-section { 
  background-color: var(--light-bg);
  color: var(--primary-color); 
  padding: 2rem; margin: 2rem auto; border-radius: 12px; 
  max-width: 1200px; width: 90%; box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.tc-carousel{ position:relative; background:#071223; border-radius:12px; overflow:hidden; height:min(520px, calc(100vh - 160px)); }
.tc-slides{ display:flex; height:100%; transition:transform 520ms cubic-bezier(.2,.9,.2,1); will-change:transform; transform:translateZ(0); gap:0; }
.tc-slide{ flex:0 0 100%; height:100%; position:relative; background:#071223; -webkit-backface-visibility:hidden; backface-visibility:hidden; transform:translateZ(0); outline:1px solid transparent; }
.tc-slide img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }

/* Co-Founders split hover overlay */
.cofounders-split { --overlay-bg: rgba(0,0,0,0.55); }
.cofounders-split .cofounder-half { position:absolute; top:0; width:50%; height:100%; background:transparent; border:none; padding:0; margin:0; cursor:pointer; display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity .35s ease, background .35s ease; }
.cofounders-split .cofounder-half.left { left:0; }
.cofounders-split .cofounder-half.right { right:0; }
.cofounders-split .cofounder-half:focus { outline:2px solid #fff; outline-offset:-2px; }
.cofounders-split .cofounder-half:hover, .cofounders-split .cofounder-half:focus { opacity:1; background:var(--overlay-bg); }
.cofounders-split .cofounder-label { font:600 1.1rem/1 "Montserrat",sans-serif; color:#fff; letter-spacing:.5px; text-shadow:0 2px 6px rgba(0,0,0,.6); pointer-events:none; }
@media (max-width: 680px){
  /* Mobile: show compact corner badges instead of large overlays */
  .cofounders-split .cofounder-half { opacity:1; background:rgba(0,0,0,.55); width:auto; height:auto; padding:6px 10px; border-radius:999px; }
  .cofounders-split .cofounder-half.left { top:12px; left:12px; right:auto; }
  .cofounders-split .cofounder-half.right { bottom:12px; right:12px; top:auto; left:auto; }
  .cofounders-split .cofounder-label { font-size:.9rem; }
}
/* Ensure labels are visible on touch devices without hover */
@media (hover: none) {
  .cofounders-split .cofounder-half { opacity:1; background:linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.15)); }
}
.tc-caption{
  position:absolute; left:0; right:0; bottom:0; top:auto;
  padding:18px 22px; display:flex; flex-direction:column; justify-content:center; gap:8px; color:#fff;
  background:linear-gradient(180deg, rgba(2,6,23,0) 0%, rgba(2,6,23,0.86) 55%, rgba(2,6,23,0.98) 100%);
  opacity:0; visibility:hidden; transform:translateY(12px);
  transition:opacity 340ms ease, transform 340ms ease, visibility 340ms;
  pointer-events:none;
}
.tc-slide.active .tc-caption{ opacity:1; visibility:visible; transform:none; pointer-events:auto; }
.tc-nav-btn{ position:absolute; top:50%; transform:translateY(-50%); width:48px; height:48px; border-radius:8px; border:0; background:rgba(2,6,23,0.6); color:#ffd166; display:grid; place-items:center; cursor:pointer; z-index:8 }
.tc-nav-btn.left{ left:14px }
.tc-nav-btn.right{ right:14px }
.tc-dots{ position:absolute; left:50%; transform:translateX(-50%); bottom:12px; display:flex; gap:8px; z-index:8 }
.tc-dots .dot{ width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,0.18); border:2px solid rgba(0,0,0,0.25); cursor:pointer }
.tc-dots .dot.active{ background:#ffd166; border-color:rgba(255,209,102,0.25) }

/* Zoom controls */
.tc-zoom-controls{ position:absolute; right:10px; top:10px; display:flex; gap:8px; z-index:9 }
.tc-zoom-btn{ background:rgba(255,255,255,0.12); color:#fff; border:1px solid rgba(255,255,255,0.25); width:36px; height:36px; border-radius:8px; cursor:pointer; font-size:18px; line-height:1; display:grid; place-items:center }
.tc-zoom-btn:hover{ background:rgba(255,255,255,0.2) }

/* Pan/zoom container state */
.tc-slide{ overflow:hidden }
.tc-slide .zoomable{ transform-origin: center center; transition: transform 180ms ease; cursor: grab; }
.tc-slide .zoomable:active{ cursor: grabbing }

@media (max-width: 900px){
  /* Mobile sizing and cleanup */
  .tc-carousel{ height:auto }
  .tc-slides{ height:auto }
  .tc-caption{ display:none !important }
  .tc-slide{ overflow:hidden; aspect-ratio: 3 / 2; }
  .tc-slide img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover }
  /* Hide controls that clutter mobile UI */
  .tc-dots{ display:none }
  .tc-zoom-controls{ display:none }
}
@media (max-width: 520px){
  .tc-carousel{ height:auto }
  .tc-caption{ display:none !important }
  .tc-nav-btn{ width:42px; height:42px }
}

/* ===== Enhanced Slider Animations ===== */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.slide {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 500px;
  opacity: 0;
  /* Limit to transform and opacity only */
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.slide.active {
  /* Use grid for clean 50/50 layout */
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  opacity: 1;
  transform: translateX(0);
  /* Allow taller content (CTA) to breathe without clipping */
  height: auto;
  min-height: 540px;
}

/* Slide-in animations from right */
.slide.slide-in-right {
  display: flex;
  opacity: 0;
  transform: translateX(100%);
  animation: slideInRight 0.6s ease forwards;
}

/* Slide-in animations from left */
.slide.slide-in-left {
  display: flex;
  opacity: 0;
  transform: translateX(-100%);
  animation: slideInLeft 0.6s ease forwards;
}

/* Slide-out animations to left */
.slide.slide-out-left {
  display: flex;
  opacity: 1;
  transform: translateX(0);
  animation: slideOutLeft 0.6s ease forwards;
}

/* Slide-out animations to right */
.slide.slide-out-right {
  display: flex;
  opacity: 1;
  transform: translateX(0);
  animation: slideOutRight 0.6s ease forwards;
}

.slider-image {
  /* Fill its grid column */
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}



.content {
  /* Grid-based text layout for better visual rhythm */
  width: 100%;
  padding: 40px;
  display: grid;
  grid-auto-rows: max-content;
  row-gap: 12px;
  align-content: center;
  /* Reserve space so the CTA isn't tight against the bottom edge */
  padding-bottom: 56px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.6s ease 0.2s, opacity 0.6s ease 0.2s;
}

.slide.active .content {
  transform: translateY(0);
  opacity: 1;
}

.slider-container h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.slider-container p {
  margin-bottom: 30px;
  line-height: 1.6;
}

.button {
  background-color: var(--secondary-color);
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.button:hover {
  transform: translateX(5px);
}

.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(214, 70, 70, 0.9));
  color: white;
  position: relative;
}

.nav {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}

.nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.nav:hover::before {
  width: 100px;
  height: 100px;
}

.nav:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.nav:active {
  transform: scale(0.95);
}

.slide-number {
  color: white;
  font-weight: 600;
  font-size: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== Animation Keyframes ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandWidth {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

@keyframes floatingParticles {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  33% {
    transform: translateY(-20px) rotate(120deg);
  }

  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes textGlow {
  0% {
    filter: brightness(1);
  }

  100% {
    filter: brightness(1.1);
  }
}

@keyframes colorShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatDecoration {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}

@keyframes titleSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes colorFlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes starPop {
  from {
    transform: scale(0) rotate(-180deg);
  }

  to {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes move {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 20px 20px;
  }
}

/* Slider Animation Keyframes */
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutLeft {
  0% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-100%);
  }
}

@keyframes slideOutRight {
  0% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}

@keyframes imageZoom {
  0% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* Responsive adjustments for categories */
@media (max-width: 1200px) {
  .home-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }

  .category-container {
    flex: none;
    width: 100%;
    max-width: 600px;
  }

  .left-category,
  .right-category {
    margin-top: 0;
    align-self: center;
  }

  .category-items {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .category-item {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
  }

  .experiences {
    width: 90%;
  }

  .services {
    width: 90%;
  }
}


/* ===== Responsive Styles ===== */
@media (max-width: 768px) {

  /* Avoid expensive backdrop blur on mobile */
  .promo-content,
  .category-container,
  .slider-container,
  .contact,
  .frequently {
    backdrop-filter: none;
  }

  .form-popup {
    padding: 15px;
  }

  .form-container {
    max-width: 95%;
    border-radius: 20px;
  }

  .form-header {
    padding: 20px;
  }

  .form-header h2 {
    font-size: 24px;
  }

  .form-body {
    padding: 25px;
  }

  .form-actions {
    flex-direction: column;
  }

  .promo-btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .services {
    width: 90%;
  }

  /* Mobile Navigation */
  .mobile-menu-btn {
    display: block;
    z-index: 1002;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 300px;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.5s ease;
    z-index: 1001;
  }

  .nav-links.active {
    right: 0;
  }

  .services-dropdown {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
    padding-left: 1rem;
    transform: none;
    opacity: 1;
    visibility: visible;
    max-height: none;
  }

  .dropdown:hover .services-dropdown,
  .dropdown:active .services-dropdown,
  .dropdown .services-dropdown.active {
    display: block;
  }

  /* Section adjustments for mobile */
  .home-wrapper {
    padding: 0 1rem;
    margin-top: 6rem;
  }

  .category-container {
    padding: 1.5rem;
  }

  .category-items {
    flex-direction: column;
  }

  .category-item {
    max-width: none;
  }

  .promo-banner {
    margin-top: 5rem;
    padding: 2rem 1rem;
  }

  .promo-banner h2 {
    font-size: 1.8rem;
  }

  .about-container h2,
  .services h2,
  .experiences h2,
  .contact h2,
  .frequently h2,
  .slider-container h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .about-cards-container {
    grid-template-columns: 1fr;
  }

  .about-card {
    height: auto;
    min-height: 350px;
    max-height: none;
    width: 100%;
  }

  .experience-list {
    grid-template-columns: 1fr;
  }

  .category-tab {
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
  }

  .contact-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-item i {
    margin-bottom: 0.5rem;
  }

  .footer-info {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

  /* Slider responsive adjustments */
  .slider-container {
    width: 90%;
  }

  .slide {
    height: auto;
  }

  .slide.active {
    /* Override grid on mobile for a stacked layout */
    display: flex;
    flex-direction: column;
  }

  .slider-image {
    width: 100%;
    height: 200px;
  }

  .content {
    width: 100%;
    padding: 20px;
    /* Slight bottom padding so the CTA stays fully visible on small screens */
    padding-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .form-popup {
    padding: 10px;
  }

  .form-container {
    max-width: 98%;
    border-radius: 15px;
  }

  .form-header {
    padding: 15px;
  }

  .form-header h2 {
    font-size: 20px;
  }

  .form-body {
    padding: 20px;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 12px;
  }

  .terms-container {
    padding: 15px;
    gap: 12px;
  }

  .btn,
  .btn_cancel {
    padding: 12px 20px;
    font-size: 14px;
  }

  .nav-container {
    padding: 0.8rem;
  }

  .nav-container img {
    width: 130px;
    height: 40px;
  }

  .about-container,
  .services,
  .experiences,
  .contact,
  .frequently,
  .promo-content {
    padding: 1.5rem;
  }

  .promo-banner h2 {
    font-size: 1.5rem;
  }

  .promo-banner p {
    font-size: 1rem;
  }

  .about-container h2,
  .services h2,
  .experiences h2,
  .contact h2,
  .frequently h2,
  .slider-container h2 {
    font-size: 1.5rem;
  }

  .service h3 {
    font-size: 1.2rem;
  }

  .dropdown-button {
    padding: 15px;
    font-size: 16px;
  }

  .content-padding {
    padding: 0 15px;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .form-container {
    max-width: 100%;
    margin: 5px;
  }

  .form-header h2 {
    font-size: 18px;
  }

  .form-body {
    padding: 15px;
  }

  .promo-banner h2,
  .about-container h2,
  .services h2,
  .experiences h2,
  .contact h2,
  .frequently h2,
  .slider-container h2 {
    font-size: 1.3rem;
  }

  .promo-content,
  .about-container,
  .services,
  .experiences,
  .contact,
  .frequently {
    padding: 1rem;
  }

  .nav-container img {
    width: 110px;
    height: 35px;
  }

  .contact-item {
    padding: 1rem;
  }

  .contact-item i {
    width: 35px;
    height: 35px;
    font-size: 1.4rem;
  }

  .dropdown-button {
    padding: 12px;
    font-size: 14px;
  }
}
