@import "https://unpkg.com/open-props/easings.min.css";

/* Three Column Grid: 3-column CSS masonry */
.three-column-grid {
  column-count: 3;
  column-gap: 16px;
}
.three-column-grid .photo-gallery-item {
  break-inside: avoid;
  margin: 0 0 16px;
  display: block;
}
.three-column-grid img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 991.98px) {
  .three-column-grid { column-count: 2; }
}
@media (max-width: 575.98px) {
  .three-column-grid { column-count: 1; }
}

/*--------------------------------------------------------------
# Two Column Grid - Large Image Layout
--------------------------------------------------------------*/
/* Custom 2-column grid for images - larger, more prominent display */
.two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1200px;  
  margin: 0 auto;
}

/* Two Column Grid with Text Component */
.two-column-grid-with-text {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.two-column-grid-with-text .grid-content {
  flex: 1;
  min-width: 0;
}

.two-column-grid-with-text .text-content {
  flex: 1;
  min-width: 0;
  padding: 20px 0;
}

.two-column-grid-with-text .text-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.two-column-grid-with-text .text-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.two-column-grid-with-text .text-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.two-column-grid-with-text .text-features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.two-column-grid-with-text .text-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 14px;
}

/* Responsive adjustments for two-column-grid-with-text */
@media (max-width: 1024px) {
  .two-column-grid-with-text {
    flex-direction: column;
    gap: 32px;
    padding: 32px 20px;
  }
  
  .two-column-grid-with-text .text-content {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .two-column-grid-with-text {
    gap: 24px;
    padding: 24px 16px;
  }
  
  .two-column-grid-with-text .text-title {
    font-size: 20px;
  }
  
  .two-column-grid-with-text .text-description {
    font-size: 15px;
  }
}

.two-column-grid .grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--elevation-2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--paper);
}

.two-column-grid .grid-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--elevation-4);
}

.two-column-grid .grid-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.two-column-grid .grid-item:hover img {
  transform: scale(1.05);
}

.two-column-grid .grid-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Responsive adjustments for two column grid */
@media (max-width: 768px) {
  .two-column-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .two-column-grid .grid-item img {
    height: auto;
  }
}

@media (max-width: 480px) {
  .two-column-grid {
    gap: 12px;
  }
  
  .two-column-grid .grid-item img {
    height: auto;
  }
}

/*--------------------------------------------------------------
# Flex Image Grid - Main + Stacked Layout
--------------------------------------------------------------*/
/* Flex grid with one main image and two stacked side images */
.flex-image-grid {
  display: flex;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.flex-image-grid .main-item {
  flex: 2;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--elevation-2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--paper);
}

.flex-image-grid .main-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--elevation-3);
}

.flex-image-grid .side-items-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.flex-image-grid .side-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--elevation-2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--paper);
}

.flex-image-grid .side-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--elevation-3);
}

.flex-image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.flex-image-grid .main-item:hover img,

.flex-image-grid .side-item:hover img {
  transform: scale(1.05);
  box-shadow: var(--elevation-3);
}

.flex-image-grid a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Responsive adjustments for flex image grid */
@media (max-width: 991.98px) {
  .flex-image-grid {
    flex-direction: column;
    gap: 16px;
  }
  
  .flex-image-grid .main-item,
  .flex-image-grid .side-items-container {
    flex: none;
    width: 100%;
  }
  
  .flex-image-grid .side-items-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 575.98px) {
  .flex-image-grid .side-items-container {
    grid-template-columns: 1fr;
  }
}

/* Fonts */
:root {
  --default-font: "Satoshi-Regular", "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: "Satoshi-Medium", "Satoshi-Regular", sans-serif;
  --nav-font: "Satoshi-Regular", sans-serif;
}

/* Semantic Typography Styles */
:root {
  
  /* Display Text (For the largest, most prominent text, like hero titles) */
  --text-display-font: 700 72px/1.2 "Satoshi-Bold", "Satoshi-Medium", sans-serif;

  /* Headline Text (For major section titles) */
  --text-headline-font: 700 48px/1.25 "Satoshi-Bold", "Satoshi-Medium", sans-serif;

  /* Title Text (For subsections or card titles) */
  --text-title-font: 600 1.5rem/1.4 "Satoshi-Medium", "Satoshi-Regular", sans-serif;
  
  /* Subtitle Text (For text that supports a title) */
  --text-subtitle-font: 500 1.125rem/1.5 "Satoshi-Medium", "Satoshi-Regular", sans-serif;

  /* Body Text (For all default paragraphs) */
  --text-body-font: 300 1.25rem/1.6 "Satoshi-Light", "Satoshi-Regular", sans-serif;

  /* Caption Text (For smaller, secondary information) */
  --text-caption-font: 400 0.875rem/1.5 "Satoshi-Regular", sans-serif;
}


/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  /* Core palette */
  --paper: #252525;  /* background surfaces */
  --ink: #e3e3e3;    /* primary text */
  --color: hsl(204, 56%, 67%);
  --shadow-color: #000000; /* keep as is */

  /* Compatibility aliases (will be phased out) - automatically inherit from core palette */
  --background-color: var(--paper);
  --default-color: var(--ink);
  --accent-color: var(--color);
  --surface-color: var(--paper);
}

/* Smooth transition for color changes */
html, body,
body *, body *::before, body *::after {
  transition:
    background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light mode color variables */
.light-mode {
  --paper: hsl(240, 4%, 91%);
  --ink: #181617;
  --color: hsl(204, 56%, 50%);
  /* Compatibility aliases automatically inherit updated values from :root */
}

/* (moved) project intro styles now live near .page-title section */


:root {
  /* ...existing variables... */
  --elevation-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --elevation-2: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  --elevation-3: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
  
  /* Easing variables */
  --ease-1: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-2: cubic-bezier(0.55, 0.085, 0.68, 0.53);
  --ease-3: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-4: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-5: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-elastic-3: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-elastic-4: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-out-5: cubic-bezier(0.23, 1, 0.32, 1);
}

.dot {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
  background-size: 16px 16px;
}

.dots-bg {
  position: fixed;
  z-index: -2;
  inset: 0;
  height: 100%;
  width: 100%;
  background: radial-gradient(circle, color-mix(in srgb, var(--ink), var(--paper) 50%) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.8;
  
  /* Modern browsers: mask for a vignette/fade effect */
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 70%, transparent 100%);
  -webkit-mask-size: 100% 100%;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 70%, transparent 100%);
  mask-size: 100% 100%;
  mask-position: center;
  mask-repeat: no-repeat;
}

/* Fallback: Use a pseudo-element for vignette effect if mask is not supported */
.dots-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, transparent 70%, color-mix(in srgb, var(--ink), transparent 40%) 100%);
  pointer-events: none;
}

/* Only apply mask when supported */
@supports (mask-image: radial-gradient(black, transparent)) {
  .dots-bg::before {
    display: none;
  }
}

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

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--ink);
  background-color: var(--paper);
  font-family: var(--default-font);
}


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

