/**
* Template Name: MinimalFolio
* Template URL: https://bootstrapmade.com/minimalfolio-bootstrap-portfolio-template/
* Updated: Aug 05 2025 with Bootstrap v5.3.7
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Quicksand", sans-serif;
  --heading-font: "Quicksand", sans-serif;
  --nav-font: "Quicksand", sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #555555; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #333333; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #000000; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
  --background-orb-one: rgba(91, 114, 255, 0.22);
  --background-orb-two: rgba(68, 196, 181, 0.16);
  --background-orb-three: rgba(246, 184, 91, 0.16);
  --background-grid-color: rgba(40, 51, 94, 0.09);
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #555555;  /* The default color of the main navmenu links */
  --nav-hover-color: #000000; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #fafafa; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #8f8f8f; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #000000; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #fafafa;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  position: relative;
  color: var(--default-color);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--background-orb-one), transparent 65%), transparent 32%),
    var(--background-color);
  background-attachment: fixed;
  font-family: var(--default-font);
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='5' fill='%23000000'/%3E%3C/svg%3E") 7 7, auto;
}

body > :not(#preloader) {
  transition: opacity 0.8s ease-out;
}

html.page-loading,
body.page-loading {
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.page-loading {
  width: 100%;
  touch-action: none;
}

/* Fully transparent outlined Hero CTA. */
.hero .btn-ghost {
  border: 1px solid color-mix(in srgb, var(--heading-color), transparent 42%);
  color: var(--heading-color);
  background: transparent !important;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--heading-color), transparent 93%),
    inset 0 0 0 1px color-mix(in srgb, #fff, transparent 68%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.hero .btn-ghost:hover,
.hero .btn-ghost:focus {
  border-color: var(--heading-color);
  color: var(--heading-color);
  background: transparent !important;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--heading-color), transparent 88%),
    inset 0 0 0 1px color-mix(in srgb, #fff, transparent 50%);
  transform: translateY(-2px);
}

body.dark-mode .hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.46);
  color: #f5f7ff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.dark-mode .hero .btn-ghost:hover,
body.dark-mode .hero .btn-ghost:focus {
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

body.page-loading > :not(#preloader) {
  opacity: 0;
}

body.page-loaded > :not(#preloader) {
  opacity: 1;
}

body::before,
body::after {
  position: fixed;
  pointer-events: none;
  content: "";
}

body::before {
  inset: -25%;
  z-index: 996;
  opacity: 1;
  background-image:
    radial-gradient(circle at 20% 25%, var(--background-orb-one), transparent 25%),
    radial-gradient(circle at 78% 22%, var(--background-orb-two), transparent 23%),
    radial-gradient(circle at 55% 78%, var(--background-orb-three), transparent 27%);
  background-size: 115% 115%, 125% 125%, 120% 120%;
  background-repeat: no-repeat;
  filter: blur(36px);
  transform: translate3d(0, 0, 0);
  animation: site-aurora-drift 20s ease-in-out infinite;
}

body::after {
  inset: 0;
  z-index: 996;
  opacity: 0.55;
  background-image:
    linear-gradient(var(--background-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--background-grid-color) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
  animation: site-mesh-drift 24s linear infinite;
}

body * {
  cursor: inherit;
}

body.dark-mode {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='5' fill='%23ffffff'/%3E%3C/svg%3E") 7 7, auto;
}

.hero .portrait-wrap,
.about .profile-figure {
  position: relative;
  z-index: 1000;
  isolation: isolate;
}

.hero .portrait-wrap .portrait-img,
.about .profile-figure .profile-photo {
  position: relative;
  z-index: 1;
}

.cursor-echo {
  position: fixed;
  z-index: 9999;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 1px solid var(--heading-color);
  border-radius: 50%;
  pointer-events: none;
  animation: cursor-echo 0.55s ease-out forwards;
}

.background-dots {
  position: fixed;
  z-index: 9998;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  pointer-events: none;
}

.background-dots span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--heading-color);
  animation: background-dot-expand 0.7s ease-out forwards;
}

.background-echo {
  position: fixed;
  z-index: 9998;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 1px solid var(--heading-color);
  border-radius: 50%;
  pointer-events: none;
  animation: background-echo 0.55s ease-out forwards;
}

.profile-firework {
  position: fixed;
  z-index: 1001;
  pointer-events: none;
}

.profile-firework::before {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--heading-color);
  content: "";
  animation: profile-firework-flash 0.35s ease-out forwards;
}

.profile-firework span {
  position: absolute;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--heading-color);
  box-shadow: 0 0 8px color-mix(in srgb, var(--heading-color), transparent 25%);
  animation: profile-firework-expand 0.8s cubic-bezier(0.15, 0.75, 0.35, 1) forwards;
}

@keyframes background-dot-expand {
  from {
    opacity: 0.9;
    transform: translate(0, 0) scale(0.7);
  }

  to {
    opacity: 0;
    transform: translate(var(--dot-x), var(--dot-y)) scale(0.2);
  }
}

@keyframes background-echo {
  from {
    opacity: 0.65;
    transform: scale(0.45);
  }

  to {
    opacity: 0;
    transform: scale(2.4);
  }
}

@keyframes cursor-echo {
  from {
    opacity: 0.85;
    transform: scale(0.35);
  }

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

@keyframes profile-firework-flash {
  from {
    opacity: 1;
    transform: scale(0.5);
  }

  to {
    opacity: 0;
    transform: scale(2.5);
  }
}

@keyframes profile-firework-expand {
  from {
    opacity: 1;
    transform: translate(0, 0) scale(0.4);
  }

  to {
    opacity: 0;
    transform: translate(var(--firework-x), var(--firework-y)) scale(0.15);
  }
}

@keyframes site-aurora-drift {
  0%,
  100% {
    background-position: 0% 0%, 100% 0%, 45% 100%;
    transform: translate3d(-2%, -1%, 0) scale(1);
  }

  50% {
    background-position: 100% 30%, 0% 100%, 70% 0%;
    transform: translate3d(2%, 2%, 0) scale(1.07);
  }
}

@keyframes site-mesh-drift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 72px 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body > :not(#preloader),
  #preloader,
  #preloader::before,
  #preloader::after,
  #preloader .loader-content,
  #preloader .loader-percent,
  #preloader .loader-bar-fill {
    transition: none;
    animation: none;
  }

  .cursor-echo,
  .background-dots,
  .background-echo,
  .profile-firework {
    animation: none;
    opacity: 0;
  }

  .background-dots span,
  .profile-firework::before,
  .profile-firework span,
  body::before,
  body::after,
  .header::before {
    animation: none;
  }
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: rgba(255, 255, 255, 0.58);
  position: fixed !important;
  top: 16px;
  left: 50%;
  width: min(1180px, calc(100% - 32px));
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  color: var(--default-color);
  background-color: var(--background-color);
  box-shadow: 0 12px 32px rgba(31, 42, 82, 0.1);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  padding: 10px 8px;
  transform: translateX(-50%);
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  z-index: 997;
}

.header::before {
  position: absolute;
  inset: -120% -20%;
  z-index: -1;
  opacity: 0.7;
  background: linear-gradient(115deg, transparent 35%, var(--background-orb-one), transparent 65%);
  content: "";
  animation: nav-highlight-drift 10s ease-in-out infinite;
}

.header .container-fluid {
  z-index: 1;
}

body.scrolled .header {
  --background-color: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 36px rgba(31, 42, 82, 0.16);
  transform: translateX(-50%) translateY(-4px);
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 32px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--heading-color);
}

@keyframes nav-highlight-drift {
  0%,
  100% {
    transform: translate3d(-12%, -4%, 0) rotate(-8deg);
  }

  50% {
    transform: translate3d(12%, 5%, 0) rotate(-8deg);
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu */
.mobile-nav-toggle {
  display: inline-flex !important;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--heading-color), transparent 78%);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-color) 72%, transparent);
  box-shadow: 0 8px 22px rgba(23, 31, 61, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0;
  color: var(--nav-color);
  position: fixed;
  top: 24px;
  right: 24px;
  font-size: 25px;
  line-height: 0;
  cursor: pointer;
  z-index: 998;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.mobile-nav-toggle:hover {
  color: var(--nav-hover-color);
  border-color: color-mix(in srgb, var(--heading-color), transparent 58%);
  transform: translateY(-2px);
}

.site-search-toggle,
.site-search-close {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--heading-color), transparent 82%);
  border-radius: 10px;
  color: var(--nav-color);
  background: color-mix(in srgb, var(--surface-color) 55%, transparent);
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.site-search-toggle:hover,
.site-search-close:hover {
  color: var(--heading-color);
  border-color: color-mix(in srgb, var(--heading-color), transparent 60%);
  background: color-mix(in srgb, var(--heading-color), transparent 94%);
  transform: translateY(-2px);
}

.navmenu {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -300px;
  z-index: 997;
  transition: 0.3s;
  width: 300px;
  overflow: hidden;
}

.navmenu ul {
  display: block;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  overflow-y: auto;
  transition: 0.3s;
  z-index: 998;
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-dropdown-color);
  padding: 10px 20px;
  font-family: var(--nav-font);
  font-size: 15px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  transition: 0.3s;
}

.navmenu a i,
.navmenu a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.navmenu a i:hover,
.navmenu a:focus i:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  color: var(--nav-dropdown-hover-color);
}

.navmenu .active i,
.navmenu .active:focus i {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: rotate(180deg);
}

.navmenu .dropdown ul {
  position: static;
  display: none;
  z-index: 99;
  padding: 10px 0;
  margin: 10px 20px;
  box-shadow: none;
  transition: all 0.5s ease-in-out;
}

.navmenu .dropdown>.dropdown-active {
  display: block;
  background-color: var(--nav-dropdown-background-color);
  border: 1px solid color-mix(in srgb, var(--nav-dropdown-color), transparent 90%);
}

.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active .mobile-nav-toggle {
  right: 18px;
  color: var(--nav-hover-color);
  background: color-mix(in srgb, var(--surface-color) 84%, transparent);
  font-size: 27px;
}

.mobile-nav-active .navmenu {
  position: fixed;
  overflow: hidden;
  top: 0;
  bottom: 0;
  right: 0;
  background: color-mix(in srgb, var(--nav-mobile-background-color) 78%, transparent);
  border-left: 1px solid color-mix(in srgb, var(--heading-color), transparent 78%);
  box-shadow: -16px 0 40px rgba(20, 26, 50, 0.16);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  transition: 0.3s;
}

@media (min-width: 1200px) {
  .mobile-nav-toggle {
    display: none !important;
  }

  .navmenu {
    position: static;
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    overflow: visible;
  }

  .navmenu ul {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow: visible;
    padding: 0;
  }

  .navmenu a,
  .navmenu a:focus {
    position: relative;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--nav-color);
    font-size: 0.9rem;
    font-weight: 600;
  }

  .navmenu a::after {
    position: absolute;
    right: 12px;
    bottom: 5px;
    left: 12px;
    height: 2px;
    border-radius: 999px;
    background: var(--heading-color);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--heading-color);
    background: color-mix(in srgb, var(--heading-color), transparent 93%);
  }

  .navmenu a:hover::after,
  .navmenu .active::after,
  .navmenu .active:focus::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

@media (max-width: 1199.98px) {
  .mobile-nav-toggle {
    display: inline-flex !important;
    width: auto;
    height: auto;
    min-width: 40px;
    min-height: 40px;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: static;
    font-size: clamp(1rem, 1.6vw, 1.3rem);
  }

  .navmenu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
    top: auto;
    right: auto;
    bottom: auto;
    width: auto;
    overflow: visible;
  }

  .navmenu ul {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    display: block;
    width: min(300px, calc(100vw - 32px));
    max-height: calc(100vh - 112px);
    padding: 10px;
    overflow-y: auto;
    border: 1px solid color-mix(in srgb, var(--heading-color), transparent 80%);
    border-radius: 16px;
    background: color-mix(in srgb, var(--nav-mobile-background-color) 84%, transparent);
    box-shadow: 0 18px 42px rgba(20, 26, 50, 0.18);
    backdrop-filter: blur(20px) saturate(145%);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }

  .navmenu a,
  .navmenu a:focus {
    min-height: 48px;
    margin-bottom: 4px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    background: color-mix(in srgb, var(--heading-color), transparent 92%);
  }

  .mobile-nav-active {
    overflow: initial;
  }

  .mobile-nav-active .mobile-nav-toggle {
    right: auto;
    background: color-mix(in srgb, var(--heading-color), transparent 94%);
    font-size: clamp(1rem, 1.6vw, 1.3rem);
  }

  .mobile-nav-active .navmenu {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .mobile-nav-active .navmenu ul {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
}

/*--------------------------------------------------------------
# Site Search
--------------------------------------------------------------*/
.site-search {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: grid;
  place-items: start center;
  padding: min(14vh, 120px) 20px 20px;
  background: rgba(12, 16, 31, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.site-search-panel {
  width: min(620px, 100%);
  max-height: min(680px, 76vh);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--heading-color), transparent 80%);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface-color) 88%, transparent);
  box-shadow: 0 24px 70px rgba(12, 16, 31, 0.26);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  transform: translateY(-12px) scale(0.98);
  transition: transform 0.25s ease;
}

body.search-open .site-search {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.search-open .site-search-panel {
  transform: translateY(0) scale(1);
}

.site-search-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.site-search-heading h2 {
  margin: 0;
  color: var(--heading-color);
  font-size: 1.25rem;
}

.site-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--heading-color), transparent 78%);
  border-radius: 12px;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  background: color-mix(in srgb, var(--background-color) 72%, transparent);
}

.site-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 13px 0;
  color: var(--default-color);
  background: transparent;
}

.site-search-message {
  margin: 16px 0 8px;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  font-size: 0.9rem;
}

.site-search-results {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-search-results a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--default-color);
  background: color-mix(in srgb, var(--heading-color), transparent 95%);
}

.site-search-results a:hover {
  color: var(--heading-color);
  background: color-mix(in srgb, var(--heading-color), transparent 90%);
}

.site-search-results strong {
  display: block;
  color: var(--heading-color);
  font-size: 0.96rem;
}

.site-search-results span {
  display: block;
  margin-top: 3px;
  color: color-mix(in srgb, var(--default-color), transparent 22%);
  font-size: 0.84rem;
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  padding: 40px 0;
  position: relative;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .social-links {
  margin-top: 20px;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin: 0 5px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.footer .credits {
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--background-orb-one), transparent 34%), transparent 28%),
    radial-gradient(circle at 80% 75%, color-mix(in srgb, var(--background-orb-two), transparent 38%), transparent 30%),
    var(--background-color);
  transition: all 0.6s ease-out;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#preloader::before {
  position: absolute;
  inset: -35%;
  opacity: 0.75;
  background:
    radial-gradient(circle at 25% 35%, var(--background-orb-one), transparent 20%),
    radial-gradient(circle at 75% 55%, var(--background-orb-three), transparent 23%);
  filter: blur(44px);
  content: "";
  animation: preloader-aurora 7s ease-in-out infinite alternate;
}

#preloader::after {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(var(--background-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--background-grid-color) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  content: "";
  animation: preloader-grid-drift 12s linear infinite;
}

#preloader.is-leaving {
  opacity: 0;
  visibility: hidden;
}

#preloader .loader-content {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100% - 48px));
  padding: 34px;
  border: 1px solid color-mix(in srgb, var(--heading-color), transparent 82%);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface-color) 58%, transparent);
  box-shadow: 0 20px 55px rgba(26, 35, 72, 0.13);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  animation: preloader-content-float 3s ease-in-out infinite;
}

#preloader .loader-welcome {
  display: block;
  margin: 0 0 18px;
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: clamp(0.95rem, 2.4vw, 1.12rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

#preloader .loader-page-status {
  margin: 0 0 14px;
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  font-weight: 400;
  line-height: 1.4;
  text-wrap: balance;
}

