body {
  font-family: "Open Sans", sans-serif;
  color: #272829;
}

/*
  Animated site-wide soft purple/yellow highlights over white
  - Low-opacity radial blobs drift subtly over a white background
  - Keeps hero image unchanged; very gentle motion
  - Respects prefers-reduced-motion
*/
:root {
  --blob-purple: rgba(232, 214, 178, 0.28); /* softer, more yellowish */
  --blob-yellow: rgba(255, 234, 170, 0.22); /* softer yellow */
  --blob-pink:   rgba(255, 205, 225, 0.18); /* softer pink */
  /* Global horizontal page gutters */
  --page-gutter: 16px;
  /* Brand accent colors (match underline under Automation) */
  --brand-purple: #bfa0ff;
  --brand-yellow: #ffe59a; /* soft gold (Automation underline) */
}

/* Increase page gutters on larger screens */
@media (min-width: 768px) {
  :root { --page-gutter: 24px; }
}
@media (min-width: 1200px) {
  :root { --page-gutter: 28px; }
}

/* Apply gutters to Bootstrap containers site‑wide */
.container,
.container-fluid {
  padding-left: var(--page-gutter) !important;
  padding-right: var(--page-gutter) !important;
}

html, body { min-height: 100%; }

body {
  background: transparent;
  overflow-x: hidden; /* prevent horizontal gap on menu slide */
}

/* Avoid jank on mobile: don't fix background on small screens */
/* No background animation on mobile or desktop (static for performance) */

/* Skip link: visually hidden until focused */
.skip-link.visually-hidden {
  position: absolute;
  left: 8px;
  top: -40px;
  padding: 8px 12px;
  background: #fff;
  color: #000;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 10000;
}
.skip-link.visually-hidden:focus {
  top: 8px;
}

/* Fixed, scroll-independent animated backdrop using a pseudo-element */
/* Disable previous pseudo-element approach */
body::before { content: none !important; }

@keyframes bg-float {
  0%   { background-position: -30% 10%, 110% 20%, 50% 130%, 20% 90%, 90% 70%, 20% 40%, 75% 30%, 40% 85%; }
  25%  { background-position: 15% 25%, 85% 30%, 65% 85%, 15% 70%, 85% 15%, 20% 40%, 75% 30%, 40% 85%; }
  50%  { background-position: 20% 80%, 80% 70%, 25% 25%, 85% 50%, 15% 20%, 20% 40%, 75% 30%, 40% 85%; }
  75%  { background-position: 70% 85%, 25% 80%, 75% 20%, 40% 15%, 35% 25%, 20% 40%, 75% 30%, 40% 85%; }
  100% { background-position: 130% 90%, -30% 70%, 30% -30%, 120% 60%, -20% 40%, 20% 40%, 75% 30%, 40% 85%; }
}

/* Animate a CSS variable angle to rotate gradient colors while frame is static */
@property --ring-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes spin-angle { to { --ring-angle: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  #hero h1 .accent::after,
  .btn-hero-primary { animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  #header .profile picture::before,
  .about .col-lg-4 picture::before {
    animation: none !important;
  }
}

a {
  color: #149ddd;
  text-decoration: none;
  cursor: pointer;
}

a:hover {
  color: #37b3ed;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
}

.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: #149ddd;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #2eafec;
  color: #fff;
}

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

#header {
  position: fixed;
  top: 0;
  left: -300px; /* closed by default on all sizes */
  bottom: 0;
  width: 300px;
  transition: all ease-in-out 0.5s;
  z-index: 9997;
  transition: all 0.5s;
  padding: 0 15px;
  background: #040b14;
  overflow-y: auto;
}

/* In-panel close button (visible when menu is open) */
#header .menu-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10000;
  display: none; /* shown only when menu is open */
  border: 0;
  font-size: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50px;
  background-color: #149ddd;
  color: #fff;
  align-items: center;
  justify-content: center;
}

body.mobile-nav-active #header .menu-close { display: inline-flex; }

/* Center the avatar and title within the sidebar profile */
#header .profile { text-align: center; }

#header .profile img {
  margin: 15px auto;
  display: block;
  width: 120px;
  transform-origin: 50% 50%;
}

