/* ==========================================================================
   TITANFIT ELITE GYM - MODERN HIGH-END STYLESHEET
   Supports Seamless Dark & Light Mode, Glassmorphism, Responsive Grid
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Theme Definition
   -------------------------------------------------------------------------- */
:root {
  /* Common Accent Colors */
  --color-primary: #ff3333;
  --color-primary-hover: #e02424;
  --color-primary-glow: rgba(255, 51, 51, 0.4);
  --color-secondary: #ff7700;
  --color-accent-gradient: linear-gradient(135deg, #ff3333 0%, #ff7700 100%);
  --color-accent-gradient-hover: linear-gradient(
    135deg,
    #e02424 0%,
    #e06600 100%
  );
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-info: #3b82f6;

  /* Typography */
  --font-heading:
    "Syne", "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:
    "Outfit", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Bebas Neue", "Syne", impact, sans-serif;

  /* Spacing & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* DARK THEME (Default) */
  --bg-main: #0c0e12;
  --bg-secondary: #13171f;
  --bg-card: #181d26;
  --bg-card-hover: #1e2430;
  --bg-glass: rgba(24, 29, 38, 0.75);
  --bg-glass-nav: rgba(12, 14, 18, 0.88);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 51, 51, 0.35);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0f172a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(255, 51, 51, 0.25);
  --hero-overlay: linear-gradient(
    180deg,
    rgba(12, 14, 18, 0.65) 0%,
    rgba(12, 14, 18, 0.95) 100%
  );
  --badge-bg: rgba(255, 51, 51, 0.15);
  --input-bg: #141820;
  --input-border: #262c38;
}

/* LIGHT THEME */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-secondary: #eef2f6;
  --bg-card: #ffffff;
  --bg-card-hover: #fcfdfe;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-nav: rgba(255, 255, 255, 0.92);
  --border-color: rgba(15, 23, 42, 0.08);
  --border-color-hover: rgba(255, 51, 51, 0.4);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #f8fafc;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 25px rgba(255, 51, 51, 0.18);
  --hero-overlay: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.75) 0%,
    rgba(15, 23, 42, 0.92) 100%
  );
  --badge-bg: rgba(255, 51, 51, 0.1);
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
}

/* --------------------------------------------------------------------------
   2. Global Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.65;
  transition:
    background-color var(--transition-normal),
    color var(--transition-normal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.font-display {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

p {
  color: var(--text-secondary);
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   3. Utility Classes & Accents
   -------------------------------------------------------------------------- */
.text-accent {
  color: var(--color-primary) !important;
}

.text-gradient {
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.bg-theme-main {
  background-color: var(--bg-main) !important;
}

.bg-theme-secondary {
  background-color: var(--bg-secondary) !important;
}

.bg-theme-card {
  background-color: var(--bg-card) !important;
}

.border-theme {
  border-color: var(--border-color) !important;
}

.section-padding {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 65px 0;
  }
}

.section-header {
  margin-bottom: 55px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--badge-bg);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 51, 51, 0.25);
  margin-bottom: 14px;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   4. Buttons & Badges
   -------------------------------------------------------------------------- */
.btn-gym-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-accent-gradient);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  box-shadow: 0 4px 18px var(--color-primary-glow);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    filter var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn-gym-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 51, 51, 0.45);
  filter: brightness(1.1);
  color: #ffffff !important;
}

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

.btn-gym-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: var(--text-primary) !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-color);
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn-gym-secondary:hover {
  border-color: var(--color-primary);
  background: rgba(255, 51, 51, 0.1);
  color: var(--color-primary) !important;
  transform: translateY(-3px);
}

.btn-gym-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
}

.btn-gym-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   5. Navbar
   -------------------------------------------------------------------------- */
.navbar-custom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  padding: 20px 0;
  background: transparent;
  transition: all var(--transition-normal);
}

.navbar-custom.scrolled {
  padding: 12px 0;
  background: var(--bg-glass-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary) !important;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-icon {
  color: var(--color-primary);
  font-size: 1.6rem;
  animation: pulse-glow 3s infinite ease-in-out;
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary) !important;
  padding: 8px 14px !important;
  position: relative;
  transition: color var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--text-primary) !important;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-fast);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: rotate(15deg);
}

.navbar-toggler {
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-top: 14px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
  }
  .navbar-nav .nav-link {
    padding: 10px 0 !important;
  }
  .navbar-nav .nav-link::after {
    left: 0;
    right: auto;
    width: 25px;
  }
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  background-image: var(--hero-overlay), url("../image/image6.jpg");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 51, 51, 0.18) 0%,
    rgba(255, 119, 0, 0) 70%
  );
  top: 15%;
  right: -100px;
  pointer-events: none;
  filter: blur(50px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 51, 51, 0.18);
  border: 1px solid rgba(255, 51, 51, 0.4);
  backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-desc {
  font-size: 1.25rem;
  color: #e2e8f0;
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-stats-row {
  display: flex;
  gap: 30px;
  margin-top: 45px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat-item h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.hero-stat-item p {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Floating Card in Hero */
.hero-floating-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-floating-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-accent-gradient);
}

/* --------------------------------------------------------------------------
   7. About Section & Counter Box
   -------------------------------------------------------------------------- */
.about-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.about-main-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform var(--transition-normal);
}

.about-img-wrapper:hover .about-main-img {
  transform: scale(1.02);
}

.about-floating-badge {
  position: absolute;
  bottom: -25px;
  right: -20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px 26px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .about-floating-badge {
    position: static;
    margin-top: 20px;
  }
}

.about-feature-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.about-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--badge-bg);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* Counter Box */
.stats-counter-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  box-shadow: var(--shadow-md);
  margin-top: 60px;
}

