:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #ecf0f1;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --text-white: #ffffff;
  --border-color: #bdc3c7;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --hero-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --hero-title: #ffffff;
  --hero-text: #f5f5f5;
  --badge-bg: rgba(255, 255, 255, 0.18);
  --badge-color: #fff;
  --accent: #d4af37;
  --btn-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --btn-primary-hover: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  --section-bg: #020617;
  --section-text: #f4f4f4;
}

.theme-reference {
  --hero-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --hero-title: #ffffff;
  --hero-text: #f5f5f5;
  --badge-bg: rgba(255, 255, 255, 0.18);
  --badge-color: #fff;
  --accent: #d4af37;
  --btn-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --btn-primary-hover: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  --section-bg: #020617;
  --section-text: #f4f4f4;
}

.theme-ocean {
  --hero-bg: linear-gradient(135deg, #05668d 0%, #028090 35%, #00a896 100%);
  --hero-title: #ffffff;
  --hero-text: #eef8ff;
  --badge-bg: rgba(255, 255, 255, 0.12);
  --badge-color: #ffffff;
  --accent: #ffd166;
  --btn-primary: linear-gradient(135deg, #06d6a0 0%, #118ab2 100%);
  --btn-primary-hover: linear-gradient(135deg, #06bfa2 0%, #0f7cac 100%);
  --section-bg: #031926;
  --section-text: #f1f8ff;
}

.theme-sunset {
  --hero-bg: linear-gradient(135deg, #f77f00 0%, #fb5607 50%, #ff006e 100%);
  --hero-title: #fff7eb;
  --hero-text: #ffecd2;
  --badge-bg: rgba(255, 255, 255, 0.16);
  --badge-color: #fff;
  --accent: #ffbe0b;
  --btn-primary: linear-gradient(135deg, #ffbe0b 0%, #fb8500 100%);
  --btn-primary-hover: linear-gradient(135deg, #ffcc33 0%, #ff8a3c 100%);
  --section-bg: #2a1a0c;
  --section-text: #fff4e6;
}

.theme-forest {
  --hero-bg: linear-gradient(135deg, #2f5233 0%, #4b7b5d 45%, #9cc9a4 100%);
  --hero-title: #f9fff4;
  --hero-text: #e8f5e9;
  --badge-bg: rgba(255, 255, 255, 0.14);
  --badge-color: #f9fff4;
  --accent: #f2cc8f;
  --btn-primary: linear-gradient(135deg, #7fb069 0%, #4f772d 100%);
  --btn-primary-hover: linear-gradient(135deg, #9ecb8f 0%, #5d8d4a 100%);
  --section-bg: #11210d;
  --section-text: #f0f7ef;
}

/* Also support applying theme classes to the <body> for global scope */
body.theme-reference {
  --hero-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --hero-title: #ffffff;
  --hero-text: #f5f5f5;
  --badge-bg: rgba(255, 255, 255, 0.18);
  --badge-color: #fff;
  --accent: #d4af37;
  --btn-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --btn-primary-hover: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  --section-bg: #020617;
  --section-text: #f4f4f4;
}

body.theme-ocean {
  --hero-bg: linear-gradient(135deg, #05668d 0%, #028090 35%, #00a896 100%);
  --hero-title: #ffffff;
  --hero-text: #eef8ff;
  --badge-bg: rgba(255, 255, 255, 0.12);
  --badge-color: #ffffff;
  --accent: #ffd166;
  --btn-primary: linear-gradient(135deg, #06d6a0 0%, #118ab2 100%);
  --btn-primary-hover: linear-gradient(135deg, #06bfa2 0%, #0f7cac 100%);
  --section-bg: #031926;
  --section-text: #f1f8ff;
}

body.theme-sunset {
  --hero-bg: linear-gradient(135deg, #f77f00 0%, #fb5607 50%, #ff006e 100%);
  --hero-title: #fff7eb;
  --hero-text: #ffecd2;
  --badge-bg: rgba(255, 255, 255, 0.16);
  --badge-color: #fff;
  --accent: #ffbe0b;
  --btn-primary: linear-gradient(135deg, #ffbe0b 0%, #fb8500 100%);
  --btn-primary-hover: linear-gradient(135deg, #ffcc33 0%, #ff8a3c 100%);
  --section-bg: #2a1a0c;
  --section-text: #fff4e6;
}

body.theme-forest {
  --hero-bg: linear-gradient(135deg, #2f5233 0%, #4b7b5d 45%, #9cc9a4 100%);
  --hero-title: #f9fff4;
  --hero-text: #e8f5e9;
  --badge-bg: rgba(255, 255, 255, 0.14);
  --badge-color: #f9fff4;
  --accent: #f2cc8f;
  --btn-primary: linear-gradient(135deg, #7fb069 0%, #4f772d 100%);
  --btn-primary-hover: linear-gradient(135deg, #9ecb8f 0%, #5d8d4a 100%);
  --section-bg: #11210d;
  --section-text: #f0f7ef;
}

.theme-reference,
body.theme-reference {
  --theme-bg: #0a0a0a;
  --theme-section-bg: #111111;
  --theme-contact-bg: #0f0f0f;
  --theme-card-bg: rgba(255, 255, 255, 0.03);
  --theme-card-strong-bg: rgba(255, 255, 255, 0.05);
  --theme-border: rgba(255, 255, 255, 0.1);
  --theme-text: #f5f5f5;
  --theme-muted: #a3a3a3;
  --theme-muted-strong: #d4d4d4;
  --theme-inverse: #0a0a0a;
  --ref-primary: #1e3a5f;
  --ref-secondary: #0f766e;
  --ref-accent: #d4af37;
  --ref-accent-light: #f4e5c2;
  --ref-accent-rgb: 212, 175, 55;
  --ref-secondary-rgb: 15, 118, 110;
  --theme-title-gradient: linear-gradient(
    135deg,
    #d4af37 0%,
    #f4e5c2 50%,
    #d4af37 100%
  );
  --theme-hero-bg: linear-gradient(
    135deg,
    #0f172a 0%,
    #0a0a0a 50%,
    #0f172a 100%
  );
  --theme-facts-bg: linear-gradient(135deg, #1e3a5f 0%, #0f766e 100%);
  --theme-button-bg: linear-gradient(135deg, #b8962e 0%, #d4af37 100%);
  --theme-button-hover-bg: linear-gradient(135deg, #d4af37 0%, #f4e5c2 100%);
  --theme-button-text: #0a0a0a;
  --theme-nav-bg: linear-gradient(
    135deg,
    #020617 0%,
    #020617 40%,
    #0b1120 100%
  );
  --theme-footer-bg: linear-gradient(
    135deg,
    #0f172a 0%,
    #020617 50%,
    #0f172a 100%
  );
  --theme-orb-1: rgba(212, 175, 55, 0.25);
  --theme-orb-2: rgba(15, 118, 110, 0.2);
  --theme-orb-3: rgba(212, 175, 55, 0.15);
}

.theme-ocean,
body.theme-ocean {
  --theme-bg: #031926;
  --theme-section-bg: #06283d;
  --theme-contact-bg: #041c2a;
  --theme-card-bg: rgba(255, 255, 255, 0.055);
  --theme-card-strong-bg: rgba(255, 255, 255, 0.075);
  --theme-border: rgba(174, 235, 255, 0.18);
  --theme-text: #f1f8ff;
  --theme-muted: #b7d8e5;
  --theme-muted-strong: #d8f3fb;
  --theme-inverse: #031926;
  --ref-primary: #05668d;
  --ref-secondary: #00a896;
  --ref-accent: #ffd166;
  --ref-accent-light: #fff1b8;
  --ref-accent-rgb: 255, 209, 102;
  --ref-secondary-rgb: 0, 168, 150;
  --theme-title-gradient: linear-gradient(
    135deg,
    #ffd166 0%,
    #ffffff 52%,
    #06d6a0 100%
  );
  --theme-hero-bg: linear-gradient(
    135deg,
    #033047 0%,
    #05668d 45%,
    #028090 100%
  );
  --theme-facts-bg: linear-gradient(135deg, #05668d 0%, #00a896 100%);
  --theme-button-bg: linear-gradient(135deg, #06d6a0 0%, #118ab2 100%);
  --theme-button-hover-bg: linear-gradient(135deg, #ffd166 0%, #06d6a0 100%);
  --theme-button-text: #031926;
  --theme-nav-bg: linear-gradient(
    135deg,
    #02131f 0%,
    #032638 55%,
    #063f52 100%
  );
  --theme-footer-bg: linear-gradient(
    135deg,
    #02131f 0%,
    #032638 55%,
    #063f52 100%
  );
  --theme-orb-1: rgba(255, 209, 102, 0.24);
  --theme-orb-2: rgba(0, 168, 150, 0.24);
  --theme-orb-3: rgba(17, 138, 178, 0.22);
}

.theme-sunset,
body.theme-sunset {
  --theme-bg: #2a0f16;
  --theme-section-bg: #35131a;
  --theme-contact-bg: #2d1014;
  --theme-card-bg: rgba(255, 255, 255, 0.06);
  --theme-card-strong-bg: rgba(255, 255, 255, 0.085);
  --theme-border: rgba(255, 215, 160, 0.18);
  --theme-text: #fff7eb;
  --theme-muted: #ffd7b0;
  --theme-muted-strong: #ffe7cf;
  --theme-inverse: #2a0f16;
  --ref-primary: #fb5607;
  --ref-secondary: #ff006e;
  --ref-accent: #ffbe0b;
  --ref-accent-light: #ffe29a;
  --ref-accent-rgb: 255, 190, 11;
  --ref-secondary-rgb: 255, 0, 110;
  --theme-title-gradient: linear-gradient(
    135deg,
    #ffbe0b 0%,
    #fff3ca 48%,
    #ff7a18 100%
  );
  --theme-hero-bg: linear-gradient(
    135deg,
    #3d1015 0%,
    #8f250c 45%,
    #fb5607 100%
  );
  --theme-facts-bg: linear-gradient(135deg, #f77f00 0%, #ff006e 100%);
  --theme-button-bg: linear-gradient(135deg, #ffbe0b 0%, #fb8500 100%);
  --theme-button-hover-bg: linear-gradient(135deg, #ffe29a 0%, #ff7a18 100%);
  --theme-button-text: #2a0f16;
  --theme-nav-bg: linear-gradient(
    135deg,
    #260b11 0%,
    #4b1117 50%,
    #7c1d10 100%
  );
  --theme-footer-bg: linear-gradient(
    135deg,
    #260b11 0%,
    #4b1117 50%,
    #7c1d10 100%
  );
  --theme-orb-1: rgba(255, 190, 11, 0.25);
  --theme-orb-2: rgba(255, 0, 110, 0.22);
  --theme-orb-3: rgba(251, 86, 7, 0.2);
}

.theme-forest,
body.theme-forest {
  --theme-bg: #11210d;
  --theme-section-bg: #162b13;
  --theme-contact-bg: #12230f;
  --theme-card-bg: rgba(255, 255, 255, 0.05);
  --theme-card-strong-bg: rgba(255, 255, 255, 0.07);
  --theme-border: rgba(220, 241, 202, 0.17);
  --theme-text: #f0f7ef;
  --theme-muted: #c6d9bd;
  --theme-muted-strong: #e0ecd8;
  --theme-inverse: #11210d;
  --ref-primary: #2f5233;
  --ref-secondary: #7fb069;
  --ref-accent: #f2cc8f;
  --ref-accent-light: #fff0cd;
  --ref-accent-rgb: 242, 204, 143;
  --ref-secondary-rgb: 127, 176, 105;
  --theme-title-gradient: linear-gradient(
    135deg,
    #f2cc8f 0%,
    #f9fff4 50%,
    #9cc9a4 100%
  );
  --theme-hero-bg: linear-gradient(
    135deg,
    #11210d 0%,
    #2f5233 50%,
    #4b7b5d 100%
  );
  --theme-facts-bg: linear-gradient(135deg, #2f5233 0%, #7fb069 100%);
  --theme-button-bg: linear-gradient(135deg, #f2cc8f 0%, #7fb069 100%);
  --theme-button-hover-bg: linear-gradient(135deg, #fff0cd 0%, #9cc9a4 100%);
  --theme-button-text: #11210d;
  --theme-nav-bg: linear-gradient(
    135deg,
    #0d1d0b 0%,
    #172d13 55%,
    #27462b 100%
  );
  --theme-footer-bg: linear-gradient(
    135deg,
    #0d1d0b 0%,
    #172d13 55%,
    #27462b 100%
  );
  --theme-orb-1: rgba(242, 204, 143, 0.22);
  --theme-orb-2: rgba(127, 176, 105, 0.24);
  --theme-orb-3: rgba(156, 201, 164, 0.18);
}

/* High contrast helper class */
body.high-contrast {
  --section-bg: #000000 !important;
  --section-text: #ffffff !important;
  --hero-title: #ffffff !important;
  --hero-text: #ffffff !important;
  --badge-bg: rgba(255, 255, 255, 0.06) !important;
  --badge-color: #ffffff !important;
  --btn-primary: linear-gradient(90deg, #ffffff 0%, #f0f0f0 100%) !important;
  --btn-primary-hover: linear-gradient(
    90deg,
    #e6e6e6 0%,
    #ffffff 100%
  ) !important;
  filter: none !important;
}

html,
body {
  background: var(--section-bg);
  color: var(--section-text);
}

* {
  font-family: "Inter", sans-serif;
}

body {
  background: var(--section-bg);
  color: var(--section-text);
  padding-top: 70px;
  overflow-x: hidden;
}

.hero-badge-icon i,
.reference-theme .hero-artistic .hero-badge-icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: none;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

.container,
.container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
}

/* removed hardcoded .navbar-collapse background to match theme */

.navbar-nav .nav-link {
  white-space: normal;
  word-break: break-word;
}

/* Compact Navigation Styles - updated to dark bar with gold accent */
.navbar {
  background: linear-gradient(135deg, #020617 0%, #020617 40%, #0b1120 100%);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
  padding: 12px 0;
  border-bottom: 1px solid #1f2937;
  min-height: 70px;
}

.navbar-brand {
  font-weight: 600;
  font-size: 16px;
  color: #e5e7eb !important;
  letter-spacing: 0.2px;
  transition: all 0.3s ease;
  padding: 0;
}

.navbar-brand:hover {
  color: #fbbf24 !important;
}

.navbar-brand img {
  width: 40px;
  height: 40px;
  border: 2px solid #facc15;
  transition: all 0.3s ease;
}

.navbar-brand:hover img {
  border-color: #fbbf24;
}

/* Compact Navigation Links */
.navbar-nav .nav-link {
  color: #e5e7eb !important;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 16px !important;
  letter-spacing: 0.1px;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 999px;
  margin: 0 2px;
}

.navbar-nav .nav-link:hover {
  color: #fbbf24 !important;
  background-color: rgba(31, 41, 55, 0.95);
}

.navbar-nav .nav-link.active {
  background-color: #facc15;
  color: #111827 !important;
}

/* Compact Contact Button */
.btn-contact {
  background: var(--btn-primary);
  color: var(--text-white) !important;
  border: none;
  padding: 10px 20px !important;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.1px;
  border-radius: 6px;
  transition: all 0.3s ease;
  margin-left: 8px;
}

.btn-contact:hover {
  background: var(--btn-primary-hover);
  color: var(--text-white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--shadow-medium);
}

/* Compact Dropdown Styles */
.dropdown-menu {
  background-color: #020617;
  border: 1px solid #1f2937;
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--shadow-medium);
  padding: 8px 0;
  margin-top: 5px;
  min-width: 200px;
}

.dropdown-item {
  color: #e5e7eb !important;
  font-size: 14px;
  font-weight: 400;
  padding: 10px 20px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dropdown-item:hover {
  background-color: #111827 !important;
  color: #fbbf24 !important;
}

.dropdown-item i {
  width: 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  flex-shrink: 0;
}

.dropdown-item:hover i {
  color: #fbbf24;
}

/* Hamburger Menu */
.navbar-toggler {
  border: none;
  padding: 4px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

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

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .navbar-nav {
    padding: 12px 0;
  }

  .navbar-nav .nav-link {
    padding: 12px 16px !important;
    margin: 2px 0;
    text-align: left;
  }

  .btn-contact {
    margin: 12px 0 0 0;
    width: auto;
    text-align: left;
  }

  .dropdown-menu {
    border: none;
    box-shadow: none;
    /* Use site section background on mobile for readable nav dropdowns */
    background-color: rgba(2, 6, 23, 0.96);
    color: var(--section-text);
    margin-top: 0;
  }

  .dropdown-menu .dropdown-item {
    color: var(--section-text) !important;
  }

  .dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: var(--accent) !important;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Enhanced Section Styles */
.section-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.3px;
  /* margin-bottom: 40px; */
}

.card {
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-light);
  overflow: hidden;
}

.card-img-top {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

.card-title {
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
}

.btn-primary {
  background: var(--btn-primary);
  color: #fff !important;
  font-weight: 700;
  border-radius: 5px;
  padding: 10px 28px;
  border: 2px solid;
  /* border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1; */
  box-shadow: none;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

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

.theme-menu .theme-switcher {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 8px 16px;
}

.theme-menu .theme-switcher:hover,
.theme-menu .theme-switcher:focus {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* Force theme menu to use site theme colors (avoid white-on-white) */
.theme-menu,
.theme-menu.dropdown-menu {
  background: rgba(0, 0, 0, 0.85) !important;
  color: var(--section-text) !important;
  border-color: rgba(255, 255, 255, 0.04) !important;
}

.theme-menu .dropdown-item,
.theme-menu .theme-switcher {
  color: var(--section-text) !important;
  background: transparent !important;
}

.theme-menu .dropdown-item i {
  color: var(--section-text) !important;
  opacity: 0.95;
}

/* Use the document as the only scroll container. A body-level scroll
           container breaks ScrollTrigger measurements on mobile. */
html {
  min-height: 100%;
  overflow-y: auto;
  overscroll-behavior-y: auto;
}

body {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: visible;
}

/* Hero section should remain full viewport; other sections scroll normally. */
#themeRoot > header.st-section {
  width: 100%;
  /* max-width: 100vw; */
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  margin: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#themeRoot .st-section {
  width: 100%;
  max-width: 100vw;
  position: relative;
  box-sizing: border-box;
  margin: 0;
  padding: 6rem 0;
  overflow: hidden;
  min-height: 100vh;
}

#themeRoot[data-fullpage="true"] .st-section:not(#hero) {
  width: 100%;
  min-height: 100vh;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#themeRoot[data-fullpage="true"] .st-section:not(#hero) > .container {
  min-height: 100vh;
  max-height: 100vh;
  max-height: 100dvh;
  padding: 100px 1.5rem 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
}

#themeRoot[data-fullpage="true"] .st-section:not(#hero) .row {
  width: 100%;
  min-height: auto;
  align-items: center;
}

#themeRoot .st-section > .container {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 100px;
  padding-bottom: 80px;
  will-change: transform, opacity;
  height: 100%;
  justify-content: center;
}

@media (min-width: 992px) {
  #themeRoot[data-fullpage="true"] .st-section:not(#hero) > .container,
  #themeRoot .st-section > .container {
    padding-top: 130px;
    padding-bottom: 110px;
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Flexbox safe centering: centers content if it fits, aligns to top if it overflows */
#themeRoot .st-section > .container::before,
#themeRoot .st-section > .container::after {
  content: "";
  display: block;
  flex: 1 1 0%;
  min-height: 0;
}

#themeRoot #hero.hero.st-section .container {
  height: 100%;
  justify-content: center;
}

#themeRoot #hero.hero.st-section .hero-content {
  width: 100%;
  max-height: none;
  min-height: 0;
}

@media (max-width: 767px) {
  #themeRoot .st-section > .container,
  #themeRoot > header.st-section > .container {
    padding-top: 90px;
    padding-bottom: 60px;
  }
}

/* Prevent gallery/modal from clipping */
.reference-theme .modern-gallery-row,
.reference-theme .custom-gallery-modal,
.reference-theme .custom-gallery-modal-overlay {
  overflow: visible !important;
}

/* slide-section marker class added by JS for debugging/active state */
.reference-theme .st-section.slide-section-active {
  z-index: 2;
}

/* Slide containers: default hidden/translated; animate when active */
.reference-theme .st-section.slide-section:not(#hero) > .container {
  transform: translateY(28px);
  opacity: 0;
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease;
  will-change: transform, opacity;
}
.reference-theme .st-section.slide-section-active:not(#hero) > .container {
  transform: translateY(0);
  opacity: 1;
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

/* Hero Section Enhancement */
.hero {
  background: var(--hero-bg);
  min-height: 600px;
  max-height: 800px;
  color: var(--hero-text);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.hero h1,
.hero p,
.hero .hero-text {
  color: var(--hero-text) !important;
}

.hero .hero-text p {
  opacity: 1;
}

.hero h1,
.hero p,
.hero .hero-text {
  color: var(--hero-title) !important;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}

.hero .container {
  position: relative;
  z-index: 8;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
  min-height: 500px;
  max-height: 700px;
}

.hero-image {
  flex: 0 0 400px;
  text-align: center;
}

.hero-image img {
  width: 600px;
  height: 400px;
  border-radius: 12px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.hero-text {
  flex: 1;
  padding-right: 40px;
}

.hero-text p {
  text-align: justify;
  transition: all 0.3s ease;
}

.hero-text:hover p {
  color: #f0f0f0;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.hero h1 {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 2.8rem;
  margin-bottom: 20px;
  animation: fadeInLeft 1.5s ease-in-out;
  transition: all 0.3s ease;
}

.hero h1:hover {
  color: #f0f0f0;
  transform: translateY(-2px);
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-weight: 400;
  letter-spacing: 0.3px;
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.95;
  animation: fadeInRight 2s ease-in-out;
}

/* Floating badge inside hero (positioned relative to image) */
.hero-floating-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(0, 0, 0, 0.32);
  color: var(--badge-color);
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  z-index: 12;
  backdrop-filter: blur(6px);
  animation: hero-badge-float 4s ease-in-out infinite;
  transform: translateY(0);
}

.hero-badge-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--badge-bg);
  color: var(--badge-color);
  border-radius: 10px;
  font-size: 18px;
  flex-shrink: 0;
}

.hero-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-align: left;
}

.hero-badge-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--badge-color);
}

.hero-badge-sub {
  font-size: 0.76rem;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.85);
}

@keyframes hero-badge-float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 991.98px) {
  .hero {
    min-height: auto;
    max-height: none;
    padding: 40px 0 20px;
    overflow: visible;
  }

  .hero-content {
    flex-direction: column;
    gap: 28px;
    text-align: center;
    min-height: auto;
    max-height: none;
  }

  .hero-image {
    flex: none;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-image img {
    width: min(320px, 100%);
    height: auto;
    max-width: 100%;
  }

  .hero-text {
    padding-right: 0;
    padding-left: 0;
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2rem, 5vw, 2.4rem);
    margin-bottom: 14px;
    animation: none;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.65;
    margin-left: auto;
    margin-right: auto;
    max-width: 720px;
    animation: none;
  }

  .hero .hero-item {
    visibility: visible;
  }
}

@media (max-width: 767.98px) {
  .hero {
    min-height: auto;
    padding: 30px 0 18px;
  }

  .hero-content {
    min-height: auto;
    gap: 18px;
    padding: 0 15px;
  }

  .hero-image {
    width: 100%;
    margin: 0;
  }

  .hero-image img {
    width: 100%;
    height: auto;
    max-width: none;
    border-radius: 14px;
    border: 3px solid rgba(255, 255, 255, 0.25);
  }

  .hero h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }

  .hero p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Position floating badge centered on small screens */
  .hero-floating-badge {
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    gap: 8px;
    font-size: 0.9rem;
    border-radius: 10px;
  }

  .hero-badge-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
    border-radius: 8px;
  }

  /* Ensure reference-theme scoped badge also repositions on small screens */
  .reference-theme .hero-artistic .hero-floating-badge {
    bottom: -6px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 8px 12px !important;
    gap: 8px !important;
  }

  .reference-theme .hero-artistic .hero-badge-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
  }
}

@media (max-width: 575.98px) {
  .hero {
    min-height: auto;
    padding: 25px 0;
  }

  .hero-content {
    min-height: auto;
    gap: 15px;
  }

  .hero-image {
    width: 100%;
    margin: 0 -15px;
  }

  .hero-image img {
    width: 100%;
    height: auto;
    max-width: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .hero h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .hero p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  /* Reduce overlay darkness on small screens and ensure hero text remains readable */
  .reference-theme .hero-artistic .hero-image-overlay {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.28) 0%,
      transparent 55%
    );
  }

  .hero .hero-text {
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.16);
    padding: 10px 12px;
    border-radius: 10px;
    display: inline-block;
  }

  .hero h1,
  .hero p {
    color: var(--hero-title) !important;
  }
}

/* Footer Enhancement */
.footer {
  padding: 30px 0;
  background: var(--primary-color);
  color: var(--text-white);
}

.footer a {
  text-decoration: none;
  color: var(--text-white);
  transition: all 0.3s ease;
}

.footer a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

/* Timeline Section Styles */
.timeline-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  color: var(--text-white);
  transition: all 0.3s ease;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.timeline-card-header {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-date {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.timeline-card-content {
  padding: 20px;
}

.timeline-card-content h3 {
  color: var(--text-white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-card-content h4 {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.timeline-card-content p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .timeline-container::before {
    left: 20px;
  }

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-dot {
    left: 10px;
  }
}

/* Updated Skills Section for White Background */
.skill-card {
  background: var(--text-white);
  border: 1px solid var(--border-color);
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.skill-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
  transform: scale(1.1);
}

.skill-icon i {
  font-size: 28px;
  color: var(--text-white);
}

.skill-card h4 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.skill-card p {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.expertise-item {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  padding: 20px 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
  height: 100%;
}

.expertise-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.expertise-item i {
  font-size: 24px;
  color: var(--text-white);
  margin-bottom: 10px;
  display: block;
  transition: all 0.3s ease;
}

.expertise-item span {
  color: var(--text-white);
  font-weight: 500;
  font-size: 14px;
  display: block;
}

.impact-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: var(--text-white);
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
}

.impact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.impact-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

.impact-label {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

/* Project Cards Styling */
.project-card {
  background: var(--text-white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-medium);
}

.project-card .card-title {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.1rem;
}

.project-card .card-subtitle {
  color: var(--text-light);
  font-size: 0.9rem;
}

.project-card .card-text {
  color: var(--text-dark);
  font-size: 0.9rem;
  line-height: 1.5;
}

.project-card .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  padding: 8px 20px;
  font-size: 0.9rem;
  border-radius: 6px;
}

.project-card .btn-primary:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-1px);
}

/* Modern Gallery Section */
.modern-gallery-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overflow-y: none;
  padding-bottom: 8px;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.modern-gallery-row::-webkit-scrollbar {
  /* Webkit browsers */
  display: none;
  /* Chrome, Safari and Opera */
}

.modern-gallery-col {
  flex: 0 0 260px;
  max-width: 260px;
  min-width: 220px;
}

@media (max-width: 767px) {
  .modern-gallery-row {
    gap: 12px;
    padding-left: 0;
    padding-right: 0;
    justify-content: flex-start;
    margin-left: 0;
    margin-right: 0;
  }

  .modern-gallery-col {
    flex: 0 0 70vw;
    max-width: 70vw;
    min-width: 200px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .modern-gallery-col:first-child {
    padding-left: 20px;
  }

  .modern-gallery-col:last-child {
    padding-right: 20px;
  }
}

.modern-gallery-row::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari and Opera */
}

.modern-gallery-col {
  flex: 0 0 260px;
  max-width: 260px;
  min-width: 220px;
}

.modern-gallery-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(102, 126, 234, 0.1);
  overflow: hidden;
  transition:
    box-shadow 0.3s,
    transform 0.3s;
  position: relative;
  border: 1px solid #e0e7ff;
}

.modern-gallery-card:hover {
  box-shadow: 0 16px 48px rgba(102, 126, 234, 0.18);
  transform: scale(1.045) translateY(-6px);
}

.modern-gallery-img-container {
  width: 100%;
  aspect-ratio: 4/5;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.modern-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: filter 0.3s;
  display: block;
}

.modern-gallery-card:hover .modern-gallery-img {
  filter: brightness(0.92) saturate(1.1);
}

.modern-gallery-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(61, 82, 160, 0.68);
  color: #fff;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  pointer-events: none;
}

.modern-gallery-card:hover .modern-gallery-overlay {
  opacity: 1;
  pointer-events: auto;
}

.modern-gallery-overlay-caption {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-align: center;
  padding: 0 12px;
}

@media (max-width: 767px) {
  .modern-gallery-row {
    gap: 12px;
    padding-left: 0;
    padding-right: 0;
    justify-content: flex-start;
    margin-left: 0;
    margin-right: 0;
  }

  .modern-gallery-col {
    flex: 0 0 70vw;
    max-width: 70vw;
    min-width: 200px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .modern-gallery-col:first-child {
    padding-left: 20px;
  }

  .modern-gallery-col:last-child {
    padding-right: 20px;
  }
}

/* Custom Gallery Modal Styles */
.custom-gallery-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: center;
}

.custom-gallery-modal[style*="display: flex"] {
  display: flex !important;
}

.custom-gallery-modal-overlay {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1;
}

.custom-gallery-modal-content {
  position: relative;
  z-index: 2;
  background: none;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(61, 82, 160, 0.25);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.custom-gallery-modal-content img {
  max-width: 80vw;
  max-height: 70vh;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(61, 82, 160, 0.18);
  background: #fff;
}

.custom-gallery-modal-close {
  position: absolute;
  top: -18px;
  right: -18px;
  background: #fff;
  color: #764ba2;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(61, 82, 160, 0.1);
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    color 0.2s;
}

.custom-gallery-modal-close:hover {
  background: #764ba2;
  color: #fff;
}

@media (max-width: 767px) {
  .custom-gallery-modal-content img {
    max-width: 96vw;
    max-height: 60vh;
  }

  .custom-gallery-modal-content {
    max-width: 98vw;
    max-height: 80vh;
  }
}

/* Modern Features Section (Aesthetic) */
.feature-modern-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(102, 126, 234, 0.1);
  padding: 32px 20px 24px 20px;
  transition:
    box-shadow 0.3s,
    transform 0.3s,
    border-left 0.3s;
  border: 1px solid #e0e7ff;
  border-left: 5px solid #3d52a0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-modern-card:hover {
  box-shadow: 0 12px 36px rgba(102, 126, 234, 0.18);
  transform: translateY(-6px) scale(1.03);
  border-left: 8px solid #7091e6;
}

.feature-modern-icon {
  width: 72px;
  height: 72px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 2.5rem;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.feature-modern-icon i {
  color: #3d52a0;
  font-size: 2.5rem;
  font-weight: 700;
}

.feature-modern-title {
  color: #3d52a0;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature-modern-desc {
  color: #4a4a4a;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .feature-modern-card {
    padding: 20px 10px 16px 10px;
  }

  .feature-modern-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
}

/* Modern Skills & Expertise Section */
.skill-modern-box {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0 12px 0 12px;
  transition: none;
}

.skill-modern-icon {
  font-size: 3rem;
  color: #b0b7c3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.skill-modern-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
  margin-top: 18px;
  transition: color 0.3s;
}

.skill-modern-desc {
  color: #6c757d;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 340px;
}

.skill-modern-box:hover .skill-modern-icon {
  color: #3d52a0;
}

.skill-modern-box:hover .skill-modern-title {
  color: #3d52a0;
}

@media (max-width: 991px) {
  .skill-modern-desc {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .skill-modern-icon {
    font-size: 2.2rem;
  }

  .skill-modern-title {
    font-size: 1.1rem;
  }
}

/* Professional Journey Card Design */
.pro-journey-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(102, 126, 234, 0.1);
  border-left: 6px solid #667eea;
  padding: 32px 28px 24px 28px;
  margin-bottom: 32px;
  color: #222;
  transition:
    box-shadow 0.3s,
    border-color 0.3s;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.pro-journey-card:hover {
  box-shadow: 0 12px 36px rgba(102, 126, 234, 0.18);
  border-left: 8px solid #764ba2;
}

.pro-journey-badge {
  display: inline-block;
  background: #e6eaff;
  color: #3d52a0;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 16px;
  padding: 6px 18px;
  margin-bottom: 18px;
}

.pro-journey-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #3d52a0;
  margin-bottom: 6px;
}

.pro-journey-subtitle {
  font-size: 1.05rem;
  color: #7091e6;
  margin-bottom: 14px;
  font-weight: 500;
}

.pro-journey-desc {
  color: #444;
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 991px) {
  .pro-journey-card {
    padding: 20px 10px 16px 10px;
    min-height: 220px;
  }
}

@media (max-width: 767px) {
  .pro-journey-title {
    font-size: 1.1rem;
  }

  .pro-journey-card {
    margin-bottom: 20px;
    min-height: 0;
  }
}

.feature-journey-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(102, 126, 234, 0.1);
  border-left: 6px solid #7091e6;
  padding: 32px 28px 24px 28px;
  color: #222;
  transition:
    box-shadow 0.3s,
    border-color 0.3s;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.feature-journey-card:hover {
  box-shadow: 0 12px 36px rgba(102, 126, 234, 0.18);
  border-left: 8px solid #3d52a0;
}

.feature-badge {
  display: inline-block;
  background: #e6eaff;
  color: #3d52a0;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 16px;
  padding: 6px 18px;
}

.feature-badge i {
  color: #3d52a0;
  font-size: 1.1rem;
  vertical-align: middle;
}

.feature-desc {
  color: #444;
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 991px) {
  .feature-journey-card {
    padding: 20px 10px 16px 10px;
    min-height: 140px;
  }
}

@media (max-width: 767px) {
  .feature-journey-card {
    margin-bottom: 20px;
    min-height: 0;
  }
}

/* Facts & Achievements Section */
.fact-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(102, 126, 234, 0.1);
  padding: 32px 10px 24px 10px;
  border: 1px solid #e0e7ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    box-shadow 0.3s,
    transform 0.3s;
  min-height: 180px;
}

.fact-card:hover {
  box-shadow: 0 12px 36px rgba(102, 126, 234, 0.18);
  transform: translateY(-6px) scale(1.03);
}

.fact-icon {
  font-size: 2.2rem;
  color: #667eea;
  margin-bottom: 10px;
}

.fact-number {
  font-size: 2.1rem;
  font-weight: 800;
  color: #3d52a0;
  margin-bottom: 6px;
}

.fact-label {
  color: #444;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

@media (max-width: 991px) {
  .fact-card {
    padding: 20px 5px 16px 5px;
    min-height: 140px;
  }
}

@media (max-width: 767px) {
  .fact-card {
    margin-bottom: 20px;
    min-height: 0;
  }

  .fact-number {
    font-size: 1.5rem;
  }

  .fact-icon {
    font-size: 1.5rem;
  }
}

.facts-gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 64px 0 64px 0;
  margin-bottom: 48px;
  margin-top: 32px;
  border-radius: 24px;
}

#facts .fact-icon {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 10px;
}

#facts .fact-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

#facts .fact-label {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.2px;
}

#facts .row {
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 991px) {
  #facts .fact-number {
    font-size: 2rem;
  }

  #facts .fact-icon {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .facts-gradient-bg {
    padding: 36px 0 36px 0;
    border-radius: 12px;
    margin-bottom: 24px;
    margin-top: 16px;
  }

  #facts .fact-number {
    font-size: 1.4rem;
  }

  #facts .fact-icon {
    font-size: 1.3rem;
  }

  #facts .fact-label {
    font-size: 1rem;
  }
}

/* Reference theme: dark + gold accent (shared) */
.reference-theme {
  --ref-primary: #1e3a5f;
  --ref-accent: #d4af37;
  --ref-secondary: #0f766e;
  background: #0a0a0a;
  color: #f5f5f5;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  overflow-x: hidden;
}

.reference-theme .section-title {
  font-family: "Playfair Display", serif;
  color: #f5f5f5 !important;
  font-weight: 700;
}

.reference-theme .gradient-text-ref {
  background: linear-gradient(135deg, #d4af37 0%, #f4e5c2 50%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reference-theme .glass-card-ref {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.reference-theme .hero {
  background: linear-gradient(
    135deg,
    #0f172a 0%,
    #0a0a0a 50%,
    #0f172a 100%
  ) !important;
  color: #f5f5f5 !important;
  position: relative;
  overflow: hidden;
}

.reference-theme .hero h1,
.reference-theme .hero p,
.reference-theme .hero .hero-text {
  color: #f5f5f5 !important;
}

.reference-theme .hero .hero-image img {
  border-color: rgba(212, 175, 55, 0.4) !important;
}

/* Artistic hero: animated background orbs */
.reference-theme .hero-artistic .hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.reference-theme .hero-artistic .hero-bg-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(212, 175, 55, 0.25);
  top: 10%;
  left: 5%;
  animation: hero-orb-float 8s ease-in-out infinite;
}

.reference-theme .hero-artistic .hero-bg-orb-2 {
  width: 350px;
  height: 350px;
  background: rgba(15, 118, 110, 0.2);
  bottom: 15%;
  right: 10%;
  animation: hero-orb-float 10s ease-in-out infinite 1.5s;
}

.reference-theme .hero-artistic .hero-bg-orb-3 {
  width: 280px;
  height: 280px;
  background: rgba(212, 175, 55, 0.15);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: hero-orb-pulse 6s ease-in-out infinite;
}

@keyframes hero-orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(20px, -30px) scale(1.05);
  }
}

@keyframes hero-orb-pulse {
  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.6;
  }
}

/* Hero image: decorative frame + overlay */
.reference-theme .hero-artistic .hero-image-wrap {
  position: relative;
  flex: 0 0 auto;
}

.reference-theme .hero-artistic .hero-image-frame {
  position: absolute;
  inset: -12px;
  border-radius: 12px;
  pointer-events: none;
}

.reference-theme .hero-artistic .hero-image-frame-outer {
  border: 2px solid rgba(212, 175, 55, 0.35);
  transform: rotate(3deg);
  transition: transform 0.5s ease;
}

.reference-theme .hero-artistic .hero-image-wrap:hover .hero-image-frame-outer {
  transform: rotate(0deg);
}

.reference-theme .hero-artistic .hero-image-frame-inner {
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: rotate(-3deg);
  transition: transform 0.5s ease;
}

.reference-theme .hero-artistic .hero-image-wrap:hover .hero-image-frame-inner {
  transform: rotate(0deg);
}

.reference-theme .hero-artistic .hero-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.reference-theme .hero-artistic .hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.reference-theme .hero-artistic .hero-image img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition:
    filter 0.6s ease,
    transform 0.5s ease;
}

.reference-theme .hero-artistic .hero-image-wrap:hover .hero-image img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.reference-theme .hero-artistic .hero-image img {
  filter: grayscale(20%);
}

/* Floating badge */
.reference-theme .hero-artistic .hero-floating-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  z-index: 10;
  animation: hero-badge-float 3s ease-in-out infinite;
}

@keyframes hero-badge-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.reference-theme .hero-artistic .hero-badge-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #d4af37, #f4e5c2);
  color: #0a0a0a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.reference-theme .hero-artistic .hero-badge-text {
  display: flex;
  flex-direction: column;
}

.reference-theme .hero-artistic .hero-badge-title {
  font-weight: 600;
  color: #f5f5f5;
  font-size: 0.95rem;
}

.reference-theme .hero-artistic .hero-badge-sub {
  font-size: 0.75rem;
  color: #a3a3a3;
}

/* Hero title split lines */
.reference-theme .hero-artistic .hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  font-family: "Playfair Display", serif;
}