/* Decorative gradient frame around sidebar avatar */
#header .profile picture {
  position: relative;
  display: inline-block;
  margin: 15px auto;
  border-radius: 50%;
  overflow: visible; /* no clipping needed without ring */
  padding: 0 !important;            /* remove any frame spacing */
  background: none !important;       /* remove gradient/background */
  box-shadow: none !important;       /* remove shadow glow */
}

/* Remove colorful ring around sidebar avatar */
#header .profile picture::before { content: none !important; animation: none !important; background: none !important; }

#header .profile img { transform: none; border: 0 !important; background: transparent !important; }

#header .profile img {
  position: relative;
  z-index: 1;
  border: 0; /* remove inner white gap */
  border-radius: 50%;
}

#header .profile h1 {
  font-size: 24px;
  margin: 0;
  padding: 0;
  font-weight: 600;
  -moz-text-align-last: center;
  text-align-last: center;
  font-family: "Raleway", sans-serif;
}

#header .profile h1 a,
#header .profile h1 a:hover {
  color: #fff;
  text-decoration: none;
}

#header .profile .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #212431;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#header .profile .social-links a:hover {
  background: #149ddd;
  color: #fff;
  text-decoration: none;
}

/* Sidebar logo sizing */
#header .profile .site-logo img {
  display: block;
  width: 120px;
  height: auto;
  object-fit: contain;
  margin: 8px auto 0;
}

#hero,
#main {
  margin-left: 0; /* align content full-width when menu closed */
}

/* When menu is open, shift layout */
body.mobile-nav-active #header { left: 0; }
/* Overlay menu: keep content fixed to avoid gaps */
body.mobile-nav-active #hero,
body.mobile-nav-active #main { margin-left: 0; }


.nav-menu {
  padding: 30px 0 0 0;
}

.nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu>ul>li {
  position: relative;
  white-space: nowrap;
}

.nav-menu a,
.nav-menu a:focus {
  display: flex;
  align-items: center;
  color: #a8a9b4;
  padding: 12px 15px;
  margin-bottom: 8px;
  transition: 0.3s;
  font-size: 15px;
}

.nav-menu a i,
.nav-menu a:focus i {
  font-size: 24px;
  padding-right: 8px;
  color: #6f7180;
}

.nav-menu a:hover,
.nav-menu .active,
.nav-menu .active:focus,
.nav-menu li:hover>a {
  text-decoration: none;
  color: #fff;
}

.nav-menu a:hover i,
.nav-menu .active i,
.nav-menu .active:focus i,
.nav-menu li:hover>a i {
  color: #149ddd;
}

.mobile-nav-toggle {
  position: fixed;
  right: 15px;
  top: 15px;
  z-index: 9998;
  border: 0;
  font-size: 24px;
  transition: all 0.4s;
  outline: none !important;
  background-color: #149ddd;
  color: #fff;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: 50px;
  cursor: pointer;
}

.mobile-nav-active {
  overflow: auto; /* allow page scroll while menu is open */
}

/* moved above with other layout rules */

/* Hero uses an inline <picture> now for faster LCP; remove CSS background */
#hero {
  width: 100%;
  height: 100vh;
  position: relative;
}

/* Background image handled by <picture>; keep layout only */

@media screen and (min-width: 1199px) {
  body.mobile-nav-active #hero {
    width: 100%; /* keep full width when menu overlays */
  }
}

#hero:before {
  content: "";
  background: rgba(5, 13, 24, 0.3);
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* Absolutely positioned media element to cover hero */
#hero .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

#hero .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

#hero .hero-container {
  position: relative;
  z-index: 5;
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* keep left alignment consistent */
}

#hero h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.2px;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  animation: hero-appear 700ms ease-out 4s forwards;
  position: relative; /* allow stacking above loader */
  z-index: 2;
}

.hero-sub {
  color: #e8eef5;
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 20px;
  max-width: 720px;
}

/* Gradient accent underline under the word 'Automation' */
#hero h1 .accent {
  position: relative;
  display: inline-block;
}

#hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 5px; /* reduced by 1px */
  border-radius: 999px;
  /* Use Discover-style animated gradient, fully filled (no outline) */
  background-image: linear-gradient(137.48deg, #ffdb3b 10%, #fe53bb 45%, #8f51ea 67%, #0044ff 87%);
  background-size: 300% 300%;
  animation: gradient_301 5s ease infinite;
  width: var(--accent-width, 100%);
  margin: 0 auto;
  z-index: 2;
}