#preloader .loader-scripture {
  margin: 0 0 18px;
  padding: 0 10px;
  color: color-mix(in srgb, var(--default-color), transparent 8%);
}

#preloader .loader-scripture p {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
}

#preloader .loader-scripture cite {
  display: block;
  margin-top: 7px;
  color: color-mix(in srgb, var(--default-color), transparent 34%);
  font-family: var(--nav-font);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#preloader .loader-percent {
  display: block;
  margin-bottom: 18px;
  color: var(--heading-color);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  animation: preloader-percent-pulse 1.6s ease-in-out infinite;
}

#preloader .loader-bar {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
}

#preloader .loader-bar-fill {
  width: 1%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-color), var(--background-orb-one), var(--accent-color));
  background-size: 200% 100%;
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent-color), transparent 25%);
  transition: width 50ms linear;
  animation: preloader-bar-shimmer 1.8s linear infinite;
}

@keyframes preloader-aurora {
  from {
    transform: translate3d(-4%, -3%, 0) scale(1);
  }

  to {
    transform: translate3d(4%, 3%, 0) scale(1.1);
  }
}

@keyframes preloader-grid-drift {
  to {
    background-position: 64px 64px;
  }
}

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

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

@keyframes preloader-percent-pulse {
  50% {
    opacity: 0.55;
    letter-spacing: 0.28em;
  }
}

@keyframes preloader-bar-shimmer {
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #preloader::before,
  #preloader::after,
  #preloader .loader-content,
  #preloader .loader-percent,
  #preloader .loader-bar-fill {
    animation: none;
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 1;
  left: 15px;
  bottom: 15px;
  z-index: 99999;
  border: 1px solid var(--accent-color);
  background-color: color-mix(in srgb, var(--surface-color) 76%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

body.page-ready .scroll-top {
  visibility: visible;
}

.scroll-top i {
  font-size: 24px;
  color: var(--accent-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.scroll-top:hover i {
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  text-align: center;
  padding: 20px 0;
}

.page-title .breadcrumbs {
  margin-bottom: 1.5rem;
}

.page-title .breadcrumbs .breadcrumb {
  justify-content: center;
  margin: 0;
  padding: 0;
  background: none;
}

.page-title .breadcrumbs .breadcrumb .breadcrumb-item {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.page-title .breadcrumbs .breadcrumb .breadcrumb-item.active {
  color: var(--accent-color);
}

.page-title .breadcrumbs .breadcrumb .breadcrumb-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 300;
}

.page-title .breadcrumbs .breadcrumb .breadcrumb-item a:hover {
  color: var(--accent-color);
}

.page-title .breadcrumbs .breadcrumb .breadcrumb-item a i {
  font-size: 0.9rem;
  margin-right: 0.2rem;
}

.page-title .breadcrumbs .breadcrumb .breadcrumb-item+.breadcrumb-item::before {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.page-title .title-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 0;
}

.page-title .title-wrapper h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
  color: var(--heading-color);
}

.page-title .title-wrapper p {
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 0;
  line-height: 1.6;
}

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

  .page-title .title-wrapper p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .page-title .title-wrapper h1 {
    font-size: 1.75rem;
  }
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: color-mix(in srgb, var(--background-color) 94%, transparent);
  padding: 60px 0;
  overflow: clip;
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 15px;
}

.section-title p {
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 300;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 60px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-bottom: 120px;
  /* Typographic system for hero */
  /* CTAs */
  /* Meta row */
  /* Portrait block */
  /* Gentle section visual calm */
  /* Spacing rhythm */
  /* Subtle parallax simulation for large screens */
  /* Responsive refinements */
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: -12%;
  z-index: -2;
  opacity: 0.2;
  background-image:
    radial-gradient(circle, var(--accent-color) 1.5px, transparent 1.8px),
    linear-gradient(90deg, transparent 49.7%, color-mix(in srgb, var(--accent-color), transparent 82%) 50%, transparent 50.3%),
    linear-gradient(0deg, transparent 49.7%, color-mix(in srgb, var(--accent-color), transparent 82%) 50%, transparent 50.3%);
  background-size: 56px 56px, 112px 112px, 112px 112px;
  animation: hero-network-drift 20s linear infinite;
}

.hero::after {
  top: -30%;
  left: -30%;
  z-index: -1;
  width: 160%;
  height: 160%;
  opacity: 0.13;
  background: repeating-linear-gradient(115deg, transparent 0 150px, var(--accent-color) 151px 152px, transparent 153px 300px);
  transform: rotate(-8deg);
  animation: hero-line-sweep 16s ease-in-out infinite alternate;
}

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

body.page-loaded .hero {
  animation: hero-content-fade-in 1.2s ease-out both;
}

@keyframes hero-content-fade-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes hero-network-drift {
  from {
    background-position: 0 0, 0 0, 0 0;
  }

  to {
    background-position: 56px 56px, 112px 0, 0 112px;
  }
}

@keyframes hero-line-sweep {
  from {
    transform: translate3d(-3%, -2%, 0) rotate(-8deg);
  }

  to {
    transform: translate3d(3%, 2%, 0) rotate(-8deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after {
    animation: none;
  }

  body.page-loaded .hero {
    animation: none;
  }
}

.hero::before,
.hero::after {
  display: none;
}

.hero .intro .eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-color);
  flex: 0 0 auto;
}

.hero .intro .eyebrow .text {
  font-family: var(--nav-font);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.hero .intro .display-heading {
  font-family: var(--heading-font);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.hero .intro .lead {
  font-size: 18px;
  line-height: 1.8;
  color: color-mix(in srgb, var(--default-color), transparent 10%);
  max-width: 58ch;
}

.hero .btn-ghost {
  --_border: color-mix(in srgb, var(--default-color), transparent 80%);
  --_hover: color-mix(in srgb, var(--accent-color), transparent 85%);
  border: 1px solid var(--_border);
  color: var(--default-color);
  background-color: var(--surface-color);
  padding: 10px 18px;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
}

.hero .btn-ghost:hover,
.hero .btn-ghost:focus {
  border-color: var(--accent-color);
  color: var(--accent-color);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent-color), transparent 90%);
  outline: none;
}

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

.hero .link-underline {
  position: relative;
  color: var(--accent-color);
  font-weight: 400;
  padding-bottom: 2px;
  transition: color 0.3s ease-in-out;
}

.hero .link-underline:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: color-mix(in srgb, var(--accent-color), transparent 40%);
  transform: scaleX(0.6);
  transform-origin: left;
  transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
}

.hero .link-underline:hover,
.hero .link-underline:focus {
  color: color-mix(in srgb, var(--accent-color), transparent 10%);
  outline: none;
  border-radius: 4px;
}

.hero .link-underline:hover:after,
.hero .link-underline:focus:after {
  transform: scaleX(1);
  background: var(--accent-color);
}

.hero .meta .meta-item {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.hero .meta .meta-item i {
  color: var(--accent-color);
}

.hero .portrait-wrap .portrait-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  box-shadow: 0 20px 60px color-mix(in srgb, var(--default-color), transparent 90%);
  transform: translateZ(0);
  transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

.hero .portrait-wrap:hover .portrait-img {
  transform: scale(1.015);
  box-shadow: 0 28px 80px color-mix(in srgb, var(--accent-color), transparent 90%);
}

.hero .portrait-wrap .badge.note {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-color), var(--surface-color) 85%);
  color: var(--default-color);
  font-size: 13px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent-color), transparent 88%);
}

.hero .portrait-wrap .badge.note i {
  color: var(--accent-color);
}

section .hero {
  background: var(--background-color);
}

.hero .cta-group {
  gap: 16px;
}

@media (min-width: 992px) {
  .hero .portrait-wrap {
    will-change: transform;
  }
}

@media (max-width: 992px) {
  .hero .intro .lead {
    font-size: 17px;
  }

  .hero .portrait-wrap .badge.note {
    transform: scale(0.95);
  }
}

@media (max-width: 576px) {
  .hero .intro .display-heading {
    font-size: 34px;
  }

  .hero .cta-group {
    flex-direction: column;
    align-items: flex-start;
  }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about {
  /* Layout rhythm */
  --maxw: 1200px;
  --space-1: 16px;
  --space-2: 24px;
  --space-3: 40px;
  --space-4: 64px;
  --radius-s: 6px;
  --shadow-soft: 0 10px 30px color-mix(in srgb, var(--default-color), transparent 92%);
}

.about .container {
  max-width: var(--maxw);
}

.about .intro-wrap {
  margin-bottom: var(--space-4);
}

.about .intro-content .eyebrow {
  display: inline-block;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: var(--space-1);
}

.about .intro-content .headline {
  font-family: var(--heading-font);
  font-weight: 300;
  line-height: 1.2;
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 var(--space-2) 0;
}

.about .intro-content .lead {
  font-size: 18px;
  line-height: 1.8;
  color: color-mix(in srgb, var(--default-color), transparent 10%);
  margin-bottom: var(--space-2);
}

.about .intro-content p {
  line-height: 1.8;
  margin-bottom: var(--space-2);
  color: color-mix(in srgb, var(--default-color), transparent 5%);
}

.about .intro-content .cta-group {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  margin-top: var(--space-2);
}

.about .intro-content .cta-group .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-s);
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  transition: 0.3s ease-in-out;
}

.about .intro-content .cta-group .btn-ghost:hover,
.about .intro-content .cta-group .btn-ghost:focus {
  color: var(--contrast-color);
  background: var(--accent-color);
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.about .intro-content .cta-group .link-underline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  color: var(--accent-color);
  padding-bottom: 4px;
  transition: 0.3s ease-in-out;
}

.about .intro-content .cta-group .link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: color-mix(in srgb, var(--accent-color), transparent 40%);
  transform: scaleX(0.4);
  transform-origin: left;
  transition: 0.3s ease-in-out;
}

.about .intro-content .cta-group .link-underline:hover,
.about .intro-content .cta-group .link-underline:focus {
  color: color-mix(in srgb, var(--accent-color), transparent 10%);
  outline: none;
}

.about .intro-content .cta-group .link-underline:hover::after,
.about .intro-content .cta-group .link-underline:focus::after {
  transform: scaleX(1);
}

.about .profile-figure {
  margin: 0;
}

.about .profile-figure .profile-photo {
  width: 88%;
  max-width: 440px;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

.about .profile-figure .profile-caption {
  margin-top: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.about .profile-figure .profile-caption .signature {
  max-width: 160px;
  filter: grayscale(100%);
  opacity: 0.85;
}

.about .profile-figure .profile-caption .meta {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.about .profile-figure .profile-caption .meta .funfact {
  font-size: 13px;
  margin-top: 4px;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
}

.about .profile-figure:hover .profile-photo {
  transform: translateY(-4px);
}

.about .skills-wrap {
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.about .skills-wrap .skill-item {
  padding: var(--space-2);
  border-radius: var(--radius-s);
  transition: 0.3s ease-in-out;
  background: color-mix(in srgb, var(--surface-color), var(--accent-color) 2%);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  height: 100%;
}

.about .skills-wrap .skill-item i {
  font-size: 24px;
  color: var(--accent-color);
  margin-bottom: var(--space-1);
  display: inline-block;
}

.about .skills-wrap .skill-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 500;
}

.about .skills-wrap .skill-item p {
  margin: 0;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.about .skills-wrap .skill-item:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 60%);
  box-shadow: var(--shadow-soft);
}

.about .journey-wrap {
  margin-bottom: var(--space-4);
}

.about .journey-wrap .timeline-item {
  position: relative;
  padding-left: 26px;
}

.about .journey-wrap .timeline-item time {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 45%);
  margin-bottom: 6px;
}

.about .journey-wrap .timeline-item h4 {
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 6px;
}

.about .journey-wrap .timeline-item p {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin: 0;
}

.about .journey-wrap .timeline-item .dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-color), transparent 80%);
}

.about .personal-quote {
  margin: var(--space-3) 0 var(--space-4);
  padding: var(--space-2) 0;
  text-align: center;
}

.about .personal-quote p {
  font-family: var(--heading-font);
  font-weight: 300;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.5;
  color: color-mix(in srgb, var(--default-color), transparent 5%);
  margin: 0 auto;
  max-width: 800px;
}

.about .facts-wrap .fact-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  background: var(--surface-color);
  color: color-mix(in srgb, var(--default-color), transparent 10%);
  transition: 0.3s ease-in-out;
}

.about .facts-wrap .fact-pill i {
  color: var(--accent-color);
}

.about .facts-wrap .fact-pill span {
  font-size: 14px;
}

.about .facts-wrap .fact-pill:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 60%);
  box-shadow: var(--shadow-soft);
}

.about .facts-wrap .fact-pill:focus-within {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 70%);
}

@media (max-width: 992px) {
  .about .profile-figure {
    text-align: center !important;
  }

  .about .profile-figure .profile-photo {
    width: 72%;
  }

  .about .intro-content .cta-group {
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .about .profile-figure .profile-photo {
    width: 100%;
  }

  .about .skills-wrap {
    margin-top: var(--space-3);
  }
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
.skills {
  padding-top: 60px;
  padding-bottom: 60px;
  /* Design tokens for this section */
  --radius: 8px;
  --muted: color-mix(in srgb, var(--default-color), transparent 65%);
  --soft-border: color-mix(in srgb, var(--default-color), transparent 85%);
  --soft-shadow: 0 8px 24px color-mix(in srgb, var(--default-color), transparent 94%);
  --accent-soft: color-mix(in srgb, var(--accent-color), var(--background-color) 85%);
  /* Focus styles for accessibility */
  /* Subtle divider behavior via spacing rhythm */
  /* Swiper compatibility snippet (kept global for any future slider inside) */
  /* Responsive tweaks */
}

.skills .skill-block {
  padding: 22px 6px 6px 6px;
  border-radius: var(--radius);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  position: relative;
}

.skills .skill-block:hover {
  transform: translateY(-2px);
}

.skills .skill-block header .skill-title {
  font-size: 18px;
  font-weight: 400;
  margin: 0;
}

.skills .skill-block header .skill-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 80%);
}

.skills .skill-block .skill-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.skills .skill-block .progress.slim {
  height: 6px;
  background-color: color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 999px;
  overflow: hidden;
}

.skills .skill-block .progress.slim .progress-bar {
  width: 0%;
  background: linear-gradient(90deg, var(--accent-color), color-mix(in srgb, var(--accent-color), transparent 20%));
  transition: width 0.6s ease-in-out;
}

.skills .soft-card {
  background: var(--surface-color);
  border: 1px solid var(--soft-border);
  box-shadow: var(--soft-shadow);
}

.skills .soft-card .mini-head {
  font-weight: 400;
  letter-spacing: 0.3px;
  font-size: 16px;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.skills .soft-card .tool-list li {
  padding: 8px 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--default-color), transparent 88%);
}

.skills .soft-card .tool-list li:last-child {
  border-bottom: 0;
}

.skills .soft-card .tool-list li i {
  color: var(--accent-color);
  font-size: 18px;
  line-height: 1;
}

.skills .soft-card .tool-list li span {
  color: var(--default-color);
}

.skills .note {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.skills a:focus-visible,
.skills button:focus-visible,
.skills .skill-block:focus-visible,
.skills .soft-card:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
  border-radius: calc(var(--radius) - 2px);
}

.skills .alt-grid {
  margin-top: 60px;
}

.skills .swiper-wrapper {
  height: auto !important;
}

@media (max-width: 992px) {
  .skills .intro-wrap .headline {
    font-size: clamp(26px, 4.2vw, 36px);
  }
}

@media (max-width: 768px) {
  .skills .soft-card {
    padding: 24px !important;
  }

  .skills .skill-block {
    padding-top: 18px;
  }
}