.stat-counter-number {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   8. Services / Programs
   -------------------------------------------------------------------------- */
.service-filter-btn {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.service-filter-btn:hover,
.service-filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--color-primary-glow);
}

.program-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
}

.program-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.program-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg);
}

.program-card:hover::after {
  opacity: 1;
}

.program-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--badge-bg);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  transition: all var(--transition-fast);
}

.program-card:hover .program-icon-wrapper {
  background: var(--color-accent-gradient);
  color: #ffffff;
  transform: scale(1.08);
}

.program-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   9. Interactive BMI & Calorie Calculator
   -------------------------------------------------------------------------- */
.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.calc-input {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.calc-input:focus {
  background-color: var(--input-bg);
  border-color: var(--color-primary);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
  outline: none;
}

.calc-result-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.bmi-meter {
  height: 12px;
  border-radius: var(--radius-full);
  background: linear-gradient(
    90deg,
    #3b82f6 0%,
    #10b981 30%,
    #f59e0b 65%,
    #ef4444 100%
  );
  position: relative;
  margin: 20px 0;
}

.bmi-indicator {
  position: absolute;
  top: -6px;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border: 3px solid var(--color-primary);
  border-radius: 50%;
  transform: translateX(-50%);
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   10. Schedule Table & Day Tabs
   -------------------------------------------------------------------------- */
.schedule-nav-pills .nav-link {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  margin: 4px;
  transition: all var(--transition-fast);
}

.schedule-nav-pills .nav-link.active {
  background: var(--color-accent-gradient);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--color-primary-glow);
}

.schedule-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  transition: all var(--transition-fast);
}

.schedule-item:hover {
  border-color: var(--border-color-hover);
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .schedule-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* --------------------------------------------------------------------------
   11. Why Choose Us (Features)
   -------------------------------------------------------------------------- */
.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  height: 100%;
  transition: all var(--transition-normal);
}

.feature-box:hover {
  transform: translateY(-6px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
}

.feature-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--badge-bg);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all var(--transition-fast);
}

.feature-box:hover .feature-icon-circle {
  background: var(--color-accent-gradient);
  color: #ffffff;
  transform: rotate(10deg);
}

/* --------------------------------------------------------------------------
   12. Trainers Section
   -------------------------------------------------------------------------- */
.trainer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: all var(--transition-normal);
}

.trainer-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg);
}

.trainer-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.trainer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.trainer-card:hover .trainer-img {
  transform: scale(1.08);
}

.trainer-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(12, 14, 18, 0.95) 90%
  );
  padding: 24px;
  transition: all var(--transition-normal);
}

.trainer-social-icons {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  transform: translateY(15px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.trainer-card:hover .trainer-social-icons {
  transform: translateY(0);
  opacity: 1;
}

.trainer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.trainer-social-icon:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   13. Pricing Section
   -------------------------------------------------------------------------- */
.pricing-switch-wrapper {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px;
  border-radius: var(--radius-full);
  margin-bottom: 45px;
}

.pricing-switch-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pricing-switch-btn.active {
  background: var(--color-accent-gradient);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--color-primary-glow);
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}

@media (max-width: 991px) {
  .pricing-card.featured {
    transform: none;
  }
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent-gradient);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px var(--color-primary-glow);
}

.price-value {
  font-size: 3.2rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1;
}

.pricing-features-list {
  list-style: none;
  margin: 30px 0;
  padding: 0;
}

.pricing-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.pricing-features-list li i.fa-check-circle {
  color: var(--color-primary);
  font-size: 1.1rem;
}

.pricing-features-list li i.fa-times-circle {
  color: var(--text-muted);
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   14. Testimonials (Carousel)
   -------------------------------------------------------------------------- */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 45px 35px;
  box-shadow: var(--shadow-md);
  margin: 15px;
  position: relative;
}

.testimonial-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid var(--color-primary);
  object-fit: cover;
  margin-bottom: 18px;
}

.quote-icon {
  font-size: 2.2rem;
  color: var(--color-primary);
  opacity: 0.3;
  margin-bottom: 12px;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-primary);
  opacity: 0.35;
  margin: 0 5px;
  transition: all var(--transition-fast);
}

.carousel-indicators .active {
  opacity: 1;
  width: 32px;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   15. Gallery Section
   -------------------------------------------------------------------------- */
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/11;
  border: 1px solid var(--border-color);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(12, 14, 18, 0.9) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

/* --------------------------------------------------------------------------
   16. CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner {
  background-image:
    linear-gradient(
      135deg,
      rgba(12, 14, 18, 0.88) 0%,
      rgba(12, 14, 18, 0.94) 100%
    ),
    url("../image/image7.jpg");
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 70px 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 51, 51, 0.3) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   17. Contact Section & Forms
   -------------------------------------------------------------------------- */
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  height: 100%;
}

.contact-item {
  display: flex;
  gap: 18px;
  margin-bottom: 26px;
}

.contact-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--badge-bg);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.form-control,
.form-select {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
  background-color: var(--input-bg);
  border-color: var(--color-primary);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  height: 250px;
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 30px;
}

.footer-link {
  color: var(--text-secondary);
  display: inline-block;
  margin-bottom: 12px;
  transition: all var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-primary);
  transform: translateX(5px);
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition: all var(--transition-fast);
}

.footer-social-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-3px);
  border-color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   19. Back to Top Button
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-accent-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--color-primary-glow);
  border: none;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
}

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

.back-to-top:hover {
  transform: translateY(-4px);
  filter: brightness(1.15);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   20. Scroll Reveal Animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

@keyframes pulse-glow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--color-primary));
  }
}

/* Modal styling */
.modal-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-lg);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
}

.modal-footer {
  border-top: 1px solid var(--border-color);
}

.btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

[data-theme="light"] .btn-close {
  filter: none;
}