@keyframes hero-accent {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* (single-bar) removed extra ::before bar to keep one underline */

#hero p {
  color: #fff;
  margin-top: 6px;
  margin-bottom: 50px;
  font-size: 26px;
  font-family: "Open Sans", sans-serif;
}

/* Layout: headline + buttons above, typed line at bottom */
#hero .hero-container h1,
#hero .hero-container .hero-ctas { order: 1; }
#hero .hero-container p { order: 2; }

.hero-ctas {
  display: flex;
  gap: 18px;
  margin-top: 24px;    /* space below headline */
  margin-bottom: 40px; /* space above typed line */
  /* Appear together with headline after 4s */
  opacity: 0;
  transform: translateY(8px);
  animation: hero-appear 700ms ease-out 4s forwards;
}

@media (max-width: 576px) {
  .hero-ctas {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    margin-bottom: 32px;
  }
}

@keyframes hero-ctas-in {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-appear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  #hero h1,
  .hero-ctas {
    transform: none;
  }
}

/* Initial loader sequence: hide hero content while loading */
body.site-loading #hero .hero-container h1,
body.site-loading #hero .hero-container .hero-ctas {
  opacity: 0;
  transform: translateY(8px);
  animation: none !important;
}

/* Ensure typed line remains visible during loading */
body.site-loading #hero .hero-container p { opacity: 1; transform: none; }

#hero .hero-container h1,
#hero .hero-container .hero-ctas,
#hero .hero-container p {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Loader placement above typed line */
.intro-loader {
  position: absolute;
  top: 190px;
  left: 200px;
  z-index: 1; /* beneath the h1 */
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none; /* do not block interactions */
}

.intro-loader .loader {
  /* Subtle size and brand‑purple tone */
  --uib-color: #8f51ea;
  --uib-size: 68px;
}

