/*
* Template Name: SnapFolio
* Template URL: https://bootstrapmade.com/snapfolio-bootstrap-portfolio-template/
* Updated: Jul 21 2025 with Bootstrap v5.3.7
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*=============================================
=            CSS VARIABLES & ROOT            =
=============================================*/

/* Font Variables */
:root {
  --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: "Ubuntu", sans-serif;
  --nav-font: "Nunito", sans-serif;
}

/* Global Color Variables */
:root { 
  --background-color: #1f1f1f;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --accent-color: #ececec;
  --surface-color: #232323;
  --contrast-color: #310606;
}



/* Patch Notes Label Colors */
:root {
  --patch-mix-ratio: 30%; /* Adjust this value to change all patch note color mixing */
  
  /* Patch label colors */
  --label-release:     color-mix(in srgb, #0969da, var(--heading-color) var(--patch-mix-ratio)); /* updates: blue */
  --label-hidden:      color-mix(in srgb, #28a745, var(--heading-color) var(--patch-mix-ratio)); /* features: green */
  --label-bug:         color-mix(in srgb, #cf222e, var(--heading-color) var(--patch-mix-ratio)); /* bugs: red */
  --label-performance: color-mix(in srgb, #f66a0a, var(--heading-color) var(--patch-mix-ratio)); /* orange */
  --label-optimize:    color-mix(in srgb, #8250df, var(--heading-color) var(--patch-mix-ratio)); /* purple */
}



/* Navigation Color Variables */
:root {
  --nav-color: rgba(236, 236, 236, 0.59);
  --nav-hover-color: #ffffff;
  --nav-mobile-background-color: #393939;
  --nav-dropdown-background-color: #393939;
  --nav-dropdown-color: #ffffff;
  --nav-dropdown-hover-color: #ececec;
}

/* Color Preset Classes */
.light-background {
  --background-color: #2c2c2c;
  --surface-color: #323232;
}

.dark-background {
  --background-color: #040b14;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #151f2b;
  --contrast-color: #ffffff;
}

/* Global Settings */
:root {
  scroll-behavior: smooth;
}

/*=============================================
=            DYNAMIC NAVBAR ANIMATIONS        =
=============================================*/

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOutSlide {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-20px);
  }
}

#patch-notes-nav-item {
  transition: all 0.3s ease;
}

#patch-notes-nav-item.fade-out {
  animation: fadeOutSlide 0.3s ease-out forwards;
}

/* Smooth transition for other navbar items when patch notes item appears/disappears */
#navmenu li {
  transition: transform 0.3s ease-out;
}

/* When patch notes item is visible, shift other items slightly */
#navmenu.patch-notes-visible li:not(#patch-notes-nav-item) {
  transform: translateX(0);
}

/* #patch-notes-nav-item a {
  color: var(--contrast-color) !important;
  font-weight: 600;
  transition: color 0.3s ease;
}

#patch-notes-nav-item a:hover {
  color: color-mix(in srgb, var(--contrast-color), var(--accent-color) 40%) !important;
} */

/* When user is on other sections, revert to normal nav styling */
/* #patch-notes-nav-item.nav-away a {
  color: var(--nav-color) !important;
  font-weight: normal;
}

#patch-notes-nav-item.nav-away a:hover {
  color: var(--nav-hover-color) !important;
} */

/*=============================================
=            BASE STYLES                     =
=============================================*/

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

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

/* Links */
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;
}

/* 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); }
}

/* Custom cartoon face loading animation */
@keyframes cartoon-spin {
  0% { 
    transform: rotate(0deg) scale(1); 
  }
  25% { 
    transform: rotate(90deg) scale(1.1); 
  }
  50% { 
    transform: rotate(180deg) scale(1); 
  }
  75% { 
    transform: rotate(270deg) scale(1.1); 
  }
  100% { 
    transform: rotate(360deg) scale(1); 
  }
}

.cartoon-loading {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  animation: cartoon-spin 2s ease-in-out infinite;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cartoon-loading img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/*=============================================
=            LAYOUT COMPONENTS               =
=============================================*/

/* Global Header */
.header {
  --background-color: #1b1b1b;
  --contrast-color: #444444;
  color: var(--default-color);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 0 15px;
  width: 300px;
  transition: all ease-in-out 0.3s;
  overflow-y: auto;
  z-index: 997;
}

.header .header-container {
  border-radius: 20px;
  padding: 15px;
  background-color: var(--background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
}

.header .social-links {
  margin: 0 0 10px 0;
}

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

.header .social-links a:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
}

.header .header-toggle {
  color: var(--contrast-color);
  background-color: var(--accent-color);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 9999;
  transition: background-color 0.3s;
}

.header .header-toggle:hover {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

/* Navigation Menu */
.mobile-nav-toggle {
  display: none;
}

.navmenu {
  padding: 0;
  z-index: 9997;
  width: 100%;
}

.navmenu ul {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-color);
  padding: 15px 10px;
  font-family: var(--nav-font);
  font-size: 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: 0.3s;
  width: 100%;
}

.navmenu a .navicon,
.navmenu a:focus .navicon {
  font-size: 20px;
  margin-right: 10px;
}

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

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

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

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

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

.navmenu .dropdown {
  display: block;
}

.navmenu .dropdown a,
.navmenu .dropdown a:focus {
  color: --nav-dropdown-color;
}

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

.navmenu .dropdown ul {
  position: static;
  display: none;
  z-index: 99;
  padding: 5px 10px;
  margin: 5px 10px;
  background-color: var(--nav-dropdown-background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: none;
  transition: all 0.5s ease-in-out;
}

.navmenu .dropdown ul ul {
  background-color: rgba(33, 37, 41, 0.1);
}

.navmenu .dropdown>.dropdown-active {
  display: block;
  background-color: rgba(33, 37, 41, 0.03);
}

/* Global Footer */
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  padding: 0 0 40px 0;
  position: relative;
}

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

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

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

/*=============================================
=            UTILITY COMPONENTS              =
=============================================*/

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
  opacity: 1;
  visibility: visible;
}

/* Disable scrolling when preloader is active */
body.preloader-active {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/*=============================================
=            PATCH NOTES HEADER              =
============================================*/

/* Remove em dashes and style "Andrew Edition" for the Patch Notes header */
.section-title .patch-notes-title:before,
.section-title .patch-notes-title:after {
  display: none !important;
}

.section-title .patch-notes-title {
  font-weight: 400 !important;
  font-size: 32px !important;
}

.section-title .patch-notes-title .bold-part {
  font-weight: 700 !important;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 60px);
  left: calc(50% - 60px);
  width: 120px;
  height: 120px;
  background-image: url('../img/cartoonloader.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  animation: cartoon-preloader 2s linear infinite;
}

#preloader:after {
  content: "";
  position: fixed;
  top: calc(50% - 140px);
  left: 50%;
  width: 130px;
  height: 50px;
  background-image: url('../img/finalload.gif');
  background-size: cover;
  background-position: 20% center;
  background-repeat: no-repeat;
  transform: translateX(-55%);
}

@keyframes cartoon-preloader {
  0% { 
    transform: rotate(0deg); 
  }
  100% { 
    transform: rotate(360deg); 
  }
}

/* Scroll Top Button */
.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%);
  color: var(--contrast-color);
}

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

/* Global Sections */
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  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: 700;
  position: relative;
}

.section-title h2:before,
.section-title h2:after {
  content: "";
  width: 50px;
  height: 2px;
  background: var(--accent-color);
  display: inline-block;
}

.section-title h2:before {
  margin: 0 15px 10px 0;
}

.section-title h2:after {
  margin: 0 0 10px 15px;
}

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

/* Global Page Titles & Breadcrumbs */
.page-title {
  color: var(--default-color);
  padding: 25px 0 0 0;
  position: relative;
}

.page-title .container {
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  padding-bottom: 25px;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 700;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

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

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*=============================================
=            RESPONSIVE UTILITIES            =
=============================================*/

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

/* Header responsive behavior */
@media (min-width: 1200px) {
  .header~main,
  .header~#footer {
    margin-left: 330px;
  }
}

@media (max-width: 1199px) {
  .header {
    left: -100%;
  }
}

.header.header-show {
  left: 0;
}

/*=============================================
=            HERO SECTION                    =
=============================================*/

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero .background-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero .background-elements .bg-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, color-mix(in srgb, var(--accent-color), transparent 90%), color-mix(in srgb, var(--accent-color), transparent 95%));
  animation: float 6s ease-in-out infinite;
}

.hero .background-elements .bg-circle.circle-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.hero .background-elements .bg-circle.circle-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 5%;
  animation-delay: 2s;
}

.hero .hero-content {
  position: relative;
  width: 100%;
  z-index: 2;
}

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

.hero .hero-text h1 {
  font-size: 72px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 15px;
  color: var(--heading-color);
}

.hero .hero-text h1 .accent-text {
  color: var(--accent-color);
  position: relative;
}

.hero .hero-text h1 .accent-text::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), color-mix(in srgb, var(--accent-color), transparent 50%));
}

.hero .hero-text h2 {
  font-size: 32px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.hero .hero-text .lead {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--default-color);
}

.hero .hero-text .lead span {
  color: var(--accent-color);
  font-weight: 600;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 2px;
}

.hero .hero-text .description {
  font-size: 18px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero .hero-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero .hero-actions .btn {
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid;
}

.hero .hero-actions .btn.btn-primary {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
}

.hero .hero-actions .btn.btn-primary:hover {
  background-color: color-mix(in srgb, var(--accent-color), black 10%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.hero .hero-actions .btn.btn-outline {
  background-color: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.hero .hero-actions .btn.btn-outline:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-2px);
}

.hero .social-links {
  display: flex;
  gap: 20px;
}

.hero .social-links a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-color);
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  border-radius: 50%;
  font-size: 20px;
  transition: all 0.3s ease;
}

.hero .social-links a:hover {
  color: var(--contrast-color);
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.hero .hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.hero .hero-visual .profile-container {
  position: relative;
  width: 400px;
  height: 400px;
}

.hero .hero-visual .profile-container .profile-background {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 100%;
  height: 100%;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 30px;
  z-index: 1;
}

.hero .hero-visual .profile-container .profile-image {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  z-index: 2;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

/* Hero Responsive */
@media (max-width: 992px) {
  .hero .hero-text {
    text-align: center;
    margin-bottom: 50px;
  }
  .hero .hero-text h1 { font-size: 56px; }
  .hero .hero-text h2 { font-size: 28px; }
  .hero .hero-text .lead { font-size: 20px; }
  .hero .hero-visual .profile-container {
    width: 350px;
    height: 350px;
  }
}

@media (max-width: 768px) {
  .hero .hero-text h1 { font-size: 42px; }
  .hero .hero-text h2 { font-size: 24px; }
  .hero .hero-text .lead { font-size: 18px; }
  .hero .hero-text .description { font-size: 16px; }
  .hero .hero-actions { justify-content: center; }
  .hero .hero-actions .btn {
    padding: 12px 25px;
    font-size: 14px;
  }
  .hero .hero-visual .profile-container {
    width: 300px;
    height: 300px;
  }
  .hero .background-elements .bg-circle.circle-1 {
    width: 200px;
    height: 200px;
  }
  .hero .background-elements .bg-circle.circle-2 {
    width: 150px;
    height: 150px;
  }
}

/*=============================================
=            ABOUT SECTION                   =
=============================================*/

.about .profile-card {
  background: linear-gradient(135deg, var(--surface-color) 0%, color-mix(in srgb, var(--surface-color), var(--accent-color) 5%) 100%);
  border-radius: 2rem;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 90%);
  position: relative;
  overflow: hidden;
}

.about .profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), color-mix(in srgb, var(--accent-color), var(--heading-color) 30%));
}

.about .profile-header {
  position: relative;
  margin-bottom: 2rem;
}

