:root {
  /* Fonts */
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Poppins", sans-serif;

  /* Global colors */
  --background-color: #000000;
  --default-color: #fafafa;
  --heading-color: #ffffff;
  --accent-color: #dcd0ff;
  --surface-color: #1a1a1a;
  --contrast-color: #000000;
  --gold-1: #f8e7b0;
  --gold-2: #f5d37a;
  --gold-3: #d6a84b;

  /* Navigation colors */
  --nav-color: #fafafa;
  --nav-hover-color: #492ee4;
  --nav-mobile-background-color: #1a1a1a;
  --nav-dropdown-color: #fafafa;

  /* Persistent top shade */
  --top-shade-opa: 0.32; /* intensity for hero */
  --top-shade-opa-cv: 0.28; /* intensity for CV/Portfolio sections */
  --top-shade-height: 130px; /* strip height */

  /* Max width of the stack (image + panel) on desktop */
  --stack-max-w: 760px; /* tweak between 680–820px if desired */

  /* Footer glass blur */
  --footer-glass-blur: 50px; /* 8–12px also works nicely */

  /* UX */
  scroll-behavior: smooth;
}

/* Section dark theme */
.dark-background {
  --background-color: rgba(15, 15, 15, 0.975);
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #292929f9;
  --contrast-color: #000000;
}

/* SPA: hide inactive views */
[data-view][hidden] {
  display: none !important;
}

/* ===========================
   Base
=========================== */
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

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

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

/* ===========================
   Header + Nav
=========================== */
.header {
  --background-color: rgba(0, 0, 0, 0); /* transparent at the top */
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 15px 0;
  transition: all 0.5s;
  z-index: 997;
}
.header .logo {
  line-height: 1;
}
.header .logo img {
  max-height: 32px;
  margin-right: 8px;
}
.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}
.scrolled .header {
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.1);
  --background-color: rgba(0, 0, 0, 0.8); /* if too dark, try 0.55–0.65 */
}

/* Nav (desktop) */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }
  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }
  .navmenu li {
    position: relative;
  }
  .navmenu > ul > li {
    white-space: nowrap;
    padding: 15px 14px;
  }
  .navmenu > ul > li:last-child {
    padding-right: 0;
  }

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

  .navmenu a i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu > ul > li > a:before {
    content: "";
    position: absolute;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--nav-hover-color);
    visibility: hidden;
    width: 0;
    transition: all 0.3s ease-in-out;
  }
  .navmenu a:hover:before,
  .navmenu li:hover > a:before,
  .navmenu .active:before {
    visibility: visible;
    width: 25px;
  }

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

/* Nav (mobile) */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }
  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
  }

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

  .navmenu a 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 {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

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

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

  .mobile-nav-active {
    overflow: hidden;
  }
  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }
  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }
  .mobile-nav-active .navmenu > ul {
    display: block;
  }
}

/* ===========================
   Footer
=========================== */
.footer.glass-footer {
  color: var(--default-color);
  background: linear-gradient(
    to top,
    rgba(14, 14, 18, 0.62),
    rgba(14, 14, 18, 0.5)
  ) !important;
  backdrop-filter: saturate(140%) blur(var(--footer-glass-blur)) !important;
  -webkit-backdrop-filter: saturate(140%) blur(var(--footer-glass-blur)) !important;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.28);
  padding: 30px 0;
  position: relative;
  text-align: center;
}

.footer.glass-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -48px;
  height: 48px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.28)
  ) !important;
  pointer-events: none;
}

/* Footer headline – gradient text with golden underline */
.footer.glass-footer h3.footer-slogan {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-style: italic;
  font-size: 3rem !important;
  letter-spacing: 0.5px;
  display: inline-block;
  position: relative;
  margin: 0 0 16px;
  padding-bottom: 10px;

  /* Text gradient (white-lilac) */
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(220, 208, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.95) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;

  text-shadow: 0 0 0.01em rgba(255, 255, 255, 0.2);
  opacity: 0.95;
  transition: opacity 0.25s ease, letter-spacing 0.25s ease;
}

/* Golden underline */
.footer.glass-footer h3.footer-slogan::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 62%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold-1) 20%,
    var(--gold-2) 50%,
    var(--gold-1) 80%,
    transparent 100%
  );
  opacity: 0.85;
  transition: width 0.28s ease, opacity 0.28s ease;
}