a:hover {
  color: var(--color);
  text-decoration: none;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ink);
  font: var(--text-headline-font);
}

/* Global list bullet/number color */
ul li::marker,
ol li::marker {
  color: var(--color);
}


/*--------------------------------------------------------------
# Responsive Image Grid
--------------------------------------------------------------*/
.image-area{
  max-width: 1200px;
  width: 90%;
  margin: auto;
  padding: 16px 0;
}

.title{
  margin-bottom: 1rem;
}

/* Large title styling for section titles */
.section-title .title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--heading-font);
}

/* Legacy .photo-gallery and .image-column styles removed in favor of #doodles-grid CSS masonry */

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--ink);
  box-shadow: var(--elevation-1) ;
  background-color: var(--paper);
  padding: 0.5rem 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  align-content: bottom;
  z-index: 997;
  will-change: background-color, box-shadow;
  position: relative; /* Changed from fixed to relative */
  /* Prevent navbar glitching */
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.header .logo {
  /* line-height: 1; */
  max-height: 48px;
}

.header .logo .logo-svg {
  height: 48px;
  width: 48px;
  margin-right: 8px;
  display: block;
  object-fit: contain;
  color: var(--ink);
  fill: currentColor;
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.scrolled .header {
  box-shadow: var(--elevation-1) ;
}



/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu>ul>li {
    white-space: nowrap;
    padding: 16px 16px;
    cursor: pointer;
  }

  .navmenu>ul>li:last-child {
    padding-right: 0;
  }

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

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 16px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Material Icons specific styling for navbar */
  .navmenu a .material-icons {
    font-size: 18px;
    margin-right: 8px;
    margin-left: 0;
    vertical-align: middle;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* General Material Icons styling to prevent overlap */
  .material-icons {
    display: inline-block;
    vertical-align: middle;
  }

  .navmenu>ul>li>a:before {
    content: "";
    position: absolute;
    height: 4px;
    bottom: -6px;
    left: 0;
    border-radius: 4px;
    background-color: var(--paper);
    visibility: hidden;
    width: 0px;
    transition: 0.3s ease-in-out;
  }

  .navmenu a:focus-visible:before,
  .navmenu a:focus:before,
  .navmenu .active:before {
    visibility: visible;
    background-color: var(--color);
    font-family: var(--nav-font);
    width: 100%;
    /* transition: 0.3s ease-in-out; */
  }

  .navmenu li:hover>a,
  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--color);
    /* font-weight: 600; */
  }

  /* Material Icons hover and active states */
  .navmenu a:hover .material-icons,
  .navmenu .active .material-icons,
  .navmenu .active:focus .material-icons {
    color: var(--color);
    transform: scale(1.1);
  }

  .navmenu li:hover>a .material-icons {
    color: var(--color);
    transform: scale(1.1);
  }

  /* Disabled navigation item styles */
  .navmenu a.nav-disabled {
    cursor: not-allowed !important;
    opacity: 0.5;
    color: var(--ink) !important;
  }

  /* Remove hover states for disabled navmenu items */
  .navmenu a.nav-disabled:hover, 
  .navmenu li:hover>a.nav-disabled {
    cursor: not-allowed !important;
  }

  .navmenu a.nav-disabled:hover .material-icons,
  .navmenu li:hover>a.nav-disabled .material-icons {
    color: var(--ink);
    transform: none;
  }

  .navmenu a.nav-disabled .material-icons {
    color: var(--ink);
    transform: none;
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--paper);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 200%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: var(--elevation-1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--ink);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

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

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Mobile Navigation */
@media (max-width: 1199px) {
  /* Prevent horizontal scroll when mobile nav is active */
  body.mobile-nav-active {
    overflow-x: hidden !important;
    position: fixed;
    width: 100%;
  }
  .mobile-nav-toggle {
    color: var(--ink);
    font-size: 32px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Prevent glitching */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    padding: 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-toggle.close {
    transform: translate3d(0, 0, 0) !important;
    /* transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); */
  }

  /* Enhanced Material Icons styling for mobile nav toggle */
  .mobile-nav-toggle:hover {
    color: var(--color);
    /* background-color: color-mix(in srgb, var(--color), transparent 90%); */
    /* transform: scale(1.1); */
  }

  .mobile-nav-toggle:active {
    transform: scale(0.95);
  }

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

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    top: 60px;
    left: 20px;
    right: 20px;
    max-height: calc(100vh - 100px);
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--paper);
    border: 1px solid color-mix(in srgb, var(--ink), transparent 90%);
    box-shadow: none;
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    height: auto;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--ink);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: normal;
    word-wrap: break-word;
    transition: 0.3s;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
  }

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

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--color);
    color: color-mix(in srgb, var(--ink), transparent 83%);
  }

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

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

  /* Disabled navigation item styles (mobile) */
  .navmenu a.nav-disabled {
    cursor: not-allowed !important;
    opacity: 0.5;
    color: var(--ink) !important;
  }

  .navmenu a.nav-disabled:hover,
  .navmenu .active:focus a.nav-disabled,
  .navmenu li:hover > a.nav-disabled {
    color: var(--ink) !important;
    cursor: not-allowed !important;
  }

  .navmenu a.nav-disabled i,
  .navmenu a.nav-disabled:hover i {
    color: var(--ink);
    transform: none;
    background-color: color-mix(in srgb, var(--ink), transparent 83%);
  }

  /* Ensure Material Icons work properly in dropdowns - optimized */
  .navmenu .toggle-dropdown {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    /* Prevent glitching */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .navmenu .dropdown.active .toggle-dropdown {
    transform: translate3d(0, 0, 0) rotate(180deg);
    transform-origin: center;
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 0;
    margin: 0;
    background-color: var(--paper);
    transition: all 0.5s ease-in-out;
    height: auto;
    max-height: none;
    overflow: hidden;
    width: 100%;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
    margin-left: 20px;
    width: calc(100% - 20px);
    overflow: hidden;
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
    height: auto;
    max-height: none;
    overflow: visible;
    margin: 0;
    padding: 0;
    position: relative;
  }

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

  /* Loading cursor styles */
  .loading-cursor {
    cursor: wait !important;
  }

  .loading-cursor * {
    cursor: wait !important;
  }

  /* Ensure loading cursor applies to entire page */
  body.loading {
    cursor: wait !important;
  }

  body.loading * {
    cursor: wait !important;
  }

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


  .mobile-nav-active .mobile-nav-toggle {
    color: var(--ink);
    position: absolute;
    font-size: 32px;
    /* top: 16px; */
    right: 10px;
    margin-right: 0;
    z-index: 9999;
  }
  
  /* Ensure navbar-right container doesn't interfere on mobile */
  .mobile-nav-active .navbar-right {
    position: relative;
    z-index: 9998;
  }

  /* Fix mobile navigation positioning - optimized for performance */
  .mobile-nav-active .navmenu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: color-mix(in srgb, var(--paper), transparent 85%) !important;
    box-shadow: var(--elevation-2) !important;
    z-index: 9999 !important;
    /* Prevent glitching */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-nav-active .navmenu ul {
    position: relative !important;
    top: 80px !important;
    left: 20px !important;
    right: 20px !important;
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    width: calc(100% - 40px) !important;
    /* Prevent glitching */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }



  .mobile-nav-active .navmenu>ul {
    display: block;
    position: relative;
    z-index: 10000;
    padding-right: 0;
    margin: 0;
    overflow-x: hidden;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--ink);
  background-color: var(--paper);
  font-size: 14px;
  text-align: center;
  padding: 0px 60px;
  position: relative;
  z-index: 10;
  box-shadow: var(--elevation-2);
}