/* Slightly varied purple hues per bubble */
.intro-loader .loader .loader-slice:nth-child(1)::before,
.intro-loader .loader .loader-slice:nth-child(1)::after { background-color: #ffd050; }
.intro-loader .loader .loader-slice:nth-child(2)::before,
.intro-loader .loader .loader-slice:nth-child(2)::after { background-color: #ffe27c; }
.intro-loader .loader .loader-slice:nth-child(3)::before,
.intro-loader .loader .loader-slice:nth-child(3)::after { background-color: #fff1b8; }
.intro-loader .loader .loader-slice:nth-child(4)::before,
.intro-loader .loader .loader-slice:nth-child(4)::after { background-color: #d9b0ff; }
.intro-loader .loader .loader-slice:nth-child(5)::before,
.intro-loader .loader .loader-slice:nth-child(5)::after { background-color: #bb86ff; }
.intro-loader .loader .loader-slice:nth-child(6)::before,
.intro-loader .loader .loader-slice:nth-child(6)::after { background-color: #9a5cf0; }

body.site-loading .intro-loader { opacity: 1; transform: translateY(0); }

/* Reveal hero immediately once loading ends */
body.hero-reveal #hero .hero-container h1,
body.hero-reveal #hero .hero-container .hero-ctas {
  animation: hero-appear 700ms ease-out 0s forwards;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-family: "Raleway", sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.btn-hero:hover { transform: translateY(-2px); }

.btn-hero-primary {
  color: #1a0b2e;
  /* Smooth shifting gradient sweep */
  background: linear-gradient(135deg,
    var(--brand-yellow) 0%,
    #fff4cc 20%,
    var(--brand-purple) 50%,
    #fff4cc 80%,
    var(--brand-yellow) 100%
  );
  background-size: 220% 220%;
  animation: gradient-pan 5s ease-in-out infinite alternate;
  box-shadow: 0 8px 24px rgba(216, 180, 255, 0.25);
}

@keyframes gradient-pan {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-hero-primary:hover {
  box-shadow: 0 10px 28px rgba(216, 180, 255, 0.35);
}

.btn-hero-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Mobile tweak: lift intro loader slightly higher */
@media (max-width: 576px) {
  .intro-loader {
    top: 140px;
  }
}

/* Override generic anchor hover color for hero CTAs */
.btn-hero-primary:hover,
.btn-hero-primary:focus-visible { color: #ffffff; }
.btn-hero-secondary:hover,
.btn-hero-secondary:focus-visible { color: #000000; }

#hero p span {
  color: #fff;
  /* padding-right: 100px; */
  padding-bottom: 4px;
  letter-spacing: 1px;
  border-bottom: 3px solid #149ddd;
}

/* (reverted) custom font/size for hero CTA labels */

@media (min-width: 1024px) {
  #hero {
    background-attachment: fixed;
  }
}

/* Decorative animated frame for About page photo */
.about .col-lg-4 picture {
  position: relative;
  display: block;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(20, 157, 221, 0.18);
  overflow: hidden; /* clip scaled image to ring */
}

.about .col-lg-4 picture::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* Discover-style animated multi-color gradient */
  background-image: linear-gradient(137.48deg, #ffdb3b 10%, #fe53bb 45%, #8f51ea 67%, #0044ff 87%);
  background-size: 300% 300%;
  animation: gradient_301 5s ease infinite;
  /* cut out the center to create a border ring */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 4px; /* ring thickness */
  pointer-events: none;
  z-index: 3;
}

.about .col-lg-4 picture img { transform: scale(1.006); }

.about .col-lg-4 picture img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit; /* match outer frame to avoid white sliver */
  border: 0;              /* remove inner white gap */
  background: transparent;
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 28px;
    line-height: 36px;
  }

  #hero h2 {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 30px;
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 60px 0;
  overflow: hidden;
}

.section-bg {
  background: transparent; /* remove blue banners behind sections */
}

.section-title {
  padding-bottom: 30px;
}

.section-title .title-with-logo {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}

.section-title .title-with-logo img {
  margin-top: -16px;
  width: 120px;
  height: 120px;
  object-fit: contain;
  transform-origin: 50% 50%;
  animation: logo-spin var(--logo-spin-duration, 9s) linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  #header .profile img,
  .section-title .title-with-logo img {
    animation: none !important;
  }
}


.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: #173b6c;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: #149ddd;
  bottom: 0;
  left: 0;
}

.section-title .title-with-logo::after {
  bottom: 15px;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about-tagline {
  font-size: 17px;
  line-height: 1.7;
  color: #2b2f38;
}

.about-tagline .tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 10px 12px 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(20, 157, 221, 0.14), rgba(191, 160, 255, 0.16));
  color: #173b6c;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.about-tagline .tag-emoji {
  font-size: 1.05em;
  line-height: 1;
}

.about-tagline .tagline-sub {
  display: block;
  margin-top: 6px;
  font-weight: 500;
  color: #272829;
}

.about .content h3 {
  font-weight: 700;
  font-size: 26px;
  color: #173b6c;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul ul {
  /* Tighter indent for nested list under Degrees */
  padding-left: 10px;
  margin-top: 6px;
}
.about .content ul ul li { margin-bottom: 4px; }
.about .content ul li { flex-wrap: wrap; }
.about .content ul li > ul { flex-basis: 100%; margin-left: 10px; }

/* Keep degree items on one line on larger screens */
@media (min-width: 992px) {
  .about .content ul ul li {
    white-space: nowrap;
    word-break: keep-all;
  }
}

.about .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.about .content ul strong {
  margin-right: 10px;
}

.about .content ul i {
  font-size: 16px;
  margin-right: 5px;
  color: #149ddd;
  line-height: 0;
}

.about .content p:last-child {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Facts
--------------------------------------------------------------*/
.facts {
  padding-bottom: 30px;
}

.facts .count-box {
  padding: 30px;
  width: 100%;
}

.facts .count-box i {
  display: block;
  font-size: 44px;
  color: #149ddd;
  float: left;
  line-height: 0;
}

/* Inline SVG Tux (bi-tux) sizing and position */
.facts .count-box svg.bi-tux {
  display: block;
  width: 44px;
  height: 44px;
  color: #149ddd;
  float: left;
  transform: translateY(-20px) scale(0.9);
  transform-origin: center;
}

/* Fine-tune the Tux icon only: slightly smaller and nudged upward */
.facts .count-box i.bi-tux {
  transform: translateY(-20px) scale(0.9);
  transform-origin: center;
}

.facts .count-box span {
  font-size: 48px;
  line-height: 40px;
  display: block;
  font-weight: 700;
  color: #050d18;
  margin-left: 60px;
}

.facts .count-box p {
  padding: 15px 0 0 0;
  margin: 0 0 0 60px;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  color: #122f57;
}

.facts .count-box a {
  font-weight: 600;
  display: block;
  margin-top: 20px;
  color: #122f57;
  font-size: 15px;
  font-family: "Open Sans", sans-serif;
  transition: ease-in-out 0.3s;
}

.facts .count-box a:hover {
  color: #1f5297;
}

/*--------------------------------------------------------------
# Skills
--------------------------------------------------------------*/
.skills .skills-category {
  font-size: 16px;
  font-weight: 700;
  margin: 16px 0 8px;
  color: #050d18;
}

.skills .chip-group {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skills .chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 9999px;
  background: rgba(20, 157, 221, 0.12);
  border: 1px solid #dce8f8;
  font-weight: 600;
  font-size: 13px;
  color: #050d18;
}

.skills .chip:hover {
  background: rgba(20, 157, 221, 0.18);
}

/*--------------------------------------------------------------
# Resume
--------------------------------------------------------------*/
.resume .resume-title {
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
  color: #050d18;
}

.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid #1f5297;
  position: relative;
}

.resume .resume-item.no-line {
  padding: 0;
  border-left: 0;
}

.resume .resume-item.no-line::before {
  display: none;
}

.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "Raleway", sans-serif;
  color: #050d18;
  margin-bottom: 10px;
}

.resume .resume-item h5 {
  font-size: 16px;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center; /* center text and logo vertically */
  font-weight: 600;
  margin-bottom: 10px;
}
.resume .resume-item h5.no-banner {
  background: transparent;
  padding: 0;
}

/* Inline company logo next to dates in resume */
.resume .resume-item h5 .logo-inline {
  height: calc(1em + 20px);
  width: auto;
  margin-left: 12px; /* increased gap between text and logo */
  vertical-align: -0.3em;
}
/* Fine-tune specific company logo sizes in resume dates */
.resume .resume-item h5 .logo-inline.logo-rijksoverheid { height: calc(1em + 36px); }
.resume .resume-item h5 .logo-inline.logo-ing { transform: scale(0.9); transform-origin: left center; }
.resume .resume-item h5 .logo-inline.logo-uva { height: calc(1em + 28px); }
.resume .resume-item h5 .logo-inline.logo-hva { height: calc(1em + 28px); }
.resume .resume-item h5 .logo-inline.logo-true { transform: scale(0.8); transform-origin: left center; }

/* Collapse groups */
.resume .resume-extra { display: none; }
.resume .resume-extra.show { display: block; }
.resume .resume-show-more { margin: 0 0 16px 0; }
.resume .resume-show-more .resume-more {
  color: #149ddd;
  text-decoration: underline;
  cursor: pointer;
}

/* Visual gap indicator in the timeline with a diagonal striped segment */
.resume .resume-show-more {
  position: relative;
  padding-left: 20px; /* align with resume item content */
}

/* Bubble with animated rays to indicate hidden timeline continuation */
.resume .resume-show-more .timeline-gap {
  position: absolute;
  left: -9px; /* align with timeline bullets */
  top: -2px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.resume .resume-show-more .timeline-gap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #1f5297; /* timeline brand color */
  box-shadow: 0 0 0 2px #fff; /* small ring to match timeline style */
}
.resume .resume-show-more .timeline-gap::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(
    #1f5297 0deg 6deg,
    transparent 6deg 45deg
  );
  /* hollow center so rays start outside the bubble */
  -webkit-mask: radial-gradient(circle, transparent 0 35%, #000 36% 100%);
          mask: radial-gradient(circle, transparent 0 35%, #000 36% 100%);
  opacity: .6;
  animation: gap-rays 1.6s ease-out infinite;
}

/* When expanded, stop rays and leave a normal circle */
.resume .resume-show-more.expanded .timeline-gap::after { display: none; }

@keyframes gap-rays {
  0% { transform: translate(-50%, -50%) scale(.6); opacity: .6; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0; }
}

.resume .resume-item ul {
  padding-left: 20px;
}

.resume .resume-item ul li {
  padding-bottom: 10px;
}

.resume .resume-item:last-child {
  padding-bottom: 0;
}

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: #fff;
  border: 2px solid #1f5297;
}

.resume .read-more-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.resume span {
  color: #149ddd;
  cursor: pointer;
}

/* Make resume toggles clearly clickable */
.resume .resume-item > span {
  cursor: pointer !important;
  text-decoration: underline;
}

.resume .read-more-text.show + span {
  display: none;
}

.resume .read-more-text.show {
  display: block;
  overflow: auto;
}

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
.portfolio .portfolio-item {
  margin-bottom: 30px;
}

.portfolio #portfolio-flters {
  padding: 0;
  margin: 0 auto 35px auto;
  list-style: none;
  text-align: center;
  background: #fff;
  border-radius: 50px;
  padding: 2px 15px;
}

.portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 10px 15px 8px 15px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: #272829;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}

.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
  color: #149ddd;
}