.about .profile-header .profile-image {
  width: 160px;
  height: 160px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--accent-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about .profile-header .profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about .profile-header .profile-badge {
  position: absolute;
  bottom: 20px;
  right: calc(50% - 65px);
  width: 32px;
  height: 32px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--surface-color);
}

.about .profile-header .profile-badge i {
  color: var(--contrast-color);
  font-size: 14px;
}

.about .profile-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--heading-color);
}

.about .profile-content .profession {
  color: var(--accent-color);
  font-weight: 500;
  margin-bottom: 2rem;
}

.about .contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about .contact-links .contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: color-mix(in srgb, var(--surface-color), var(--background-color) 50%);
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--default-color);
  transition: all 0.3s;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.about .contact-links .contact-item:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.about .contact-links .contact-item i {
  font-size: 1rem;
  width: 18px;
}

.about .about-content {
  padding-left: 3rem;
}

.about .about-content .section-header {
  margin-bottom: 2rem;
}

.about .about-content .section-header .badge-text {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), var(--heading-color) 20%));
  color: var(--contrast-color);
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.0rem;
}

.about .about-content .section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.about .about-content .description {
  margin-bottom: 2.5rem;
}

.about .about-content .description p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin-bottom: 1.5rem;
}

.about .about-content .description p b {
  color: var(--heading-color);
}

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

.about .details-grid {
  margin-bottom: 2.5rem;
}

/* Two-column layout: details left (40%), stats right (60%) */
.about .about-info-row {
  display: grid;
  grid-template-columns: 1fr; /* stack as separate rows */
  gap: 1.25rem;
  align-items: start;
}

/* Stack detail items vertically in this layout */
/* .about .about-info-row .details-grid .detail-row {
  grid-template-columns: 1fr;
} */

.about .details-grid .detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1rem; /* equal spacing between rows */
}

.about .details-grid .detail-row:last-child {
  margin-bottom: 0;
}

.about .details-grid .detail-item .detail-label {
  display: block;
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin-bottom: 0rem;
  font-weight: 500;
}

.about .details-grid .detail-item .detail-value {
  display: block;
  font-weight: 600;
  color: var(--heading-color);
  font-size: 1rem;
}

.about .cta-section {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.about .cta-section .btn {
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid transparent;
}

/* .about .cta-section .btn.btn-primary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid var(--accent-color);
  font-weight: 600;
  justify-content: flex-start;
} */

.about .new_footer {
  margin-top: 2rem;
  margin-bottom: 0rem;
  text-align: center;
}

.about .cta-section .btn.btn-primary {
  background-color: var(--accent-color);
  color: var(--background-color);
  border-color: color-mix(in srgb, #f2c14b, transparent 100%);
  border-width: 3px;
}

.about .cta-section .btn.btn-primary:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, #f2c14b, transparent 20%);
  border-width: 3px;
}


.about .cta-section .btn.btn-outline {
  background-color: transparent;
  color: var(--default-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.about .cta-section .btn.btn-outline:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

/* .about .cta-section .btn.btn-outline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: color-mix(in srgb, var(--surface-color), var(--background-color) 50%);
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--default-color);
  transition: all 0.3s;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  font-weight: 400 !important;
  flex: 1;
  justify-content: flex-start;
}

.about .cta-section .btn.btn-outline:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px color-mix(in srgb, var(--accent-color), transparent 70%);
} */

.description p {
  margin: 0 0 12px 0 !important;
}

.about .profession-sub {
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  font-style: italic;

}
.about .profession .profession-sub {
  /* line-height: 0.5; */
  display: block;
  margin-top: -0.15rem;
}

/* About Responsive */
@media (max-width: 991px) {
  .about .profile-card { margin-bottom: 3rem; }
  .about .about-content { padding-left: 0; }
}

@media (max-width: 768px) {
  .about .about-content .section-header h2 { font-size: 1.875rem; }
  .about .details-grid .detail-row { grid-template-columns: 1fr; gap: 1rem; }
  .about .container { padding-left: 12px; padding-right: 12px; }
}
.about .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.25rem;
  /* padding: 1.25rem; */
  /* padding-top: 2rem;  */
  background-color: var(--surface-color);
  border-radius: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  position: relative;
}

/* Vertically center the header cell content */
.about .stats-grid .header-item {
  grid-column: 1 / -1; /* span across both columns */
  display: flex;
  align-items: center;
  justify-content: center;
}

.about .stats-grid .header-item .stat-label {
  width: 100%;
  text-align: center;
}

@media (max-width: 992px) {
  .about .about-info-row {
    grid-template-columns: 1fr;
  }
  /* reset explicit column placement on small screens */
  .about .about-info-row .stats-grid,
  .about .about-info-row .details-grid {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .about .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
  }
}

.about .stats-grid .header-item .stat-label {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--default-color);
}

/* Overlaid label in top-left of stats grid */
.about .stats-grid .stats-grid-label {
  position: absolute;
  top: 10px;
  left: 24px;
  font-size: 0.875rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
  pointer-events: none;
}

/* Circle backdrop behind icon+label for the two items (not the header) */
.about .stats-grid .stat-item {
  /* no decorative background behind content */
}

.about .stats-grid .stat-item {
  text-align: center;
}

.about .stats-grid .stat-item a.stat-item-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  width: 6rem;
  height: 6rem;
  border-radius: 15%;
  background-color: color-mix(in srgb, var(--surface-color), var(--background-color) 35%);
  /* border: 2px solid color-mix(in srgb, var(--default-color), transparent 85%); */
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  margin: 0 auto;
  /* padding: 0.5rem; */
}

.about .stats-grid .stat-item a.stat-item-link:hover {
  transform: translateY(-3px) scale(1.02);
  background-color: color-mix(in srgb, var(--surface-color), var(--accent-color) 8%);
  border-color: color-mix(in srgb, var(--accent-color), transparent 35%);
  box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}

.about .stats-grid .stat-item a.stat-item-link:active {
  transform: translateY(-1px) scale(0.99);
}

.about .stats-grid .stat-item a.stat-item-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 60%);
  border-color: var(--accent-color);
}

/* Preserve icon and label layout within the clickable area */
.about .stats-grid .stat-item a.stat-item-link .stat-number {
  margin: 0 0 4px 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about .stats-grid .stat-item a.stat-item-link .stat-number::before {
  content: "";
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--default-color);
  z-index: 0;
}

.about .stats-grid .stat-item a.stat-item-link .stat-number i {
  position: relative;
  z-index: 1;
  color: var(--background-color);
  font-size: 1.25rem;
}

.about .stats-grid .stat-item a.stat-item-link .stat-number i {
  font-size: 32px;
}

.about .stats-grid .stat-item a.stat-item-link .stat-label {
  font-size: 0.8rem;
  line-height: 1.2;
  text-align: center;
  /* padding: 0 6px; */
}

.about .stats-grid .stat-item a.stat-item-link:hover .stat-number {
  /* icon color change handled by container hover */
}

.about .stats-grid .stat-item .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  display: block;
  /* margin-bottom: 0.5rem; */
}

.about .stats-grid .stat-item .stat-label {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-weight: 500;
}

/*=============================================
=            STATS SECTION                   =
=============================================*/

.stats .stats-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stats .stats-item {
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface-color), transparent 5%), var(--surface-color));
  border-radius: 15px;
  padding: 40px 20px;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.stats .stats-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.stats .stats-item:hover .icon-wrapper {
  transform: scale(1.1);
}

.stats .stats-item .icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: transform 0.3s ease;
}

.stats .stats-item .icon-wrapper i {
  font-size: 36px;
}

.stats .stats-item span {
  display: block;
  font-size: 48px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0px;
  line-height: 1;
  font-family: var(--heading-font);
}

.stats .stats-item p {
  color: var(--default-color);
  font-size: 18px;
  margin: 0;
  font-weight: 500;
  font-family: var(--heading-font);
  opacity: 0.8;
}