/*--------------------------------------------------------------
# Resume Section
--------------------------------------------------------------*/
.resume .resume-navigation {
  gap: 4rem;
  margin-bottom: 5rem;
  padding: 2rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border: none;
}

@media (max-width: 992px) {
  .resume .resume-navigation {
    padding: 0;
  }
}

.resume .resume-navigation .nav-item .nav-link {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  padding: 1rem 1.5rem;
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
  color: var(--default-color);
}

.resume .resume-navigation .nav-item .nav-link .nav-number {
  font-size: 0.875rem;
  font-weight: 300;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  transition: color 0.3s ease;
}

.resume .resume-navigation .nav-item .nav-link .nav-label {
  font-size: 1rem;
  font-weight: 400;
  color: var(--default-color);
  transition: color 0.3s ease;
}

.resume .resume-navigation .nav-item .nav-link::after {
  content: "";
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  transition: transform 0.3s ease;
}

.resume .resume-navigation .nav-item .nav-link:hover,
.resume .resume-navigation .nav-item .nav-link.active {
  background: none;
  border: none;
  box-shadow: none;
}

.resume .resume-navigation .nav-item .nav-link:hover .nav-number,
.resume .resume-navigation .nav-item .nav-link.active .nav-number {
  color: var(--accent-color);
}

.resume .resume-navigation .nav-item .nav-link:hover .nav-label,
.resume .resume-navigation .nav-item .nav-link.active .nav-label {
  color: var(--accent-color);
}

.resume .resume-navigation .nav-item .nav-link:hover::after,
.resume .resume-navigation .nav-item .nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.resume .resume-navigation .nav-item .nav-link:focus {
  outline: none;
  box-shadow: none;
}

@media (max-width: 992px) {
  .resume .resume-navigation .nav-item .nav-link::after {
    display: none;
  }
}

.resume .resume-content .tab-pane {
  min-height: 400px;
}

.resume .resume-content .section-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.resume .resume-content .section-intro h2 {
  font-size: 2.25rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.resume .resume-content .section-intro p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-weight: 300;
}

.resume .experience-grid {
  max-width: 800px;
  margin: 0 auto;
}

.resume .experience-grid .experience-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
}

.resume .experience-grid .experience-item:last-child {
  border-bottom: none;
}

.resume .experience-grid .experience-item .item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.resume .experience-grid .experience-item .item-header .position-info h3 {
  font-size: 1.375rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.resume .experience-grid .experience-item .item-header .position-info .company {
  font-size: 1rem;
  color: var(--accent-color);
  font-weight: 400;
}

.resume .experience-grid .experience-item .item-header .period {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-weight: 300;
  white-space: nowrap;
  margin-left: 2rem;
}

.resume .experience-grid .experience-item .item-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin: 0;
  font-weight: 300;
}

.resume .education-list {
  max-width: 700px;
  margin: 0 auto;
}

.resume .education-list .education-entry {
  display: flex;
  gap: 3rem;
  padding: 2rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
}

.resume .education-list .education-entry:last-child {
  border-bottom: none;
}

.resume .education-list .education-entry .degree-year {
  flex-shrink: 0;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--accent-color);
  width: 80px;
}

.resume .education-list .education-entry .degree-details {
  flex: 1;
}

.resume .education-list .education-entry .degree-details h3 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.resume .education-list .education-entry .degree-details .institution {
  font-size: 1rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-bottom: 1rem;
  font-weight: 300;
}

.resume .education-list .education-entry .degree-details p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  margin: 0;
  font-weight: 300;
}

.resume .skills-categories {
  max-width: 800px;
  margin: 0 auto;
}

.resume .skills-categories .skill-category {
  margin-bottom: 3rem;
}

.resume .skills-categories .skill-category:last-child {
  margin-bottom: 0;
}

.resume .skills-categories .skill-category h3 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  text-align: center;
}

.resume .skills-categories .skill-category .skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.resume .skills-categories .skill-category .skill-tags .skill-tag {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--default-color);
  border-radius: 0;
  transition: all 0.3s ease;
}

.resume .skills-categories .skill-category .skill-tags .skill-tag:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

@media (max-width: 992px) {
  .resume .resume-navigation {
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .resume .resume-navigation .nav-item .nav-link {
    padding: 0.75rem 1rem;
  }

  .resume .resume-navigation .nav-item .nav-link .nav-label {
    font-size: 0.9rem;
  }

  .resume .section-intro {
    margin-bottom: 3rem;
  }

  .resume .section-intro h2 {
    font-size: 1.875rem;
  }

  .resume .section-intro p {
    font-size: 1rem;
  }

  .resume .experience-grid .experience-item .item-header {
    flex-direction: column;
    gap: 1rem;
  }

  .resume .experience-grid .experience-item .item-header .period {
    margin-left: 0;
  }

  .resume .education-list .education-entry {
    gap: 2rem;
  }

  .resume .education-list .education-entry .degree-year {
    width: 60px;
  }
}

@media (max-width: 768px) {
  .resume .resume-navigation {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .resume .resume-navigation .nav-item {
    width: 100%;
  }

  .resume .resume-navigation .nav-item .nav-link {
    justify-content: center;
    width: 100%;
  }

  .resume .education-list .education-entry {
    flex-direction: column;
    gap: 0.5rem;
  }

  .resume .skills-categories .skill-category .skill-tags {
    gap: 0.75rem;
  }

  .resume .skills-categories .skill-category .skill-tags .skill-tag {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .resume .section-intro h2 {
    font-size: 1.625rem;
  }

  .resume .experience-grid .experience-item {
    padding: 2rem 0;
  }

  .resume .experience-grid .experience-item .item-header .position-info h3 {
    font-size: 1.25rem;
  }

  .resume .skills-categories .skill-category .skill-tags .skill-tag {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .resume .resume-navigation .nav-item .nav-link {
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }

  .resume .resume-navigation .nav-item .nav-link .nav-number {
    font-size: 0.75rem;
  }

  .resume .resume-navigation .nav-item .nav-link .nav-label {
    font-size: 0.85rem;
  }
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-filters-wrapper {
  text-align: center;
  margin-bottom: 80px;
}

.portfolio .portfolio-filters {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding: 0;
  margin: 0;
  list-style: none;
  position: relative;
}

.portfolio .portfolio-filters::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
}

.portfolio .portfolio-filters li {
  position: relative;
  cursor: pointer;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 400;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  transition: all 0.4s ease-out;
  letter-spacing: 0.5px;
}

.portfolio .portfolio-filters li::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all 0.4s ease-out;
  transform: translateX(-50%);
}

.portfolio .portfolio-filters li:hover {
  color: var(--default-color);
}

.portfolio .portfolio-filters li.filter-active {
  color: var(--default-color);
}

.portfolio .portfolio-filters li.filter-active::after {
  width: 100%;
}

@media (max-width: 768px) {
  .portfolio .portfolio-filters {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
}

.portfolio .portfolio-card {
  background: var(--surface-color);
  transition: all 0.4s ease-out;
  overflow: hidden;
}

.portfolio .portfolio-card:hover {
  transform: translateY(-8px);
}

.portfolio .portfolio-card:hover .image-container img {
  transform: scale(1.05);
}

.portfolio .portfolio-card:hover .overlay {
  opacity: 1;
  visibility: visible;
}

.portfolio .portfolio-card:hover .content h3 {
  color: var(--accent-color);
}

.portfolio .image-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  border-radius: 8px;
}

.portfolio .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease-out;
}

.portfolio .image-container .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: color-mix(in srgb, var(--accent-color), transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease-out;
  backdrop-filter: blur(2px);
}

.portfolio .image-container .overlay-content {
  display: flex;
  gap: 20px;
  transform: translateY(20px);
  transition: transform 0.4s ease-out 0.1s;
}

.portfolio-card:hover .portfolio .image-container .overlay-content {
  transform: translateY(0);
}

.portfolio .image-container .overlay-content a {
  width: 50px;
  height: 50px;
  background: var(--surface-color);
  color: var(--heading-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 18px;
}

.portfolio .image-container .overlay-content a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  transform: scale(1.1);
}

.portfolio .content {
  padding: 30px 0;
  text-align: center;
}

.portfolio .content h3 {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 8px;
  transition: color 0.3s ease;
  letter-spacing: 0.5px;
}

.portfolio .content p {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  letter-spacing: 0.3px;
}

@media (min-width: 992px) {
  .portfolio .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .portfolio .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
  }
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials p {
  line-height: 1.7;
  color: var(--default-color);
}

.testimonials .testimonial {
  max-width: 500px;
  text-align: center;
  margin-bottom: 30px;
}

.testimonials .testimonial .name {
  font-size: 18px;
  color: var(--heading-color);
}

.testimonials .testimonial .img-wrap img {
  margin: 0 auto;
  width: 70px;
  height: 70px;
  border-radius: 50%;
}

.testimonials .swiper-pagination {
  position: absolute;
  bottom: 0px;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  margin: 0 5px;
  background-color: color-mix(in srgb, var(--default-color) 65%, transparent);
  opacity: 0.3;
}

.testimonials .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: var(--accent-color);
  opacity: 1;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services {
  padding: 100px 0 80px;
}

.services .service-grid {
  gap: 60px 0;
}

.services .service-item {
  padding: 0;
  text-align: left;
  transition: all 0.4s ease;
}

.services .service-item:hover {
  transform: translateY(-8px);
}

.services .service-item:hover .service-icon {
  transform: scale(1.05);
}

.services .service-item:hover .service-link a {
  color: var(--accent-color);
}

.services .service-item:hover .service-link a i {
  transform: translateX(5px);
}

.services .service-item .service-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  transition: all 0.4s ease;
}

.services .service-item .service-icon i {
  font-size: 32px;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.services .service-item h3 {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 24px;
  line-height: 1.3;
}

.services .service-item h3 a {
  color: var(--heading-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.services .service-item h3 a:hover {
  color: var(--accent-color);
}

.services .service-item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--default-color);
  margin-bottom: 32px;
  opacity: 0.85;
}

.services .service-item .service-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--default-color);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.services .service-item .service-link a span {
  position: relative;
}

.services .service-item .service-link a i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.services .service-item .service-link a:hover {
  color: var(--accent-color);
}

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

  .services .service-intro {
    font-size: 16px;
    margin-bottom: 60px;
  }

  .services .service-grid {
    gap: 50px 0;
  }

  .services .service-item .service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 30px;
  }

  .services .service-item .service-icon i {
    font-size: 28px;
  }

  .services .service-item h3 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .services .service-item p {
    margin-bottom: 28px;
  }
}

/*--------------------------------------------------------------
# Faq Section
--------------------------------------------------------------*/
.faq .faq-item {
  margin-bottom: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq .faq-item:last-child {
  border-bottom: none;
}

.faq .faq-item.faq-active .faq-header .faq-number {
  color: var(--accent-color);
  font-weight: 500;
}

.faq .faq-item.faq-active .faq-header h4 {
  color: var(--accent-color);
}

.faq .faq-item.faq-active .faq-header .faq-toggle {
  color: var(--accent-color);
  transform: rotate(0deg);
}

.faq .faq-item.faq-active .faq-header .faq-toggle i.bi-plus {
  opacity: 0;
  transform: rotate(90deg);
}

.faq .faq-item.faq-active .faq-header .faq-toggle i.bi-dash {
  opacity: 1;
  transform: rotate(0deg);
}

.faq .faq-item.faq-active .faq-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
}

.faq .faq-item:not(.faq-active) .faq-header .faq-toggle i.bi-plus {
  opacity: 1;
  transform: rotate(0deg);
}

.faq .faq-item:not(.faq-active) .faq-header .faq-toggle i.bi-dash {
  opacity: 0;
  transform: rotate(-90deg);
}

.faq .faq-item .faq-header {
  display: flex;
  align-items: center;
  padding: 40px 0;
  cursor: pointer;
  gap: 0;
  transition: all 0.3s ease;
}

.faq .faq-item .faq-header:hover .faq-number {
  transform: scale(1.1);
}

.faq .faq-item .faq-header:hover .faq-toggle {
  transform: scale(1.1);
}

.faq .faq-item .faq-header .faq-number {
  flex-shrink: 0;
  width: 80px;
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 300;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  transition: all 0.3s ease;
  letter-spacing: -0.02em;
}

.faq .faq-item .faq-header h4 {
  flex: 1;
  margin: 0;
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--heading-color);
  transition: all 0.3s ease;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-right: 20px;
}

.faq .faq-item .faq-header .faq-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 18px;
  transition: all 0.3s ease;
  position: relative;
}

.faq .faq-item .faq-header .faq-toggle i {
  position: absolute;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq .faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  visibility: hidden;
  opacity: 0;
}

.faq .faq-item .faq-content .content-inner {
  padding: 0 80px 40px 80px;
  overflow: hidden;
}

.faq .faq-item .faq-content .content-inner p {
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  line-height: 1.8;
  font-size: 1rem;
  font-weight: 300;
}

@media (max-width: 768px) {
  .faq .faq-item .faq-header {
    padding: 30px 0;
  }

  .faq .faq-item .faq-header .faq-number {
    width: 60px;
    font-size: 1rem;
  }

  .faq .faq-item .faq-header h4 {
    font-size: 1.1rem;
    margin-right: 15px;
  }

  .faq .faq-item .faq-header .faq-toggle {
    width: 20px;
    height: 20px;
    font-size: 16px;
  }

  .faq .faq-item .faq-content .content-inner {
    padding: 0 60px 30px 60px;
  }

  .faq .faq-item .faq-content .content-inner p {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .faq .faq-item .faq-header {
    padding: 25px 0;
  }

  .faq .faq-item .faq-header .faq-number {
    width: 50px;
    font-size: 0.9rem;
  }

  .faq .faq-item .faq-header h4 {
    font-size: 1rem;
    margin-right: 10px;
  }

  .faq .faq-item .faq-content .content-inner {
    padding: 0 50px 25px 50px;
  }

  .faq .faq-item .faq-content .content-inner p {
    font-size: 0.9rem;
  }
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .contact-form-container {
  padding: 60px 0;
}

.contact .contact-form-container .form-intro {
  margin-bottom: 60px;
}

.contact .contact-form-container .form-intro h2 {
  font-size: 36px;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--heading-color);
  letter-spacing: -0.5px;
}

@media (max-width: 768px) {
  .contact .contact-form-container .form-intro h2 {
    font-size: 28px;
  }
}

.contact .contact-form-container .form-intro p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--default-color);
  margin-bottom: 0;
  opacity: 0.85;
}

.contact .contact-form-container .contact-form .row {
  margin-bottom: 40px;
}

.contact .contact-form-container .contact-form .row:last-of-type {
  margin-bottom: 0;
}

.contact .contact-form-container .contact-form .form-field {
  position: relative;
  margin-bottom: 40px;
}

.contact .contact-form-container .contact-form .form-field.message-field {
  margin-bottom: 50px;
}

.contact .contact-form-container .contact-form .form-field .field-label {
  position: absolute;
  top: -10px;
  left: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--heading-color);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.8;
}

.contact .contact-form-container .contact-form .form-field .form-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  background: transparent;
  padding: 20px 0 15px 0;
  font-size: 16px;
  color: var(--default-color);
  transition: all 0.3s ease;
}

.contact .contact-form-container .contact-form .form-field .form-input:focus {
  outline: none;
  border-bottom-color: var(--accent-color);
  background: transparent;
}

.contact .contact-form-container .contact-form .form-field .form-input::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  opacity: 1;
}

.contact .contact-form-container .contact-form .form-field .message-input {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  padding-top: 25px;
}