.portfolio #portfolio-flters li:last-child {
  margin-right: 0;
}

.portfolio .portfolio-wrap {
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.portfolio .portfolio-wrap::before {
  content: "";
  background: rgba(255, 255, 255, 0.5);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  transition: all ease-in-out 0.3s;
  z-index: 2;
  opacity: 0;
}

.portfolio .portfolio-wrap .portfolio-links {
  opacity: 1;
  left: 0;
  right: 0;
  bottom: -60px;
  z-index: 3;
  position: absolute;
  transition: all ease-in-out 0.3s;
  display: flex;
  justify-content: center;
}

.portfolio .portfolio-wrap .portfolio-links a {
  color: #fff;
  font-size: 28px;
  text-align: center;
  background: rgba(20, 157, 221, 0.75);
  transition: 0.3s;
  width: 50%;
}

.portfolio .portfolio-wrap .portfolio-links a:hover {
  background: rgba(20, 157, 221, 0.95);
}

.portfolio .portfolio-wrap .portfolio-links a+a {
  border-left: 1px solid #37b3ed;
}

.portfolio .portfolio-wrap:hover::before {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 1;
}

.portfolio .portfolio-wrap:hover .portfolio-links {
  opacity: 1;
  bottom: 0;
}

/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/
.portfolio-details {
  padding-top: 40px;
}

.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid #149ddd;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #149ddd;
}