/* Stats Color Variations */
.stats .stats-item:nth-child(1) .icon-wrapper {
  background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
}
.stats .stats-item:nth-child(1) .icon-wrapper i {
  color: color-mix(in srgb, var(--accent-color), transparent 10%);
}
.stats .stats-item:nth-child(2) .icon-wrapper {
  background-color: color-mix(in srgb, #ff7e00, transparent 85%);
}
.stats .stats-item:nth-child(2) .icon-wrapper i {
  color: color-mix(in srgb, #ff7e00, transparent 10%);
}
.stats .stats-item:nth-child(3) .icon-wrapper {
  background-color: color-mix(in srgb, #00c875, transparent 85%);
}
.stats .stats-item:nth-child(3) .icon-wrapper i {
  color: color-mix(in srgb, #00c875, transparent 10%);
}
.stats .stats-item:nth-child(4) .icon-wrapper {
  background-color: color-mix(in srgb, #e83e8c, transparent 85%);
}
.stats .stats-item:nth-child(4) .icon-wrapper i {
  color: color-mix(in srgb, #e83e8c, transparent 10%);
}

/* Stats Responsive */
@media (max-width: 992px) {
  .stats .stats-wrapper { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .stats .stats-wrapper { grid-template-columns: 1fr; }
}

/*=============================================
=            SKILLS SECTION                  =
=============================================*/

.skills .skills-category {
  background-color: var(--surface-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: transform 0.3s;
}

.skills .skills-category:hover {
  transform: translateY(-5px);
}

.skills .skills-category h3 {
  font-size: 24px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.skills .skills-category h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.skills .skill-item {
  margin-bottom: 10px;
}

.skills .skill-item:last-child {
  margin-bottom: 0;
}

.skills .skill-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.skills .skill-item .skill-percentage {
  font-size: 14px;
  color: color-mix(in srgb, var(--heading-color), transparent 30%);
}

.skills .skill-item .progress {
  height: 8px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.skills .skill-item .progress .progress-bar {
  background-color: var(--accent-color);
  transition: width 1.5s ease-in-out;
  width: 0;
  height: 100%;
  border-radius: 20px;
}

.skills .skill-item .skill-tooltip {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-top: 8px;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s;
}

.skills .skill-item:hover .skill-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.skills .skill-box {
  background-color: var(--surface-color);
  padding: 25px 20px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.skills .skill-box:hover {
  transform: translateY(-5px);
}

.skills .skill-box:hover i {
  color: var(--accent-color);
  transform: scale(1.1);
}

.skills .skill-box:hover .skill-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.skills .skill-box i {
  font-size: 36px;
  color: color-mix(in srgb, var(--accent-color), transparent 20%);
  margin-bottom: 15px;
  display: inline-block;
  transition: all 0.3s;
}

.skills .skill-box h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.skills .skill-box .skill-tooltip {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s;
}

/* Skills Responsive */
@media (max-width: 991.98px) {
  .skills .skills-category {
    margin-bottom: 30px;
  }
  .skills .skills-category:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 767.98px) {
  .skills .skill-box {
    margin-bottom: 20px;
  }
  .skills .skill-box:last-child {
    margin-bottom: 0;
  }
}

/*=============================================
=            RESUME SECTION                  =
=============================================*/

.notbold{
  font-weight:normal;
}​

.notbold2{
  font-weight:normal;
  font-size: 14px !important;
}​

/* Specific styling for the concentration line in resume */
.resume-item .concentration-line{
  font-size: 1.25rem !important; /* Same as h5 */
  color: color-mix(in srgb, var(--default-color), transparent 20%) !important; /* Same as h3 */
  font-weight: normal !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  margin-bottom: 0.5rem !important;
}

/* Remove bottom margin from h4 when followed by concentration line */
.resume-item h4:has(+ .concentration-line) {
  margin-bottom: 0.15rem !important;
}

/* Reusable tooltip styling for stats items */
.stats-item {
  position: relative;
}

.stats-tooltip {
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  background: #2c2c2c;
  border: 5px solid #626262;
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  min-width: 350px;
  max-width: 1050px;
  margin-right: -20px;
}

.stats-tooltip::before { /* Outer stroke */
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border: 14px solid transparent; /* Increased size for stroke */
  border-left-color: #626262; /* Stroke color */
  margin-left: 5px; /* Gap between tooltip and arrow */
  z-index: 999; /* Behind the inner triangle */
}

.stats-tooltip::after { /* Inner triangle */
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border: 12px solid transparent; /* Inner triangle size */
  border-left-color: #626262; /* Tooltip background color */
  margin-left: 5px; /* Gap between tooltip and arrow */
  z-index: 1000; /* On top of the stroke */
}

.stats-item:hover .stats-tooltip {
  opacity: 0;
  visibility: visible;
}

/* Hide tooltips on mobile devices */
@media (max-width: 768px) {
  .stats-tooltip {
    display: none !important;
  }
}


.stats-tooltip li {
  margin-bottom: 8px;
}

.stats-tooltip li:last-child {
  margin-bottom: 0;
}

.stats-tooltip p {
  margin: 0;
  margin-bottom: 0.5rem !important;
  font-size: 0.8rem !important;
  line-height: 1.2;
  color: var(--heading-color);
  text-align: left;
  font-weight: 300 !important;
}


.resume .resume-side {
  background-color: var(--surface-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.resume .resume-side .profile-img {
  text-align: center;
}

.resume .resume-side .profile-img img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 5px solid color-mix(in srgb, var(--accent-color), transparent 85%);
  border-radius: 50%;
}

.resume .resume-side h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--heading-color);
  font-weight: 600;
}

.resume .resume-side .contact-info li {
  margin-bottom: 1rem;
  color: var(--default-color);
}

.resume .resume-side .contact-info li i {
  width: 25px;
  color: var(--accent-color);
  margin-right: 0.5rem;
}

.resume .resume-side .skill-item {
  margin-bottom: 1.5rem;
}

.resume .resume-side .skill-item span {
  font-size: 0.9rem;
  color: var(--default-color);
}

.resume .resume-side .skill-item .progress {
  height: 8px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 4px;
  margin-top: 0.5rem;
}

.resume .resume-side .skill-item .progress .progress-bar {
  background-color: var(--accent-color);
  width: 0;
  transition: width 1s ease;
}

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

.resume .resume-section h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--heading-color);
  font-weight: 600;
}

.resume .resume-section h3 i {
  color: var(--accent-color);
}

.resume .resume-section .resume-item {
  padding-left: 1.5rem;
  border-left: 2px solid color-mix(in srgb, var(--accent-color), transparent 80%);
  margin-bottom: 2rem;
  position: relative;
}

.resume .resume-section .resume-item:before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  left: -9px;
  top: 0;
  background: var(--accent-color);
}

.resume .resume-section .resume-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--heading-color);
  font-weight: 600;
}

.resume .resume-section .resume-item h5 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.resume .resume-section .resume-item .company {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.resume .resume-section .resume-item .company i {
  margin-right: 0.5rem;
}

.resume .resume-section .resume-item ul {
  padding-left: 1.2rem;
}

.resume .resume-section .resume-item ul li {
  margin-bottom: 0.5rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.resume .resume-section .resume-item p {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 0;
}

/* Resume Responsive */
@media (max-width: 991.98px) {
  .resume .resume-side {
    margin-bottom: 2rem;
  }
}

/*=============================================
=            RESUME COMPONENTS               =
=============================================*/

.skill-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  margin: 3px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Match Stats Section Colors */
.badge-accent {
  background-color: color-mix(in srgb, var(--accent-color), transparent 80%);
}
.badge-orange {
  background-color: color-mix(in srgb, #ff7e00, transparent 80%);
}
.badge-green {
  background-color: color-mix(in srgb, #00c875, transparent 80%);
}
.badge-pink {
  background-color: color-mix(in srgb, #e83e8c, transparent 80%);
}

.resume-btn {
  padding: 0px 5px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
}

.resume-btn:hover {
  background-color: color-mix(in srgb, var(--accent-color), black 10%);
  transform: translateY(-2px);
  color: var(--contrast-color);
  box-shadow: 0 8px 25px color-mix(in srgb, var(--accent-color), transparent 70%);
}

/*=============================================
=            PORTFOLIO SECTION               =
=============================================*/

.portfolio .filters-wrapper {
  background-color: color-mix(in srgb, var(--surface-color), var(--default-color) 3%);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.portfolio .portfolio-filters {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  color: var(--default-color);
  transition: all 0.3s ease-in-out;
  border-radius: 6px;
  background: transparent;
  position: relative;
  border-left: 3px solid transparent;
}

.portfolio .portfolio-filters li:hover {
  color: var(--accent-color);
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-left-color: color-mix(in srgb, var(--accent-color), transparent 50%);
}

.portfolio .portfolio-filters li.filter-active {
  color: var(--accent-color);
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-left-color: var(--accent-color);
  font-weight: 600;
}

.filter-instructions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.filter-instructions i {
  font-size: 18px;
  color: var(--default-color);
  opacity: 0.4;
  flex-shrink: 0;
  margin-top: 2px;
}

.filter-instructions p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  opacity: 0.3;
}

.portfolio .portfolio-wrap {
  transition: 0.4s;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
  background: color-mix(in srgb, var(--accent-color), transparent 30%);
  cursor: pointer;
  /* Prevent text selection to improve clickability */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* Ensure pointer events work properly */
  pointer-events: auto;
}

.portfolio .portfolio-wrap img {
  transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  width: 100%;
  height: 245px;
  object-fit: cover;
  opacity: 0.8;
}
/* Global Section Titles */
#portfolio .section-title {
  text-align: center;
  padding-bottom:40px;
  position: relative;
}
.portfolio .portfolio-wrap .portfolio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 12px;
  padding-top: 40px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 70%,
    rgba(0, 0, 0, 0.3) 85%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 3;
  transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  transform: translateY(20px);
  opacity: 0;
}

.portfolio .portfolio-wrap .portfolio-info .content {
  transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  transform: translateY(20px);
  /* Prevent text selection */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* Ensure pointer events don't interfere */
  pointer-events: none;
}

.portfolio .portfolio-wrap .portfolio-info .category {
  display: inline-block;
  color: var(--contrast-color);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
  /* Prevent text selection */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* Ensure pointer events don't interfere */
  pointer-events: none;
}

.portfolio .portfolio-wrap .portfolio-info h4 {
  font-size: 20px;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 15px;
  /* Prevent text selection */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* Ensure pointer events don't interfere */
  pointer-events: none;
}

.portfolio .portfolio-wrap .portfolio-info .portfolio-links {
  display: flex;
  gap: 12px;
}

.portfolio .portfolio-wrap .portfolio-info .portfolio-links a {
  color: var(--contrast-color);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: color-mix(in srgb, var(--accent-color), transparent 30%);
  border-radius: 50%;
  font-size: 18px;
  transition: 0.3s;
}

.portfolio .portfolio-wrap .portfolio-info .portfolio-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.portfolio .portfolio-wrap:hover,
.portfolio .portfolio-item:hover .portfolio-wrap {
  transform: translateY(-5px);
}

.portfolio .portfolio-wrap:hover img,
.portfolio .portfolio-item:hover .portfolio-wrap img {
  transform: scale(1.08);
}

.portfolio .portfolio-wrap:hover .portfolio-info,
.portfolio .portfolio-item:hover .portfolio-wrap .portfolio-info {
  transform: translateY(0);
  opacity: 1;
}

.portfolio .portfolio-wrap:hover .portfolio-info .content,
.portfolio .portfolio-item:hover .portfolio-wrap .portfolio-info .content {
  transform: translateY(0);
}

/* Portfolio Title Overlay */
.portfolio-wrap .portfolio-title {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 0;
  z-index: 30;
  pointer-events: none;
}

.portfolio-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* background: rgba(0, 0, 0, 0.5); */
  background: color-mix(in srgb, color-mix(in srgb, #172852, rgb(2, 10, 47) 40%), transparent 45%);
  backdrop-filter: blur(10px);
  border-radius: 8px 0 0 8px;
  padding: 6px 12px;
  padding-right: 24px;
  overflow: hidden;
}

/* Vertical accent bar for project state - new/unopened projects */
.portfolio-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: #1e293b; /* Dark slate for visibility on light backgrounds */
  border-radius: 8px 0 0 8px;
  transition: width 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
  opacity: 1;
}

/* Viewed projects - thinner, lighter accent bar */
.portfolio-wrap.viewed .portfolio-title::before {
  width: 0px;
  background: color-mix(in srgb, #1e293b, transparent 50%);
  opacity: 0.4;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .portfolio-title::before {
    transition: none;
  }
}

.portfolio-wrap .portfolio-title h4 {
  font-size: 20px;
  color: var(--heading-color);
  font-weight: 600;
  margin: 0;
  padding: 0;
  transition: color 0.3s ease;
  /* Prevent text selection */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* Ensure pointer events don't interfere */
  pointer-events: none;
}

/* Viewed projects - lighter title color */
.portfolio-wrap.viewed .portfolio-title h4 {
  color: color-mix(in srgb, var(--heading-color), transparent 40%);
}

/* Portfolio Buttons */
.portfolio .btn-outline-secondary {
  border-radius: 8px;
  font-weight: 500;
  background-color: var(--contrast-color); 
  color: #fff;
  opacity: 0.5;
  margin-bottom: 0px;
}

.portfolio .btn-outline-secondary:hover {
  background-color: var(--contrast-color); 
  color: #fff;
  font-weight: 800;
}

.portfolio .portfolio-wrap .portfolio-info .btn {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  padding-left: 5;
  padding-right: 5;
  padding-top: 2;
  padding-bottom: 2;
  color: var(--contrast-color);
  font-size: 12px;
  font-weight: 600;
  border-color: color-mix(in srgb, var(--background-color), transparent 40%);
  box-shadow: 0 0px 10px color-mix(in srgb, white, transparent 15%);
  margin-bottom: 6px;
}


/* Ensure all text elements in portfolio items don't interfere with clicks */
.portfolio .portfolio-wrap h4,
.portfolio .portfolio-wrap h6,
.portfolio .portfolio-wrap p,
.portfolio .portfolio-wrap span,
.portfolio .portfolio-wrap div:not(.portfolio-links) {
  /* Prevent text selection */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* Ensure pointer events don't interfere with the stretched link */
  pointer-events: none;
}

/* Allow portfolio links to still be clickable */
.portfolio .portfolio-wrap .portfolio-links,
.portfolio .portfolio-wrap .portfolio-links * {
  pointer-events: auto;
}

.portfolio-title .star {
  color: gold;
  margin-left: 6px;
  font-size: 1.1em;
  vertical-align: middle;
  opacity: 0.8;
}

/* Hide star when project is viewed */
.portfolio-wrap.viewed .portfolio-title .star {
  display: none;
}

/* Portfolio Responsive */
@media (max-width: 991px) {
  .portfolio .filter-sidebar {
    margin-bottom: 30px;
  }
  .portfolio .filters-wrapper {
    padding: 20px;
  }
  .portfolio .portfolio-filters {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .portfolio .portfolio-filters li {
    padding: 8px 16px;
    border: 1px solid color-mix(in srgb, var(--accent-color), transparent 80%);
    border-left-width: 3px;
  }
  .filter-instructions {
    margin-top: 16px;
    padding-top: 16px;
  }
}

/*=============================================
=            TESTIMONIALS SECTION            =
=============================================*/

.testimonials .testimonial-masonry {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 2rem;
  position: relative;
}

.testimonials .testimonial-masonry::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--accent-color), transparent 95%), transparent);
  opacity: 0.5;
  z-index: -1;
}

.testimonials .testimonial-item:nth-child(3n-1) {
  margin-top: 3rem;
}

.testimonials .testimonial-item:nth-child(3n) {
  margin-top: 1.5rem;
}

.testimonials .testimonial-item.highlight .testimonial-content {
  background-color: color-mix(in srgb, var(--accent-color), transparent 92%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 70%);
}

.testimonials .testimonial-item.highlight .testimonial-content .quote-pattern {
  background-color: #3c3c3c;
  border: 1px solid #707070;
}

.testimonials .testimonial-item.highlight .testimonial-content .quote-pattern i {
  color: var(--accent-color);
}

.testimonials .testimonial-content {
  background-color: var(--surface-color);
  border-radius: 20px;
  padding: 1.8rem;
  padding-bottom: 1.2rem;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
}

.testimonials .testimonial-content:hover {
  transform: translateY(-5px);
}

.testimonials .testimonial-content p {
  font-size: 1rem;
  line-height: 1.2;
  margin: 0.575rem 0 0.575rem 0;
  position: relative;
  font-family: var(--default-font);
  color: color-mix(in srgb, var(--default-color), transparent 10%);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.testimonials .testimonial-content:hover p {
  opacity: 1;
}

.testimonials .testimonial-content p strong {
  transition: opacity 0.3s ease;
}

.testimonials code {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.1rem 0.2rem;
  color: var(--default-color);
  /* font-style: italic; */
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.8em;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.testimonials .testimonial-content h4 {
  margin-bottom: 0.75rem;
  font-family: var(--default-font);
}

.testimonials .quote-pattern {
  position: absolute;
  top: -1.95rem;
  left: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--surface-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
  font-size: 2rem;
  color: var(--accent-color);
}

.testimonials .client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
}

.testimonials .client-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.testimonials .client-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Disabled old hover scaling - now handled by JavaScript .active class
.testimonials .client-image:hover {
  transform: scale(1.5);
}

.testimonials .client-image:hover img {
  transform: scale(1.2);
}
*/

.testimonials .client-details h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

/* .testimonials .client-details .position {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--heading-color), transparent 20%);
} */


/* Testimonials Responsive */
@media (max-width: 1199.98px) {
  .testimonials .testimonial-masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .testimonials .testimonial-item:nth-child(3n-1),
  .testimonials .testimonial-item:nth-child(3n) {
    margin-top: 0;
  }
  .testimonials .testimonial-item:nth-child(even) {
    margin-top: 2rem;
  }
  
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 767.98px) {
  .testimonials .testimonial-masonry {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .testimonials .testimonial-item:nth-child(even) {
    margin-top: 0;
  }
  .testimonials .testimonial-content {
    padding: 1.5rem;
  }
  .testimonials .testimonial-content p {
    font-size: 0.9375rem;
    margin: 1.25rem 0;
  }
  .testimonials .quote-pattern {
    width: 2.25rem;
    height: 2.25rem;
    top: -1.125rem;
  }
  .testimonials .quote-pattern i {
    font-size: 1.125rem;
  }
  /* .testimonials .client-info {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
  } */
  .testimonials .client-image {
    width: 45px;
    height: 45px;
  }
  .testimonials .client-details h3 {
    font-size: 1rem;
  }
  .testimonials .client-details .position {
    font-size: 0.8125rem;
  }
}



/* Footer card styling */
.testimonial-item.footer-card {
  grid-column: 1 / -1; /* Span full width across all columns */
  margin-top: 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.footer-header {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 12px;
}

.footer-title {
  margin: 0;
  font-family: var(--default-font);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  grid-column: 1 / -1; /* Span full width */
}

.footer-column {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.footer-emoji {
  position: absolute;
  left: 10%;
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
  font-size: 1.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-item {
  font-family: monospace;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--default-color);
}

.testimonials .testimonial-content .footer-content {
  padding: 1rem !important;
}


/* Footer card matches other cards but reads like an appendix */
.footer-card {
  grid-column: 1 / -1;
  border: 1px solid rgba(255,255,255,0.0);
  border-radius: 18px;                 /* match your card radius */
  background: rgba(#1f1f1f,0.0);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset;
  padding: 20px 22px;
}

/* Grid layout */
.footer-content { display: grid; gap: 16px; }
.footer-header   { text-align: center; }

/* Title underline like your card dividers */
.footer-title {
  font-family: monospace;
  margin: 0 0 6px;
  position: relative;
}
.footer-title::after {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  margin: 10px auto 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
}

/* Tiny pill "3 open" */
.footer-badge {
  font-size: .75rem;
  padding: 2px 8px;
  margin-left: 8px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 500;
}

/* Three equal columns w/ subtle vertical separators */
.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
  position: relative;
}


/* Emoji tokens to match circular photos */
.footer-emoji {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--default-color);
  border: 2px solid color-mix(in srgb, #1f1f1f, transparent 50%);
  margin: 0 auto 8px;
  font-size: 36px;
}

/* Code chips for the lines */
.footer-chip {
  font-family: monospace;
  text-align: left;
  padding: 8px 10px;
  padding-left: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #1f1f1f;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2) inset;
  width: 80%;
  margin: 0 auto;
  position: relative;
}

/* Responsive: stack columns on small screens */
@media (max-width: 640px) {
  .footer-columns { grid-template-columns: 1fr; }
  .footer-columns::before { display: none; }
}


/*=============================================
=            CONTACT SECTION                  =
=============================================*/

.contact .info-box {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 3rem;
  border-radius: 1rem;
  height: 100%;
}

.contact .info-box h3 {
  color: var(--contrast-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact .info-box p {
  opacity: 0.8;
  margin-bottom: 2rem;
}

.contact .info-box a {
  color: var(--contrast-color);
}

.contact .info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact .info-item:last-child {
  margin-bottom: 0;
}

.contact .info-item .icon-box {
  width: 3.5rem;
  height: 3.5rem;
  background-color: color-mix(in srgb, var(--contrast-color), transparent 85%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: 0.3s;
}

.contact .info-item .icon-box i {
  font-size: 1.5rem;
  color: var(--contrast-color);
}

.contact .info-item:hover .icon-box {
  background-color: color-mix(in srgb, var(--contrast-color), transparent 70%);
}

.contact .info-item .content h4 {
  color: var(--contrast-color);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.contact .info-item .content p {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.contact .info-item .content p:last-child {
  margin-bottom: 0;
}

.contact .contact-form {
  background-color: var(--surface-color);
  padding: 3rem;
  border-radius: 1rem;
  height: 100%;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.05);
}

.contact .contact-form h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact .contact-form p {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin-bottom: 2rem;
}

.contact .contact-form .form-control,
.contact .contact-form .form-select {
  padding: 0.875rem 1.25rem;
  border-color: color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 0.5rem;
  background-color: color-mix(in srgb, var(--surface-color) 90%, white 5%);
  color: var(--default-color);
}

.contact .contact-form .form-control:focus,
.contact .contact-form .form-select:focus {
  box-shadow: none;
  border-color: var(--accent-color);
}

.contact .contact-form .form-control::placeholder,
.contact .contact-form .form-select::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.contact .contact-form .btn {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 1rem 2rem;
  border-radius: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: 0.3s;
}

.contact .contact-form .btn i {
  font-size: 1.25rem;
}

.contact .contact-form .btn:hover {
  background-color: color-mix(in srgb, var(--accent-color), var(--contrast-color) 20%);
}

/* Contact Responsive */
@media (max-width: 992px) {
  .contact .info-box,
  .contact .contact-form {
    padding: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .contact .info-box h3,
  .contact .contact-form h3 {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .contact .contact-form h3 {
    font-size: 1.75rem;
  }
}

/*=============================================
=            MODAL COMPONENTS                 =
=============================================*/

/*--------------------------------------------------------------
# Project Modal - Two Column Editorial Layout
--------------------------------------------------------------*/
#projectModal .modal-dialog {
  max-width: 1200px;
}

#projectModal .modal-content {
  background: var(--surface-color);
  color: var(--default-color);
  border-radius: 16px;
  border: none;
  position: relative;
  overflow: hidden;
}

/* Close button - absolutely positioned */
#projectModal .modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 100;
  background: color-mix(in srgb, var(--default-color), transparent 95%);
  border-radius: 50%;
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: all 0.3s ease;
  border: none;
}

/* Ensure the X icon is visible */
#projectModal .modal-close-btn::before {
  content: "×";
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  color: var(--default-color);
}

#projectModal .modal-close-btn:hover {
  opacity: 1;
  background: color-mix(in srgb, var(--default-color), transparent 88%);
  transform: rotate(90deg);
}

/* Modal Body - No padding, grid handles it */
#projectModal .modal-body {
  padding: 0;
}

/* Two Column Grid Layout */
.modal-two-col {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 0;
}

/*--------------------------------------------------------------
# Left Column - Title, Meta & Media (Fixed Height)
--------------------------------------------------------------*/
.modal-col-left {
  background: color-mix(in srgb, var(--default-color), transparent 98%);
  padding: 42px 40px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-right: 1px solid color-mix(in srgb, var(--default-color), transparent 95%);
  overflow: hidden;
  max-height: 85vh;
}

/* Title section in left column - fixed */
.modal-col-left .modal-title-section {
  margin-bottom: 18px;
  flex-shrink: 0;
}

/* Meta section in left column - scrollable if needed */
.modal-col-left .modal-meta-actions {
  margin-bottom: 24px;
  flex-shrink: 0;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
}

/* Custom scrollbar for meta section */
.modal-col-left .modal-meta-actions::-webkit-scrollbar {
  width: 4px;
}

.modal-col-left .modal-meta-actions::-webkit-scrollbar-track {
  background: transparent;
}

.modal-col-left .modal-meta-actions::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 10px;
}

.modal-col-left .modal-meta-actions::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--default-color), transparent 70%);
}

/* Media section - always visible, sized to content */
.modal-col-left .project-media {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.modal-col-left .project-thumbnails {
  flex-shrink: 0;
  margin-top: 24px;
  margin-bottom: auto;
}

/*--------------------------------------------------------------
# Right Column - Content with Hierarchy
--------------------------------------------------------------*/
.modal-col-right {
  padding: 42px 50px 60px 40px;
  overflow-y: auto;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Custom scrollbar */
.modal-col-right::-webkit-scrollbar {
  width: 6px;
}

.modal-col-right::-webkit-scrollbar-track {
  background: transparent;
}

.modal-col-right::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 10px;
}

.modal-col-right::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Title Section - Dominant Visual Element
--------------------------------------------------------------*/
.modal-title-section {
  margin-bottom: 20px;
}

.modal-title-section .modal-title {
  color: var(--heading-color);
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.modal-title-section .project-course {
  color: var(--accent-color);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/*--------------------------------------------------------------
# Meta & Actions Section
--------------------------------------------------------------*/
.modal-meta-actions {
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 93%);
}

/* Categories (Tags) */
.project-categories {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-categories .badge {
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
  color: var(--heading-color);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.8;
}

/* Action Buttons */
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-actions .btn {
  font-size: 0.875rem;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.25s ease;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  background: transparent;
  color: var(--default-color);
}

.project-actions .btn:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-color: var(--accent-color);
  color: var(--heading-color);
  transform: translateY(-1px);
}

.project-actions .btn i {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Compact mode when meta section is scrollable */
@container (max-height: 200px) {
  .project-actions {
    gap: 6px;
  }
  
  .project-actions .btn {
    font-size: 0.8125rem;
    padding: 6px 12px;
    border-radius: 6px;
  }
  
  .project-categories .badge {
    font-size: 0.625rem;
    padding: 4px 10px;
  }
}

/* Fallback compact mode using media queries */
.modal-col-left .modal-meta-actions[data-compact] .project-actions {
  gap: 6px;
}

.modal-col-left .modal-meta-actions[data-compact] .project-actions .btn {
  font-size: 0.8125rem;
  padding: 6px 12px;
  border-radius: 6px;
}

.modal-col-left .modal-meta-actions[data-compact] .project-categories .badge {
  font-size: 0.625rem;
  padding: 4px 10px;
}

/*--------------------------------------------------------------
# Content Sections - Clear Hierarchy
--------------------------------------------------------------*/
.modal-content-section {
  margin-bottom: 36px;
}

.modal-content-section:last-child {
  margin-bottom: 0;
}

/* Section Labels */
.section-label {
  color: color-mix(in srgb, var(--heading-color), transparent 30%);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

/*--------------------------------------------------------------
# Overview Section - Summary Paragraph
--------------------------------------------------------------*/
.overview-intro {
  color: var(--default-color);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 400;
  margin: 0;
}

/*--------------------------------------------------------------
# Details Section - Bullet List
--------------------------------------------------------------*/
.details-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.details-list li {
  color: color-mix(in srgb, var(--default-color), transparent 10%);
  font-size: 0.9375rem;
  line-height: 1.65;
  padding-left: 24px;
  margin-bottom: 14px;
  position: relative;
}

.details-list li:last-child {
  margin-bottom: 0;
}

.details-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-color);
}

/*--------------------------------------------------------------
# Features Section - Technical Highlights
--------------------------------------------------------------*/
.modal-features-section {
  /* background: color-mix(in srgb, var(--default-color), transparent 97%); */
  background: color-mix(in srgb, #172852, transparent 80%);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 94%);
}

.modal-features-section .section-label {
  margin-bottom: 14px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.features-grid .feature-item {
  display: grid !important;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0;
  column-gap: 14px;
  align-items: center;
}

.features-grid .feature-item > i {
  color: var(--accent-color);
  font-size: 1.5rem;
  flex-shrink: 0;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.features-grid .feature-item > div {
  grid-column: 2;
  grid-row: 1;
  display: contents;
}

.features-grid .feature-item h6 {
  color: var(--heading-color);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
  grid-column: 2;
  grid-row: 1;
}

.features-grid .feature-item p {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  grid-column: 1 / -1;
  grid-row: 2;
}

/*--------------------------------------------------------------
# Media Styling in Left Column
--------------------------------------------------------------*/
#projectModal .project-media {
  width: 100%;
  max-width: 100%;
}

/*--------------------------------------------------------------
# Thumbnail Gallery
--------------------------------------------------------------*/
.project-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.project-thumbnail {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  background: var(--surface-color);
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-thumbnail:hover {
  border-color: color-mix(in srgb, var(--accent-color), transparent 50%);
  transform: translateY(-2px);
}

.project-thumbnail.active {
  border-color: color-mix(in srgb, #f2c14b, transparent 20%);
  border-width: 3px;
  box-shadow: 0 0px 2px rgba(255, 255, 255, 0.45);
}

.project-thumbnail.video-thumb {
  position: relative;
}

.project-thumbnail.video-thumb::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* Media blocks */
#projectModal .project-media .media-single,
#projectModal .project-media .project-media-carousel {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

#projectModal .project-media .media-single,
#projectModal .project-media .ratio,
#projectModal .project-media .project-media-carousel,
#projectModal .project-media .carousel-item {
  background: var(--surface-color);
}

#projectModal .project-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: var(--surface-color);
}

/* Bootstrap carousel controls */
#projectModal .project-media .carousel-control-prev,
#projectModal .project-media .carousel-control-next {
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  backdrop-filter: blur(4px);
  opacity: 0.8;
  transition: all 0.3s ease;
}

#projectModal .project-media .carousel-control-prev:hover,
#projectModal .project-media .carousel-control-next:hover {
  background: rgba(0, 0, 0, 0.6);
  opacity: 1;
}

#projectModal .project-media .carousel-control-prev {
  left: 12px;
}

#projectModal .project-media .carousel-control-next {
  right: 12px;
}

/* Carousel indicators */
#projectModal .project-media .carousel-indicators {
  bottom: 12px;
  margin: 0;
}

#projectModal .project-media .carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 4px;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  transition: all 0.3s ease;
}

#projectModal .project-media .carousel-indicators button.active {
  background-color: var(--accent-color);
  width: 24px;
  border-radius: 4px;
}

/* Carousel counter */
#projectModal .project-media .carousel-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  z-index: 10;
  backdrop-filter: blur(8px);
}

#projectModal .project-media .carousel-counter .current-slide {
  color: var(--accent-color);
  font-weight: 600;
}

#projectModal .project-media .carousel-counter .total-slides {
  opacity: 0.8;
}