.footer.glass-footer h3.footer-slogan:hover,
.footer.glass-footer h3.footer-slogan:focus-visible {
  opacity: 1;
  letter-spacing: 0.6px;
}

.footer.glass-footer h3.footer-slogan:hover::after,
.footer.glass-footer h3.footer-slogan:focus-visible::after {
  width: 78%;
  opacity: 1;
}

/* Tagline */
.footer.glass-footer p {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-style: italic;
  margin: 0 0 30px;
}

.footer.glass-footer .social-links {
  margin: 0 0 30px;
}

.footer.glass-footer .social-links a {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: var(--contrast-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin: 0 4px;
  transition: 0.25s;
}

.footer.glass-footer .social-links a:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.footer.glass-footer .footer-meta {
  padding-top: 25px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer.glass-footer .credits {
  font-size: 13px;
  padding-top: 5px;
}

/* ===========================
   Responsive tweaks
=========================== */
@media (max-width: 576px) {
  .footer.glass-footer {
    padding: 20px 0 calc(28px + env(safe-area-inset-bottom));
  }

  .footer.glass-footer h3.footer-slogan {
    font-size: 2.1rem !important;
    line-height: 1.15;
    letter-spacing: 0.4px;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .footer.glass-footer h3.footer-slogan::after {
    width: 64%;
    height: 2px;
    box-shadow: 0 5px 14px rgba(245, 211, 122, 0.1);
  }

  .footer.glass-footer p {
    font-size: 0.85rem;
    line-height: 1.55;
    opacity: 0.92;
    margin: 6px auto 16px;
    max-width: 28ch;
  }

  .footer.glass-footer .social-links {
    margin-top: 6px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .footer.glass-footer .social-links a {
    width: 40px;
    height: 40px;
  }

  .footer.glass-footer .footer-meta {
    padding-top: 14px;
  }

  .footer.glass-footer .copyright {
    font-size: 13px;
    line-height: 1.35;
    margin-inline: 16px;
  }

  .footer.glass-footer .credits {
    font-size: 13px;
    line-height: 1.35;
    margin-inline: 16px;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .footer.glass-footer h3.footer-slogan {
    font-size: 2.3rem;
    line-height: 1.15;
    margin-bottom: 12px;
  }
  .footer.glass-footer p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 34ch;
    margin: 8px auto 18px;
  }
}

/* ===========================
   Preloader
=========================== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}
#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}
@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===========================
   Scroll Top
=========================== */
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}
.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}
.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
}
.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

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

/* ===========================
   Sections & titles
=========================== */
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 100px;
  overflow: clip;
}
@media (max-width: 1199px) {
  section,
  .section {
    scroll-margin-top: 66px;
  }
}

.section-title {
  padding-bottom: 60px;
  position: relative;
}
.section-title h2 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1px;
  margin: 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}
.section-title h2::after {
  content: "";
  width: 120px;
  height: 1px;
  display: inline-block;
  background: var(--accent-color);
  margin: 4px 10px;
}
.section-title div {
  color: var(--heading-color);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--heading-font);
}

/* ===========================
   Hero
=========================== */
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 3;
}
.hero h2 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
}
.hero p {
  margin: 5px 0 0;
  font-size: 26px;
}
.hero p span {
  letter-spacing: 1px;
  border-bottom: 2px solid var(--accent-color);
}
.hero .social-links {
  margin-top: 25px;
}
.hero .social-links a {
  background-color: color-mix(in srgb, var(--default-color), transparent 90%);
  color: var(--default-color);
  font-size: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  transition: 0.3s;
}
.hero .social-links a:hover {
  background-color: var(--accent-color);
}
@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }
  .hero p {
    font-size: 20px;
  }
}

/* Persistent top shade (hero) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, var(--top-shade-opa)) 0,
    rgba(0, 0, 0, calc(var(--top-shade-opa) * 0.7)) 60px,
    rgba(0, 0, 0, 0) var(--top-shade-height)
  );
  opacity: 1;
}

/* ===========================
   Hero CTA (CV / Portfolio)
   - glassy / transparent but opaque
   - smooth transitions
   - accessible focus
   - tooltip shows aria-label or title
=========================== */

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