.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: 0px 0 30px rgba(5, 13, 24, 0.08);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li+li {
  margin-top: 10px;
}

.portfolio-details .portfolio-description {
  padding-top: 30px;
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
}

.bi-circle {
  font-size: 11px !important;
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services .icon-box {
  margin-bottom: 20px;
}

.services .icon {
  float: left;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: #149ddd;
  border-radius: 50%;
  transition: 0.5s;
  border: 1px solid #149ddd;
}

.services .icon i {
  color: #fff;
  font-size: 24px;
  line-height: 0;
}

/* Ensure inline SVG icons render like font icons */
.services .icon svg {
  width: 24px;
  height: 24px;
  display: block;
  color: #fff;
}

/* Allow certificate badge images inside icon circle */
.services .icon img.badge-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  filter: none;
}

.services .icon-box:hover .icon {
  background: #fff;
}

.services .icon-box:hover .icon i {
  color: #149ddd;
}

.services .title {
  margin-left: 80px;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
}

.services .title a {
  color: #343a40;
  cursor: pointer;
}

.services .title a:hover {
  color: #149ddd;
}

.services .description a {
  cursor: pointer;
  text-decoration: underline;
}

/* Make the whole certificate text lines show a pointer to hint clickability */
.services .icon-box .title,
.services .icon-box .description {
  cursor: pointer;
}

/* Make whole certificate cards feel clickable */
.services .icon-box { cursor: pointer; }

.services .description {
  margin-left: 80px;
  line-height: 24px;
  font-size: 14px;
}

/* Tighten vertical spacing for Certificates section */
.services { padding-bottom: 30px; }
.services .icon-box { margin-bottom: 16px; }
.services .icon-box:last-child { margin-bottom: 0; }

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  box-sizing: content-box;
  text-align: center;
  min-height: 320px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50%;
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 0;
  color: #111;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: #999;
  margin: 0;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: #c3e8fa;
  font-size: 26px;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 15px 15px 15px;
  padding: 20px;
  background: #fff;
  position: relative;
  margin-bottom: 35px;
  border-radius: 6px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