/*--------------------------------------------------------------
# Responsive Layout - Mobile & Tablet
--------------------------------------------------------------*/

/* Tablet: Stack columns, reduce padding */
@media (max-width: 991px) {
  .modal-two-col {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .modal-col-left {
    border-right: none;
    border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 95%);
    padding: 40px 30px;
    position: relative;
    max-height: none;
    height: auto;
    overflow-y: visible;
  }

  .modal-col-left .modal-meta-actions {
    max-height: none;
    overflow-y: visible;
  }

  .modal-col-left .project-media {
    flex: 0 0 auto;
  }

  .modal-col-right {
    padding: 40px 30px;
    max-height: none;
    overflow-y: visible;
  }

  #projectModal .modal-close-btn {
    top: 16px;
    right: 16px;
  }

  .modal-title-section .modal-title {
    font-size: 1.65rem;
  }

  .project-thumbnails {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .modal-features-section {
    padding: 22px;
  }
}

/* Mobile: Further reduce spacing */
@media (max-width: 576px) {
  .modal-col-left {
    padding: 30px 20px;
    height: auto;
    max-height: none;
  }

  .modal-col-left .modal-meta-actions {
    max-height: none;
    overflow-y: visible;
  }

  .modal-col-left .project-media {
    flex: 0 0 auto;
  }

  .modal-col-right {
    padding: 30px 20px;
  }

  #projectModal .modal-close-btn {
    width: 36px;
    height: 36px;
    top: 12px;
    right: 12px;
  }

  .modal-title-section {
    margin-bottom: 18px;
  }

  .modal-title-section .modal-title {
    font-size: 1.5rem;
  }

  .modal-title-section .project-course {
    font-size: 0.8125rem;
  }

  .modal-meta-actions {
    padding-bottom: 20px;
    margin-bottom: 24px;
  }

  .modal-content-section {
    margin-bottom: 30px;
  }

  .overview-intro {
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  .details-list li {
    font-size: 0.875rem;
    padding-left: 20px;
    margin-bottom: 8px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .features-grid .feature-item h6 {
    font-size: 0.875rem;
  }

  .features-grid .feature-item p {
    font-size: 0.8125rem;
  }

  .modal-features-section {
    padding: 20px;
  }

  .project-actions .btn {
    font-size: 0.8125rem;
    padding: 7px 14px;
  }

  .project-thumbnails {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 6px;
    margin-top: 12px;
  }

  .project-thumbnail {
    border-radius: 6px;
  }
}

/* Modal backdrop polish */
.modal-backdrop.show {
  opacity: 0.65;
  backdrop-filter: blur(6px) saturate(1.1);
}

/* Ensure proper focus management for project modal */
#projectModal:not([inert]) {
  /* Remove any aria-hidden when modal is active */
  aria-hidden: unset !important;
}