.reference-theme .hero-artistic .hero-title-line {
  display: block;
  overflow: hidden;
}

.reference-theme .hero-artistic .hero-title .gradient-text-ref {
  background: linear-gradient(135deg, #d4af37 0%, #f4e5c2 50%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero CTA buttons */
.reference-theme .hero-artistic .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.reference-theme .hero-artistic .hero-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.reference-theme .hero-artistic .hero-btn-primary {
  background: linear-gradient(135deg, #b8962e 0%, #d4af37 100%);
  color: #0a0a0a;
  border: none;
}

.reference-theme .hero-artistic .hero-btn-primary:hover {
  background: linear-gradient(135deg, #d4af37 0%, #f4e5c2 100%);
  color: #0a0a0a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}

.reference-theme .hero-artistic .hero-btn-outline {
  background: transparent;
  color: #e5e5e5;
  border: 2px solid rgba(212, 175, 55, 0.5);
}

.reference-theme .hero-artistic .hero-btn-outline:hover {
  border-color: #d4af37;
  color: #d4af37;
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-2px);
}

/* Scroll indicator */
.reference-theme .hero-artistic .hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.reference-theme .hero-artistic .hero-scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(212, 175, 55, 0.5);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.reference-theme .hero-artistic .hero-scroll-dot {
  width: 4px;
  height: 8px;
  background: #d4af37;
  border-radius: 999px;
  animation: hero-scroll-pulse 2s ease-in-out infinite;
}

@keyframes hero-scroll-pulse {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }

  50% {
    opacity: 0.5;
    transform: translateY(6px);
  }
}

@media (max-width: 991px) {
  .reference-theme .hero-artistic .hero-title {
    font-size: 2.2rem;
  }

  .reference-theme .hero-artistic .hero-image img {
    max-width: 320px;
  }

  .reference-theme .hero-artistic .hero-floating-badge {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  .reference-theme .hero-artistic .hero-bg-orb {
    display: none;
  }

  .reference-theme .hero-artistic .hero-title {
    font-size: 1.8rem;
  }

  .reference-theme .hero-artistic .hero-image-frame {
    inset: -8px;
  }

  .reference-theme .hero-artistic .hero-floating-badge {
    padding: 8px 12px;
    font-size: 0.85rem;
    left: 50%;
    transform: translateX(-50%);
  }

  .reference-theme .hero-artistic .hero-badge-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .reference-theme .hero-artistic .hero-scroll-indicator {
    bottom: 1rem;
  }
}

.reference-theme section.bg-light {
  background: #111 !important;
}

.reference-theme .skill-modern-box,
.reference-theme .pro-journey-card,
.reference-theme .feature-journey-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-left-color: var(--ref-accent) !important;
  color: #e5e5e5 !important;
}

.reference-theme .skill-modern-title,
.reference-theme .pro-journey-title {
  color: #f5f5f5 !important;
}

.reference-theme .skill-modern-desc,
.reference-theme .pro-journey-desc,
.reference-theme .feature-desc {
  color: #a3a3a3 !important;
}

.reference-theme .pro-journey-badge,
.reference-theme .feature-badge {
  background: rgba(212, 175, 55, 0.15) !important;
  color: var(--ref-accent) !important;
}

.reference-theme .facts-gradient-bg {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f766e 100%) !important;
}

.reference-theme .btn-primary {
  background: linear-gradient(135deg, #b8962e 0%, #d4af37 100%) !important;
  color: #0a0a0a !important;
  border: none !important;
}

.reference-theme .btn-primary:hover {
  background: linear-gradient(135deg, #d4af37 0%, #f4e5c2 100%) !important;
  color: #0a0a0a !important;
}

.reference-theme .recommendation-modern-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e5e5e5;
}

.reference-theme .card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #e5e5e5;
}

.reference-theme .card .card-title {
  color: #f5f5f5 !important;
}

.reference-theme .card .card-text {
  color: #a3a3a3 !important;
}

.reference-theme .card a:not(.btn) {
  color: var(--ref-accent);
}

.reference-theme .card .btn-primary {
  background: linear-gradient(135deg, #b8962e 0%, #d4af37 100%) !important;
  color: #0a0a0a !important;
  border: none !important;
}

.reference-theme .card .btn-outline-primary {
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--ref-accent);
}

.reference-theme .card .btn-outline-primary:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--ref-accent);
  color: var(--ref-accent);
}