/* Base “glassy” look */
.hero-cta .btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  font-weight: 400;
  text-decoration: none;
  line-height: 1;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  background: color-mix(
    in srgb,
    var(--default-color),
    transparent 92%
  ); /* transparent but slightly opaque */
  backdrop-filter: saturate(120%) blur(6px);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
  color: var(--default-color);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

/* Variants */
.hero-cta .btn.btn-primary {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
  border-color: color-mix(in srgb, var(--accent-color), transparent 40%);
  color: var(--contrast-color);
}

.hero-cta .btn.btn-outline-light {
  background: color-mix(in srgb, var(--default-color), transparent 92%);
  border-color: color-mix(in srgb, var(--default-color), transparent 75%);
  color: var(--default-color);
}

/* Hover / active */
.hero-cta .btn:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--accent-color), transparent 10%);
  border-color: color-mix(in srgb, var(--accent-color), transparent 30%);
  color: var(--contrast-color);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28),
    0 0 0 1px color-mix(in srgb, var(--default-color), transparent 80%);
}
.hero-cta .btn:active {
  transform: translateY(0);
}

/* Accessible focus */
.hero-cta .btn:focus {
  outline: none;
}
.hero-cta .btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(73, 46, 228, 0.45), 0 8px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

/* Support for users with reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-cta .btn {
    transition: none;
  }
}

/* ===========================
   Accessible tooltips (CSS only)
   Shows aria-label or title
=========================== */

/* Tooltip is triggered if the link has aria-label or title */
.hero-cta .btn[aria-label],
.hero-cta .btn[title],
.hero .social-links a[aria-label],
.hero .social-links a[title] {
  position: relative;
}

/* Tooltip bubble */
.hero-cta .btn[aria-label]:hover::after,
.hero-cta .btn[title]:hover::after,
.hero .social-links a[aria-label]:hover::after,
.hero .social-links a[title]:hover::after {
  content: attr(aria-label);
  /* If you prefer to use title instead of aria-label, uncomment the next line
     and comment the one above:
     content: attr(title);
  */
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  white-space: nowrap;
  font: 500 12px/1.2 var(--default-font);
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--accent-color), transparent 10%);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 75%);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  backdrop-filter: saturate(120%) blur(4px);
  -webkit-backdrop-filter: saturate(120%) blur(4px);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  animation: tooltip-in 0.18s ease forwards;
}

/* Tooltip arrow */
.hero-cta .btn[aria-label]:hover::before,
.hero-cta .btn[title]:hover::before,
.hero .social-links a[aria-label]:hover::before,
.hero .social-links a[title]:hover::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top: 0;
  border-bottom-color: color-mix(in srgb, var(--accent-color), transparent 10%);
  filter: drop-shadow(
    0 0 0 color-mix(in srgb, var(--default-color), transparent 75%)
  );
  opacity: 0;
  animation: tooltip-in 0.18s ease forwards;
}

/* Smooth tooltip fade-in animation */
@keyframes tooltip-in {
  from {
    opacity: 0;
    transform: translate(-50%, 4px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* On mobile, avoid showing tooltips (no real hover) */
@media (hover: none) and (pointer: coarse) {
  .hero-cta .btn::after,
  .hero-cta .btn::before,
  .hero .social-links a::after,
  .hero .social-links a::before {
    display: none !important;
  }
}

/* ===========================
   CV + Portfolio (PDF)
=========================== */
#cv,
#portfolio {
  position: relative;
  padding: 96px 0;
}

/* Background "blob" */
#cv::before,
#portfolio::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  z-index: 0;
  background: radial-gradient(
      1200px 800px at 75% 20%,
      color-mix(in srgb, var(--accent-color), transparent 65%) 0%,
      transparent 60%
    ),
    radial-gradient(
      900px 600px at 90% 80%,
      color-mix(in srgb, var(--accent-color), transparent 75%) 0%,
      transparent 55%
    );
}

/* Top strip for readability */
#cv::after,
#portfolio::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, var(--top-shade-opa-cv)) 0,
    rgba(0, 0, 0, 0) var(--top-shade-height)
  );
  opacity: 1;
}