.footer .social-links {
  gap: 0.5rem;
}

.footer .social-links a {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  width: 32px;
  height: 32px;
  transition: 0.3s;
}

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

/* Minimal footer theme adjustments */
.minimal-footer .brand {
  color: var(--ink);
}
.minimal-footer .text-muted {
  color: var(--text-secondary);
}
.minimal-footer .social-links a:hover {
  color: var(--color);
}

/* Footer brand sizing */
.minimal-footer .brand .logo-svg {
  width: 64px;
  height: 64px;
  color: var(--ink) !important;
}
.minimal-footer .brand .small {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
}

/* Footer CTA button customization */
.btn-cta {
  color: var(--paper) !important;
  background: var(--color) !important;
  border: none !important;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 550;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cta:hover {
  color: var(--paper) !important;
  background: var(--color) !important;
  transform: translateY(-5px);
  box-shadow: var(--elevation-1);
}

.btn-cta:active {
  transform: translateY(0);
  box-shadow: var(--elevation-1);
}

.btn-cta [data-lucide] {
  vertical-align: middle;
  margin-right: 6px;
  display: inline-block;
}

.btn-cta [data-lucide] svg {
  width: 20px !important;
  height: 20px !important;
}

/* Mobile footer layout adjustments */
@media (max-width: 768px) {
  .minimal-footer .container {
    padding: 1rem 0;
  }
  
  .minimal-footer .footer-left {
    flex: 0 0 auto;
  }
  
  .minimal-footer .footer-right {
    flex: 0 0 auto;
    gap: 0.75rem !important;
  }
  
  .minimal-footer .brand .logo-svg {
    width: 56px;
    height: 56px;
  }
  
  .minimal-footer .social-links {
    gap: 0.5rem !important;
  }
  
  .minimal-footer .social-links a {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

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

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--color) transparent var(--color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}
/*--------------------------------------------------------------
# Resume Section
--------------------------------------------------------------*/
.resume {
  overflow: visible;
}

.resume .section-header {
  margin-bottom: 2.5rem;
}

.resume .section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.resume .section-header h2 i {
  color: var(--color);
  font-size: 1.5rem;
}

.resume .section-header .section-subtitle {
  color: color-mix(in srgb, var(--ink), transparent 30%);
  font-size: 1rem;
  line-height: 1.6;
}

.resume .experience-section {
  padding-right: 1.5rem;
  overflow: visible;
}

.resume .experience-cards {
  overflow: visible;
}

.resume .experience-card {
  background: var(--paper);
  /* border: 1px solid color-mix(in srgb, var(--ink), transparent 90%); */
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--elevation-1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  margin-bottom: 1.5rem;
  display: block;
  transform: translateY(0);
  will-change: transform;
}

.resume .experience-card[data-aos] {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  transition-delay: 0s !important;
}

.resume .experience-card:hover,
.resume .experience-card[data-aos]:hover {
  box-shadow: var(--elevation-2);
  transform: translateY(-5px) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  transition-delay: 0s !important;
}


.resume .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.resume .duration {
  background: color-mix(in srgb, var(--color), transparent 90%);
  color: var(--color);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.resume .achievements {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.resume .achievements li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: color-mix(in srgb, var(--ink), transparent 15%);
  font-size: 0.9rem;
}

.resume .achievements li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color);
  font-weight: bold;
}

.resume .achievements li:last-child {
  margin-bottom: 0;
}

.resume .education-section {
  padding-left: 1.5rem;
}

.resume .education-timeline {
  position: relative;
}

.resume .education-item {
  position: relative;
  padding-left: 0;
  margin-bottom: 2.5rem;
}

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

.resume .education-item .experience-card {
  margin-bottom: 0;
}

.resume .card-header h3 {
  color: var(--color);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.resume .role-info h4 {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

.resume .card-body p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.resume .card-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 992px) {

  .resume .experience-section,
  .resume .education-section {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 3rem;
  }

  .resume .section-header h2 {
    font-size: 1.6rem;
  }


  .resume .card-header {
    flex-direction: column;
    gap: 0.8rem;
  }

  .resume .duration {
    align-self: flex-start;
  }
}

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

  .resume .section-header h2 i {
    font-size: 1.2rem;
  }

  .resume .experience-card {
    padding: 1.3rem;
  }

  .resume .education-item .experience-card {
    margin-bottom: 0;
  }

  .resume .education-item {
    padding-left: 0;
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 16px;
  bottom: -60px;
  z-index: 99999;
  
  background-color: var(--color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.3s ease-out;
  box-shadow: var(--elevation-1);
  transform: translateY(20px);
}

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

.scroll-top:hover {
  transform: translateY(-2px);
  box-shadow: var(--elevation-2);
  transition: 0.3s;
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 16px;
  transform: translateY(0);
}

.scroll-top.active:hover {
  transform: translateY(-2px);
}

/*--------------------------------------------------------------
# Floating Back Button
--------------------------------------------------------------*/
.floating-back-button {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  left: 16px;
  top: -60px;
  z-index: 99999;
  background-color: var(--paper);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  border: 1px var(--ink);
  outline: none;
  transition: all 0.3s ease;
  box-shadow: var(--elevation-1);
  cursor: pointer;
  transform: translateY(-20px);
}

.floating-back-button i {
  font-size: 20px;
  color: var(--ink);
  transition: color 0.3s var(--ease-3);
}

.floating-back-button:is(:hover, :focus-visible) {
  background-color: var(--paper);
  transform: translateY(-2px);
  box-shadow: var(--elevation-2);
}

.floating-back-button:is(:hover, :focus-visible) i {
  color: var(--ink);
}

.floating-back-button.active {
  visibility: visible;
  opacity: 1;
  top: 16px;
  transform: translateY(0);
}

.floating-back-button.active:is(:hover, :focus-visible) {
  transform: translateY(-2px);
}

/*--------------------------------------------------------------
# Floating Dark Mode Toggle
--------------------------------------------------------------*/
.floating-theme-toggle {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 16px;
  top: -60px;
  z-index: 99999;
  background-color: var(--paper);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  border: 1px var(--ink);
  outline: none;
  transition: all 0.3s ease;
  box-shadow: var(--elevation-1);
  cursor: pointer;
  transform: translateY(-20px);
}

.floating-theme-toggle .sun-and-moon {
  width: 20px;
  height: 20px;
}

.floating-theme-toggle .sun-and-moon > :is(.moon, .sun, .sun-beams) {
  transform-origin: center;
}

/* Icon colors */
.floating-theme-toggle .sun-and-moon > :is(.moon, .sun) {
  fill: color-mix(in srgb, var(--ink), var(--paper) 50%);
  transition: fill 0.3s var(--ease-3);
}

.floating-theme-toggle .sun-and-moon > .sun-beams {
  stroke: color-mix(in srgb, var(--ink), var(--paper) 50%);
  stroke-width: 2px;
  transition: stroke 0.3s var(--ease-3);
}

.floating-theme-toggle:is(:hover, :focus-visible) {
  background-color: var(--paper);
  transform: translateY(-2px);
  box-shadow: var(--elevation-2);
}

.floating-theme-toggle:is(:hover, :focus-visible) .sun-and-moon > :is(.moon, .sun) {
  fill: #f39c12;
}

.floating-theme-toggle:is(:hover, :focus-visible) .sun-and-moon > .sun-beams {
  stroke: #f39c12;
}

.floating-theme-toggle.active {
  visibility: visible;
  opacity: 1;
  top: 16px;
  transform: translateY(0);
}

.floating-theme-toggle.active:is(:hover, :focus-visible) {
  transform: translateY(-2px);
}

/* Dark theme styles (when light-mode class is NOT present) */
body:not(.light-mode) .floating-theme-toggle .sun-and-moon > .sun {
  transform: scale(1.75);
}

body:not(.light-mode) .floating-theme-toggle .sun-and-moon > .sun-beams {
  opacity: 0;
}

body:not(.light-mode) .floating-theme-toggle .sun-and-moon > .moon > circle {
  transform: translateX(-7px);
}

@supports (cx: 1) {
  body:not(.light-mode) .floating-theme-toggle .sun-and-moon > .moon > circle {
    cx: 17;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .floating-theme-toggle .sun-and-moon > .sun {
    transition: transform .5s var(--ease-elastic-3);
  }

  .floating-theme-toggle .sun-and-moon > .sun-beams {
    transition: transform .5s var(--ease-elastic-4), opacity .5s var(--ease-3);
  }

  .floating-theme-toggle .sun-and-moon .moon > circle {
    transition: transform .25s var(--ease-out-5);
  }

  @supports (cx: 1) {
    .floating-theme-toggle .sun-and-moon .moon > circle {
      transition: cx .25s var(--ease-out-5);
    }
  }

  body:not(.light-mode) .floating-theme-toggle .sun-and-moon > .sun {
    transition-timing-function: var(--ease-3);
    transition-duration: .25s;
    transform: scale(1.75);
  }

  body:not(.light-mode) .floating-theme-toggle .sun-and-moon > .sun-beams {
    transition-duration: .15s;
    transform: rotateZ(-25deg);
  }

  body:not(.light-mode) .floating-theme-toggle .sun-and-moon > .moon > circle {
    transition-duration: .5s;
    transition-delay: .25s;
  }
}

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

--------------------------------------------------------------*/
.page-title {
  color: var(--paper);
  /* font-size: 56px; */
  /* background-color: var(--paper); */
  position: relative;
}

.page-title .heading {
  padding: 20px 0 20px 0;
  color: var(--ink);
  background-color: var(--color);
}

.page-title .heading h1 {
  font-size: 56px;
  font: var(--text-headline-font);
  color: var(--paper);
}

.page-title .heading p {
  color: var(--paper);
}

/* Project intro text placed with page-title block for cohesion */
.project-intro {
  color: inherit; /* follow .page-title color in headings area */
  font: var(--text-body-font);
  font-family: Satoshi-Regular;
  color: var(--paper);
  font-size: clamp(16px, 1vw + 12px, 24px);
}

.page-title nav {
  background-color: color-mix(in srgb, var(--ink), transparent 90%);
  padding: 20px 0;
}

.page-title nav ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.page-title nav ol li+li {
  padding-left: 10px;
  color: var(--paper);
}

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

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--ink);
  background-color: var(--paper);
  padding: 60px 0;
  scroll-margin-top: 100px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}

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

.section-title h2 {
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  line-height: 1.2;
  margin: 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
}

.section-title h2::after {
  content: "";
  width: 120px;
  height: 1px;
  display: inline-block;
  background: var(--color);
  margin: 4px 10px;
}

.section-title div {
  color: var(--ink);
  margin: 0;
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--paper);
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

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

/* Responsive container adjustments */
@media (max-width: 768px) {
  .hero .container {
    padding: 0 15px;
  }
}

@media (max-width: 576px) {
  .hero .container {
    padding: 0 10px;
  }
}

.hero h2 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  color: var(--ink);
}

.hero p {
  margin: 4px 0 0 0;
  font-size: 24px;
  color: var(--ink);
}

.hero p span {
  letter-spacing: 1px;
  border-bottom: 2px solid var(--color);
}

.hero .social-links {
  margin-top: 24px;
}

.hero .social-links a {
  /* background-color: color-mix(in srgb, var(--ink), transparent 90%); */
   color: color-mix(in srgb, var(--ink), var(--paper) 50%);
   font-size: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  transition: 0.3s;
}

.hero .social-links a:hover {
  color: var(--color);
}

/* Enhanced responsive breakpoints for hero section */
@media (max-width: 1200px) {
  .hero h2 {
    font-size: 48px;
  }
  
  .hero p {
    font-size: 22px;
  }
}

@media (max-width: 992px) {
  .hero h2 {
    font-size: 40px;
  }
  
  .hero p {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
    min-height: 90vh;
  }
  
  .hero h2 {
    font-size: 32px;
  }

  .hero p {
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 40px 0;
    min-height: 80vh;
  }
  
  .hero h2 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 16px;
  }
}