.reference-theme .skill-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #e5e5e5;
}

.reference-theme .skill-card .fw-bold,
.reference-theme .skill-card h5 {
  color: #f5f5f5 !important;
}

.reference-theme .badge.bg-primary {
  background: rgba(212, 175, 55, 0.25) !important;
  color: var(--ref-accent) !important;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.reference-theme .modern-language-badge {
  background: rgba(212, 175, 55, 0.1) !important;
  color: var(--ref-accent) !important;
  border-color: rgba(212, 175, 55, 0.3);
}

.reference-theme .modern-language-badge:hover {
  background: var(--ref-accent) !important;
  color: #0a0a0a !important;
}

.reference-theme .grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.reference-theme .reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
}

.reference-theme ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.reference-theme ::-webkit-scrollbar-track {
  background: #0a0a0a;
}

.reference-theme ::-webkit-scrollbar-thumb {
  background: var(--ref-accent);
  border-radius: 4px;
}

.reference-theme #contact {
  background: #0f0f0f !important;
}

.reference-theme #contact .section-title,
.reference-theme #contact h4,
.reference-theme #contact p,
.reference-theme #contact .form-label {
  color: #e5e5e5 !important;
}

.reference-theme #contact .form-control {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f5f5f5;
}

.reference-theme #contact .form-control:focus {
  border-color: var(--ref-accent);
  background: rgba(255, 255, 255, 0.08);
}