.contact .contact-form-container .contact-form .send-button {
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 18px 40px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.contact .contact-form-container .contact-form .send-button .button-arrow {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.contact .contact-form-container .contact-form .send-button:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.contact .contact-form-container .contact-form .send-button:hover .button-arrow {
  transform: translateX(5px);
}

.contact .contact-sidebar {
  background: color-mix(in srgb, var(--accent-color), transparent 97%);
  height: 100%;
  padding: 60px 40px;
}

.contact .contact-sidebar .contact-header {
  margin-bottom: 60px;
}

.contact .contact-sidebar .contact-header h3 {
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 20px;
  color: var(--heading-color);
  letter-spacing: -0.3px;
}

.contact .contact-sidebar .contact-header p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--default-color);
  margin-bottom: 0;
  opacity: 0.85;
}

.contact .contact-sidebar .contact-methods {
  margin-bottom: 60px;
}

.contact .contact-sidebar .contact-method {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}

.contact .contact-sidebar .contact-method:last-child {
  margin-bottom: 0;
}

.contact .contact-sidebar .contact-method .contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
}

.contact .contact-sidebar .contact-method .contact-icon i {
  font-size: 20px;
}

.contact .contact-sidebar .contact-method .contact-details {
  flex: 1;
}

.contact .contact-sidebar .contact-method .contact-details .method-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.contact .contact-sidebar .contact-method .contact-details p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--default-color);
  margin-bottom: 0;
}

.contact .contact-sidebar .connect-section {
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  padding-top: 40px;
}

.contact .contact-sidebar .connect-section .connect-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 20px;
}

.contact .contact-sidebar .connect-section .social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.contact .contact-sidebar .connect-section .social-links .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  color: var(--default-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact .contact-sidebar .connect-section .social-links .social-link i {
  font-size: 16px;
}

.contact .contact-sidebar .connect-section .social-links .social-link:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .contact .contact-form-container {
    padding: 40px 0;
  }

  .contact .contact-sidebar {
    padding: 40px 30px;
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .contact .contact-form-container .form-intro {
    margin-bottom: 40px;
    text-align: center;
  }

  .contact .contact-form-container .contact-form .row {
    margin-bottom: 20px;
  }

  .contact .contact-form-container .contact-form .form-field {
    margin-bottom: 30px;
  }

  .contact .contact-sidebar {
    padding: 30px 25px;
  }

  .contact .contact-sidebar .contact-header,
  .contact .contact-sidebar .contact-methods {
    margin-bottom: 40px;
  }

  .contact .contact-sidebar .contact-method {
    margin-bottom: 30px;
  }
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details {
  --section-spacing: 5rem;
  --content-spacing: 4rem;
  --subtle-border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
}

.portfolio-details .project-hero {
  margin-bottom: var(--section-spacing);
}

.portfolio-details .project-hero .hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.portfolio-details .project-hero .hero-content .project-category {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-weight: 500;
}

.portfolio-details .project-hero .hero-content .project-title {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--heading-color);
  letter-spacing: -0.02em;
}

.portfolio-details .project-hero .hero-content .project-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  font-weight: 400;
  margin-bottom: 0;
}

.portfolio-details .project-hero .project-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-top: 3rem;
  border-top: var(--subtle-border);
}

.portfolio-details .project-hero .project-meta-grid .meta-column {
  text-align: center;
}

.portfolio-details .project-hero .project-meta-grid .meta-column .meta-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin-bottom: 0.5rem;
}

.portfolio-details .project-hero .project-meta-grid .meta-column .meta-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--heading-color);
}

.portfolio-details .visual-showcase {
  margin-bottom: var(--section-spacing);
}

.portfolio-details .visual-showcase .main-visual {
  border-radius: 8px;
  overflow: hidden;
}

.portfolio-details .visual-showcase .main-visual .swiper-wrapper {
  height: auto !important;
}

.portfolio-details .visual-showcase .main-visual .swiper-slide img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.portfolio-details .visual-showcase .main-visual .swiper-button-next,
.portfolio-details .visual-showcase .main-visual .swiper-button-prev {
  width: 50px;
  height: 50px;
  background-color: color-mix(in srgb, var(--contrast-color), transparent 10%);
  border-radius: 50%;
  color: var(--heading-color);
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.portfolio-details .visual-showcase .main-visual .swiper-button-next::after,
.portfolio-details .visual-showcase .main-visual .swiper-button-prev::after {
  font-size: 1rem;
  font-weight: 600;
}

.portfolio-details .visual-showcase .main-visual .swiper-button-next:hover,
.portfolio-details .visual-showcase .main-visual .swiper-button-prev:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: scale(1.1);
}

.portfolio-details .visual-showcase .main-visual .swiper-button-prev {
  left: 30px;
}

.portfolio-details .visual-showcase .main-visual .swiper-button-next {
  right: 30px;
}

.portfolio-details .content-section {
  margin-bottom: var(--section-spacing);
}

.portfolio-details .content-section .project-overview {
  text-align: center;
}

.portfolio-details .content-section .project-overview h2 {
  font-size: 2.75rem;
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--heading-color);
  letter-spacing: -0.02em;
}

.portfolio-details .content-section .project-overview .overview-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
  margin-bottom: 4rem;
}

.portfolio-details .content-section .project-overview .challenge-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  text-align: left;
}

.portfolio-details .content-section .project-overview .challenge-solution .challenge-block h3,
.portfolio-details .content-section .project-overview .challenge-solution .solution-block h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

.portfolio-details .content-section .project-overview .challenge-solution .challenge-block p,
.portfolio-details .content-section .project-overview .challenge-solution .solution-block p {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  line-height: 1.7;
}

.portfolio-details .metrics-showcase {
  padding: 4rem 0;
  background-color: color-mix(in srgb, var(--surface-color), transparent 50%);
  margin: var(--section-spacing) -15px;
  border-radius: 8px;
}

.portfolio-details .metrics-showcase .metrics-content h3 {
  font-size: 2.25rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

.portfolio-details .metrics-showcase .metrics-content p {
  font-size: 1rem;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  line-height: 1.7;
}

.portfolio-details .metrics-showcase .metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.portfolio-details .metrics-showcase .metrics-grid .metric-item {
  text-align: center;
  padding: 1.5rem;
}

.portfolio-details .metrics-showcase .metrics-grid .metric-item .metric-number {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.portfolio-details .metrics-showcase .metrics-grid .metric-item .metric-label {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  line-height: 1.4;
}

.portfolio-details .technology-stack {
  margin-bottom: var(--section-spacing);
  padding-top: 3rem;
  border-top: var(--subtle-border);
}

.portfolio-details .technology-stack h3 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--heading-color);
  margin-bottom: 0;
}

.portfolio-details .technology-stack .tech-categories {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.portfolio-details .technology-stack .tech-categories .tech-category .category-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--heading-color);
  margin-bottom: 1rem;
}

.portfolio-details .technology-stack .tech-categories .tech-category .tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.portfolio-details .technology-stack .tech-categories .tech-category .tech-list .tech-item {
  padding: 0.5rem 1rem;
  background-color: color-mix(in srgb, var(--accent-color), transparent 92%);
  color: var(--accent-color);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.portfolio-details .technology-stack .tech-categories .tech-category .tech-list .tech-item:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
  transform: translateY(-2px);
}

.portfolio-details .process-gallery {
  margin-bottom: var(--section-spacing);
}

.portfolio-details .process-gallery h3 {
  font-size: 2.25rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--heading-color);
}

.portfolio-details .process-gallery .gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.portfolio-details .process-gallery .gallery-masonry .gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.portfolio-details .process-gallery .gallery-masonry .gallery-item.large {
  grid-row: span 2;
}

.portfolio-details .process-gallery .gallery-masonry .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.portfolio-details .process-gallery .gallery-masonry .gallery-item .gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  font-weight: 500;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.portfolio-details .process-gallery .gallery-masonry .gallery-item:hover {
  transform: translateY(-5px);
}

.portfolio-details .process-gallery .gallery-masonry .gallery-item:hover img {
  transform: scale(1.05);
}

.portfolio-details .process-gallery .gallery-masonry .gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.portfolio-details .key-features-section {
  margin-bottom: var(--section-spacing);
}

.portfolio-details .key-features-section .features-intro {
  padding-right: 2rem;
}

.portfolio-details .key-features-section .features-intro h3 {
  font-size: 2.25rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

.portfolio-details .key-features-section .features-intro p {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  line-height: 1.7;
}

.portfolio-details .key-features-section .features-list .feature-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.portfolio-details .key-features-section .features-list .feature-row:last-child {
  margin-bottom: 0;
}

.portfolio-details .key-features-section .features-list .feature-row .feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.portfolio-details .key-features-section .features-list .feature-row .feature-icon i {
  font-size: 1.2rem;
  color: var(--accent-color);
}

.portfolio-details .key-features-section .features-list .feature-row .feature-content h4 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--heading-color);
}

.portfolio-details .key-features-section .features-list .feature-row .feature-content p {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  line-height: 1.7;
  margin-bottom: 0;
}

.portfolio-details .project-footer {
  padding-top: 3rem;
  border-top: var(--subtle-border);
}

.portfolio-details .project-footer .footer-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portfolio-details .project-footer .footer-navigation .nav-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all 0.3s ease;
}

.portfolio-details .project-footer .footer-navigation .nav-link.prev-project,
.portfolio-details .project-footer .footer-navigation .nav-link.next-project {
  color: var(--heading-color);
}

.portfolio-details .project-footer .footer-navigation .nav-link.prev-project .nav-direction,
.portfolio-details .project-footer .footer-navigation .nav-link.next-project .nav-direction {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin-bottom: 0.25rem;
}

.portfolio-details .project-footer .footer-navigation .nav-link.prev-project .nav-title,
.portfolio-details .project-footer .footer-navigation .nav-link.next-project .nav-title {
  font-size: 1.1rem;
  font-weight: 500;
}

.portfolio-details .project-footer .footer-navigation .nav-link.prev-project:hover,
.portfolio-details .project-footer .footer-navigation .nav-link.next-project:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
}

.portfolio-details .project-footer .footer-navigation .nav-link.next-project {
  text-align: right;
}

.portfolio-details .project-footer .footer-navigation .nav-link.all-projects {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 25px;
  color: var(--heading-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

.portfolio-details .project-footer .footer-navigation .nav-link.all-projects i {
  font-size: 1rem;
}

.portfolio-details .project-footer .footer-navigation .nav-link.all-projects:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-3px);
}

@media (max-width: 991px) {
  .portfolio-details .project-hero .hero-content .project-title {
    font-size: 3rem;
  }

  .portfolio-details .project-hero .project-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-details .content-section .project-overview .challenge-solution {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .portfolio-details .content-section .project-overview h2 {
    font-size: 2.25rem;
  }

  .portfolio-details .metrics-showcase .metrics-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portfolio-details .key-features-section .features-intro {
    margin-bottom: 2rem;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .portfolio-details {
    --section-spacing: 3rem;
  }

  .portfolio-details .project-hero .hero-content .project-title {
    font-size: 2.5rem;
  }

  .portfolio-details .project-hero .project-meta-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portfolio-details .visual-showcase .main-visual .swiper-slide img {
    height: 400px;
  }

  .portfolio-details .visual-showcase .main-visual .swiper-button-next,
  .portfolio-details .visual-showcase .main-visual .swiper-button-prev {
    width: 40px;
    height: 40px;
  }

  .portfolio-details .visual-showcase .main-visual .swiper-button-next::after,
  .portfolio-details .visual-showcase .main-visual .swiper-button-prev::after {
    font-size: 0.9rem;
  }

  .portfolio-details .visual-showcase .main-visual .swiper-button-prev {
    left: 15px;
  }

  .portfolio-details .visual-showcase .main-visual .swiper-button-next {
    right: 15px;
  }

  .portfolio-details .content-section .project-overview h2 {
    font-size: 2rem;
  }

  .portfolio-details .project-footer .footer-navigation {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .portfolio-details .project-footer .footer-navigation .nav-link.prev-project,
  .portfolio-details .project-footer .footer-navigation .nav-link.next-project {
    text-align: center;
  }

  .portfolio-details .project-footer .footer-navigation .nav-link.all-projects {
    order: -1;
  }

  .portfolio-details .technology-stack .tech-categories .tech-category .tech-list .tech-item {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 576px) {
  .portfolio-details .gallery-masonry {
    grid-template-columns: 1fr !important;
  }

  .portfolio-details .gallery-masonry .gallery-item.large {
    grid-row: span 1;
  }

  .portfolio-details .metrics-showcase {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .service-hero {
  margin-bottom: 4rem;
}

.service-details .service-hero .service-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-details .service-hero .service-meta .service-category {
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.service-details .service-hero .service-meta .reading-time {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 0.9rem;
  font-weight: 300;
}

.service-details .service-hero h1 {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--heading-color);
  letter-spacing: -0.02em;
}

.service-details .service-hero .service-description {
  font-size: 1.25rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  font-weight: 300;
  margin: 0;
}

.service-details .service-visual {
  margin-bottom: 4rem;
  overflow: hidden;
  border-radius: 4px;
}

.service-details .service-visual img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-details .service-visual img:hover {
  transform: scale(1.02);
}

.service-details .service-narrative {
  margin-bottom: 5rem;
}

.service-details .service-narrative h3 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--heading-color);
  letter-spacing: -0.01em;
}

.service-details .service-narrative p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--default-color);
  font-weight: 300;
}

.service-details .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.service-details .benefits-grid .benefit-card {
  text-align: center;
  padding: 0;
}

.service-details .benefits-grid .benefit-card .benefit-icon {
  width: 60px;
  height: 60px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.service-details .benefits-grid .benefit-card .benefit-icon i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.service-details .benefits-grid .benefit-card:hover .benefit-icon {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.service-details .benefits-grid .benefit-card:hover .benefit-icon i {
  color: var(--contrast-color);
}

.service-details .benefits-grid .benefit-card h4 {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

.service-details .benefits-grid .benefit-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 0;
}

.service-details .timeline-section {
  margin-bottom: 4rem;
}

.service-details .timeline-section h3 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 3rem;
  color: var(--heading-color);
  letter-spacing: -0.01em;
}

.service-details .timeline-section .timeline {
  position: relative;
}

.service-details .timeline-section .timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 85%);
}

.service-details .timeline-section .timeline .timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 3rem;
}

.service-details .timeline-section .timeline .timeline-item:last-child {
  margin-bottom: 0;
}

.service-details .timeline-section .timeline .timeline-item .timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background: var(--surface-color);
  border: 2px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.service-details .timeline-section .timeline .timeline-item .timeline-marker span {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--accent-color);
}

.service-details .timeline-section .timeline .timeline-item .timeline-content h4 {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--heading-color);
}

.service-details .timeline-section .timeline .timeline-item .timeline-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  color: var(--default-color);
}

.service-details .timeline-section .timeline .timeline-item .timeline-content small {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 0.9rem;
  font-weight: 500;
}

.service-details .service-sidebar {
  padding-left: 2rem;
}

@media (max-width: 992px) {
  .service-details .service-sidebar {
    padding-left: 0;
    margin-top: 4rem;
  }
}

.service-details .overview-card,
.service-details .success-story,
.service-details .consultation-form {
  background: var(--surface-color);
  border-radius: 8px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 93%);
  transition: all 0.3s ease;
}

.service-details .overview-card:hover,
.service-details .success-story:hover,
.service-details .consultation-form:hover {
  border-color: color-mix(in srgb, var(--accent-color), transparent 80%);
}

.service-details .overview-card .overview-header h4 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--heading-color);
}

.service-details .overview-card .overview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.service-details .overview-card .overview-stats .stat-item {
  text-align: center;
}