/* Hero Image and Floating Cards */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 500px;
}

.hero-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--elevation-2);
  position: relative;
  z-index: 4; /* Increased to be above overlay */
  transition: transform 0.3s ease; /* Moved transition here for better performance */
  background-color: var(--paper); /* Added background color variable */
}

.hero-main-image:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: var(--elevation-3);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: linear-gradient(135deg, rgba(28, 152, 208, 0.1), rgba(28, 152, 208, 0.05)); */
  border-radius: 20px;
  z-index: 3;
  pointer-events: none; /* Allow clicks to pass through to the image */
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5; /* Increased to be above the image */
  pointer-events: none;
  transition: all 0.3s ease;
}

.floating-card {
  position: absolute;
  background: var(--paper);
  /* border: 1px solid rgba(255, 255, 255, 0.1); */
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--elevation-1);
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease-3);
  pointer-events: auto;
  /* Default floating animation for all cards - can be overridden by specific card-X classes */
  animation: float-default 6s var(--ease-3) infinite;
}

.floating-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--elevation-2);
  
}

.floating-card i {
  font-size: 18px;
  color: var(--color);
}

.floating-card span {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

/* Floating card positions */
.card-1 {
  top: -20px;
  right: -30px;
  animation: float1 6s var(--ease-3) infinite;
}

.card-2 {
  bottom: 20px;
  left: -40px;
  animation: float2 6s var(--ease-3) infinite;
  animation-delay: 1s;
}

.card-3 {
  top: 50%;
  right: -50px;
  transform: translateY(-50%);
  animation: float3 6s var(--ease-3) infinite;
  animation-delay: 2s;
}

.card-4 {
  top: 20px;
  left: -40px;
  animation: float4 6s var(--ease-3) infinite;
  animation-delay: 3s;
}

/* Floating animations */
@keyframes float1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  50% { transform: translateY(-60%) rotate(1deg); }
}