.reference-theme #contact .contact-info-modern p {
  color: #a3a3a3 !important;
}

.reference-theme #contact .contact-info-modern h4 {
  color: #e5e5e5 !important;
}

.reference-theme #contact .contact-modern-form-white {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.reference-theme #contact .form-control::placeholder {
  color: rgba(245, 245, 245, 0.5);
}

.reference-theme #contact .btn-gradient-primary,
.reference-theme #contact .contact-btn-small {
  background: linear-gradient(135deg, #b8962e 0%, #d4af37 100%) !important;
  color: #0a0a0a !important;
  border: none !important;
}

.reference-theme #contact .btn-gradient-primary:hover,
.reference-theme #contact .contact-btn-small:hover {
  background: linear-gradient(135deg, #d4af37 0%, #f4e5c2 100%) !important;
  color: #0a0a0a !important;
}

.reference-theme .recommendation-header,
.reference-theme .recommendation-name {
  color: #f5f5f5 !important;
}

.reference-theme .recommendation-relationship {
  color: var(--ref-accent) !important;
}

.reference-theme .recommendation-description,
.reference-theme .recommendation-description span {
  color: #d4d4d4 !important;
}

.reference-theme .recommendation-accolades,
.reference-theme .recommendation-accolades strong {
  color: #e5e5e5 !important;
}