.service-details .overview-card .overview-stats .stat-item .stat-number {
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.service-details .overview-card .overview-stats .stat-item .stat-label {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-details .overview-card .overview-details {
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  padding-top: 1.5rem;
}

.service-details .overview-card .overview-details .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.service-details .overview-card .overview-details .detail-row:last-child {
  margin-bottom: 0;
}

.service-details .overview-card .overview-details .detail-row .detail-label {
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-weight: 400;
}

.service-details .overview-card .overview-details .detail-row .detail-value {
  font-size: 0.95rem;
  color: var(--heading-color);
  font-weight: 500;
}

.service-details .overview-card .portfolio-link {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid color-mix(in srgb, var(--heading-color), transparent 72%);
  border-radius: 6px;
  color: var(--heading-color);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.service-details .overview-card .portfolio-link:hover {
  border-color: var(--accent-color);
  color: var(--contrast-color);
  background: var(--accent-color);
  transform: translateY(-2px);
}

.service-details .overview-card .portfolio-link i {
  font-size: 0.95rem;
}

.service-details .success-story .story-quote p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  font-style: italic;
  margin-bottom: 2rem;
}

.service-details .success-story .story-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-details .success-story .story-author .author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.service-details .success-story .story-author .author-details h5 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--heading-color);
}

.service-details .success-story .story-author .author-details span {
  display: block;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 0.25rem;
}

.service-details .success-story .story-author .author-details small {
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.service-details .success-story .story-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.service-details .success-story .story-metrics .metric {
  text-align: center;
}

.service-details .success-story .story-metrics .metric .metric-value {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent-color);
  display: block;
  margin-bottom: 0.25rem;
}

.service-details .success-story .story-metrics .metric .metric-label {
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-details .consultation-form .form-header {
  margin-bottom: 2rem;
}

.service-details .consultation-form .form-header h4 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--heading-color);
}

.service-details .consultation-form .form-header p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 0;
}

.service-details .consultation-form .form-group {
  margin-bottom: 1.5rem;
}

.service-details .consultation-form .form-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 4px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: transparent;
}

.service-details .consultation-form .form-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 90%);
}

.service-details .consultation-form input[type=text],
.service-details .consultation-form input[type=email],
.service-details .consultation-form input[type=tel],
.service-details .consultation-form select,
.service-details .consultation-form textarea {
  color: var(--default-color);
  background-color: var(--surface-color);
  font-size: 14px;
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.service-details .consultation-form input[type=text]:focus,
.service-details .consultation-form input[type=email]:focus,
.service-details .consultation-form input[type=tel]:focus,
.service-details .consultation-form select:focus,
.service-details .consultation-form textarea:focus {
  border-color: var(--accent-color);
}

.service-details .consultation-form input[type=text]::placeholder,
.service-details .consultation-form input[type=email]::placeholder,
.service-details .consultation-form input[type=tel]::placeholder,
.service-details .consultation-form select::placeholder,
.service-details .consultation-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.service-details .consultation-form .btn-consultation {
  background: var(--accent-color);
  color: var(--contrast-color);
  border: none;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  text-transform: none;
}

.service-details .consultation-form .btn-consultation:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 10%);
  transform: translateY(-1px);
}

.service-details .consultation-form .btn-consultation i {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .service-details .service-hero h1 {
    font-size: 2.5rem;
  }

  .service-details .service-hero .service-description {
    font-size: 1.1rem;
  }

  .service-details .service-visual img {
    height: 250px;
  }

  .service-details .benefits-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-details .timeline-section .timeline::before {
    left: 20px;
  }

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

  .service-details .timeline-section .timeline .timeline-item .timeline-marker {
    width: 40px;
    height: 40px;
  }

  .service-details .timeline-section .timeline .timeline-item .timeline-marker span {
    font-size: 1rem;
  }

  .service-details .overview-card .overview-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/*--------------------------------------------------------------
# Starter Section Section
--------------------------------------------------------------*/
.starter-section {
  /* Add your styles here */
}

/*--------------------------------------------------------------
# Theme Toggle
--------------------------------------------------------------*/
.theme-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 998;
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--heading-color), transparent 65%);
  border-radius: 50%;
  color: var(--heading-color);
  background: var(--surface-color);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: color 0.3s, background-color 0.3s, border-color 0.3s, transform 0.3s;
}

.theme-toggle:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-3px);
}

body.dark-mode {
  --background-color: #101010;
  --default-color: #d7d7d7;
  --heading-color: #f5f5f5;
  --accent-color: #ffffff;
  --surface-color: #1d1d1d;
  --contrast-color: #101010;
  --nav-color: #d7d7d7;
  --nav-hover-color: #ffffff;
  --nav-mobile-background-color: #181818;
  --nav-dropdown-background-color: #1d1d1d;
  --nav-dropdown-color: #d7d7d7;
  --nav-dropdown-hover-color: #ffffff;
  --background-orb-one: rgba(96, 117, 255, 0.28);
  --background-orb-two: rgba(46, 205, 180, 0.18);
  --background-orb-three: rgba(234, 129, 205, 0.16);
  --background-grid-color: rgba(224, 232, 255, 0.11);
}

body.dark-mode .light-background {
  --background-color: #181818;
  --surface-color: #222222;
}

body.dark-mode .header {
  --background-color: rgba(20, 24, 40, 0.64);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

body.dark-mode.scrolled .header {
  --background-color: rgba(20, 24, 40, 0.82);
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .theme-toggle:hover {
  color: #101010;
}

@media (max-width: 575.98px) {
  .theme-toggle {
    right: 16px;
    bottom: 16px;
  }
}

/*--------------------------------------------------------------
# Lumen Orientale Liquid-glass Navigation
--------------------------------------------------------------*/
.mobile-search-item {
  display: none;
}

.header {
  --nav-glass: rgba(255, 255, 255, 0.46);
  --nav-border: rgba(255, 255, 255, 0.76);
  --nav-ink: #1f2937;
  --nav-highlight: rgba(255, 255, 255, 0.38);
  padding: 10px 8px;
  border-color: var(--nav-border);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.08) 48%, rgba(150, 220, 255, 0.14)),
    var(--nav-glass);
  box-shadow:
    0 16px 42px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -1px 0 rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(24px) saturate(180%) contrast(105%);
  backdrop-filter: blur(24px) saturate(180%) contrast(105%);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.header::before {
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  opacity: 0.65;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.52) 50%, transparent 65%);
  background-position: 125% 0;
  background-size: 250% 100%;
  clip-path: inset(0 round 18px);
  filter: blur(8px);
  animation: liquid-glass-sheen 7s linear infinite;
  pointer-events: none;
}

.header::after {
  position: absolute;
  right: 7%;
  bottom: -16px;
  z-index: 0;
  width: 190px;
  height: 65px;
  border-radius: 50%;
  opacity: 0.5;
  background: radial-gradient(ellipse, rgba(118, 210, 255, 0.32), transparent 68%);
  filter: blur(7px);
  content: "";
  animation: liquid-glass-orb 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.header .container-fluid {
  position: relative;
  z-index: 1;
}

@keyframes liquid-glass-sheen {
  from { background-position: 125% 0; }
  to { background-position: -125% 0; }
}

@keyframes liquid-glass-orb {
  from { transform: translateX(-35px) scale(0.85); }
  to { transform: translateX(30px) scale(1.15); }
}

body.scrolled .header {
  --nav-glass: rgba(255, 255, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.12) 52%, rgba(150, 220, 255, 0.16)),
    var(--nav-glass);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.17);
}

.header .logo h1,
.navmenu a,
.navmenu a:focus,
.mobile-nav-toggle,
.site-search-toggle {
  color: var(--nav-ink);
}

.header .logo h1 {
  font-weight: 700;
}

.site-search-toggle,
.mobile-nav-toggle {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.site-search-toggle:hover,
.mobile-nav-toggle:hover,
.mobile-nav-active .mobile-nav-toggle {
  color: var(--nav-ink);
  border-color: rgba(255, 255, 255, 0.5);
  background: var(--nav-highlight);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 6px 16px rgba(15, 23, 42, 0.1);
}

@media (min-width: 1200px) {
  .navmenu a,
  .navmenu a:focus {
    margin: 2px;
    padding: 0.7rem 0.85rem;
    color: var(--nav-ink);
    transition: color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  }

  .navmenu a::after {
    right: 0.85rem;
    bottom: 0.42rem;
    left: 0.85rem;
    background: currentColor;
  }

  .navmenu a:hover,
  .navmenu a:focus,
  .navmenu .active,
  .navmenu .active:focus {
    color: #111827;
    background: var(--nav-highlight);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 5px 16px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
  }
}

body.dark-mode .header,
body.dark-mode.scrolled .header {
  --nav-glass: rgba(9, 16, 30, 0.48);
  --nav-border: rgba(255, 255, 255, 0.24);
  --nav-ink: #f9fafb;
  --nav-highlight: rgba(255, 255, 255, 0.13);
  border-color: var(--nav-border);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 46%, rgba(79, 180, 255, 0.12)),
    var(--nav-glass);
}

body.dark-mode .navmenu a:hover,
body.dark-mode .navmenu a:focus,
body.dark-mode .navmenu .active,
body.dark-mode .navmenu .active:focus {
  color: #fff;
  background: var(--nav-highlight);
}

@media (max-width: 1199.98px) {
  .site-search-toggle-desktop {
    display: none;
  }

  .mobile-search-item {
    display: block;
  }

  .navmenu .site-search-toggle-mobile {
    position: static;
    display: flex;
    width: 100%;
    height: auto;
    min-height: 48px;
    justify-content: flex-start;
    gap: 11px;
    margin: 0 0 8px;
    padding: 12px 14px;
    border-color: var(--nav-border);
    border-radius: 10px;
    color: var(--nav-ink);
    background: var(--nav-highlight);
    font-family: var(--nav-font);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
  }

  .navmenu .site-search-toggle-mobile:hover,
  .navmenu .site-search-toggle-mobile:focus-visible {
    color: var(--nav-ink);
    background: rgba(255, 255, 255, 0.3);
    transform: none;
  }

  body.dark-mode .navmenu .site-search-toggle-mobile:hover,
  body.dark-mode .navmenu .site-search-toggle-mobile:focus-visible {
    background: rgba(255, 255, 255, 0.18);
  }

  .navmenu ul {
    border-color: var(--nav-border);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 14px 30px rgba(15, 23, 42, 0.12);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    backdrop-filter: blur(26px) saturate(180%);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-ink);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-ink);
    background: var(--nav-highlight);
  }

  body.dark-mode .navmenu ul {
    background: rgba(9, 16, 30, 0.72);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header::before,
  .header::after {
    animation: none;
  }
}

/* Keep the hero introduction clear of the floating navigation on phones. */
@media (max-width: 767.98px) {
  .hero {
    min-height: auto;
    align-items: flex-start;
    padding-top: 132px;
    padding-bottom: 72px;
  }

  .hero .intro .display-heading {
    max-width: 12ch;
    margin-bottom: 18px !important;
    color: var(--heading-color);
    font-size: clamp(36px, 11vw, 46px);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.035em;
    text-wrap: balance;
    text-shadow: 0 2px 18px color-mix(in srgb, var(--background-color), transparent 28%);
  }

  .hero .intro .eyebrow .text {
    color: color-mix(in srgb, var(--default-color), transparent 12%);
    font-weight: 600;
    line-height: 1.5;
  }
}

/*--------------------------------------------------------------
# Shared Lumen Orientale / Regina Sinarum Dynamic Background
--------------------------------------------------------------*/
body::before,
body::after {
  display: none;
}

.dynamic-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(var(--background-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--background-grid-color) 1px, transparent 1px),
    linear-gradient(145deg, #fbfcff 0%, #eef4f8 48%, #f5f1fa 100%);
  background-size: 76px 76px, 76px 76px, auto;
  animation: dynamic-background-grid 27s linear infinite;
}

.dynamic-background::before,
.dynamic-background::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.dynamic-background::before {
  z-index: 1;
  opacity: 0.32;
  background-image: radial-gradient(circle, var(--accent-color) 1.15px, transparent 1.65px);
  background-size: 76px 76px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
  animation: dynamic-background-dots 19s linear infinite;
}

.dynamic-background::after {
  z-index: 2;
  background: radial-gradient(circle at center, transparent 22%, rgba(222, 229, 239, 0.38) 100%);
}

.dynamic-background-orb {
  position: absolute;
  display: block;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 68%);
  border-radius: 50%;
  opacity: 0.58;
  filter: blur(54px);
  will-change: transform;
}

.dynamic-background-orb::before {
  position: absolute;
  inset: 14%;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.36), transparent 68%);
  content: "";
  filter: blur(20px);
}

.dynamic-background-orb-one {
  top: -12%;
  left: -9%;
  width: 44vw;
  height: 44vw;
  background: var(--background-orb-one);
  animation: dynamic-background-orb-one 20s ease-in-out infinite alternate;
}

.dynamic-background-orb-two {
  top: 30%;
  right: -13%;
  width: 48vw;
  height: 48vw;
  background: var(--background-orb-two);
  animation: dynamic-background-orb-two 25s ease-in-out infinite alternate;
}

.dynamic-background-orb-three {
  bottom: -18%;
  left: 24%;
  width: 42vw;
  height: 42vw;
  background: var(--background-orb-three);
  animation: dynamic-background-orb-three 23s ease-in-out infinite alternate;
}