.testimonials .testimonial-item p::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 20px solid #fff;
  border-right: 20px solid transparent;
  border-left: 20px solid transparent;
  position: absolute;
  bottom: -20px;
  left: calc(50% - 20px);
}

.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid #149ddd;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #149ddd;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact {
  padding-top: 32px;  /* reduce top gap from previous section */
  padding-bottom: 130px;
}
.contact .section-title .contact-intro {
  margin-top: 8px;
  color: #173b6c;
}

/*--------------------------------------------------------------
# Brand Strip (companies banner)
--------------------------------------------------------------*/
.brand-strip { padding: 24px 0; }
.brand-strip .brand-mask {
  overflow: hidden;
  position: relative;
}
.brand-strip .brand-track {
  display: flex;
  align-items: center;
  gap: 48px;
  animation: brand-scroll var(--brand-duration, 14s) linear infinite;
  animation-play-state: paused; /* start paused to save CPU until visible */
  will-change: transform;
}
.brand-strip.animate .brand-track { animation-play-state: running; }
.brand-strip .brand-item img {
  height: 58px;
  width: auto;
  display: block;
  opacity: 0;
  transition: opacity .3s ease, transform .2s ease;
}
.brand-strip .brand-item.brand-abn img { height: 46px; }
.brand-strip .brand-item.brand-cloudnation img { height: 64px; }
.brand-strip .brand-item.brand-hva img { height: 52px; }
.brand-strip .brand-item.brand-true img { height: 27px; }
.brand-strip .brand-item.brand-rijksoverheid img { height: 84px; }
.brand-strip .brand-item.brand-uva img { height: 64px; }
.brand-strip .brand-item.brand-ing img { height: 46px; }
.brand-strip .brand-item.brand-bright img { height: 77px; }
.brand-strip .brand-item img:hover { transform: translateY(-1px); }
.brand-strip .brand-item img.is-loaded { opacity: 1; }

@keyframes brand-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.contact .info {
  padding: 30px;
  background: #fff;
  width: 100%;
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.12);
}

.contact .info i {
  font-size: 20px;
  color: #149ddd;
  float: left;
  width: 44px;
  height: 44px;
  background: #dff3fc;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}

.contact .info h3,
.contact .info h4 {
  padding: 0 0 0 60px;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #050d18;
}

.contact .info p {
  padding: 0 0 10px 60px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #173b6c;
}

.contact .info .email p {
  padding-top: 5px;
}

.contact .info .social-links {
  padding-left: 60px;
}

.contact .info .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #333;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
  margin-right: 10px;
}

.contact .info .social-links a:hover {
  background: #149ddd;
  color: #fff;
}

.contact .info .email:hover i,
.contact .info .address:hover i,
.contact .info .phone:hover i {
  background: #149ddd;
  color: #fff;
}

.contact .php-email-form {
  width: 100%;
  padding: 30px;
  background: #fff;
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.12);
}

.contact .php-email-form .form-group {
  padding-bottom: 8px;
}