.reference-theme .recommendation-accolades .text-primary {
  color: var(--ref-accent) !important;
}

.reference-theme .recommendation-connection,
.reference-theme .recommendation-connection strong {
  color: #a3a3a3 !important;
}

.reference-theme .recommendation-modern-card .text-muted {
  color: #888 !important;
}

.reference-theme .recommendation-modern-card .lead {
  color: #a3a3a3 !important;
}

.reference-theme .recommendation-meta .badge {
  background: rgba(212, 175, 55, 0.2) !important;
  color: var(--ref-accent) !important;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.reference-theme .recommendation-meta .recommendation-date {
  background: rgba(15, 118, 110, 0.4) !important;
  color: #6ee7de !important;
  border-color: rgba(15, 118, 110, 0.6);
}

.reference-theme #recommendations .carousel-control-prev-icon,
.reference-theme #recommendations .carousel-control-next-icon {
  filter: invert(1) brightness(0.9);
}

/* slide-section layout defined above in global styles */
.reference-theme #hero .hero-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ref-accent) !important;
  margin-bottom: 0.5rem;
}

.reference-theme #hero .hero-text p,
.reference-theme #hero .hero-text h1 {
  color: #f5f5f5 !important;
}

.reference-theme #hero .hero-text p {
  opacity: 1;
}