#projectModal[inert] {
  /* Properly hide when inert */
  pointer-events: none;
}

/* Modal animations */
.modal {
  --modal-speed: 0.45s;
}

/* Bounce pop animation */
body .modal.modal-bounce.fade .modal-dialog {
  transform: scale(0.6) translateY(20px);
  filter: blur(4px);
  opacity: 0;
  transition: transform var(--modal-speed) cubic-bezier(0.34,1.56,0.64,1),
              filter calc(var(--modal-speed) - 0.1s) ease,
              opacity 0.25s ease;
}

body .modal.modal-bounce.show .modal-dialog {
  transform: scale(1) translateY(0);
  filter: blur(0);
  opacity: 1;
}

/* Elastic drop animation */
@keyframes modalDropIn {
  0%   { transform: translateY(-80px) scale(0.9); opacity: 0; }
  60%  { transform: translateY(10px)  scale(1.02); opacity: 1; }
  80%  { transform: translateY(-4px)  scale(0.995); }
  100% { transform: translateY(0)     scale(1); }
}

body .modal.modal-elastic.fade .modal-dialog {
  opacity: 0;
}

body .modal.modal-elastic.show .modal-dialog {
  animation: modalDropIn var(--modal-speed) cubic-bezier(0.22,1,0.36,1) both;
}

/* Flip 3D animation */
body .modal.modal-flip-3d.fade .modal-dialog {
  transform: perspective(900px) rotateX(-70deg) translateY(20px) scale(0.92);
  transform-origin: 50% 10%;
  opacity: 0;
  transition: transform var(--modal-speed) cubic-bezier(0.2,0.8,0.2,1), opacity 0.28s ease;
}

body .modal.modal-flip-3d.show .modal-dialog {
  transform: perspective(900px) rotateX(0) translateY(0) scale(1);
  opacity: 1;
}

/* Slide-up blur animation */
body .modal.modal-slide-blur.fade .modal-dialog {
  transform: translateY(60px);
  filter: blur(10px);
  opacity: 0;
  transition: transform var(--modal-speed) cubic-bezier(0.22,1,0.36,1),
              filter var(--modal-speed) ease,
              opacity 0.22s ease;
}

body .modal.modal-slide-blur.show .modal-dialog {
  transform: translateY(0);
  filter: blur(0);
  opacity: 1;
}

/* From corner animation */
body .modal.modal-corner.fade .modal-dialog {
  transform-origin: 90% 10%;
  transform: scale(0.6) rotate(5deg);
  opacity: 0;
  transition: transform var(--modal-speed) cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
}

body .modal.modal-corner.show .modal-dialog {
  transform: none;
  opacity: 1;
}

/* Stagger animations for modal parts */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.modal.show .modal-header {
  animation: fadeUp 0.22s ease both;
}

.modal.show .modal-body {
  animation: fadeUp 0.26s ease 0.04s both;
}

.modal.show .modal-footer {
  animation: fadeUp 0.30s ease 0.08s both;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop {
    backdrop-filter: none;
  }
  .modal .modal-dialog,
  .modal .modal-header,
  .modal .modal-body,
  .modal .modal-footer {
    transition: none !important;
    animation: none !important;
  }
}

/*--------------------------------------------------------------
# Modal Reveal Animations - Staggered Entry
--------------------------------------------------------------*/
:root {
  --stagger-step: 35ms;
}

/* Initial hidden state */
.modal-content-section {
  opacity: 0;
  transform: translateY(20px);
}

/* Left column children */
.modal-col-left .modal-title-section,
.modal-col-left .modal-meta-actions,
.modal-col-left .project-media,
.modal-col-left .project-thumbnails {
  opacity: 0;
  transform: translateY(15px);
}

/* Animation keyframes */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reveal animations with stagger - Left Column */
#projectModal.reveal .modal-col-left .modal-title-section {
  animation: fadeInUp 0.45s ease-out forwards;
  animation-delay: calc(0 * var(--stagger-step));
}

#projectModal.reveal .modal-col-left .modal-meta-actions {
  animation: fadeInUp 0.45s ease-out forwards;
  animation-delay: calc(1 * var(--stagger-step));
}

#projectModal.reveal .modal-col-left .project-media {
  animation: fadeInUp 0.5s ease-out forwards;
  animation-delay: calc(2 * var(--stagger-step));
}

#projectModal.reveal .modal-col-left .project-thumbnails {
  animation: fadeInUp 0.45s ease-out forwards;
  animation-delay: calc(3 * var(--stagger-step));
}

/* Reveal animations with stagger - Right Column */
#projectModal.reveal .modal-content-section:nth-of-type(1) {
  animation: fadeInUp 0.45s ease-out forwards;
  animation-delay: calc(4 * var(--stagger-step));
}

#projectModal.reveal .modal-details-section {
  animation: fadeInUp 0.45s ease-out forwards;
  animation-delay: calc(5 * var(--stagger-step));
}

#projectModal.reveal .modal-features-section {
  animation: fadeInUp 0.45s ease-out forwards;
  animation-delay: calc(6 * var(--stagger-step));
}

/* Stagger bullet list items */
.details-list li {
  opacity: 0;
  transform: translateX(-10px);
}