body.dark-mode .dynamic-background {
  background:
    linear-gradient(var(--background-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--background-grid-color) 1px, transparent 1px),
    linear-gradient(145deg, #070911 0%, #111522 48%, #091419 100%);
  background-size: 76px 76px, 76px 76px, auto;
}

body.dark-mode .dynamic-background::before {
  opacity: 0.24;
  background-image: radial-gradient(circle, #e7ecff 1.1px, transparent 1.6px);
}

body.dark-mode .dynamic-background::after {
  background: radial-gradient(circle at center, transparent 18%, rgba(2, 6, 14, 0.52) 100%);
}

.main,
.footer {
  position: relative;
  z-index: 1;
}

.main > section,
.main > .section {
  background-color: color-mix(in srgb, var(--background-color) 86%, transparent);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.main > .hero {
  background-color: color-mix(in srgb, var(--background-color) 70%, transparent);
}

.footer {
  background-color: color-mix(in srgb, var(--background-color) 88%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

@keyframes dynamic-background-grid {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 76px 76px, -76px 76px, 0 0; }
}

@keyframes dynamic-background-dots {
  0% { background-position: 0 0; opacity: 0.22; }
  50% { opacity: 0.42; }
  100% { background-position: 76px -76px; opacity: 0.22; }
}

@keyframes dynamic-background-orb-one {
  from { transform: translate3d(-5vw, -2vh, 0) scale(0.9); }
  to { transform: translate3d(25vw, 21vh, 0) scale(1.16); }
}

@keyframes dynamic-background-orb-two {
  from { transform: translate3d(5vw, -10vh, 0) scale(1.08); }
  to { transform: translate3d(-26vw, 23vh, 0) scale(0.86); }
}

@keyframes dynamic-background-orb-three {
  from { transform: translate3d(-12vw, 8vh, 0) scale(0.88); }
  to { transform: translate3d(21vw, -25vh, 0) scale(1.12); }
}

@media (max-width: 767.98px) {
  .dynamic-background-orb {
    width: 78vw;
    height: 78vw;
    filter: blur(46px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dynamic-background,
  .dynamic-background::before,
  .dynamic-background-orb {
    animation: none;
  }
}

/* Transparent Resume tabs and tab panels. */
.resume .resume-navigation,
.resume .resume-navigation .nav-link,
.resume .resume-navigation .nav-link:hover,
.resume .resume-navigation .nav-link.active,
.resume .resume-content,
.resume .resume-content .tab-pane,
.resume .experience-grid,
.resume .experience-grid .experience-item,
.resume .education-list,
.resume .education-list .education-entry,
.resume .skills-categories,
.resume .skills-categories .skill-category,
.resume .skills-categories .skill-tag {
  background-color: transparent !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

/* Scattered animated lines and endpoint dots. */
.ambient-lines {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.ambient-lines span {
  --line-length: clamp(90px, 14vw, 220px);
  --line-angle: 18deg;
  --line-delay: 0s;
  --line-duration: 17s;
  position: absolute;
  width: var(--line-length);
  height: 1px;
  opacity: 0.3;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent-color), transparent 38%), transparent);
  transform: rotate(var(--line-angle));
  transform-origin: center;
  animation: ambient-line-drift var(--line-duration) ease-in-out var(--line-delay) infinite alternate;
}

.ambient-lines span::before,
.ambient-lines span::after {
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 25%);
  box-shadow: 0 0 12px color-mix(in srgb, var(--background-orb-two), transparent 20%);
  content: "";
  transform: translateY(-50%);
}

.ambient-lines span::before { left: 8%; }
.ambient-lines span::after { right: 8%; }

.ambient-lines span:nth-child(1) { top: 12%; left: 5%; --line-angle: 21deg; --line-duration: 18s; }
.ambient-lines span:nth-child(2) { top: 24%; right: 8%; --line-length: clamp(70px, 11vw, 170px); --line-angle: -34deg; --line-delay: -7s; --line-duration: 23s; }
.ambient-lines span:nth-child(3) { top: 43%; left: 18%; --line-length: clamp(110px, 18vw, 270px); --line-angle: 8deg; --line-delay: -11s; --line-duration: 27s; }
.ambient-lines span:nth-child(4) { top: 57%; right: 4%; --line-angle: 48deg; --line-delay: -3s; --line-duration: 19s; }
.ambient-lines span:nth-child(5) { top: 70%; left: 7%; --line-length: clamp(80px, 12vw, 190px); --line-angle: -19deg; --line-delay: -14s; --line-duration: 25s; }
.ambient-lines span:nth-child(6) { top: 82%; right: 18%; --line-length: clamp(100px, 16vw, 240px); --line-angle: 31deg; --line-delay: -5s; --line-duration: 21s; }
.ambient-lines span:nth-child(7) { top: 34%; left: 52%; --line-length: clamp(60px, 9vw, 140px); --line-angle: 67deg; --line-delay: -9s; --line-duration: 24s; }
.ambient-lines span:nth-child(8) { top: 91%; left: 38%; --line-angle: -42deg; --line-delay: -16s; --line-duration: 29s; }

.loader-ambient-lines {
  z-index: 0;
}

#preloader .loader-ambient-lines span {
  opacity: 0.42;
  background: linear-gradient(90deg, transparent, rgba(154, 237, 226, 0.68), transparent);
}

#preloader .loader-ambient-lines span::before,
#preloader .loader-ambient-lines span::after {
  background: #bffff5;
  box-shadow: 0 0 12px rgba(83, 222, 204, 0.9), 0 0 24px rgba(83, 139, 230, 0.45);
}

@keyframes ambient-line-drift {
  0% {
    opacity: 0.14;
    transform: translate3d(-18px, -12px, 0) rotate(var(--line-angle)) scaleX(0.82);
  }

  50% {
    opacity: 0.42;
  }

  100% {
    opacity: 0.2;
    transform: translate3d(28px, 20px, 0) rotate(calc(var(--line-angle) + 9deg)) scaleX(1.08);
  }
}

@media (max-width: 767.98px) {
  .ambient-lines span:nth-child(3),
  .ambient-lines span:nth-child(7) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-lines span {
    animation: none;
  }
}

/* Let the animated canvas remain visible through all website content. */
.main > section,
.main > .section,
.main > .light-background,
.main > .dark-background,
.footer {
  background-color: transparent !important;
  background-image: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.main .card,
.main .soft-card,
.main .service-item,
.main .portfolio-card,
.main .contact-form-container,
.main .contact-sidebar,
.main .resume-navigation,
.main .skill-item,
.main .fact-pill {
  background-color: color-mix(in srgb, var(--surface-color) 42%, transparent) !important;
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  backdrop-filter: blur(12px) saturate(125%);
}

.main input,
.main textarea,
.main select {
  background-color: color-mix(in srgb, var(--surface-color) 30%, transparent) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

body.dark-mode .main .card,
body.dark-mode .main .soft-card,
body.dark-mode .main .service-item,
body.dark-mode .main .portfolio-card,
body.dark-mode .main .contact-form-container,
body.dark-mode .main .contact-sidebar,
body.dark-mode .main .resume-navigation,
body.dark-mode .main .skill-item,
body.dark-mode .main .fact-pill {
  background-color: rgba(18, 22, 29, 0.38) !important;
}

body.dark-mode .main input,
body.dark-mode .main textarea,
body.dark-mode .main select {
  background-color: rgba(18, 22, 29, 0.3) !important;
}

/* Lumen-inspired cinematic loading screen. */
#preloader {
  isolation: isolate;
  background:
    linear-gradient(rgba(82, 173, 166, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 173, 166, 0.055) 1px, transparent 1px),
    linear-gradient(145deg, #03060b, #0b131d 48%, #071416);
  background-size: 72px 72px, 72px 72px, auto;
  animation: loader-background-grid 18s linear infinite;
  transition: opacity 0.8s ease, visibility 0.8s ease, filter 0.8s ease;
}

#preloader.is-leaving {
  filter: blur(10px);
}

#preloader::before {
  inset: 0;
  z-index: -2;
  opacity: 0.36;
  background-image: radial-gradient(circle, rgba(190, 245, 238, 0.7) 1.2px, transparent 1.7px);
  background-size: 72px 72px;
  filter: none;
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 74%);
  mask-image: radial-gradient(circle at center, black, transparent 74%);
  animation: loader-background-dots 13s linear infinite;
}

#preloader::after {
  z-index: -1;
  opacity: 1;
  background: radial-gradient(circle at center, transparent 18%, rgba(1, 4, 10, 0.58) 100%);
  animation: none;
}

#preloader .loader-aurora {
  position: absolute;
  inset: -35%;
  z-index: -1;
  opacity: 0.72;
  background:
    radial-gradient(circle at 22% 35%, rgba(55, 215, 194, 0.48), transparent 25%),
    radial-gradient(circle at 72% 28%, rgba(67, 117, 224, 0.38), transparent 24%),
    radial-gradient(circle at 58% 76%, rgba(155, 91, 208, 0.3), transparent 27%);
  filter: blur(34px);
  animation: loader-aurora-drift 9s ease-in-out infinite alternate;
}

#preloader .loader-content {
  display: flex;
  width: min(520px, calc(100% - 40px));
  padding: 38px clamp(24px, 6vw, 52px);
  flex-direction: column;
  align-items: center;
  border-color: rgba(190, 245, 238, 0.18);
  border-radius: 28px;
  color: #f4fffd;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 54%),
    rgba(7, 18, 27, 0.48);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  backdrop-filter: blur(24px) saturate(155%);
  animation: preloader-content-float 3.2s ease-in-out infinite;
}

#preloader .loader-emblem {
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  margin-bottom: 1.6rem;
  place-items: center;
}

#preloader .loader-ring {
  position: absolute;
  border-radius: 50%;
}

#preloader .loader-ring-outer {
  inset: 0;
  border: 1px solid rgba(190, 245, 238, 0.25);
  border-top-color: rgba(190, 245, 238, 0.95);
  border-right-color: rgba(91, 165, 255, 0.58);
  box-shadow: 0 0 30px rgba(76, 204, 191, 0.14), inset 0 0 24px rgba(76, 204, 191, 0.08);
  animation: loader-ring-spin 5.5s linear infinite;
}

#preloader .loader-ring-inner {
  inset: 20px;
  border: 1px dashed rgba(218, 251, 246, 0.42);
  animation: loader-ring-spin-reverse 8s linear infinite;
}

#preloader .loader-orbit-dot {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #c8fff7;
  box-shadow: 0 0 15px #64d8ca, 0 0 30px rgba(100, 216, 202, 0.72);
  transform-origin: 4px 72px;
  animation: loader-orbit 3.7s linear infinite;
}

#preloader .loader-mark {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid rgba(218, 251, 246, 0.25);
  border-radius: 50%;
  color: #edfffc;
  background: radial-gradient(circle, rgba(80, 202, 188, 0.2), rgba(10, 27, 36, 0.34));
  box-shadow: inset 0 0 25px rgba(95, 213, 198, 0.12), 0 0 36px rgba(69, 183, 171, 0.1);
  font-family: var(--heading-font);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  animation: loader-mark-breathe 2.4s ease-in-out infinite;
}

#preloader .loader-brand {
  margin: 0;
  color: #f4fffd;
  font-family: var(--heading-font);
  font-size: clamp(1.05rem, 3vw, 1.42rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

#preloader .loader-page-status {
  min-height: 1.5em;
  margin: 0.8rem 0 1.25rem;
  color: rgba(223, 246, 243, 0.68);
  font-family: var(--nav-font);
  font-size: clamp(0.7rem, 2vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: loader-status-pulse 1.8s ease-in-out infinite;
}

#preloader .loader-progress-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.8rem;
}

#preloader .loader-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#preloader .loader-bar-fill {
  background: linear-gradient(90deg, #3fcdbd, #b7fff5, #619ef0, #3fcdbd);
  background-size: 200% 100%;
  box-shadow: 0 0 18px rgba(86, 221, 204, 0.72);
  animation: loader-bar-shimmer 1.4s linear infinite;
}

#preloader .loader-percent {
  min-width: 3.2rem;
  margin: 0;
  color: #fff;
  font-family: var(--nav-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08rem;
  animation: none;
}

@keyframes loader-background-grid {
  to { background-position: 72px 72px, -72px 72px, 0 0; }
}

@keyframes loader-background-dots {
  from { background-position: 0 0; }
  to { background-position: 72px -72px; }
}

@keyframes loader-aurora-drift {
  from { transform: translate3d(-5%, -3%, 0) rotate(-4deg) scale(0.95); }
  to { transform: translate3d(6%, 5%, 0) rotate(5deg) scale(1.08); }
}

@keyframes loader-ring-spin { to { transform: rotate(360deg); } }
@keyframes loader-ring-spin-reverse { to { transform: rotate(-360deg); } }
@keyframes loader-orbit { to { transform: rotate(360deg); } }

@keyframes loader-mark-breathe {
  0%, 100% { transform: scale(0.96); opacity: 0.78; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes loader-status-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes loader-bar-shimmer {
  to { background-position: -200% 0; }
}

@media (max-width: 575.98px) {
  #preloader .loader-content {
    padding: 30px 22px;
    border-radius: 22px;
  }

  #preloader .loader-emblem {
    width: 126px;
    height: 126px;
  }

  #preloader .loader-ring-inner {
    inset: 17px;
  }

  #preloader .loader-orbit-dot {
    transform-origin: 4px 60px;
  }

  #preloader .loader-mark {
    width: 70px;
    height: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #preloader,
  #preloader::before,
  #preloader .loader-aurora,
  #preloader .loader-content,
  #preloader .loader-ring,
  #preloader .loader-orbit-dot,
  #preloader .loader-mark,
  #preloader .loader-page-status,
  #preloader .loader-bar-fill {
    animation: none;
  }
}

/* Minimal animated website background (the preloader remains independent). */
.dynamic-background {
  background:
    radial-gradient(circle at 12% 8%, rgba(91, 114, 255, 0.08), transparent 32%),
    linear-gradient(145deg, #fbfcff 0%, #f3f7f9 52%, #f8f5fb 100%);
  background-size: 100% 100%, 100% 100%;
  animation: minimalist-background-breathe 16s ease-in-out infinite alternate;
}

.dynamic-background::before {
  inset: -20%;
  z-index: 1;
  opacity: 0.7;
  background:
    radial-gradient(circle at 24% 32%, var(--background-orb-one), transparent 24%),
    radial-gradient(circle at 76% 38%, var(--background-orb-two), transparent 26%),
    radial-gradient(circle at 52% 76%, var(--background-orb-three), transparent 25%);
  background-size: 115% 115%;
  filter: blur(48px) saturate(115%);
  -webkit-mask-image: none;
  mask-image: none;
  animation: minimalist-aurora-drift 24s ease-in-out infinite alternate;
}

.dynamic-background::after {
  z-index: 2;
  opacity: 0.28;
  background:
    linear-gradient(115deg, transparent 0 48%, var(--background-grid-color) 49%, transparent 50% 100%);
  background-size: 180px 180px;
  animation: minimalist-line-drift 32s linear infinite;
}

.dynamic-background-orb {
  border: 0;
  opacity: 0.22;
  filter: blur(80px);
}

.dynamic-background-orb::before {
  display: none;
}

.dynamic-background-orb-one {
  animation-duration: 28s;
}

.dynamic-background-orb-two {
  animation-duration: 34s;
}

.dynamic-background-orb-three {
  opacity: 0.16;
  animation-duration: 31s;
}

body.dark-mode .dynamic-background {
  background:
    radial-gradient(circle at 12% 8%, rgba(96, 117, 255, 0.12), transparent 34%),
    linear-gradient(145deg, #090a0e 0%, #11151a 52%, #0c1112 100%);
  background-size: 100% 100%, 100% 100%;
}

body.dark-mode .dynamic-background::before {
  opacity: 0.62;
  background:
    radial-gradient(circle at 24% 32%, var(--background-orb-one), transparent 25%),
    radial-gradient(circle at 76% 38%, var(--background-orb-two), transparent 27%),
    radial-gradient(circle at 52% 76%, var(--background-orb-three), transparent 26%);
  background-size: 115% 115%;
}

body.dark-mode .dynamic-background::after {
  opacity: 0.18;
  background:
    linear-gradient(115deg, transparent 0 48%, var(--background-grid-color) 49%, transparent 50% 100%);
  background-size: 180px 180px;
}

@keyframes minimalist-background-breathe {
  from { filter: saturate(100%) brightness(100%); }
  to { filter: saturate(108%) brightness(102%); }
}

@keyframes minimalist-aurora-drift {
  from { transform: translate3d(-3%, -2%, 0) scale(0.98); }
  to { transform: translate3d(4%, 3%, 0) scale(1.06); }
}

@keyframes minimalist-line-drift {
  from { background-position: 0 0; }
  to { background-position: 180px 180px; }
}

@media (prefers-reduced-motion: reduce) {
  .dynamic-background,
  .dynamic-background::before,
  .dynamic-background::after,
  .dynamic-background-orb {
    animation: none;
  }
}

/* Final visibility tuning for the website canvas. */
.dynamic-background {
  opacity: 1 !important;
  visibility: visible !important;
}

.dynamic-background::before {
  opacity: 0.92;
  filter: blur(34px) saturate(135%);
}

.dynamic-background::after {
  opacity: 0.5;
}

.dynamic-background .dynamic-background-orb {
  opacity: 0.48;
  filter: blur(58px) saturate(140%);
}

.dynamic-background .dynamic-background-orb-three {
  opacity: 0.34;
}

.dynamic-background .ambient-lines span {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(68, 88, 170, 0.62), rgba(47, 151, 143, 0.52), transparent);
}

.dynamic-background .ambient-lines span::before,
.dynamic-background .ambient-lines span::after {
  width: 7px;
  height: 7px;
  background: #5268bf;
  box-shadow: 0 0 10px rgba(82, 104, 191, 0.72), 0 0 22px rgba(47, 151, 143, 0.42);
}

body.dark-mode .dynamic-background::before {
  opacity: 0.82;
}

body.dark-mode .dynamic-background .ambient-lines span {
  background: linear-gradient(90deg, transparent, rgba(158, 177, 255, 0.7), rgba(103, 225, 210, 0.62), transparent);
}

body.dark-mode .dynamic-background .ambient-lines span::before,
body.dark-mode .dynamic-background .ambient-lines span::after {
  background: #b8c5ff;
  box-shadow: 0 0 12px rgba(139, 163, 255, 0.88), 0 0 25px rgba(91, 218, 202, 0.55);
}

/* Regina Sinarum Studio background treatment. */
.dynamic-background {
  background:
    linear-gradient(var(--background-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--background-grid-color) 1px, transparent 1px),
    var(--background-color);
  background-size: 80px 80px, 80px 80px, auto;
  filter: none;
  animation: regina-background-grid 28s linear infinite;
}

.dynamic-background::before {
  display: none;
}

.dynamic-background::after,
body.dark-mode .dynamic-background::after {
  display: block;
  z-index: 1;
  opacity: 0.42;
  background-image: radial-gradient(circle, var(--accent-color) 1.3px, transparent 1.7px);
  background-size: 80px 80px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
  animation: regina-background-dots 18s linear infinite;
}

.dynamic-background > .ambient-lines {
  display: none;
}

.dynamic-background .dynamic-background-orb {
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 62%);
  opacity: 0.55;
  background: transparent;
  filter: blur(2px);
}