.reference-theme #hero .hero-item {
  opacity: 1;
  transform: translateY(0);
}

.reference-theme .text-muted {
  color: #888 !important;
}

/* Active theme overrides. These intentionally come after the older
           reference-theme rules so selected presets can override hard-coded
           colors across all public pages. */
body.reference-theme,
.reference-theme {
  background: var(--theme-bg) !important;
  color: var(--theme-text) !important;
}

body.reference-theme .navbar {
  background: var(--theme-nav-bg) !important;
  border-bottom-color: rgba(var(--ref-accent-rgb), 0.25) !important;
}

body.reference-theme .navbar-brand:hover,
body.reference-theme .navbar-nav .nav-link:hover,
body.reference-theme .dropdown-item:hover,
body.reference-theme .dropdown-item:hover i {
  color: var(--ref-accent) !important;
}

body.reference-theme .navbar-brand img {
  border-color: var(--ref-accent) !important;
}

body.reference-theme .navbar-nav .nav-link:hover,
body.reference-theme .dropdown-item:hover {
  background-color: rgba(var(--ref-accent-rgb), 0.12) !important;
}

body.reference-theme .navbar-nav .nav-link.active {
  background-color: var(--ref-accent) !important;
  color: var(--theme-inverse) !important;
}

body.reference-theme .dropdown-menu,
body.reference-theme .theme-menu,
body.reference-theme .theme-menu.dropdown-menu {
  background: rgba(0, 0, 0, 0.86) !important;
  border-color: rgba(var(--ref-accent-rgb), 0.22) !important;
}