@keyframes float4 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-1.5deg); }
}

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

/* Enhanced responsive adjustments for hero image and floating cards */
@media (max-width: 1200px) {
  .hero-image {
    margin-top: 30px;
  }
  
  .image-container {
    max-width: 400px;
    height: 400px;
  }
  
  .card-1 {
    top: -20px;
    right: -30px;
  }
  
  .card-2 {
    bottom: 20px;
    left: -40px;
  }
  
  .card-3 {
    right: -50px;
  }
  
  .card-4 {
    top: 20px;
    left: -40px;
  }
}

@media (max-width: 1199px) {
  .hero-image {
    margin-top: 40px;
  }
  
  .image-container {
    max-width: 350px;
    height: 350px;
  }
  
  .card-1 {
    top: -15px;
    right: -25px;
  }
  
  .card-2 {
    bottom: 15px;
    left: -35px;
  }
  
  .card-3 {
    right: -40px;
  }
  
  .card-4 {
    top: 15px;
    left: -35px;
  }
}

@media (max-width: 992px) {
  .hero-image {
    margin-top: 50px;
  }
  
  .image-container {
    max-width: 320px;
    height: 320px;
  }
  
  .floating-card {
    padding: 12px 16px;
  }
  
  .floating-card i {
    font-size: 17px;
  }
  
  .floating-card span {
    font-size: 13px;
  }
  
  .card-1 {
    top: -12px;
    right: -22px;
  }
  
  .card-2 {
    bottom: 12px;
    left: -32px;
  }
  
  .card-3 {
    right: -35px;
  }
  
  .card-4 {
    top: 12px;
    left: -32px;
  }
}

@media (max-width: 768px) {
  .hero-image {
    margin-top: 30px;
  }
  
  .image-container {
    max-width: 280px;
    height: 280px;
  }
  
  .floating-card {
    padding: 10px 14px;
  }
  
  .floating-card i {
    font-size: 16px;
  }
  
  .floating-card span {
    font-size: 12px;
  }
  
  .card-1 {
    top: -10px;
    right: -20px;
  }
  
  .card-2 {
    bottom: 10px;
    left: -25px;
  }
  
  .card-3 {
    right: -30px;
  }
  
  .card-4 {
    top: 10px;
    left: -25px;
  }
}

@media (max-width: 576px) {
  .hero-image {
    margin-top: 20px;
  }
  
  .image-container {
    max-width: 300px;
    height: 300px;
  }
  
  .floating-card {
    padding: 8px 12px;
  }
  
  .floating-card i {
    font-size: 14px;
  }
  
  .floating-card span {
    font-size: 11px;
  }
  
  .card-1 {
    top: -8px;
    right: -15px;
  }
  
  .card-2 {
    bottom: 8px;
    left: -20px;
  }
  
  .card-3 {
    right: -25px;
  }
  
  .card-4 {
    top: 8px;
    left: -20px;
  }
}

@media (max-width: 480px) {
  .hero-image {
    margin-top: 15px;
  }
  
  .image-container {
    max-width: 250px;
    height: 250px;
  }
  
  .floating-card {
    padding: 6px 10px;
  }
  
  .floating-card i {
    font-size: 12px;
  }
  
  .floating-card span {
    font-size: 10px;
  }
  
  .card-1 {
    top: -5px;
    right: -12px;
  }
  
  .card-2 {
    bottom: 5px;
    left: -15px;
  }
  
  .card-3 {
    right: -20px;
  }
  
  .card-4 {
    top: 5px;
    left: -15px;
  }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .col-lg-8.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  vertical-align: middle;
  padding-left: 24px;
  padding-right: 24px;
}

.about .content h2 {
  font-weight: 700;
  font-size: 24px;
  font-family: var(--heading-font);
}

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

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

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

.about .content ul i {
  font-size: 16px;
  margin-right: 8px;
  color: var(--color);
  line-height: 0;
  flex-shrink: 0;
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats i {
  background-color: var(--paper);
  color: var(--color);
  box-shadow: var(--elevation-1);
  width: 54px;
  height: 54px;
  font-size: 24px;
  border-radius: 50px;
  /* border: 2px solid var(--paper); */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.stats .stats-item {
  background-color: var(--paper);
  margin-top: -20px;
  padding: 24px 24px 36px 24px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: var(--elevation-1);
  border-radius: 4px;
  z-index: 0;
}

.stats .stats-item span {
  font-size: 36px;
  display: block;
  font-weight: 700;
  color: var(--ink);
}

.stats .stats-item p {
  padding: 0;
  margin: 0;
  font-family: var(--heading-font);
  font-size: 16px;
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
.skills .progress {
  height: 60px;
  display: block;
  background: none;
  border-radius: 0;
}

.skills .progress .skill {
  color: var(--ink);
  padding: 0;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: var(--heading-font);
}

.skills .progress .skill .val {
  float: right;
  font-style: normal;
}

.skills .progress-bar-wrap {
  background: color-mix(in srgb, var(--ink), transparent 90%);
  height: 10px;
}

.skills .progress-bar {
  width: 1px;
  height: 10px;
  transition: 0.9s;
  background-color: var(--color);
}

/*--------------------------------------------------------------
# Interests Section
--------------------------------------------------------------*/
.interests .features-item {
  background-color: var(--paper);
  flex-direction: column;
  gap: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: 0.3s;
  /* border: 1px solid color-mix(in srgb, var(--ink), transparent 90%); */
  position: relative;
  box-shadow: var(--elevation-1);
  border-radius: 16px;
}

.interests .features-item i {
  font-size: 48px;
  line-height: 0;
}

.interests .features-item i svg {
  width: 42px !important;
  height: 42px !important;
}

.interests .features-item h3 {
  font-weight: 500;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  font-size: 20px;
  font-family: var(--heading-font);
}

.interests .features-item h3 a {
  color: var(--ink);
  transition: 0.3s;
  cursor: default !important;
}

.interests .features-item:hover {
  box-shadow: var(--elevation-2);
  transform: translateY(-4px);
}

.interests .features-item:hover h3 a {
  color: var(--ink);
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
#testimonials .row .col-lg-4,
#testimonials .row .col-md-6 {
  display: flex;
}

.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: visible !important;
}

.testimonials .testimonial-item {
  box-sizing: content-box;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 24px;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: var(--elevation-1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: visible !important;
}

.testimonials .testimonial-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--elevation-2);
}

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  border: 6px solid var(--paper);
  object-fit: cover;
  object-position: center;
  background-color: var(--paper);
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 0;
  font-family: var(--heading-font);
}