#projectModal.reveal .details-list li {
  animation: fadeInUp 0.35s ease-out forwards;
}

#projectModal.reveal .details-list li:nth-child(1) { animation-delay: calc(6 * var(--stagger-step)); }
#projectModal.reveal .details-list li:nth-child(2) { animation-delay: calc(7 * var(--stagger-step)); }
#projectModal.reveal .details-list li:nth-child(3) { animation-delay: calc(8 * var(--stagger-step)); }
#projectModal.reveal .details-list li:nth-child(4) { animation-delay: calc(9 * var(--stagger-step)); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .modal-col-left .modal-title-section,
  .modal-col-left .modal-meta-actions,
  .modal-col-left .project-media,
  .modal-col-left .project-thumbnails,
  .modal-content-section,
  .details-list li {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Modal media sizing */
#projectModal .project-media .ratio {
  max-height: 60vh;
  background: var(--surface-color);
  border-radius: 12px;
  overflow: hidden;
}

#projectModal .project-media .ratio img,
#projectModal .project-media .ratio iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/*=============================================
=            INTERACTIVE ELEMENTS            =
=============================================*/

/* Mouse-tracking eyes (hero) */
.hero .profile-container {
  position: relative;
}

.hero .profile-image {
  display: block;
}

.cartoon-eyes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}

body.has-mouse .cartoon-eyes {
  opacity: 1;
}

/* Eye sizes and pupil travel */
:root {
  --eye-w: 14px;
  --eye-h: 14px;
  --pupil-scale: 0.62;
  --pupil-max: 2px;
}

.cartoon-eyes .eye {
  position: absolute;
  width: var(--eye-w);
  height: var(--eye-h);
  background: #fbefdf;
  border-radius: 50% / 60%;
  transform: translate(-50%, -50%);
}

.cartoon-eyes .pupil {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--eye-w) * var(--pupil-scale));
  height: calc(var(--eye-h) * var(--pupil-scale));
  background: #111;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Position the two eyes using percentages */
.cartoon-eyes .e-left {
  left: 42.88%;
  top: 29.77%;
}

.cartoon-eyes .e-right {
  left: 51.70%;
  top: 29.78%;
}

/* Contact avatar eyes */
#contact-avatar {
  position: relative;
  width: fit-content;
  margin-inline: auto;
}

#contact-avatar {
  --eye-w: 7px;
  --eye-h: 7px;
  --pupil-scale: 0.55;
  --pupil-max: 1.5px;
}

#contact-avatar .e-left {
  left: 47.7%;
  top: 31.2%;
}

#contact-avatar .e-right {
  left: 55.9%;
  top: 31.3%;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cartoon-eyes {
    transition: none;
  }
}

/* Hide cartoon eyes on touch devices */
@media (hover: none) {
  .cartoon-eyes {
    display: none !important;
  }
}

/*=============================================
=            PORTFOLIO INTERACTIONS           =
=============================================*/

/* Portfolio card interactions */
.portfolio-wrap {
  cursor: pointer;
  overflow: visible; /* Allow cut corner to show */
}

/* Ensure proper stacking order */
.portfolio-wrap img {
  position: relative;
  z-index: 1;
}

/* Cut corner overlay - solid triangle that blocks the corner to create "clipped" effect */
.portfolio-wrap::before {
  content: "";
  position: absolute;
  inset: -2px;
  background-color: var(--background-color);
  /* Triangle that blocks the top-right corner (45-degree) */
  clip-path: polygon(
    calc(100% + 15px) 0,         /* top edge at cut start */
    100% 0,                      /* top-right corner */
    100% 55px,                   /* right edge to cut end */
    calc(100% - 55px) 0          /* back to start */
  );
  z-index: 40;
  
  /* Initial hidden state */
  opacity: 0;
  visibility: hidden;
  transform: scale(0);              /* Start scaled down to 0 */
  transform-origin: top right;      /* Scale from top-right corner for fold effect */
  
  /* Transition settings - adjust timing/easing here */
  /* Try: ease-out, ease-in-out, cubic-bezier(.68,-0.55,.27,1.55) for bounce */
  transition: transform 0.3s ease-out, opacity 0.1s ease-out, visibility 0.1s ease-out;
  
  pointer-events: none;
}

/* Corner arrow CTA button */
.portfolio-wrap .card-action {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 35px;
  height: 35px;
  /* top: 10px;
  right: 10px;
  width: 40px;
  height: 40px; */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-color);
  border-radius: 50%;
  
  /* Initial hidden state - matches corner fold effect */
  opacity: 0;
  visibility: hidden;
  transform: scale(0);                  /* Start scaled down to 0 */
  transform-origin: center;             /* Scale from center of button */
  
  /* Fast transition with NO delay - used when leaving hover (arrow disappears immediately) */
  transition: transform 0.18s ease-out, opacity 0.1s ease-out, visibility 0.1s ease-out;
  
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
}

.portfolio-wrap .card-action i {
  font-size: 16px;
  color: var(--contrast-color);
  transition: transform 0.3s ease;
}

/* Arrow rotates when CTA circle is hovered */
.portfolio-wrap .card-action:hover i {
  transform: rotate(45deg) scale(1.1);
}

/* Viewed badge icon - positioned under the arrow */
.portfolio-wrap .viewed-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  z-index: 45;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.portfolio-wrap .viewed-badge i {
  font-size: 18px;
  color: color-mix(in srgb, var(--heading-color), transparent 40%);
  opacity: 0.4;
}

/* Show viewed badge only for viewed cards */
.portfolio-wrap.viewed .viewed-badge {
  opacity: 1;
  visibility: visible;
}

/* Hide viewed badge on hover so arrow can appear */
.portfolio-wrap.viewed:hover .viewed-badge,
.portfolio-wrap.viewed:focus-within .viewed-badge {
  opacity: 0;
  visibility: hidden;
}

/* Reveal cut corner and CTA on card hover/focus */
.portfolio-wrap:hover::before,
.portfolio-wrap:focus-within::before {
  opacity: 1;
  visibility: visible;
  transform: scale(1);  /* Scale to full size - change to scale(1.1) for overshoot effect */
}

.portfolio-wrap:hover .card-action,
.portfolio-wrap:focus-within .card-action {
  opacity: 1;
  visibility: visible;
  transform: scale(1);  /* Scale to full size - matches corner fold effect */
  
  /* Override transition with delay - waits for corner fold to complete (0.5s) before appearing */
  transition: transform 0.18s ease-out 0.3s, opacity 0.1s ease-out 0.3s, visibility 0.1s ease-out 0.3s;
}

/* Ensure portfolio info is above the cut corner overlay */
.portfolio-wrap .portfolio-info {
  position: relative;
  z-index: 3;
}

/* Focus state for keyboard navigation */
.portfolio-wrap .card-action:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}

.portfolio-item {
  position: relative;
  padding-bottom: 10px;
}

/* Mobile responsiveness for corner CTA */
@media (max-width: 768px) {
  .portfolio-wrap .card-action {
    width: 30px;
    height: 30px;
    top: 10px;
    right: 10px;
  }
  
  .portfolio-wrap .card-action i {
    font-size: 12px;
  }
  
  /* Viewed badge mobile sizing */
  .portfolio-wrap .viewed-badge {
    width: 30px;
    height: 30px;
    top: -5px;
    right: -5px;
  }
  
  .portfolio-wrap .viewed-badge i {
    font-size: 14px;
  }
  
  /* Smaller corner cut on mobile */
  .portfolio-wrap::before {
    clip-path: polygon(
      calc(100% - 50px) 0,
      100% 0,
      100% 50px,
      calc(100% - 50px) 0
    );
  }
  
  /* Reduce right padding on project titles for mobile */
  .portfolio-title {
    padding-right: 12px;
  }
}


/* Viewed projects styling */
.portfolio-wrap.viewed {
  position: relative;
}

.portfolio-wrap.viewed img {
  filter: brightness(0.1) grayscale(100%);
  transition: filter 0.25s ease;
  background: black;
}

.portfolio-wrap.viewed .portfolio-title {
  background: transparent;
  backdrop-filter: none;
}

.portfolio-wrap.viewed .portfolio-info {
  background: transparent;
}

/* Corner overlay behaves the same for viewed cards - only shows on hover */
/* No override needed - uses default behavior */


/* Touch devices */
@media (hover: none) {
  .portfolio-item {
    padding-bottom: 4px;
  }
  
  /* Show hover state by default on mobile */
  .portfolio .portfolio-wrap {
    transform: translateY(-5px);
  }
  
  .portfolio .portfolio-wrap img {
    transform: scale(1.08);
  }
  
  .portfolio .portfolio-wrap .portfolio-info {
    transform: translateY(0);
    opacity: 1;
  }
  
  .portfolio .portfolio-wrap .portfolio-info .content {
    transform: translateY(0);
  }
  
  /* But hide hover state for viewed cards on mobile */
  .portfolio .portfolio-wrap.viewed {
    transform: none;
  }
  
  .portfolio .portfolio-wrap.viewed img {
    transform: none;
  }
  
  .portfolio .portfolio-wrap.viewed .portfolio-info {
    transform: translateY(20px);
    opacity: 0;
  }
  
  .portfolio .portfolio-wrap.viewed .portfolio-info .content {
    transform: translateY(20px);
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .portfolio-wrap::before,
  .portfolio-wrap .card-action,
  .portfolio-wrap .card-action i {
    animation: none;
    transition: opacity 0.15s linear, visibility 0.15s linear;
  }
  
  .portfolio-wrap:hover .card-action,
  .portfolio-wrap:focus-within .card-action {
    transform: none;
  }
  
  .portfolio-wrap .card-action:hover i {
    transform: none;
  }
}

/*=============================================
=            SPECIAL EFFECTS                 =
=============================================*/

/* Library hours bubble */
#library-hours {
  position: relative;
}

#library-hours .once-bubble {
  position: absolute;
  right: -55%;
  top: 0%;
  transform: translateY(-50%) translateX(100px) scale(0.98);
  width: 80%;
  opacity: 0;
  transition: all 0.8s ease-in-out;
  z-index: 3;
  background: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
  line-height: 0;
}

#library-hours .once-bubble img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
}

/* Hover effect to show cartoon - slide in from right */
#library-hours:hover .once-bubble {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(0.98);
}

/* Mobile tweak */
@media (max-width: 576px) {
  #library-hours .once-bubble {
    right: -20px;
    width: 150px;
  }
}

/* Domains bridged bubble */
#domains-bridged {
  position: relative;
}

#domains-bridged .once-bubble {
  position: absolute;
  left: -50%;
  top: 20%;
  transform: translateY(-50%) translateX(-100px) scale(0.98);
  width: 80%;
  opacity: 0;
  transition: all 0.8s ease-in-out;
  z-index: 9999;
  background: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
  line-height: 0;
}

#domains-bridged .once-bubble img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
}

/* Hover effect to show cartoon - slide in from left */
#domains-bridged:hover .once-bubble {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(0.98);
}

/* Mobile tweak for domains-bridged */
@media (max-width: 576px) {
  #domains-bridged .once-bubble {
    left: -20px;
    width: 150px;
  }
}

/* Info icon for stats items with tooltips */
.stats-item .info-icon {
  position: absolute;
  bottom: +8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  color: var(--accent-color);
  opacity: 0.15;
  z-index: 10;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Info icon glows when stat item is hovered */
.stats-item:hover .info-icon {
  font-size: 22px;
  color: #626262;
  /* color: var(--accent-color);  */
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 1));
  transform: translateX(-50%) scale(1);
}

/*=============================================
=            TESTIMONIALS INTERACTIONS       =
=============================================*/

/* Circular photo container interactions */
.testimonials .client-image.circular-photo-container {
  display: flex;
  align-items: center;
  width: auto;
  height: auto;
  border-radius: 0;
  overflow: visible;
  flex-shrink: 0;
  gap: 0;
  transform: none;
  position: relative;
}