body.reference-theme .section-title,
.reference-theme .section-title {
  color: var(--theme-text) !important;
}

body.reference-theme .gradient-text-ref,
.reference-theme .gradient-text-ref,
.reference-theme .hero-artistic .hero-title .gradient-text-ref {
  background: var(--theme-title-gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

body.reference-theme .hero,
.reference-theme .hero {
  background: var(--theme-hero-bg) !important;
  color: var(--theme-text) !important;
}

body.reference-theme .hero h1,
body.reference-theme .hero p,
body.reference-theme .hero .hero-text,
.reference-theme .hero h1,
.reference-theme .hero p,
.reference-theme .hero .hero-text,
.reference-theme #hero .hero-text p,
.reference-theme #hero .hero-text h1 {
  color: var(--theme-text) !important;
}

.reference-theme #hero .hero-subtitle {
  color: var(--ref-accent) !important;
}

.reference-theme .hero .hero-image img {
  border-color: rgba(var(--ref-accent-rgb), 0.42) !important;
}

.reference-theme .hero-artistic .hero-bg-orb-1 {
  background: var(--theme-orb-1) !important;
}

.reference-theme .hero-artistic .hero-bg-orb-2 {
  background: var(--theme-orb-2) !important;
}

.reference-theme .hero-artistic .hero-bg-orb-3 {
  background: var(--theme-orb-3) !important;
}