.testimonials .testimonial-item h3 .testimonial-linkedin-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.testimonials .testimonial-item h3 .testimonial-linkedin-link:hover {
  color: var(--color);
}

.testimonials .testimonial-item h3 .testimonial-linkedin-icon {
  width: 1em;
  height: 1em;
  margin-left: 4px;
  flex-shrink: 0;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: color-mix(in srgb, var(--ink), transparent 20%);
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: var(--color);
  font-size: 24px;
  line-height: 0;
}

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

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  flex: 1 1 auto;
  font-style: italic;
  padding-bottom: 60px;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

.testimonials .swiper-wrapper {
  height: auto;
}

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

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--paper);
  opacity: 1;
  border: 1px solid color-mix(in srgb, var(--ink), var(--paper) 50%);
}

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

/*--------------------------------------------------------------
# Resume Section
--------------------------------------------------------------*/
.resume .resume-title {
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
}

.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid var(--color);
  position: relative;
}

.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink), transparent 20%);
  margin-bottom: 10px;
}

.resume .resume-item h5 {
  font-size: 16px;
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
}

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

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

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

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

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  background-color: var(--paper);
  text-align: center;
  padding: 80px 20px;
  transition: all ease-in-out 0.3s;
  height: 100%;
}

.services .service-item .icon {
  margin: 0 auto;
  width: 64px;
  height: 64px;
  background: var(--color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: 0.3s;
  transform-style: preserve-3d;
}

.services .service-item .icon i {
  color: var(--ink);
  font-size: 28px;
  transition: ease-in-out 0.3s;
}

.services .service-item .icon::before {
  position: absolute;
  content: "";
  left: -8px;
  top: -8px;
  height: 100%;
  width: 100%;
  background: color-mix(in srgb, var(--color), transparent 80%);
  border-radius: 5px;
  transition: all 0.3s ease-out 0s;
  transform: translateZ(-1px);
}

.services .service-item h3 {
  font-weight: 700;
  margin: 10px 0 15px 0;
  font-size: 22px;
  font-family: var(--heading-font);
}

.services .service-item p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.services .service-item:hover {
  background: var(--color);
  border-color: var(--color);
}

.services .service-item:hover .icon {
  background: var(--paper);
}

.services .service-item:hover .icon i {
  color: var(--color);
}

.services .service-item:hover .icon::before {
  background: color-mix(in srgb, var(--paper), transparent 70%);
}

.services .service-item:hover h3,
.services .service-item:hover p {
  color: var(--ink);
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .services-list {
  background-color: var(--paper);
  padding: 10px 30px;
  border: 1px solid color-mix(in srgb, var(--ink), transparent 90%);
  margin-bottom: 20px;
}

.service-details .services-list a {
  display: block;
  line-height: 1;
  padding: 8px 0 8px 15px;
  border-left: 3px solid color-mix(in srgb, var(--ink), transparent 70%);
  margin: 20px 0;
  color: color-mix(in srgb, var(--ink), transparent 20%);
  transition: 0.3s;
}

.service-details .services-list a.active {
  color: var(--ink);
  font-weight: 700;
  border-color: var(--color);
}

.service-details .services-list a:hover {
  border-color: var(--color);
}

.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: 26px;
  font-weight: 700;
  font-family: var(--heading-font);
}

.service-details h4 {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--heading-font);
}

.service-details p {
  font-size: 15px;
}

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

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--color);
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/

#portfolio {
  padding-top: 40px;
}

.portfolio .portfolio-item {
  margin-bottom: 30px;
}

.portfolio .portfolio-filters .material-icons {
  font-size: 20px;
  vertical-align: middle;
  color: color-mix(in srgb, var(--ink), var(--paper) 50%);
}

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

.portfolio .portfolio-filters li.filter-active .material-icons {
  color: var(--paper);
}

.portfolio .portfolio-filters {
  /* padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center; */
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0;
  margin: 0 0 40px;
  list-style: none;
  
}

.portfolio .portfolio-filters li {
  /* cursor: pointer;
  display: inline-block;
  padding: 0;
  font-size: 18px;
  font-weight: 500;
  margin: 0 10px;
  line-height: 1;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out; */
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink);
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: var(--elevation-1);
}

.portfolio .portfolio-filters li:hover {
  transform: translateY(-2px);
  box-shadow: var(--elevation-2);
  background: color-mix(in srgb, var(--color), transparent 92%);
}
.portfolio .portfolio-filters li.filter-active {
  background: var(--color);
  color: var(--paper);
}

.portfolio .portfolio-filters li:first-child {
  margin-left: 0;
}

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

@media (max-width: 575px) {
  .portfolio .portfolio-filters li {
    font-size: 14px;
    margin: 0 5px;
  }
}

.portfolio .portfolio-content {
  position: relative;
  overflow: hidden;
  box-shadow: var(--elevation-1);
  border-radius: 16px;
}

.portfolio .portfolio-content img {
  transition: 0.3s;
}

.portfolio .portfolio-content .portfolio-info {
  opacity: 0;
  position: absolute;
  inset: 0;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  padding: 16px;
  /* border-radius: 16px; */
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--shadow-color) 80%, transparent) 100%);
  box-shadow: var(--elevation-1);
  cursor: pointer;
}

.portfolio .portfolio-content .portfolio-info a {
  text-decoration: none;
}

.portfolio .portfolio-content .portfolio-info h4 {
  font-size: 14px;
  padding: 5px 10px;
  font-weight: 400;
  color: var(--paper);
  border-radius: 4px;
  display: inline-block;
  background-color: var(--color);
  font-family: var(--heading-font);
}

.portfolio .portfolio-content .portfolio-info p {
  position: absolute;
  bottom: 10px;
  text-align: center;
  display: inline-block;
  left: 0;
  right: 0;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
}

.portfolio .portfolio-content:hover .portfolio-info {
  opacity: 1;
  box-shadow: var(--elevation-2);
  /* transform: translateY(-5px); */
  cursor: pointer;
}

.portfolio .portfolio-content:hover img {
  transform: scale(1.1);
}

/* Fix for portfolio items with links */
.portfolio .portfolio-link:hover .portfolio-content .portfolio-info {
  opacity: 1;
  box-shadow: var(--elevation-2);
  /* transform: translateY(-5px); */
}