.dynamic-background .dynamic-background-orb::before {
  position: absolute;
  inset: 14%;
  display: block;
  border-radius: inherit;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-color), transparent 72%), transparent 68%);
  content: "";
  filter: blur(22px);
}

.dynamic-background .dynamic-background-orb-one {
  top: -10vw;
  right: -12vw;
  left: auto;
  width: 42vw;
  height: 42vw;
  animation: regina-orb-one 18s ease-in-out infinite alternate;
}

.dynamic-background .dynamic-background-orb-two {
  top: 38%;
  right: auto;
  left: -14vw;
  width: 34vw;
  height: 34vw;
  border-color: color-mix(in srgb, var(--background-orb-one), transparent 35%);
  animation: regina-orb-two 23s ease-in-out infinite alternate;
}

.dynamic-background .dynamic-background-orb-three {
  right: 8vw;
  bottom: -16vw;
  left: auto;
  width: 38vw;
  height: 38vw;
  border-color: color-mix(in srgb, var(--background-orb-two), transparent 28%);
  opacity: 0.55;
  animation: regina-orb-three 21s ease-in-out infinite alternate;
}

body.dark-mode .dynamic-background {
  background:
    linear-gradient(var(--background-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--background-grid-color) 1px, transparent 1px),
    var(--background-color);
  background-size: 80px 80px, 80px 80px, auto;
}

/* Theme-aware loader sharing the Regina-style website background. */
#preloader {
  --loader-ink: #26304c;
  --loader-muted: rgba(38, 48, 76, 0.68);
  --loader-line: rgba(74, 91, 145, 0.15);
  --loader-dot: rgba(64, 82, 142, 0.5);
  --loader-panel: rgba(255, 255, 255, 0.5);
  --loader-ring-color: rgba(69, 91, 164, 0.76);
  --loader-glow: rgba(74, 111, 210, 0.25);
  isolation: isolate;
  background:
    linear-gradient(var(--loader-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--loader-line) 1px, transparent 1px),
    linear-gradient(145deg, #fff 0%, #f2f7fa 50%, #f8f3fb 100%);
  background-size: 80px 80px, 80px 80px, auto;
  animation: themed-loader-grid 14s linear infinite, themed-loader-breathe 4s ease-in-out infinite alternate;
}

body.dark-mode #preloader {
  --loader-ink: #f4fffd;
  --loader-muted: rgba(223, 246, 243, 0.7);
  --loader-line: rgba(188, 201, 255, 0.13);
  --loader-dot: rgba(205, 215, 255, 0.58);
  --loader-panel: rgba(7, 18, 27, 0.52);
  --loader-ring-color: rgba(190, 245, 238, 0.84);
  --loader-glow: rgba(83, 222, 204, 0.32);
  background:
    linear-gradient(var(--loader-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--loader-line) 1px, transparent 1px),
    linear-gradient(145deg, #03060b 0%, #0b131d 50%, #071416 100%);
  background-size: 80px 80px, 80px 80px, auto;
}

#preloader::before {
  inset: 0;
  z-index: -1;
  opacity: 0.62;
  background-image: radial-gradient(circle, var(--loader-dot) 1.6px, transparent 2.1px);
  background-size: 80px 80px;
  filter: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 7%, black 93%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 7%, black 93%, transparent);
  animation: themed-loader-dots 10s linear infinite;
}

#preloader::after {
  z-index: -1;
  opacity: 0.4;
  background: radial-gradient(circle at center, transparent 25%, rgba(190, 202, 224, 0.38) 100%);
  animation: none;
}

body.dark-mode #preloader::after {
  background: radial-gradient(circle at center, transparent 22%, rgba(1, 4, 10, 0.62) 100%);
}

#preloader .loader-aurora {
  inset: -30%;
  opacity: 0.52;
  background:
    radial-gradient(circle at 22% 35%, rgba(91, 114, 255, 0.3), transparent 24%),
    radial-gradient(circle at 72% 28%, rgba(68, 196, 181, 0.25), transparent 25%),
    radial-gradient(circle at 58% 76%, rgba(168, 104, 211, 0.22), transparent 27%);
  filter: blur(40px) saturate(130%);
  animation: themed-loader-aurora 7s ease-in-out infinite alternate;
}

body.dark-mode #preloader .loader-aurora { opacity: 0.78; }

#preloader .loader-background-orbits {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

#preloader .loader-background-orbit {
  position: absolute;
  display: block;
  border: 1px solid var(--loader-ring-color);
  border-radius: 50%;
  opacity: 0.52;
  box-shadow: inset 0 0 70px var(--loader-glow), 0 0 38px var(--loader-glow);
}

#preloader .loader-background-orbit-one { top: -18vw; right: -12vw; width: 46vw; height: 46vw; animation: regina-orb-one 10s ease-in-out infinite alternate; }
#preloader .loader-background-orbit-two { top: 42%; left: -14vw; width: 36vw; height: 36vw; border-color: rgba(145, 100, 210, 0.64); animation: regina-orb-two 13s ease-in-out infinite alternate; }
#preloader .loader-background-orbit-three { right: 7vw; bottom: -17vw; width: 40vw; height: 40vw; border-color: rgba(52, 173, 157, 0.64); animation: regina-orb-three 12s ease-in-out infinite alternate; }

#preloader .loader-content {
  color: var(--loader-ink);
  border-color: color-mix(in srgb, var(--loader-ink), transparent 82%);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 54%), var(--loader-panel);
  box-shadow: 0 28px 80px rgba(31, 42, 82, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  animation: themed-loader-panel 3s ease-in-out infinite;
}

#preloader .loader-brand,
#preloader .loader-percent { color: var(--loader-ink); }
#preloader .loader-page-status { color: var(--loader-muted); }
#preloader .loader-ring-outer { border-top-color: var(--loader-ring-color); box-shadow: 0 0 34px var(--loader-glow), inset 0 0 26px var(--loader-glow); animation-duration: 3.6s; }
#preloader .loader-ring-inner { border-color: color-mix(in srgb, var(--loader-ring-color), transparent 48%); animation-duration: 5.4s; }
#preloader .loader-orbit-dot { background: var(--loader-ink); box-shadow: 0 0 15px var(--loader-ring-color), 0 0 30px var(--loader-glow); animation-duration: 2.6s; }
#preloader .loader-mark { color: var(--loader-ink); border-color: color-mix(in srgb, var(--loader-ring-color), transparent 60%); background: radial-gradient(circle, var(--loader-glow), transparent 72%); }
#preloader .loader-bar { background: color-mix(in srgb, var(--loader-ink), transparent 88%); }
#preloader .loader-bar-fill { background: linear-gradient(90deg, #536fe0, #4fcdbc, #a46bd2, #536fe0); background-size: 200% 100%; }

@keyframes themed-loader-grid { to { background-position: 80px 80px, -80px 80px, 0 0; } }
@keyframes themed-loader-dots { from { background-position: 0 0; opacity: .3; } 50% { opacity: .75; } to { background-position: 80px -80px; opacity: .3; } }
@keyframes themed-loader-breathe { from { filter: saturate(100%) brightness(100%); } to { filter: saturate(114%) brightness(103%); } }
@keyframes themed-loader-aurora { from { transform: translate3d(-5%, -4%, 0) rotate(-4deg) scale(.94); } to { transform: translate3d(6%, 5%, 0) rotate(5deg) scale(1.1); } }
@keyframes themed-loader-panel { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-9px) scale(1.012); } }

@media (max-width: 767.98px) {
  #preloader .loader-background-orbit { width: 72vw; height: 72vw; }
}

@media (prefers-reduced-motion: reduce) {
  #preloader,
  #preloader::before,
  #preloader .loader-aurora,
  #preloader .loader-background-orbit,
  #preloader .loader-content { animation: none; }
}

/* More expressive motion for the website canvas only. */
.dynamic-background {
  animation:
    regina-background-grid 15s linear infinite,
    website-background-breathe 7s ease-in-out infinite alternate;
}

.dynamic-background::before {
  position: absolute;
  inset: -35%;
  z-index: 1;
  display: block;
  opacity: 0.42;
  background:
    linear-gradient(112deg, transparent 34%, rgba(91, 114, 255, 0.12) 46%, transparent 58%),
    linear-gradient(68deg, transparent 38%, rgba(68, 196, 181, 0.1) 50%, transparent 62%);
  filter: blur(16px);
  content: "";
  animation: website-light-sweep 12s ease-in-out infinite alternate;
}

.dynamic-background::after,
body.dark-mode .dynamic-background::after {
  animation: regina-background-dots 9s linear infinite;
}

.dynamic-background .dynamic-background-orb-one {
  animation-duration: 12s;
}

.dynamic-background .dynamic-background-orb-two {
  animation-duration: 15s;
}

.dynamic-background .dynamic-background-orb-three {
  animation-duration: 13s;
}

body.dark-mode .dynamic-background::before {
  opacity: 0.5;
  background:
    linear-gradient(112deg, transparent 34%, rgba(121, 143, 255, 0.17) 46%, transparent 58%),
    linear-gradient(68deg, transparent 38%, rgba(79, 219, 199, 0.13) 50%, transparent 62%);
}

@keyframes website-background-breathe {
  from { filter: saturate(100%) brightness(100%); }
  to { filter: saturate(118%) brightness(103%); }
}

@keyframes website-light-sweep {
  from { transform: translate3d(-12%, -8%, 0) rotate(-4deg) scale(0.94); }
  to { transform: translate3d(13%, 9%, 0) rotate(5deg) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .dynamic-background,
  .dynamic-background::before,
  .dynamic-background::after,
  .dynamic-background .dynamic-background-orb {
    animation: none;
  }
}

body.dark-mode .dynamic-background::after {
  background-image: radial-gradient(circle, var(--heading-color) 1.3px, transparent 1.7px);
}

@keyframes regina-background-grid {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 80px 80px, -80px 80px, 0 0; }
}

@keyframes regina-background-dots {
  from { background-position: 0 0; opacity: 0.25; }
  50% { opacity: 0.55; }
  to { background-position: 80px -80px; opacity: 0.25; }
}

@keyframes regina-orb-one {
  from { transform: translate3d(4vw, -4vh, 0) rotate(0deg) scale(0.9); }
  to { transform: translate3d(-28vw, 24vh, 0) rotate(18deg) scale(1.14); }
}

@keyframes regina-orb-two {
  from { transform: translate3d(-5vw, -10vh, 0) rotate(-8deg) scale(1.08); }
  to { transform: translate3d(34vw, 20vh, 0) rotate(12deg) scale(0.88); }
}

@keyframes regina-orb-three {
  from { transform: translate3d(12vw, 10vh, 0) rotate(0deg) scale(0.92); }
  to { transform: translate3d(-22vw, -28vh, 0) rotate(-16deg) scale(1.12); }
}