.reference-theme .hero-artistic .hero-image-frame-outer,
.reference-theme .hero-artistic .hero-floating-badge {
  border-color: rgba(var(--ref-accent-rgb), 0.38) !important;
}

.reference-theme .hero-artistic .hero-badge-icon {
  background: var(--theme-button-bg) !important;
  color: var(--theme-button-text) !important;
}

.reference-theme .hero-artistic .hero-badge-title {
  color: var(--theme-text) !important;
}

.reference-theme .hero-artistic .hero-badge-sub,
.reference-theme .text-muted,
.reference-theme .recommendation-modern-card .text-muted,
.reference-theme .recommendation-modern-card .lead {
  color: var(--theme-muted) !important;
}

.reference-theme .hero-artistic .hero-btn-primary,
.reference-theme .btn-primary,
.reference-theme .card .btn-primary,
.reference-theme #contact .btn-gradient-primary,
.reference-theme #contact .contact-btn-small,
body.reference-theme .btn-contact {
  background: var(--theme-button-bg) !important;
  color: var(--theme-button-text) !important;
  border-color: transparent !important;
}

.reference-theme .hero-artistic .hero-btn-primary:hover,
.reference-theme .btn-primary:hover,
.reference-theme .card .btn-primary:hover,
.reference-theme #contact .btn-gradient-primary:hover,
.reference-theme #contact .contact-btn-small:hover,
body.reference-theme .btn-contact:hover {
  background: var(--theme-button-hover-bg) !important;
  color: var(--theme-button-text) !important;
  box-shadow: 0 8px 24px rgba(var(--ref-accent-rgb), 0.28) !important;
}

.reference-theme .hero-artistic .hero-btn-outline,
.reference-theme .card .btn-outline-primary {
  color: var(--ref-accent) !important;
  border-color: rgba(var(--ref-accent-rgb), 0.5) !important;
}

.reference-theme .hero-artistic .hero-btn-outline:hover,
.reference-theme .card .btn-outline-primary:hover {
  background: rgba(var(--ref-accent-rgb), 0.14) !important;
  color: var(--ref-accent-light) !important;
  border-color: var(--ref-accent) !important;
}

.reference-theme .hero-artistic .hero-scroll-mouse {
  border-color: rgba(var(--ref-accent-rgb), 0.55) !important;
}

.reference-theme .hero-artistic .hero-scroll-dot,
.reference-theme ::-webkit-scrollbar-thumb {
  background: var(--ref-accent) !important;
}

.reference-theme section.bg-light {
  background: var(--theme-section-bg) !important;
}

.reference-theme .glass-card-ref,
.reference-theme .skill-modern-box,
.reference-theme .pro-journey-card,
.reference-theme .feature-journey-card,
.reference-theme .card,
.reference-theme .skill-card,
.reference-theme .recommendation-modern-card {
  background: var(--theme-card-bg) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-text) !important;
}

.reference-theme .skill-modern-box,
.reference-theme .pro-journey-card,
.reference-theme .feature-journey-card {
  border-left-color: var(--ref-accent) !important;
}

.reference-theme .skill-modern-icon,
.reference-theme .feature-badge i,
.reference-theme .recommendation-accolades .text-primary {
  color: var(--ref-accent) !important;
}

.reference-theme .skill-modern-title,
.reference-theme .pro-journey-title,
.reference-theme .card .card-title,
.reference-theme .skill-card .fw-bold,
.reference-theme .skill-card h5,
.reference-theme .recommendation-header,
.reference-theme .recommendation-name,
.reference-theme #contact .section-title,
.reference-theme #contact h4,
.reference-theme #contact p,
.reference-theme #contact .form-label {
  color: var(--theme-text) !important;
}

.reference-theme .skill-modern-desc,
.reference-theme .pro-journey-desc,
.reference-theme .feature-desc,
.reference-theme .card .card-text,
.reference-theme #contact .contact-info-modern p,
.reference-theme .recommendation-connection,
.reference-theme .recommendation-connection strong {
  color: var(--theme-muted) !important;
}

.reference-theme .recommendation-description,
.reference-theme .recommendation-description span,
.reference-theme .recommendation-accolades,
.reference-theme .recommendation-accolades strong {
  color: var(--theme-muted-strong) !important;
}

.reference-theme .pro-journey-badge,
.reference-theme .feature-badge,
.reference-theme .badge.bg-primary,
.reference-theme .recommendation-meta .badge,
.reference-theme .modern-language-badge {
  background: rgba(var(--ref-accent-rgb), 0.16) !important;
  color: var(--ref-accent) !important;
  border-color: rgba(var(--ref-accent-rgb), 0.36) !important;
}

.reference-theme .modern-language-badge:hover {
  background: var(--theme-button-bg) !important;
  color: var(--theme-button-text) !important;
  border-color: transparent !important;
}

.reference-theme .modern-language-badge:hover i {
  color: var(--theme-button-text) !important;
}

.reference-theme .facts-gradient-bg {
  background: var(--theme-facts-bg) !important;
}

.reference-theme .card a:not(.btn),
.reference-theme .recommendation-relationship,
.reference-theme #contact .contact-info-modern h4 {
  color: var(--ref-accent) !important;
}

.reference-theme #contact {
  background: var(--theme-contact-bg) !important;
}

.reference-theme #contact .form-control {
  background: var(--theme-card-strong-bg) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-text) !important;
}

.reference-theme #contact .form-control:focus {
  border-color: var(--ref-accent) !important;
  box-shadow: 0 0 0 0.2rem rgba(var(--ref-accent-rgb), 0.14) !important;
}

.reference-theme #contact .contact-modern-form-white {
  background: var(--theme-card-bg) !important;
  border-color: var(--theme-border) !important;
}

.reference-theme .recommendation-meta .recommendation-date {
  background: rgba(var(--ref-secondary-rgb), 0.28) !important;
  color: var(--ref-accent-light) !important;
  border-color: rgba(var(--ref-secondary-rgb), 0.44) !important;
}

.reference-theme ::-webkit-scrollbar-track {
  background: var(--theme-bg) !important;
}

.reference-theme .st-section.slide-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.reference-theme .st-section.slide-section > .container {
  width: 100%;
}
.reference-theme #hero.hero.st-section.slide-section {
  min-height: 100vh;
  padding: 2rem 0;
}

@supports (-webkit-touch-callout: none) {
  .st-section {
    min-height: -webkit-fill-available;
  }
}