.testimonials .client-image .circular-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  position: relative;
  z-index: 10;
  --slide-offset: 0px;
  transition: transform 0.6s ease, box-shadow 0.25s ease, opacity 0.4s ease, visibility 0.4s ease;
  transform: translate(calc(var(--tx, 0px) + var(--slide-offset, 0px)), var(--ty, 0px)) scale(1);
  filter: grayscale(1) brightness(0.7);
  pointer-events: auto;
  will-change: transform;
  cursor: pointer;
}

/* Eagles media container - contain images instead of crop */
.testimonials .eagles-media-container .circular-photo {
  object-fit: contain;
  background-color: #ffffff;
}

.testimonials .client-image .circular-photo:not(:first-child) {
  margin-left: -20px;
  opacity: 0;
  visibility: hidden;
}

/* Position each image behind the first one initially with staggered animation */
.testimonials .client-image .circular-photo:nth-child(2) {
  /* --slide-offset: -60px; */
  --slide-offset: 0px;
  transition-delay: 0.2s, 0s, 1.2s, 1.2s;
  z-index: 9;
}

.testimonials .client-image .circular-photo:nth-child(3) {
  /* --slide-offset: -120px; */
  --slide-offset: -60px;
  transition-delay: 0.4s, 0s, 1s, 1s;
  z-index: 8;
}

.testimonials .client-image .circular-photo:nth-child(4) {
  /* --slide-offset: -180px; */
  --slide-offset: -120px; 
  transition-delay: 0.6s, 0s, 0.8s, 0.8s;
  z-index: 7;
}

.testimonials .client-image .circular-photo:nth-child(5) {
  /* --slide-offset: -240px; */
  --slide-offset: -180px;
  transition-delay: 0.8s, 0s, 0.6s, 0.6s;
  z-index: 6;
}

.testimonials .client-image .circular-photo:nth-child(6) {
  /* --slide-offset: -300px; */
  --slide-offset: -240px;
  transition-delay: 1s, 0s, 0.4s, 0.4s;
  z-index: 5;
}

.testimonials .client-image .circular-photo:nth-child(7) {
  /* --slide-offset: -360px; */
  --slide-offset: -300px;
  transition-delay: 1.2s, 0s, 0.2s, 0.2s;
  z-index: 4;
}
.testimonials .client-image .circular-photo:nth-child(8) {
  /* --slide-offset: -360px; */
  --slide-offset: -360px;
  transition-delay: 1.4s, 0s, 0.0s, 0.0s;
  z-index: 3;
}


/* Hidden images inherit the slide offset from their nth-child rules */

/* Show all images on card hover - remove slide offset */
.testimonials .testimonial-content:hover .client-image .circular-photo:not(:first-child) {
  opacity: 1;
  visibility: visible;
  --slide-offset: 0px;
}

/* Badge showing count of additional images */
.circular-photo-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3);
  /* border: 2px solid #fff; */
  border: 0px solid #ffffff00;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(255 255 255 / 50%);
  font-weight: 700;
  font-size: 1.3rem;
  position: absolute;
  left: 60px;
  top: 0;
  z-index: 9;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  filter: grayscale(0) brightness(1);
  pointer-events: none;
}

/* Hide badge on card hover */
.testimonials .testimonial-content:hover .circular-photo-badge {
  opacity: 0;
  visibility: hidden;
}

.testimonials .client-image .circular-photo.active {
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(3);
  border: 2px solid #fff;
  filter: grayscale(0) brightness(1);
  z-index: 100 !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease !important;
}

.testimonials .testimonial-content:hover .client-image .circular-photo {
  filter: grayscale(0) brightness(1);
  transition: transform 0.6s ease, filter 0.25s ease, box-shadow 0.25s ease, opacity 0.4s ease, visibility 0.4s ease;
}

/* Remove CSS hover state to prevent conflicts with JavaScript */
.testimonials .client-image .circular-photo:hover {
  /* Let JavaScript handle all hover states */
  
}

/* Ensure proper z-index reset when not active */
.testimonials .client-image .circular-photo:not(.active) {
  z-index: 10;
}

.testimonials .client-image .circular-photo:nth-child(2):not(.active) {
  z-index: 9;
}

.testimonials .client-image .circular-photo:nth-child(3):not(.active) {
  z-index: 8;
}

.testimonials .client-image .circular-photo:nth-child(4):not(.active) {
  z-index: 7;
}

.testimonials .client-image .circular-photo:nth-child(5):not(.active) {
  z-index: 6;
}

.testimonials .client-image .circular-photo:nth-child(6):not(.active) {
  z-index: 5;
}

.testimonials .client-image .circular-photo:nth-child(7):not(.active) {
  z-index: 4;
}
.testimonials .client-image .circular-photo:nth-child(8):not(.active) {
  z-index: 3;
}

.testimonials .client-image .circular-photo.zooming {
  z-index: 2147483647;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.4s ease, visibility 0.4s ease !important;
}

/* Carousel Modal Styles */
.carousel-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.carousel-modal.show {
  opacity: 1;
  visibility: visible;
}

/* Carousel container animations */
.carousel-container {
  background-color: var(--surface-color);
  border-radius: 20px;
  /* padding: 2rem; */
  max-width: 60vh; 
  max-height: 80vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
  display: flex;
  flex-direction: column;
  transform: scale(0.7) translateY(30px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.carousel-modal.show .carousel-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Staggered animations for carousel elements */
.carousel-header,
.carousel-image-container,
.carousel-navigation,
.carousel-indicators {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel-modal.show .carousel-header {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.carousel-modal.show .carousel-image-container {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.carousel-modal.show .carousel-navigation {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.carousel-modal.show .carousel-indicators {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.carousel-container {
  background-color: var(--surface-color);
  border-radius: 20px;
  /* padding: 2rem; */
  max-width: 60vh; 
  max-height: 80vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
  display: flex;
  flex-direction: column;
}

.carousel-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  z-index: 15;
}

.carousel-close:hover {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  transform: scale(1.1);
}

.carousel-header {
  position: absolute;
  top: calc(100% - 5.5rem - 1.5rem);
  left: 0;
  right: 0;
  padding: 1.5rem 1.5rem 0 1.5rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: auto;
  z-index: 10;
}

.carousel-title {
  font-size: 0rem;
  color: white;
  text-align: center;
}

.carousel-image-container {
  flex: 1;
  min-height: 0;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

/* Black background for eagles media carousel */
.eagles-carousel-modal .carousel-image-container {
  background-color: #000;
}

.carousel-image-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6rem;
  z-index: 5;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Eagles media carousel images - contain instead of crop */
.carousel-image.eagles-carousel-image {
  object-fit: contain;
  background-color: #ffffff;
}

.carousel-image:hover {
  transform: scale(1.05);
}

/* Disable zoom on eagles carousel images to preserve aspect ratio */
.carousel-image.eagles-carousel-image:hover {
  transform: scale(1);
}

.carousel-navigation {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  pointer-events: none;
}

.carousel-nav-btn {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  pointer-events: auto;
  backdrop-filter: blur(5px);
}

.carousel-nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.carousel-nav-btn:disabled {
  background-color: rgba(0, 0, 0, 0.3);
  cursor: not-allowed;
  transform: none;
}

.carousel-indicators {
  position: absolute;
  bottom: 0rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  pointer-events: auto;
  z-index: 10;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.carousel-indicator.active {
  background-color: white;
  transform: scale(1.2);
  border-color: white;
}

/* Mobile size adjustments */
@media (max-width: 767.98px) {
  .testimonials .client-image .circular-photo {
    width: 45px;
    height: 45px;
  }
  .testimonials .client-image .circular-photo:not(:first-child) {
    margin-left: -10px;
  }
  
  /* Adjust slide distances for smaller mobile images */
  .testimonials .client-image .circular-photo:nth-child(2) {
    --slide-offset: -35px;
  }
  
  .testimonials .client-image .circular-photo:nth-child(3) {
    --slide-offset: -70px;
  }
  
  .testimonials .client-image .circular-photo:nth-child(4) {
    --slide-offset: -105px;
  }
  
  .testimonials .client-image .circular-photo:nth-child(5) {
    --slide-offset: -140px;
  }
  
  .testimonials .client-image .circular-photo:nth-child(6) {
    --slide-offset: -175px;
  }
  
  .testimonials .client-image .circular-photo:nth-child(7) {
    --slide-offset: -210px;
  }
  
  .circular-photo-badge {
    width: 45px;
    height: 45px;
    font-size: 0.8rem;
    left: 35px;
  }
  
  .carousel-container {
    padding: 1.5rem;
    max-width: 90vw;
    max-height: 90vh;
  }
  
  .carousel-image-container::after {
    height: 5rem;
  }
  
  .carousel-header {
    top: calc(100% - 5rem - 1rem);
    padding: 1rem 1rem 0 1rem;
  }
  
  /* .carousel-title {
    font-size: 0.9rem;
  } */
  
  .carousel-close {
    top: 0.75rem;
    left: 0.75rem;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  
  .carousel-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .carousel-indicators {
    bottom: 0.75rem;
  }
  
  .carousel-indicator {
    width: 8px;
    height: 8px;
  }
}

/* Ensure ancestors don't clip */
.testimonials,
.testimonial-masonry,
.testimonial-item,
.testimonial-content,
.testimonials .client-image {
  overflow: visible;
}

/*=============================================
=            UTILITY COMPONENTS              =
=============================================*/

/* Profile picture styling */
.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid var(--nav-dropdown-background-color);
  display: block;
  margin-bottom: 1.5rem;
}

/* Info box button styling */
.info-box .btn-outline-secondary {
  border-radius: 8px;
  font-weight: 500;
}

.info-box .btn-outline-secondary:hover {
  background-color: var(--contrast-color);
  color: #fff;
}

/* Button hover effects */
.btn.btn-outline-light:hover {
  box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.2);
  border: 2px solid grey;
  transition: all 0.3s ease;
  font-weight: 800;
}

/* Fun Facts section padding control */
.ff-section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: visible;
}

/* Testimonials section typography to match About Me */
.testimonials .container h2 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--heading-color);
}

.testimonials .container .lead {
  font-size: 1.3rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

/* Patch Notes subtitle styling to match lead paragraph color */
#funfacts-top {
  position: relative;
}

#funfacts-top p {
  color: var(--accent-color);
  margin-top: 0px;
}

/* Horizontal separator line for collapsible section */
#collapsable-aboutme {
  position: relative;
  padding-top: 40px;
  margin-top: 40px;
}

#collapsable-aboutme::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  height: 1px;
  background-color: color-mix(in srgb, var(--default-color), transparent 90%);
}

/* Help icon button in header */
.help-icon-btn {
  background: transparent;
  border: none;
  color: var(--accent-color);
  font-size: 1rem;
  cursor: pointer;
  padding: 0 4px;
  margin-left: 6px;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
  vertical-align: middle;
  line-height: 1;
}

.help-icon-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.help-icon-btn i {
  display: inline-block;
  line-height: 1;
}

/* Floating Instructions Notification */
.instructions-notification {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  margin-top: -50px;
  z-index: 1000;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  pointer-events: none;
}

.instructions-notification.show {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.instructions-notification .instructions-bar {
  background-color: rgba(0, 0, 0, 0.85);
  padding: 12px 20px;
  padding-right: 30px;
  border-radius: 10px;
  text-align: center;
  width: fit-content;
  display: inline-block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  position: relative;
}

.instructions-notification .instructions-bar p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--default-font);
  white-space: nowrap;
  line-height: 1;
  padding-right: 10px;
}

.instructions-notification .instructions-bar i {
  opacity: 0.7;
  margin-right: 6px;
}