.portfolio .portfolio-link:hover .portfolio-content img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/

.portfolio-details .portfolio-info {
  background-color: var(--paper);
  padding: 30px;
  box-shadow: var(--elevation-1);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink), transparent 85%);
  font-family: var(--heading-font);
}

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

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

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

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: var(--heading-font);
}

.portfolio-details .portfolio-description p {
  padding: 0;
  color: color-mix(in srgb, var(--ink), transparent 30%);
}



/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-item {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  padding: 20px 30px;
}

.contact .info-item .icon {
  color: var(--ink);
  background: var(--color);
  width: 56px;
  height: 56px;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  border-radius: 50%;
  margin-right: 15px;
}

.contact .info-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 2px 0;
  font-family: var(--heading-font);
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .info-item .social-links a {
  font-size: 24px;
  display: inline-block;
  line-height: 1;
  margin: 4px 6px 0 0;
  transition: color 0.3s ease;
  color: color-mix(in srgb, var(--ink), transparent 50%);
}

.contact .info-item .social-links a:hover {
  color: var(--color);
}




.project-title {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
}
.project-title a {
  color: inherit;
  text-decoration: underline;
}
.project-description {
  color: var(--ink);
  font: var(--text-body-font); /* controls size and line-height */
}

/* Color chips for displaying color palette variables */
.color-chip {
  position: relative;
  display: inline-block;
  padding-left: 20px;
  margin: 0 2px;
}

.color-chip::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 2px;
  display: inline-block;
  border: 1px solid color-mix(in srgb, var(--ink), transparent 60%);
}

.color-chip--paper::before {
  background-color: var(--paper);
}

.color-chip--ink::before {
  background-color: var(--ink);
}

.color-chip--color::before {
  background-color: var(--color);
  border-color: color-mix(in srgb, var(--color), transparent 40%);
}

.section-gap-80 > * + * {
  margin-top: 40px;
  padding-bottom: 40px;
}
/* Collage variant of the project */

.image-collage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 16px;
}

.collage-item {
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper, #222);
  display: flex;
  align-items: center;
  justify-content: center;
}

.collage-item img {
  width: 100%;
  height: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* Custom sizes for collage effect */
.collage-item-large {
  grid-column: 2 / span 2;
  grid-row: 1 / span 2;
}

.collage-item-tall {
  grid-column: 1 / span 1;
  grid-row: 1 / span 2;
}

.collage-item-wide {
  grid-column: 4 / span 1;
  grid-row: 1 / span 2;
}

/* The rest fill the remaining grid cells */
/*--------------------------------------------------------------
# My Section (media + text)
--------------------------------------------------------------*/
/* Reverse is now the default layout */
.my-section {
  margin-top: 10vh ;
  margin-bottom: 10vh;
  max-width: 100%;
  height: auto; /* let media aspect-ratio drive height */
  /* Default aspect ratio for media; override via inline style or modifier if needed */
  --media-aspect-ratio: 16 / 9;
  
  display: flex;
  flex-direction: row-reverse; /* default reversed */
  align-items: stretch; /* let media define height and text match it */
  gap: 32px;
  transition: 0.3s ease-in-out;
}

/* No hover elevation for print-inspired flat look */

.my-section__media,
.my-section__text {
  min-width: 0; /* prevent overflow */
  box-sizing: border-box; /* include padding in flex basis */
}

.my-section__media {
  flex: 1 1 70%;
  aspect-ratio: var(--media-aspect-ratio);
  height: auto; /* compute from width and aspect ratio */
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Carousel inside section media should fill the same box as static image */
.my-section__carousel {
  width: 100%;
  height: 100%;
}
.my-section__carousel .swiper-wrapper,
.my-section__carousel .swiper-slide {
  width: 100%;
  height: 100%;
}
/* Section carousel pagination - simplified for custom-carousel-nav */
.my-section__carousel .swiper-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  margin: 0 auto;
  z-index: 10;
  text-align: center;
  width: 100%;
  pointer-events: none;
}

.my-section__carousel .swiper-pagination-bullet {
  pointer-events: auto;
  background: color-mix(in srgb, var(--shadow-color), transparent 80%);
  opacity: 1;
  width: 12px;
  height: 12px;
  margin: 0 4px !important;
  transition: background 0.2s;
}

.my-section__carousel .swiper-pagination-bullet-active {
  background: var(--color) !important;
}

/*--------------------------------------------------------------
# Custom Carousel Navigation (Reusable)
--------------------------------------------------------------*/
/* Generic carousel with CSS-generated navigation buttons */
.custom-carousel-nav {
  position: relative;
}

/* CSS-generated navigation buttons using pseudo-elements */
.custom-carousel-nav::before,
.custom-carousel-nav::after {
  content: 'chevron_right';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  font-family: 'Material Icons';
  font-size: 24px;
  color: var(--color);
  transform: translateY(-50%);
  z-index: 2;
  cursor: pointer;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  
}

.custom-carousel-nav::before {
  left: 16px;
  transform: translateY(-50%) rotate(180deg);
}

.custom-carousel-nav::after {
  right: 16px;
}

.custom-carousel-nav:hover::before,
.custom-carousel-nav:hover::after {
  border: 1px solid var(--color);
}

/* Pagination styling for custom carousel */
.custom-carousel-nav .swiper-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  margin: 0 auto;
  z-index: 10;
  text-align: center;
  width: 100%;
  pointer-events: none;
}

.custom-carousel-nav .swiper-pagination-bullet {
  pointer-events: auto;
  background: color-mix(in srgb, var(--shadow-color), transparent 80%);
  opacity: 1;
  width: 12px;
  height: 12px;
  margin: 0 4px !important;
  transition: background 0.2s;
}

.custom-carousel-nav .swiper-pagination-bullet-active {
  background: var(--color) !important;
}

/* Image styling for custom carousel - handles any aspect ratio */
.custom-carousel-nav .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 8px;
}

/* Alternative: object-fit: contain for preserving full image */
.custom-carousel-nav .swiper-slide img.contain {
  object-fit: contain;
  background: var(--paper);
}

/*--------------------------------------------------------------
# GLightbox Fixes and Enhancements
--------------------------------------------------------------*/
/* Ensure lightbox overlay is properly styled */
.glightbox-overlay {
  background: rgba(0, 0, 0, 0.9) !important;
  backdrop-filter: blur(4px);
}

/* Lightbox container */
.glightbox-container {
  background: transparent !important;
}

/* Lightbox image styling */
.glightbox-container .gslide-media {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Close button styling */
.glightbox-container .gclose {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(10px);
}

.glightbox-container .gclose:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: scale(1.1);
}

/* Navigation arrows */
.glightbox-container .gprev,
.glightbox-container .gnext {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 50% !important;
  width: 50px !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(10px);
}