@media (max-width: 767.98px) {
  .dynamic-background .dynamic-background-orb-one,
  .dynamic-background .dynamic-background-orb-two,
  .dynamic-background .dynamic-background-orb-three {
    width: 68vw;
    height: 68vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dynamic-background,
  .dynamic-background::after,
  .dynamic-background .dynamic-background-orb {
    animation: none;
  }
}

/* Portfolio colour calibration for the Regina background. */
.dynamic-background {
  --regina-line: rgba(74, 91, 145, 0.16);
  --regina-dot: rgba(64, 82, 142, 0.5);
  background:
    linear-gradient(var(--regina-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--regina-line) 1px, transparent 1px),
    linear-gradient(145deg, #fbfcff 0%, #f0f5f7 52%, #f6f2fa 100%);
  background-size: 80px 80px, 80px 80px, auto;
}

.dynamic-background::after,
body.dark-mode .dynamic-background::after {
  opacity: 0.62;
  background-image: radial-gradient(circle, var(--regina-dot) 1.7px, transparent 2.2px);
}

.dynamic-background .dynamic-background-orb-one {
  border-color: rgba(91, 114, 255, 0.62);
  box-shadow: inset 0 0 70px rgba(91, 114, 255, 0.12), 0 0 40px rgba(91, 114, 255, 0.08);
}

.dynamic-background .dynamic-background-orb-two {
  border-color: rgba(145, 100, 210, 0.58);
  box-shadow: inset 0 0 70px rgba(145, 100, 210, 0.12), 0 0 40px rgba(145, 100, 210, 0.08);
}

.dynamic-background .dynamic-background-orb-three {
  border-color: rgba(52, 173, 157, 0.58);
  box-shadow: inset 0 0 70px rgba(52, 173, 157, 0.12), 0 0 40px rgba(52, 173, 157, 0.08);
}

body.dark-mode .dynamic-background {
  --regina-line: rgba(188, 201, 255, 0.14);
  --regina-dot: rgba(205, 215, 255, 0.58);
  background:
    linear-gradient(var(--regina-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--regina-line) 1px, transparent 1px),
    linear-gradient(145deg, #090a0e 0%, #11161b 52%, #0b1314 100%);
  background-size: 80px 80px, 80px 80px, auto;
}

/* Final Resume transparency override. */
.main .resume .resume-navigation,
.main .resume .resume-navigation .nav-link,
.main .resume .resume-content,
.main .resume .resume-content .tab-pane,
.main .resume .experience-item,
.main .resume .education-entry,
.main .resume .skill-category,
.main .resume .skill-tag {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

/* Soft transitions when switching Resume tabs. */
.resume .resume-navigation .nav-link,
.resume .resume-navigation .nav-number,
.resume .resume-navigation .nav-label,
.resume .resume-navigation .nav-link::after {
  transition:
    color 0.38s ease,
    opacity 0.38s ease,
    transform 0.38s ease,
    border-color 0.38s ease;
}

.resume .resume-navigation .nav-link:hover,
.resume .resume-navigation .nav-link.active {
  transform: translateY(-2px);
}

.resume .resume-content .tab-pane.fade {
  opacity: 0;
  filter: blur(3px);
  transform: translateY(14px);
  transition:
    opacity 0.5s ease,
    filter 0.5s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.resume .resume-content .tab-pane.fade.show {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.resume .resume-content .tab-pane.show .section-intro,
.resume .resume-content .tab-pane.show .experience-grid,
.resume .resume-content .tab-pane.show .education-list,
.resume .resume-content .tab-pane.show .skills-categories {
  animation: resume-content-arrive 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes resume-content-arrive {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@media (prefers-reduced-motion: reduce) {
  .resume .resume-navigation .nav-link,
  .resume .resume-navigation .nav-number,
  .resume .resume-navigation .nav-label,
  .resume .resume-navigation .nav-link::after,
  .resume .resume-content .tab-pane.fade,
  .resume .resume-content .tab-pane.show > * {
    transition: none;
    animation: none;
  }
}

/* Pop-in variant for Resume tab changes. */
.resume .resume-content .tab-pane.fade {
  opacity: 0;
  filter: blur(2px);
  transform: translateY(8px) scale(0.94);
  transform-origin: top center;
  transition:
    opacity 0.34s ease,
    filter 0.34s ease,
    transform 0.46s cubic-bezier(0.2, 1.45, 0.4, 1);
}

.resume .resume-content .tab-pane.fade.show {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.resume .resume-content .tab-pane.show .section-intro,
.resume .resume-content .tab-pane.show .experience-grid,
.resume .resume-content .tab-pane.show .education-list,
.resume .resume-content .tab-pane.show .skills-categories {
  animation: resume-content-pop 0.5s cubic-bezier(0.2, 1.45, 0.4, 1) both;
}

@keyframes resume-content-pop {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.94);
  }

  72% {
    opacity: 1;
    transform: translateY(-2px) scale(1.012);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .resume .resume-content .tab-pane.fade,
  .resume .resume-content .tab-pane.show > * {
    transition: none;
    animation: none;
  }
}

/* Remove the remaining rectangular surface/focus shade from Resume tabs. */
.main .resume .resume-navigation,
.main .resume .resume-navigation .nav-item,
.main .resume .resume-navigation .nav-link,
.main .resume .resume-content,
.main .resume .resume-content .tab-pane,
.main .resume .resume-content .tab-pane:focus,
.main .resume .resume-content .tab-pane:focus-visible {
  border-color: transparent !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.main .resume .resume-content::before,
.main .resume .resume-content::after,
.main .resume .resume-content .tab-pane::before,
.main .resume .resume-content .tab-pane::after {
  display: none !important;
  background: transparent !important;
  content: none !important;
}

/* Preserve full Resume transparency in dark mode. */
body.dark-mode .main .resume,
body.dark-mode .main .resume .resume-navigation,
body.dark-mode .main .resume .resume-navigation .nav-item,
body.dark-mode .main .resume .resume-navigation .nav-link,
body.dark-mode .main .resume .resume-navigation .nav-link.active,
body.dark-mode .main .resume .resume-content,
body.dark-mode .main .resume .resume-content .tab-pane,
body.dark-mode .main .resume .experience-item,
body.dark-mode .main .resume .education-entry,
body.dark-mode .main .resume .skill-category,
body.dark-mode .main .resume .skill-tag {
  border-color: transparent !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Match service-detail pages to the homepage's transparent animated canvas. */
.service-details-page .page-title,
.service-details-page .breadcrumbs,
.service-details-page .title-wrapper,
.service-details-page .service-details,
.service-details-page .service-hero,
.service-details-page .service-narrative,
.service-details-page .service-sidebar,
.service-details-page .overview-card,
body.dark-mode.service-details-page .page-title,
body.dark-mode.service-details-page .service-details,
body.dark-mode.service-details-page .overview-card {
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.service-details-page .overview-card {
  border-color: color-mix(in srgb, var(--heading-color), transparent 82%);
}

/* Liquid-glass Portfolio and Services cards. */
.portfolio .portfolio-card,
.services .service-item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.18) 54%, rgba(126, 206, 229, 0.14)) !important;
  box-shadow:
    0 18px 48px rgba(31, 42, 82, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.22) !important;
  -webkit-backdrop-filter: blur(22px) saturate(165%) !important;
  backdrop-filter: blur(22px) saturate(165%) !important;
  transition: transform 0.38s ease, border-color 0.38s ease, box-shadow 0.38s ease !important;
}

.portfolio .portfolio-card {
  padding: 16px;
}

.services .service-item {
  height: 100%;
  padding: 34px;
}

.portfolio .portfolio-card > *,
.services .service-item > * {
  position: relative;
  z-index: 1;
}

.portfolio .portfolio-card::before,
.services .service-item::before {
  position: absolute;
  top: -120%;
  left: -55%;
  z-index: 0;
  width: 58%;
  height: 330%;
  opacity: 0.56;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  filter: blur(8px);
  content: "";
  transform: rotate(20deg);
  animation: liquid-card-sheen 9s linear infinite;
  pointer-events: none;
}

.portfolio .portfolio-card::after,
.services .service-item::after {
  position: absolute;
  right: -50px;
  bottom: -58px;
  z-index: 0;
  width: 170px;
  height: 130px;
  border-radius: 50%;
  opacity: 0.42;
  background: radial-gradient(circle, rgba(77, 190, 204, 0.34), transparent 68%);
  filter: blur(12px);
  content: "";
  animation: liquid-card-orb 7s ease-in-out infinite alternate;
  pointer-events: none;
}

.portfolio .portfolio-card:hover,
.services .service-item:hover {
  border-color: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 26px 64px rgba(31, 42, 82, 0.18),
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-8px) scale(1.012);
}

.portfolio .image-container {
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(31, 42, 82, 0.12);
}

.portfolio .content {
  padding: 26px 10px 12px;
}

.services .service-item .service-icon {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 10px 24px rgba(31, 42, 82, 0.1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

body.dark-mode .portfolio .portfolio-card,
body.dark-mode .services .service-item {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(9, 16, 30, 0.48) 54%, rgba(47, 151, 143, 0.1)) !important;
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .services .service-item .service-icon {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 26px rgba(0, 0, 0, 0.2);
}

@keyframes liquid-card-sheen {
  from { transform: translateX(-130%) rotate(20deg); }
  to { transform: translateX(430%) rotate(20deg); }
}

@keyframes liquid-card-orb {
  from { transform: translate3d(-18px, 8px, 0) scale(0.88); }
  to { transform: translate3d(16px, -12px, 0) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio .portfolio-card::before,
  .portfolio .portfolio-card::after,
  .services .service-item::before,
  .services .service-item::after {
    animation: none;
  }
}

/* Transparent glass floating controls. */
.scroll-top,
.theme-toggle {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: var(--heading-color);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 28px rgba(31, 42, 82, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.scroll-top i,
.theme-toggle i {
  color: currentColor;
}

.scroll-top:hover,
.theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.94);
  color: var(--heading-color);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 14px 34px rgba(31, 42, 82, 0.18), inset 0 1px 0 #fff;
  transform: translateY(-3px) scale(1.04);
}

.scroll-top:hover i {
  color: currentColor;
}

body.dark-mode .scroll-top,
body.dark-mode .theme-toggle {
  border-color: rgba(255, 255, 255, 0.2);
  color: #f5f7ff;
  background: rgba(9, 16, 30, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body.dark-mode .scroll-top:hover,
body.dark-mode .theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 36px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

/* Liquid-glass Contact form. */
.contact .contact-form-container .contact-form {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.17) 56%, rgba(101, 196, 214, 0.13));
  box-shadow:
    0 22px 58px rgba(31, 42, 82, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  backdrop-filter: blur(24px) saturate(165%);
}

.contact .contact-form-container .contact-form::before {
  position: absolute;
  top: -125%;
  left: -52%;
  z-index: 0;
  width: 54%;
  height: 340%;
  opacity: 0.52;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.64), transparent);
  filter: blur(9px);
  content: "";
  transform: rotate(19deg);
  animation: contact-glass-sheen 10s linear infinite;
  pointer-events: none;
}

.contact .contact-form-container .contact-form > * {
  position: relative;
  z-index: 1;
}

.contact .contact-form-container .contact-form .form-field {
  margin-bottom: 32px;
}

.contact .contact-form-container .contact-form .form-field .field-label {
  top: -8px;
  left: 14px;
  z-index: 2;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.contact .contact-form-container .contact-form .form-field .form-input {
  min-height: 58px;
  padding: 18px 16px 13px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.contact .contact-form-container .contact-form .form-field .form-input:focus {
  border-color: color-mix(in srgb, var(--accent-color), transparent 38%);
  background: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color), transparent 88%), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.contact .contact-form-container .contact-form .message-input {
  min-height: 150px;
  padding-top: 22px;
}

.contact .contact-form-container .contact-form .send-button {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  color: var(--heading-color);
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 28px rgba(31, 42, 82, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}

.contact .contact-form-container .contact-form .send-button:hover {
  border-color: rgba(255, 255, 255, 0.94);
  color: var(--heading-color);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 14px 34px rgba(31, 42, 82, 0.18), inset 0 1px 0 #fff;
  transform: translateY(-3px);
}

body.dark-mode .contact .contact-form-container .contact-form {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(9, 16, 30, 0.48) 56%, rgba(47, 151, 143, 0.1));
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.17);
}

body.dark-mode .contact .contact-form-container .contact-form .field-label {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(9, 16, 30, 0.46);
}

body.dark-mode .contact .contact-form-container .contact-form .form-input {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.dark-mode .contact .contact-form-container .contact-form .form-input:focus {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body.dark-mode .contact .contact-form-container .contact-form .send-button {
  border-color: rgba(255, 255, 255, 0.2);
  color: #f5f7ff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

body.dark-mode .contact .contact-form-container .contact-form .send-button:hover {
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

@keyframes contact-glass-sheen {
  from { transform: translateX(-130%) rotate(19deg); }
  to { transform: translateX(450%) rotate(19deg); }
}

@media (prefers-reduced-motion: reduce) {
  .contact .contact-form-container .contact-form::before {
    animation: none;
  }
}

/* Fully transparent Contact section canvas. */
.main > .contact,
.main > .contact.light-background,
body.dark-mode .main > .contact,
body.dark-mode .main > .contact.light-background {
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.main > .contact::before,
.main > .contact::after {
  display: none !important;
  background: transparent !important;
  content: none !important;
}

/* Keep the Contact form glass static. */
.contact .contact-form-container .contact-form::before {
  display: none;
  animation: none;
}

/* Fully transparent Contact form and information containers. */
.main .contact .contact-form-container,
.main .contact .contact-form-container .contact-form,
.main .contact .contact-sidebar,
body.dark-mode .main .contact .contact-form-container,
body.dark-mode .main .contact .contact-form-container .contact-form,
body.dark-mode .main .contact .contact-sidebar {
  border-color: transparent !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.main .contact .contact-form-container::before,
.main .contact .contact-form-container::after,
.main .contact .contact-form::before,
.main .contact .contact-form::after,
.main .contact .contact-sidebar::before,
.main .contact .contact-sidebar::after {
  display: none !important;
  background: transparent !important;
  content: none !important;
}

/* Lighter navigation typography. */
.header .logo h1 {
  font-weight: 500;
}

.navmenu a,
.navmenu a:focus,
.navmenu .site-search-toggle-mobile {
  font-weight: 400;
}

/* Lighter loading-screen typography. */
#preloader .loader-brand {
  font-weight: 400;
  letter-spacing: 0.06em;
}

#preloader .loader-page-status,
#preloader .loader-percent,
#preloader .loader-mark {
  font-weight: 400;
}

#preloader .loader-page-status.is-typing::after {
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 5px;
  vertical-align: -0.12em;
  background: currentColor;
  content: "";
  animation: loader-typing-cursor 0.7s steps(1, end) infinite;
}

@keyframes loader-typing-cursor {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #preloader .loader-page-status.is-typing::after {
    display: none;
    animation: none;
  }
}

/* Static liquid-glass Service Overview cards. */
.service-details-page .service-details .overview-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.18) 56%, rgba(103, 196, 214, 0.14)) !important;
  box-shadow:
    0 20px 54px rgba(31, 42, 82, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.22) !important;
  -webkit-backdrop-filter: blur(24px) saturate(165%) !important;
  backdrop-filter: blur(24px) saturate(165%) !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

.service-details-page .service-details .overview-card:hover {
  border-color: rgba(255, 255, 255, 0.72) !important;
  transform: none !important;
}

.service-details-page .service-details .overview-card::before,
.service-details-page .service-details .overview-card::after {
  display: none !important;
  content: none !important;
  animation: none !important;
}

body.dark-mode.service-details-page .service-details .overview-card {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(9, 16, 30, 0.5) 56%, rgba(47, 151, 143, 0.1)) !important;
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.17),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode.service-details-page .service-details .overview-card:hover {
  border-color: rgba(255, 255, 255, 0.18) !important;
}

/* Infinite idle cursor echo and interactive fireworks. */
.cursor-idle-echo {
  position: fixed;
  z-index: 99998;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 1px solid color-mix(in srgb, var(--heading-color), transparent 28%);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 18px color-mix(in srgb, var(--background-orb-two), transparent 42%);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cursor-idle-echo.is-visible {
  opacity: 1;
  animation: cursor-idle-pulse 1.45s ease-out infinite;
}

body.page-loading .cursor-idle-echo { display: none; }

.interactive-firework {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
}

.interactive-firework::before,
.interactive-firework::after {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  content: "";
  animation: interactive-firework-flash 0.55s ease-out forwards;
}

.interactive-firework::before {
  background: var(--heading-color);
  box-shadow: 0 0 26px var(--heading-color), 0 0 54px var(--background-orb-two);
}

.interactive-firework::after {
  border: 2px solid color-mix(in srgb, var(--heading-color), transparent 18%);
  animation-duration: 0.8s;
}

.interactive-firework span {
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #6478ff;
  box-shadow: 0 0 12px currentColor;
  animation: interactive-firework-expand 1.15s cubic-bezier(0.12, 0.72, 0.28, 1) var(--particle-delay) forwards;
}

.interactive-firework span:nth-child(3n + 2) { background: #52d5c2; }
.interactive-firework span:nth-child(3n + 3) { background: #c177e0; }
body.dark-mode .interactive-firework span { filter: brightness(1.25) saturate(1.15); }

@keyframes cursor-idle-pulse {
  0% { opacity: 0.8; transform: scale(0.5); }
  72% { opacity: 0.18; transform: scale(2.5); }
  100% { opacity: 0; transform: scale(3); }
}

@keyframes interactive-firework-flash {
  from { opacity: 1; transform: scale(0.35); }
  to { opacity: 0; transform: scale(4.4); }
}

@keyframes interactive-firework-expand {
  0% { opacity: 1; transform: translate(0, 0) scale(0.3); }
  72% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(var(--firework-x), var(--firework-y)) scale(0.08); }
}

@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .cursor-idle-echo,
  .interactive-firework { display: none; }
}

/* Clickable profile portraits in the Hero and About sections. */
.hero .portrait-wrap,
.about .profile-figure {
  cursor: pointer;
  outline: none;
}

.hero .portrait-wrap:focus-visible .portrait-img,
.about .profile-figure:focus-visible .profile-photo {
  outline: 3px solid var(--accent-color);
  outline-offset: 7px;
}

.hero .portrait-wrap .portrait-img.is-click-animated {
  animation: hero-portrait-click 0.9s cubic-bezier(0.18, 0.8, 0.25, 1) both;
}

.about .profile-figure .profile-photo.is-click-animated {
  animation: about-portrait-click 0.85s cubic-bezier(0.18, 0.8, 0.25, 1) both;
}

@keyframes hero-portrait-click {
  0% { filter: brightness(1); transform: perspective(900px) rotateY(0) scale(1); }
  38% { filter: brightness(1.12) saturate(1.08); transform: perspective(900px) rotateY(-9deg) rotateZ(-1.5deg) scale(1.055); }
  68% { transform: perspective(900px) rotateY(4deg) rotateZ(.7deg) scale(.99); }
  100% { filter: brightness(1); transform: perspective(900px) rotateY(0) scale(1); }
}

@keyframes about-portrait-click {
  0% { filter: brightness(1); transform: translateY(0) rotate(0) scale(1); }
  38% { filter: brightness(1.1) saturate(1.06); transform: translateY(-16px) rotate(2.5deg) scale(1.035); }
  68% { transform: translateY(3px) rotate(-1deg) scale(.995); }
  100% { filter: brightness(1); transform: translateY(0) rotate(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero .portrait-wrap,
  .about .profile-figure { cursor: auto; }

  .hero .portrait-wrap .portrait-img.is-click-animated,
  .about .profile-figure .profile-photo.is-click-animated { animation: none; }
}