.instructions-close {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 8px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
  z-index: 1;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instructions-close:hover {
  color: rgba(255, 255, 255, 1);
}

/* Center with testimonials section on desktop (accounting for left nav) */
@media (min-width: 1200px) {
  .instructions-notification {
    left: 50%;
    transform: translateX(-50%) scale(0);
  }
  
  .instructions-notification.show {
    transform: translateX(-50%) scale(1);
  }
}

/* Conditional instructions for desktop vs mobile */
.instruction-desktop {
  display: block;
}

.instruction-mobile {
  display: none;
}

@media (hover: none) and (pointer: coarse), (max-width: 768px) {
  .instruction-desktop {
    display: none;
  }
  
  .instruction-mobile {
    display: block;
  }
  
  .instructions-notification .instructions-bar {
    padding: 10px 15px;
    padding-right: 40px;
  }
  
  .instructions-notification .instructions-bar p {
    font-size: 0.8rem;
    white-space: normal;
    max-width: 85vw;
  }
  
  .instructions-notification {
    bottom: 15px;
  }
}

/* Stats Tooltips (positioned relative to stat element) */
.stats-tooltip-notification {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scale(0);
  z-index: 1000;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  pointer-events: none;
}

.stats-tooltip-notification.show {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.stats-tooltip-notification .stats-tooltip-bar {
  position: relative;
  width: fit-content;
}

.stats-tooltip-notification .stats-tooltip-image {
  height: 150px;
  width: auto;
  object-fit: contain;
  position: absolute;
  left: -60px;
  top: 37%;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.8));
}

.stats-tooltip-notification .stats-tooltip-content {
  background-color: color-mix(in srgb, var(--surface-color), var(--background-color) 50%);
  padding: 8px 4px;
  padding-left: 60px; /* Make room for the image on the left */
  border-radius: 10px;
  border: 2px solid #626262;
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8); */
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.8));
  position: relative;
  z-index: 1;
}

/* Upward-pointing caret */
.stats-tooltip-notification .stats-tooltip-content::before {
  content: '';
  position: absolute;
  top: -12px;
  left: calc(50% - 0px); /* Offset left to account for image and padding */
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid color-mix(in srgb, var(--surface-color), var(--background-color) 50%);
}

/* Caret border for stroke effect - solid grey color */
.stats-tooltip-notification .stats-tooltip-content::after {
  content: '';
  position: absolute;
  top: -16px;
  left: calc(50% - 0px);
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 16px solid #626262;
  z-index: -1;
}

.stats-tooltip-notification .stats-tooltip-text {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  /* font-family: var(--default-font); */
  font-family: var(--nav-font);
  min-width: min(200px, calc(100vw - 200px)); /* Responsive min-width */
  max-width: min(400px, calc(100vw - 40px));
  white-space: normal;
  text-align: left;
  line-height: 1.5;
  max-height: calc(1.5em * 4); /* 4 lines max */
  overflow-y: auto;
  position: relative;
  
  /* Enable hyphenation and aggressive word wrapping */
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  
  /* ========================================
     UNIFIED SCROLLBAR STYLING
     Change these values to update ALL browsers
     ======================================== */
  
  /* Firefox syntax */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.7) rgba(98, 98, 98, 0); /* thumb-color track-color */
}

/* Chrome/Safari syntax (same visual result as Firefox above) */
.stats-tooltip-notification .stats-tooltip-text::-webkit-scrollbar {
  width: 8px; /* Scrollbar width */
}

  .stats-tooltip-notification .stats-tooltip-text::-webkit-scrollbar-track {
    background: transparent; /* No track background - only show thumb */
    border-radius: 4px;
  }

.stats-tooltip-notification .stats-tooltip-text::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.7); /* Thumb color (matches Firefox) */
  border-radius: 4px;
}

/* Hover state removed - thumb stays same color */

.stats-tooltip-close {
  position: absolute;
  top: 0px;
  right: 0px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s ease;
  z-index: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-tooltip-close:hover {
  color: rgba(255, 255, 255, 1);
}

/* Mobile responsive for stats tooltips */
@media (max-width: 768px) {
  .stats-tooltip-notification .stats-tooltip-image {
    height: 120px; /* Smaller image on mobile */
    left: -30px; /* Less offset on mobile */
  }
  
  .stats-tooltip-notification .stats-tooltip-content {
    padding: 4px 8px;
    padding-left: 65px; /* Less left padding on mobile */
  }
  
  .stats-tooltip-notification .stats-tooltip-text {
    font-size: 0.75rem;
    white-space: normal;
    /* min-width: 150px; Smaller min-width for mobile */
    max-width: min(400px, calc(100vw - 40px));  }
}

/* List-type tooltip (for domains) */
.tooltip-list-type .stats-tooltip-content {
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  padding: 16px 20px;
  position: relative; /* For absolute positioning of cartoon */
}

.tooltip-list-type .stats-tooltip-image {
  height: 150px;
  width: auto;
  position: absolute;
  right: -25px;
  left: auto !important;
  top: -52px;
  transform: none;
  z-index: 3;
}

.cartoon-placeholder {
  float: right;
  width: 80px;
  height: 65px;
  margin-left: 8px;
  margin-bottom: 8px;
  margin-right: -20px;
  shape-outside: margin-box;
}
.tooltip-list-type .stats-tooltip-text {
  max-height: none; /* No height restriction for list */
  overflow-y: visible;
  margin-top: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Numbered list styling */
.domains-list {
  margin: 0;
  padding: 0;
}

.domain-item {
  margin-bottom: 4px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-family: var(--nav-font);
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  word-break: break-word;
  overflow-wrap: break-word;
  padding-left: 16px;
  text-indent: -10px;
}

.domain-item i {
  color: #ff7f08;
  font-size: 0.75rem;
  margin-right: 4px;
}

/* Social Links Custom Tooltips */
.social-tooltip {
  position: fixed;
  transform: scale(0);
  background-color: rgba(0, 0, 0, 0.85);
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
  pointer-events: none;
  font-family: var(--default-font);
  
}

.social-tooltip.show {
  transform: scale(1);
  opacity: 1;
}

/* Upward-pointing caret */
.social-tooltip::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 14px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(0, 0, 0, 0.85);
}

/* Testimonials button styling to match About Me */
.testimonials .container .btn {
  padding: 0.875rem 2rem;
  border-radius: 5.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 5px solid color-mix(in srgb, #f2c14b, transparent 100%);
}

.testimonials .container .btn:hover {
  border: 5px solid color-mix(in srgb, color-mix(in srgb, #f2c14b, var(--background-color) 20%), transparent 20%);
}

.testimonials .container .btn.btn-outline-light {
  background-color: transparent;
  color: var(--default-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.testimonials .container .btn.btn-outline-light:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
  color: var(--default-color);
}

.ff-section.open {
  padding-bottom: 60px !important;
}

/* Mobile spacing for testimonials section */
@media (max-width: 768px) {
  .ff-section {
    padding-top: 1px !important;
  }
}

.aboutme-photo {

  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}

/* Scroll margin for smooth scrolling */
#funfacts-top {
  scroll-margin-top: 80px;
}

/* Testimonials section scroll margin */
#testimonials {
  scroll-margin-top: 80px;
}

/* Stats item positioning for bubble */
.stats-item {
  position: relative;
}

.stats-wrapper,
.stats-item {
  overflow: visible !important;
}

/*=============================================
=            RESPONSIVE OVERRIDES            =
=============================================*/

/* Ensure all sections have proper overflow handling */
section,
.section {
  overflow: visible;
}

/* Fun facts section specific */
.ff-section {
  overflow: visible;
}

/* Highlight background for bold text */
.highlight-text-primary {
  color: color-mix(in srgb, var(--default-color), transparent 0%);
  font-style: italic;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, #f2c14b, transparent 40%); 
  text-decoration-thickness: 0.25rem;
  text-underline-offset: 0.15rem;
  text-decoration-skip-ink: none;
} 

.highlight-text-secondary {
  color: color-mix(in srgb, var(--default-color), transparent 0%);
  font-style: italic;
  font-weight: 600;
} 

/* Debug button styling to match View My Work button */
.btn-debug {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
  transition: all 0.6s ease;
  padding-bottom: 0.5rem;
}

.btn-debug:hover {
  background-color: color-mix(in srgb, var(--accent-color), black 0%);
  color: var(--contrast-color);
  transform: translateY(-2px);
  box-shadow: 0 0px 35px color-mix(in srgb, #000000, transparent 0%);
}

/* Learn More label with clickable words */
.about .learn-more-section .learn-more-label {
  cursor: default;
  /* background-color: color-mix(in srgb, var(--contrast-color), transparent 80%); */
  background-color: color-mix(in srgb, var(--contrast-color), transparent 100%);;
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 90%);
  color: color-mix(in srgb, var(--default-color), transparent 80%);
}
.about .learn-more-section .learn-more-label:hover {
  cursor: default;
  /* background-color: color-mix(in srgb, var(--contrast-color), transparent 80%); */
  background-color: color-mix(in srgb, var(--contrast-color), transparent 100%);;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 96%);
  
  color: color-mix(in srgb, var(--default-color), transparent 80%);
  transform: none;
  box-shadow: none;
}

/* Learn More section styling to match Let's Talk button */
.learn-more-section {
  margin-top: 2rem;
}

/* Center the learn-more-section on mobile devices */
@media (max-width: 768px) {
  .learn-more-section {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

.learn-more-section .learn-more-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  background-color: transparent;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 98%);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: default;
  font-weight: 500;
}

.learn-more-section .learn-more-label:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
  background-color: transparent;
  color: color-mix(in srgb, var(--default-color), transparent 80%);
  color: var(--default-color);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent-color), transparent 60%);
}

/* Hover effect for clickable words in learn-more-section */
.learn-more-section .clickable-word:hover {
  background-color: var(--contrast-color) !important;
  color: var(--contrast-color) !important;
  text-decoration: none;
  box-shadow: 0 0 15px 5px rgba(255,255,255,0.2);
  font-weight: 800;
}

/* .about .contact-links .learn-more-label:hover {
  background-color: color-mix(in srgb, var(--surface-color), var(--background-color) 50%);
  transform: none;
  box-shadow: none;
} */

.about .learn-more-section .clickable-word {
  color: color-mix(in srgb, var(--accent-color), transparent 60%);
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  background-color: color-mix(in srgb, var(--contrast-color), var(--background-color) 80%);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 95%);
}

.about .learn-more-section .learn-more-label:hover .clickable-word {
  background-color: var(--contrast-color);
  color: var(--accent-color);
  transform: scale(1.1);
  font-weight: 500;
}

.about .learn-more-section .learn-more-label:hover .clickable-word:hover {
  background-color: var(--accent-color) !important;
  transform: scale(1.3) !important;
  color: var(--contrast-color);
  text-decoration: none;
  box-shadow: 0 0 15px 5px rgba(255,255,255,0.2);
  font-weight: 800;
}

/* JavaScript handles tooltips with colored text */

/* Custom footer styling */
.new_footer .profession-sub {
  font-size: 1rem !important;
}

/* Fun facts link styling */
.fun-facts-link {
  color: color-mix(in srgb, #4DA6FF, transparent 60%) !important;
  font-weight: 700 !important;


}

.fun-facts-link:hover {
  color: color-mix(in srgb, #4DA6FF, transparent 0%) !important;
  /* color: color-mix(in srgb, var(--default-color), transparent 0%) !important;
  text-decoration-color: color-mix(in srgb, #f2c14b, transparent 20%) !important;
  text-decoration-thickness: 0.3rem !important; */
  text-decoration: underline !important;
}

/* Fun facts link styling */
.link-resume-btn {
  color: color-mix(in srgb, #4DA6FF, transparent 10%) !important;
  font-weight: 700 !important;



}

.link-resume-btn:hover {
  color: color-mix(in srgb, #4DA6FF, transparent 0%) !important;
  /* color: color-mix(in srgb, var(--default-color), transparent 0%) !important;
  text-decoration-color: color-mix(in srgb, #f2c14b, transparent 20%) !important;
  text-decoration-thickness: 0.3rem !important; */
  text-decoration: underline !important;
}

.new-title-section {
  padding: 2.25rem;
}