.glightbox-container .gprev:hover,
.glightbox-container .gnext:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: scale(1.1);
}

/* Ensure click-to-close works */
.glightbox-container .gslide-media img {
  cursor: pointer;
}

/* Loading spinner */
.glightbox-container .gloader {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.my-section__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.my-section__text {
  text-align: left;
  padding: 0; /* remove padding */
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* push content to bottom */
  align-items: flex-start;
  align-self: stretch; /* match media height */
  flex: 1 1 30%; /* reduced text width to give media more space */
}

/* Reverse variant class no longer needed; keep for backward compatibility */
.my-section--reverse { flex-direction: row-reverse; }

.my-section h2 {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0; /* remove gap below title */
}

/* Project description inside section */
.my-section .project-description {
  margin: 0; /* tight to title */
  color: var(--ink);
}

/* Override utility and component spacing inside print-style section */
.my-section .project-title,
.my-section .project-title.mb-3 {
  margin-bottom: 0 !important;
}


@media (max-width: 1200px) {
  .my-section {
    flex-direction: column; /* stack on mobile */
    height: auto; /* let aspect-ratio drive height on small screens */
  }

  .my-section__media,
  .my-section__text {
    width: 100%;
    flex: 1 1 auto; /* stack naturally on mobile */
  }

  /* Let image define height on mobile as well */
  .my-section__media {
    width: 100%;
    height: auto;
    aspect-ratio: var(--media-aspect-ratio); /* lock visual ratio on small screens */
  }

  /* mobile stays stacked regardless of reverse */

  .my-section__text {
    padding: 0;
    margin-top: auto; /* place text block at bottom when stacked */
  }
}



/*--------------------------------------------------------------
# Navbar Right Container
--------------------------------------------------------------*/

.navbar-right {
  gap: 16px;
  align-items: center;
}

/* Desktop: Align theme toggle properly */
@media (min-width: 1200px) {
  .theme-toggle {
    align-items: center;
    justify-content: center;
    margin-left: 20px;
  }
}

/* Mobile theme toggle styling */
@media (max-width: 1199px) {
  .theme-toggle-mobile {
    transition: color 0.3s;
  }
  
  .theme-toggle-mobile:hover {
    color: var(--color) !important;
  }
}

/*--------------------------------------------------------------
# Theme Toggle
--------------------------------------------------------------*/

.theme-toggle {
  --size: 2rem;
  background: none;
  border: none;
  padding: 0;
  inline-size: var(--size);
  block-size: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  outline-offset: 5px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s var(--ease-3);
}

.theme-toggle:is(:hover, :focus-visible) {
  background-color: var(--paper);
  /* outline: 2px solid var(--color); */
}

.sun-and-moon {
  inline-size: 100%;
  block-size: 100%;
  stroke-linecap: round;
}

.sun-and-moon > :is(.moon, .sun, .sun-beams) {
  transform-origin: center;
}

/* Icon colors */
.sun-and-moon > :is(.moon, .sun) {
  fill: color-mix(in srgb, var(--ink), var(--paper) 50%);
  transition: fill 0.3s var(--ease-3);
}

.theme-toggle:is(:hover, :focus-visible) > .sun-and-moon > :is(.moon, .sun) {
  fill: #f39c12;
}

.sun-and-moon > .sun-beams {
  stroke: color-mix(in srgb, var(--ink), var(--paper) 50%);
  stroke-width: 2px;
  transition: stroke 0.3s var(--ease-3);
}

.theme-toggle:is(:hover, :focus-visible) .sun-and-moon > .sun-beams {
  stroke: #f39c12;
}

/* Dark theme styles (when light-mode class is NOT present) */
body:not(.light-mode) .sun-and-moon > .sun {
  transform: scale(1.75);
}

body:not(.light-mode) .sun-and-moon > .sun-beams {
  opacity: 0;
}

body:not(.light-mode) .sun-and-moon > .moon > circle {
  transform: translateX(-7px);
}

@supports (cx: 1) {
  body:not(.light-mode) .sun-and-moon > .moon > circle {
    cx: 17;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sun-and-moon > .sun {
    transition: transform .5s var(--ease-elastic-3);
  }

  .sun-and-moon > .sun-beams {
    transition: transform .5s var(--ease-elastic-4), opacity .5s var(--ease-3);
  }

  .sun-and-moon .moon > circle {
    transition: transform .25s var(--ease-out-5);
  }

  @supports (cx: 1) {
    .sun-and-moon .moon > circle {
      transition: cx .25s var(--ease-out-5);
    }
  }

  body:not(.light-mode) .sun-and-moon > .sun {
    transition-timing-function: var(--ease-3);
    transition-duration: .25s;
    transform: scale(1.75);
  }

  body:not(.light-mode) .sun-and-moon > .sun-beams {
    transition-duration: .15s;
    transform: rotateZ(-25deg);
  }

  body:not(.light-mode) .sun-and-moon > .moon > circle {
    transition-duration: .5s;
    transition-delay: .25s;
  }
}

/* Draw a line from the top left to the bottom right of the page */
body {
  /* background-color: #fefaee; */
  /* font-family: PP Neue Montreal, Arial, sans-serif; */
  color: var(--ink);
  background-color: var(--paper);
  margin: 0;
  padding: 0;
  overscroll-behavior: none;
  min-height: 100%;
}

.cloneable {
  padding: var(--section-padding) var(--container-padding);
  justify-content: center;
  align-items: center;
  min-height: 100svh;
  display: flex;
  position: relative;
}

.text-draw {
  color: var(--color);
  margin-left: 1em;
  margin-right: 1em;
  font-size: 3.5vw;
  text-decoration: none;
}

/* Draw line container styling */
[draw-line] {
  cursor: pointer;
  padding: 1em;
  transition: all 0.3s ease;
  border-radius: 8px;
  position: relative;
}



.text-draw__p {
  margin-bottom: 0;
  font-size: 1.5em;
  font-weight: 500;
  line-height: 1.1;
}

.text-draw__box {
  color: var(--color);
  width: 100%;
  height: .625em;
  position: relative;
  margin: 2em 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* cursor: pointer; */
}

.text-draw__box svg {
  transition: all 1s ease-out;
}



.text-draw__box-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  overflow: visible !important;
}

/* Ensure GIFs play properly */
img[src$=".gif"] {
  animation-play-state: running !important;
  image-rendering: auto;
  object-fit: cover;
}

/* Responsive GIF container */
.flex-image-grid .main-item img[src$=".gif"] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*--------------------------------------------------------------
# Text Video Section - Custom layout for wide text with portrait video
--------------------------------------------------------------*/
.text-video-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 4rem 0;
}

.text-video-section__text {
  flex: 1 1 70%;
}

.text-video-section__video {
  flex: 1 1 30%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-video-section__video video {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .text-video-section {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .text-video-section__text,
  .text-video-section__video {
    flex: 1 1 auto;
    width: 100%;
  }
}