.contact .php-email-form .validate {
  display: none;
  color: red;
  margin: 0 0 15px 0;
  font-weight: 400;
  font-size: 13px;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .error-message br+br {
  margin-top: 25px;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form .form-group {
  margin-bottom: 15px;
}

/* Subtle helper text above contact fields */
.contact .php-email-form .field-hint {
  margin: 0 0 4px 0;
  font-size: 13px;
  color: #6c757d;
}

/* Prominent, unified form hint spanning both columns */
.contact .php-email-form .form-hint {
  font-size: 22px; /* match Contact info headings */
  font-weight: 600;
  color: #050d18;
  text-align: center;
  margin: 0 0 12px 0;
}

.contact .php-email-form .form-hint .emoji {
  display: inline-block;
  font-size: 1.8em;
  line-height: 1;
  vertical-align: -10%;
}

/* Enlarge emoji in section titles slightly */
.section-title .emoji {
  display: inline-block;
  font-size: 1.4em;
  line-height: 1;
  vertical-align: -5%;
}

.contact .php-email-form label {
  padding-bottom: 8px;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
}

.contact .php-email-form input {
  height: 44px;
}

.contact .php-email-form textarea {
  padding: 10px 15px;
}

.contact .php-email-form button[type=submit] {
  background: #149ddd;
  border: 0;
  padding: 10px 24px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type=submit]:hover {
  background: #37b3ed;
}

/* Use hero button styling for contact submit when btn-hero is present */
.contact .php-email-form button.btn-hero {
  background: transparent;
  border: 0;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
}
.contact .php-email-form button.btn-hero.btn-hero-primary {
  color: #1a0b2e;
  /* Match Discover 1:1 */
  background: linear-gradient(135deg, #ffe59a, #d8b4ff);
  background-size: 220% 220%;
  animation: gradient-pan 1.6s ease-in-out infinite alternate;
  box-shadow: 0 8px 24px rgba(216, 180, 255, 0.25);
}
.contact .php-email-form button.btn-hero i { margin-right: 8px; font-size: 1.1em; line-height: 0; }
.contact .php-email-form button.btn-hero.btn-hero-primary:hover {
  box-shadow: 0 10px 28px rgba(216, 180, 255, 0.35);
}

/* Align and icon spacing for animated Send message button */
.contact .php-email-form .text-center .btn { margin: 0 auto; }
.contact .php-email-form .btn i { margin-right: 8px; font-size: 1.1em; line-height: 0; }

/* Force contact submit button to use the animated gradient/glow like Discover */
.contact .php-email-form button.btn[type=submit] {
  /* Override generic submit styles */
  background-image: linear-gradient(#212121, #212121),
    linear-gradient(137.48deg, #ffdb3b 10%, #fe53bb 45%, #8f51ea 67%, #0044ff 87%);
  background-size: 300% 300%;
  background-origin: border-box;
  background-clip: content-box, border-box;
  border: double 4px transparent;
  border-radius: 5rem;
  animation: gradient_301 5s ease infinite;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(216, 180, 255, 0.25);
  padding: 0; /* dimensions come from .btn width/height */
}

.contact .php-email-form button.btn[type=submit]:hover,
.contact .php-email-form button.btn[type=submit]:focus-visible {
  background-image: linear-gradient(#212121, #212121),
    linear-gradient(137.48deg, #ffdb3b 10%, #fe53bb 45%, #8f51ea 67%, #0044ff 87%);
  box-shadow: 0 10px 28px rgba(216, 180, 255, 0.35);
  color: #ffffff;
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

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

/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs {
  padding: 20px 0;
  background: #f9f9f9;
}

.breadcrumbs h2 {
  font-size: 26px;
  font-weight: 300;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 15px;
}

.breadcrumbs ol li+li {
  padding-left: 10px;
}

.breadcrumbs ol li+li::before {
  display: inline-block;
  padding-right: 10px;
  color: #0e2442;
  content: "/";
}

@media (max-width: 768px) {
  .breadcrumbs .d-flex {
    display: block !important;
  }

  .breadcrumbs ol {
    display: block;
  }

  .breadcrumbs ol li {
    display: inline-block;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  padding: 15px;
  color: #f4f6fd;
  font-size: 14px;
  position: fixed;
  left: -300px; /* hidden by default with menu closed */
  bottom: 0;
  width: 300px;
  z-index: 9999;
  background: #040b14;
  transition: left 0.5s ease-in-out;
}

/* Reveal footer when menu is open */
body.mobile-nav-active #footer { left: 0; }

#footer .copyright {
  text-align: center;
}

#footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: #eaebf0;
}

/*--------------------------------------------------------------
# Search
--------------------------------------------------------------*/
.site-search {
  margin-top: 10px;
  padding: 8px;
  background: #0c1524;
  border-radius: 6px;
}

.site-search input[type="search"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #2c2f3f;
  background: #0c1524;
  color: #fff;
  outline: none;
}

.site-search input[type="search"]::placeholder {
  color: #a8a9b4;
}

.site-search ul {
  margin-top: 8px;
  max-height: 200px;
  overflow: auto;
  list-style: none;
  padding: 0;
}

.site-search ul li a {
  display: block;
  color: #a8a9b4;
  padding: 6px 4px;
}

.site-search ul li a:hover {
  color: #fff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1199px) {
  #footer {
    position: fixed; /* keep behavior consistent on mobile */
    left: -300px;    /* hidden until toggled */
    width: 300px;
  }
  body.mobile-nav-active #footer { left: 0; }
}

/* Remove previous override: keep hero image and original overlay intact */