/* Content above layered effects */
#cv > .container,
#portfolio > .container {
  position: relative;
  z-index: 1;
}

/* Titles */
#cv .section-title h2,
#portfolio .section-title h2 {
  letter-spacing: 1.5px;
}
#cv .section-title div,
#portfolio .section-title div {
  font-size: 34px;
  font-weight: 700;
}

/* Layout & media */
#cv .row.gy-4,
#portfolio .row.gy-4 {
  --bs-gutter-y: 2rem;
}
#cv img,
#portfolio img {
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

/* Action panel (right column) */
#cv .row > .col-md-6:last-child,
#portfolio .row > .col-md-6:last-child {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 14px;
  padding: 32px;
}

/* Buttons */
#cv .btn,
#portfolio .btn {
  border-radius: 999px;
  padding: 10px 18px;
}
#cv .btn i,
#portfolio .btn i {
  vertical-align: -2px;
}
#cv .btn-primary,
#portfolio .btn-primary {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}
#cv .btn-primary:hover,
#portfolio .btn-primary:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 10%);
  border-color: color-mix(in srgb, var(--accent-color), transparent 10%);
}
#cv .btn-outline-light,
#portfolio .btn-outline-light {
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 45%);
  color: var(--default-color);
}
#cv .btn-outline-light:hover,
#portfolio .btn-outline-light:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

/* Vertical stacks (image top, panel bottom) */
.cv-stack,
.portfolio-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

/* Image on top: centered, compact, with a clear-yet-soft shadow */
.cv-figure,
.portfolio-figure {
  max-width: var(--stack-max-w);
  width: 100%;
  margin-inline: auto;
}
.cv-figure img,
.portfolio-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  cursor: pointer;
  /* subtle ring + soft shadows */
  box-shadow: 0 0 0 1px
      color-mix(in srgb, var(--default-color), transparent 85%),
    0 14px 36px rgba(0, 0, 0, 0.32), 0 3px 10px rgba(0, 0, 0, 0.16);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.cv-figure img:hover,
.portfolio-figure img:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px
      color-mix(in srgb, var(--default-color), transparent 80%),
    0 18px 44px rgba(0, 0, 0, 0.36), 0 6px 14px rgba(0, 0, 0, 0.18);
  opacity: 0.99;
}

/* Action panel below: centered */
.cv-panel,
.portfolio-panel {
  width: 100%;
  max-width: var(--stack-max-w);
  margin-inline: auto;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 14px;
  padding: 32px;
  text-align: center;
}
.cv-panel .d-flex,
.portfolio-panel .d-flex {
  justify-content: center;
}

.cv-panel .btn,
.portfolio-panel .btn {
  border-radius: 999px;
  padding: 10px 18px;
}
.cv-panel .btn i,
.portfolio-panel .btn i {
  vertical-align: -2px;
}
.cv-panel .btn-primary,
.portfolio-panel .btn-primary {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}
.cv-panel .btn-primary:hover,
.portfolio-panel .btn-primary:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 10%);
  border-color: color-mix(in srgb, var(--accent-color), transparent 10%);
}
.cv-panel .btn-outline-light,
.portfolio-panel .btn-outline-light {
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 45%);
  color: var(--default-color);
}
.cv-panel .btn-outline-light:hover,
.portfolio-panel .btn-outline-light:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

/* Contact Form Styles */

#contact {
  padding-top: 100px;
}

@media (max-width: 1199px) {
  #contact {
    padding-top: 96px;
  }
}

#contact .section-title {
  font-size: 34px;
  font-weight: 700;
}

#contact .info p {
  color: rgb(255, 255, 255, 0.65) !important;
  font-weight: 400;
}

#contact #contactSuccess {
  margin-bottom: 18px;
}

#contact .form-control,
#contact .form-check-input {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#contact .btn-outline-light {
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  transition: all 0.3s ease;
}

#contact .btn-outline-light:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color) !important;
  border-color: var(--accent-color);
}

/* ===========================
   PDF Modal
=========================== */
.pdf-modal .modal-content {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-radius: 12px;
}
.pdf-modal .modal-header {
  border: 0;
}
.pdf-modal .modal-footer {
  border-top: 1px solid
    color-mix(in srgb, var(--default-color), transparent 90%);
}
