:root {
  --default-font-family: "DM Sans", sans-serif;
}

.main-container {
  overflow: hidden;
}

.main-container,
.main-container * {
  box-sizing: border-box;
}

input,
select,
textarea,
button {
  outline: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #050505;
  margin: 0;
  padding: 0;
}

/* Animated Icons for Principles Section */
.animated-icon {
    font-size: 2.5rem;
    color: #4eca8f;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

/* Interface Icon - Mobile UX Animation */
.interface-icon {
    animation: mobilePulse 2s ease-in-out infinite;
}

@keyframes mobilePulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        color: #4eca8f;
    }
    50% { 
        transform: scale(1.1) rotate(5deg);
        color: #78D2A5;
    }
}

/* Mobile Gesture Demo */
.mobile-gesture-demo {
    width: 60px;
    height: 100px;
    margin: 0 auto;
    position: relative;
}

.mobile-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 12px;
    border: 2px solid #4eca8f;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(78, 202, 143, 0.3);
}

.swipe-path {
    position: absolute;
    opacity: 0;
    animation: swipeGesture 4s ease-in-out infinite;
}

.swipe-left {
    width: 35px;
    height: 8px;
    top: 35px;
    left: 5px;
    animation-delay: 0s;
}

.swipe-right {
    width: 35px;
    height: 8px;
    top: 35px;
    right: 5px;
    animation-delay: 1s;
}

.swipe-up {
    width: 8px;
    height: 35px;
    top: 5px;
    left: 26px;
    animation-delay: 2s;
}

.swipe-down {
    width: 8px;
    height: 35px;
    bottom: 5px;
    left: 26px;
    animation-delay: 3s;
}

.finger-trail {
    width: 100%;
    height: 100%;
    border-radius: 50px;
    position: relative;
    transform-origin: center;
}

/* Horizontal swipe gradients (left and right) */
.swipe-left .finger-trail,
.swipe-right .finger-trail {
    background: linear-gradient(90deg, 
        rgba(78, 202, 143, 0.8) 0%, 
        rgba(120, 210, 165, 0.6) 30%, 
        rgba(78, 202, 143, 0.4) 60%, 
        rgba(78, 202, 143, 0.1) 100%);
}

/* Vertical swipe gradients (up and down) */
.swipe-up .finger-trail,
.swipe-down .finger-trail {
    background: linear-gradient(180deg, 
        rgba(78, 202, 143, 0.8) 0%, 
        rgba(120, 210, 165, 0.6) 30%, 
        rgba(78, 202, 143, 0.4) 60%, 
        rgba(78, 202, 143, 0.1) 100%);
}

.finger-tip {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #4eca8f 0%, #78D2A5 100%);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(78, 202, 143, 0.8);
    animation: fingerMove 4s ease-in-out infinite;
}

/* Horizontal swipe finger tip positioning */
.swipe-left .finger-tip {
    top: 1px;
    right: 2px;
    animation-delay: 0s;
}

.swipe-right .finger-tip {
    top: 1px;
    left: 2px;
    animation-delay: 1s;
}

/* Vertical swipe finger tip positioning */
.swipe-up .finger-tip {
    bottom: 2px;
    left: 1px;
    animation-delay: 2s;
}

.swipe-down .finger-tip {
    top: 2px;
    left: 1px;
    animation-delay: 3s;
}

@keyframes swipeGesture {
    0%, 15%, 100% { 
        opacity: 0;
        transform: scale(0.7);
    }
    5%, 10% { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fingerMove {
    0%, 15%, 100% { 
        opacity: 0;
        transform: scale(0.5);
    }
    5%, 10% { 
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 12px rgba(78, 202, 143, 1);
    }
}

/* Bouncing Ball Animation with Spring Physics */
.bouncing-ball {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 30% 30%, #4eca8f, #78D2A5);
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    animation: springBounce 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    box-shadow: 0 0 15px rgba(78, 202, 143, 0.4);
    transform-origin: center bottom;
    transform: translateY(15px);
}

@keyframes springBounce {
    0% { 
        transform: translateY(15px) scaleY(1) scaleX(1);
        box-shadow: 0 0 15px rgba(78, 202, 143, 0.4);
    }
    12% { 
        transform: translateY(-35px) scaleY(1.15) scaleX(0.85);
        box-shadow: 0 0 25px rgba(78, 202, 143, 0.7);
    }
    24% { 
        transform: translateY(15px) scaleY(0.75) scaleX(1.25);
        box-shadow: 0 0 35px rgba(78, 202, 143, 0.9);
    }
    28% { 
        transform: translateY(-12px) scaleY(1.08) scaleX(0.92);
        box-shadow: 0 0 20px rgba(78, 202, 143, 0.6);
    }
    32% { 
        transform: translateY(15px) scaleY(0.85) scaleX(1.15);
        box-shadow: 0 0 30px rgba(78, 202, 143, 0.8);
    }
    36% { 
        transform: translateY(-5px) scaleY(1.03) scaleX(0.97);
        box-shadow: 0 0 18px rgba(78, 202, 143, 0.5);
    }
    40% { 
        transform: translateY(15px) scaleY(0.95) scaleX(1.05);
        box-shadow: 0 0 25px rgba(78, 202, 143, 0.7);
    }
    44% { 
        transform: translateY(-2px) scaleY(1.01) scaleX(0.99);
        box-shadow: 0 0 16px rgba(78, 202, 143, 0.45);
    }
    48% { 
        transform: translateY(15px) scaleY(1) scaleX(1);
        box-shadow: 0 0 15px rgba(78, 202, 143, 0.4);
    }
    100% { 
        transform: translateY(15px) scaleY(1) scaleX(1);
        box-shadow: 0 0 15px rgba(78, 202, 143, 0.4);
    }
}

/* Bento Grid Animation */
.bento-grid {
    width: 60px;
    height: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    position: relative;
}

.bento-box {
    background: linear-gradient(135deg, #4eca8f, #78D2A5);
    border-radius: 6px;
    animation: bentoExpand 3s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(78, 202, 143, 0.3);
}

.box-1 {
    animation-delay: 0s;
}

.box-2 {
    animation-delay: 0.5s;
}

.box-3 {
    animation-delay: 1s;
}

.box-4 {
    animation-delay: 1.5s;
}

@keyframes bentoExpand {
    0%, 20%, 100% { 
        transform: scale(1);
        opacity: 0.7;
        box-shadow: 0 0 8px rgba(78, 202, 143, 0.3);
    }
    10% { 
        transform: scale(1.3);
        opacity: 1;
        box-shadow: 0 0 15px rgba(78, 202, 143, 0.6);
    }
}

/* Hover effects for enhanced interactivity */
.item-margin:hover .animated-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(78, 202, 143, 0.5));
}

.item-margin:hover .bouncing-ball {
    box-shadow: 0 0 25px rgba(78, 202, 143, 0.8);
}

.item-margin:hover .mobile-screen {
    border-color: #78D2A5;
    box-shadow: 0 0 30px rgba(78, 202, 143, 0.6);
}

.item-margin:hover .finger-tip {
    box-shadow: 0 0 15px rgba(78, 202, 143, 1);
}

.item-margin:hover .bento-box {
    box-shadow: 0 0 20px rgba(78, 202, 143, 0.8);
}

/* Image optimization */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: optimize-contrast;
  -ms-interpolation-mode: nearest-neighbor;
}

div {
  transition: all .5s ease-in-out;
}



body {
  cursor: none;
}

.bento img :hover {
  cursor: none;
}

::selection {
  background: #1a3a28; /* Darker selection color */
  cursor: none;
}
::-moz-selection {
  background: #1a3a28; /* Darker selection color for Firefox */
  cursor: none;
}

.main-container {
  margin: 0 auto;
  background: #050505;
  overflow: hidden auto;
}

#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
  perspective: 1000px;
}

.splash-content {
  text-align: center;
  width: 80%;
  max-width: 600px;
}

.splash-text {
  font-family: 'Carme', sans-serif;
  font-size: 6vw;
  color: #a0a0a0;
  margin-bottom: 60px;
}

.gradient-text {
  display: inline-block;
  background: linear-gradient(110deg, #4eca8f, #3db17a, #2c9865, #1b7f50, #0a663b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300% 300%;
  animation: textGradientAnimation 4s ease infinite;
}

/* New progress bar styles */
.loading-progress-container {
  width: 100%;
  height: 6px;
  background-color: #111111;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  margin-top: 60px;
}

.loading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4eca8f, #3db17a, #2c9865, #1b7f50, #0a663b, #004d26);
  border-radius: 3px;
  transition: width 0.3s ease-out;
}

.progress-percentage {
  position: absolute;
  right: 0;
  top: 10px;
  color: #4eca8f;
  font-family: 'Carme', sans-serif;
  font-size: 14px;
  opacity: 0.8;
}

/* Hide loading bar and percentage for instant splash experience */
.loading-progress-container,
.progress-percentage,
.loading-progress-bar {
  display: none !important;
}

/* Remove old dots animation */
.loading-dots {
  display: none;
}

.main-container {
  opacity: 0;
  transform: translateY(0);
  transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
}

body {
  overflow: hidden;
  position: relative;
}

.container {
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: left;
}

.flex-row-f {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-left: 10%;
  margin-right: 10%;
  height: auto;
  flex-direction: column;
}

/* Fixed navigation bar with bottom border glow */
.brand-banner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  background-color: rgba(28, 28, 30, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  --glow-x: 50%;
  --glow-y: 50%;
  position: fixed;
}

/* Enhanced glow effect with smoother transitions */
.brand-banner::before {
  content: '';
  position: absolute;
  width: 120px; 
  height: 120px;
  background: radial-gradient(circle, 
    rgba(78, 202, 143, 0.15) 0%,
    rgba(78, 202, 143, 0.08) 40%,
    rgba(78, 202, 143, 0.03) 60%,
    transparent 80%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0; /* Start invisible */
  transition: opacity 0.8s ease; /* Slower fade for smoother effect */
  transform: translate(-50%, -50%);
  z-index: 1;
  left: var(--glow-x, 50%);
  top: var(--glow-y, 50%);
  mix-blend-mode: screen;
  will-change: opacity, left, top; /* Optimize for animation */
}

/* Keep the hover state simple - only control opacity */
.brand-banner:hover::before {
  opacity: 1;
}

/* Add an active class that we'll toggle with JS */
.brand-banner.glow-active::before {
  opacity: 1;
}

/* Make sure content stays above the glow */
.nav-container, .brand-label, .navigation, .social-buttons {
  position: relative;
  z-index: 2;
}

.nav-container {
  width: 80%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: visible;
  margin: 12px 0;
}

.header-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.brand-label {
  color: #ffffff;
  font-family: Carme, var(--default-font-family);
  font-size: 32px;
  padding: 10px 0;
  text-align: left;
  white-space: nowrap;
  position: relative;
  display: inline-block;
  background: linear-gradient(110deg, #4eca8f, #3db17a, #2c9865, #1b7f50, #0a663b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
  z-index: 10;
  flex-basis: auto;
  background-color: transparent;
  border: none;
  transition: transform 0.3s ease;
  transform-origin: left center;
}

.brand-label:hover {
  transform: scale(1.1);
}

.navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navigation ul li {
  margin: 0 5px;
}

.navigation ul li a {
  color: #ffffff;
  font-family: Carme, var(--default-font-family);
  font-size: 16px;
  text-decoration: none;
  padding: 19px;
  border-radius: 20px;
  transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
  box-sizing: border-box;
}

/* Update navigation hover style for glassmorphic effect */
.navigation ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.social-buttons {
  display: flex;
  align-items: center;
}

.social-btn {
  background-color: transparent;
  color: #ffffff;
  border: none;
  font-size: 18px;
  margin-left: 15px;
  padding: 19px;
  border-radius: 20px;
  cursor: none;
  transition: background-color 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
  box-sizing: border-box;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Update social button hover style for glassmorphic effect */
.social-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.heading {
  margin-top: 65px;
}

.hello-justin {
  color: #ffffff;
  font-family: Carme, var(--default-font-family);
  font-size: 60px; /* Match heading-principles */
  line-height: 80px;
  text-align: left;
  transform-origin: center;
  will-change: transform;
  white-space: normal;
}
.hello-justin .text-wrapper {
  position: relative;
  display: inline-block;
  padding-top: 0.2em;
  padding-right: 0.05em;
  padding-bottom: 0.1em;
  overflow: hidden;
}
.hello-justin .letter {
  display: inline-block;
  line-height: 1em;
  transform-origin: 50% 50%;
  opacity: 0;
  will-change: transform, opacity;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.heading-container {
  position: relative;
  margin-top: 50px;
  margin-left: 0;
  width: 100%;
}
.heading-container-wrap {
  position: relative;
  width: 100%;
}
.year-13-student {
  color: #b0b0b0;
  font-family: Carme, var(--default-font-family);
  font-size: 20px;
  line-height: 38px;
  text-align: left;
  overflow-wrap: break-word;
}
.linkedin-button-div {
    display: flex;
    justify-content: flex-start;
    margin: 0 10% 80px 10%;
    width: 100%;
    flex-wrap: wrap;
    gap: 20px;
}
.linkedin-button-div .reach-out-linkedin + .reach-out-linkedin {
  margin-left: 40px;
}

/* Responsive button layout - stack vertically on narrow screens */
@media (max-width: 768px) {
  .linkedin-button-div {
    flex-direction: column;
    align-items: flex-start;
  }
  .linkedin-button-div .reach-out-linkedin + .reach-out-linkedin {
    margin-left: 0;
    margin-top: 20px;
  }
}

/* For very narrow screens where buttons might still not fit */
@media (max-width: 600px) {
  .linkedin-button-div {
    flex-direction: column;
    align-items: flex-start;
  }
  .reach-out-linkedin {
    min-width: 250px;
    width: auto;
    max-width: 300px;
  }
}
.reach-out-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: auto;
  min-width: 280px; /* smaller width */
  height: 60px; /* larger height */
  padding: 0 24px; /* horizontal padding for pill look */
  background-color: #08251a !important; /* darker green base */
  border: 1px solid rgba(78, 202, 143, 0.28) !important; /* subtle green border */
  border-radius: 30px; /* pill radius proportional to height */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35),
              0 0 0 2px rgba(78, 202, 143, 0.08) inset; /* soft inner ring */
  font-family: var(--default-font-family);
  font-size: 16px; /* slightly larger text */
  font-weight: 600;
  color: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.reach-out-linkedin:hover {
  transform: translateY(-1px) scale(1.02);
  background-color: #061f15 !important; /* even darker on hover */
  border-color: rgba(78, 202, 143, 0.32) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35),
              0 0 0 2px rgba(78, 202, 143, 0.12) inset,
              0 0 18px rgba(78, 202, 143, 0.45); /* green glow */
}

.arrow {
  position: relative;
  color: #ffffff;
  font-family: Carme, var(--default-font-family);
  font-size: 18px;
  line-height: 23px;
  padding-right: 20px;
  text-align: left;
}

.reach-out-linkedin-span {
  position: relative;
  color: #ffffff;
  font-family: Carme, var(--default-font-family);
  font-size: 18px;
  line-height: 23px;
  text-align: left;
}

.heading, .heading-container, .linkedin-button-div {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}
.heading {
  animation-delay: 1s;
}
.heading-container {
animation-delay: 1.15s;
}
.linkedin-button-div {
  animation-delay: 1.3s;
}

.bento {
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-top: 250px;
  height: 100%;
  padding-left: 10%;
  padding-right: 10%;
  scale: 0.9;
  width: 1920px;
  aspect-ratio: 1920 / 1080;
  margin: 18px 0 0 0;
  transition: all 0.2s ease-in-out;
  animation: fadeInUpBento 2s forwards;
}

@keyframes fadeInUpBento {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.88);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInUp {
  20% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.bento-flex {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
  transition: none;
}

.bento-flex img:not(.onetick-image):not(.attendify-image) {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.mask-5, .mask-8 {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Label container styling */
.label-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0; /* Start hidden */
    transition: opacity 0.4s ease-in-out;
    padding: 15px;
    z-index: 5;
    pointer-events: none; /* Allow clicks to pass through */
}

/* Update label styling */
.heading-image-label {
    position: relative;
    font-size: 40px;
    font-family: Carme, var(--default-font-family);
    color: #ffffff;
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
    width: 100%;
}

.subheading-image-label {
    position: relative;
    font-size: 22px;
    font-family: Carme, var(--default-font-family);
    color: #d3d3d3;
    text-align: center;
    font-weight: 400;
    width: 100%;
}

/* Make the hover effect directly target the label container */
#mask:hover .label-container {
    opacity: 1 !important; /* Force visibility with !important */
}

/* Update mask hover state to ensure the effect works */
#mask {
  transition: all 0.35s ease-in-out;
}

#mask:hover {
    -webkit-filter: brightness(70%);
    -moz-filter: brightness(70%);
    filter: brightness(70%);
    transform: scale(0.95);
}

#mask:hover img {
    -webkit-filter: blur(6px) brightness(80%);
    -moz-filter: blur(6px) brightness(80%);
    filter: blur(6px) brightness(80%);
}

/* Mask properties */
.mask-1 {
  grid-column: 1;
  grid-row: 1;
}
.lens-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.mask-2 {
  grid-column: 2 / 4;
  grid-row: 1;
  background: #1c1c1e;
  border-radius: 20px;
}
.categories-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}

.mask-3 {
  grid-column: 6;
  grid-row: 1;
}
.computing-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.mask-6 {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
}
.list-onetick-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.mask-10 {
  grid-column: 3;
  grid-row: 2 / 3;
}
.mask-5, .mask-12 {
  background: #0a3a1f;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  height: 49%;
  margin-bottom: 4%;
}
.onetick-image {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}
.mask-8, .mask-13 {
  background: #363126;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 49%;
}
.attendify-image {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

.mask-11 {
  grid-column: 4 / 6;
  grid-row: 1 / 4;
}
.mask-9 {
  background: #1e1e1e;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 24%;
  margin-bottom: 2%;
}
.medimemo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}
.mask-4 {
  align-items: center;
  height: 74%;
}
.asd-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.mask-7 {
  grid-column: 6;
  grid-row: 2 / 3;
}
.cherryblossom-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.mask-1 { display: block; }
.mask-2 { display: block; }
.mask-15 { display: none; }
.mask-14 { display: none; }

@media screen and (max-width: 1920px) {
  .bento {
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 1200;
  }
}

@media screen and (max-width: 1000px) {
  .bento {
    width: 100%;
    height: auto;
    aspect-ratio: 1108/1825;
    scale: 0.97;
  }

  .bento-flex {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 0fr);
  }

  .mask-1 { display: none; }
  .mask-2 { display: none; }
  .mask-10 { display: none; }
  .mask-15 { display: block; }
  .mask-14 { display: block; }

  .mask-15 { grid-column: 3 / 5; grid-row: 2 / 3; }
  .mask-16 { margin-bottom: 1%; }
  .mask-3 { grid-column: 2 / 3; grid-row: 1;}
  .mask-6 { grid-column: 3 / 5; grid-row: 1; }
  .mask-11 { grid-column: 1 / 3; grid-row: 2 / 3; }
  .mask-14 { 
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      width: 100%;
  }
  .mask-12 { width: 49%; margin-bottom: 2.25%; padding: 5%;}
  .mask-13 { width: 49%; margin-bottom: 2.25%; padding: 5%;}
  .mask-9 { width: 100%; height: auto; margin-top: 0.25%;}
  .mask-4 { height: auto; }
  .mask-7 { grid-column: 1 / 2; grid-row: 1 / 1; max-height: fit-content; }

  .heading-image-label {
    font-size: 20px;
  }
  
  .mockup {
    width: 100%;
  }
}

.principles {
  position: relative;
  margin-left: 10%;
  margin-right: 10%;
  width: calc(100% - margin-left - margin-right);
  overflow: visible;
  margin-top: 100px;
}

.heading-principles {
  display: block;
  position: relative;
  height: 79px;
  margin: 0 0 0 0;
  color: #ffffff;
  font-family: Carme, var(--default-font-family);
  font-size: 60px;
  line-height: 79px;
  text-align: left;
  white-space: nowrap;
}
.prin-description-container {
  display: flex;
  flex-grow: 1;
  position: relative;
}
.description {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
  position: relative;
  height: auto;
  color: #d5d5d5;
  font-family: Carme, var(--default-font-family);
  font-size: 20px;
  line-height: 38px;
  text-align: left;
  margin: 60px 0 60px 0;
}

.list {
  display: grid;
  align-items: flex-start;
  flex-wrap: wrap;
  position: relative;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(1, 1fr);
  overflow: visible;
  grid-gap: 3%;
  z-index: -1;
  padding: 10px;
}
.item-margin {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  position: relative;
  margin-bottom: 30px;
  width: auto;
  height: 300px;
  overflow: visible;
  z-index: 10;
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.background-item {
  position: relative;
  width: 100%;
  height: 270px;
  margin: 0;
  background-color: rgba(28, 28, 30, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  transition: all 0.3s ease-out;
  overflow: visible;
  transform-origin: center center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.container-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  padding: 66px 111px 66px 111px;
  overflow: hidden;
  border-radius: 20px;
}
.figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: nowrap;
  position: relative;
  width: auto;
  margin: 35px 0 0 0;
}
.item-description {
  align-self: center;
  flex-basis: auto;
  position: relative;
  width: 100%;
  height: auto;
  color: #b0b0b0;
  font-family: Carme, var(--default-font-family);
  font-size: 23px;
  line-height: 38px;
  text-align: center;
  white-space: nowrap;
  display: inline-block;
  text-wrap: wrap;
}
.icon-interface {
  position: relative;
  width: 90px;
  height: 90px;
  background-size: cover;
  opacity: 0.8;
  overflow: hidden;
  max-width: 361px;
  opacity: 0.6;
}
.icon-motion {
  position: relative;
  width: 90px;
  height: 90px;
  background-size: cover;
  overflow: hidden;
  max-width: 361px;
  opacity: 0.6;
}
.icon-animation {
  position: relative;
  width: 120px;
  height: 120px;
  background-size: cover;
  overflow: hidden;
  max-width: 361px;
  opacity: 0.6;
}

.principles {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.principles.visible {
  opacity: 1;
  transform: translateY(0);
}
.item-margin {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.item-margin.visible {
  opacity: 1;
  transform: translateX(0);
}
.item-margin:hover .background-item {
  background-color: rgba(28, 28, 30, 0.6);
  box-shadow: 0 8px 32px rgba(10, 102, 59, 0.3);
  border: 1px solid rgba(78, 202, 143, 0.2);
  z-index: 11;
}

/* Optional: Add hover effect to the text as well */
.item-margin:hover .item-description {
  color: #4eca8f; /* Or any color that matches your design */
  transition: color 0.3s ease-out;
}

.purpose {
  position: relative;
  margin-left: 10%;
  margin-right: 10%;
  width: calc(100% - margin-left - margin-right);
  height: auto;
}

.image-45 {
  position: absolute;
  width: 400px;
  height: 190px;
  top: 64px;
  left: 1035px;
}
.heading-purpose {
  position: relative; /* Changed from absolute */
  height: 80px;
  margin-top: 108px; /* Changed from top positioning */
  color: #ffffff;
  font-family: Carme, var(--default-font-family);
  font-size: 60px;
  line-height: 80px;
  text-align: left;
  white-space: nowrap;
}
.purpose-container {
  position: relative; /* Changed from absolute */
  height: auto;
  margin-top: 40px; /* Changed from top positioning */
}
.purpose-description {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
  position: relative;
  width: 851px;
  height: 100%;
  color: #d5d5d5;
  font-family: Carme, var(--default-font-family);
  font-size: 20px;
  line-height: 38px;
  text-align: left;
  margin-bottom: 100px;
}

.explore {
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 35px;
  width: 250px;
  height: 75px;
  padding: 26px;
  background: rgba(16, 46, 29, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.explore:hover {
  background: rgba(10, 58, 31, 0.6);
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(78, 202, 143, 0.2);
  border: 1px solid rgba(78, 202, 143, 0.3);
}

.onetickandattendify {
  position: relative;
  width: auto;
  height: auto;
  margin-bottom: 120px;
}

.bold-subtitle {
  color: #6d8f60;
}

.onetick-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 150px;
  height: 36px;
}

.icon-onetick {
  position: relative;
  height: 44px;
  width: 50px;
  background-size: cover;
}
.onetick-title {
  position: relative;
  height: auto;
  color: #0b8e4b;
  font-family: Carme, var(--default-font-family);
  font-size: 24px;
  line-height: 43px;
  text-align: justified;
  white-space: nowrap;
}

.mockup {
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 1 !important;
  visibility: visible !important;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); /* Optional: adds depth */
}
.onetick-comments {
  display: flex;
  align-items: flex-start;
  position: relative;
  width: 100%;
  height: auto;
  margin: 30px 0 0 0;
  color: #d5d5d5;
  font-family: Carme, var(--default-font-family);
  font-size: 15px;
  line-height: 30px;
  text-align: justified;
}

.flex-row-attendify {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 320px;
  height: 36px;
}
.attendify-title {
  position: relative;
  height: 34px;
  color: #877a5c;
  font-family: Carme, var(--default-font-family);
  font-size: 24px;
  line-height: 34px;
  left: -16px;
  text-align: left;
  white-space: nowrap;
}
.icon-attendify {
  position: relative;
  width: 36px;
  height: 35px;
  background-size: contain;
  overflow: hidden;
}
.cathay-pacific-logo {
  position: relative;
  width: 130px;
  height: 27px;
  background-size: cover;
}
.attendify-comments {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  width: 95%;
  height: auto;
  margin: 30px 0 0 0;
  color: #d5d5d5;
  font-family: Carme, var(--default-font-family);
  font-size: 15px;
  line-height: 30px;
  text-align: justified;
}

.projects-flex {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 80%;
  margin-left: 10%;
  margin-right: 10%;
  margin-top: 100px;
  height: auto;
}
.heading-projects {
  display: block;
  position: relative;
  height: 79px;
  color: #ffffff;
  font-family: Carme, var(--default-font-family);
  font-size: 60px;
  line-height: 79px;
  text-align: left;
  white-space: nowrap;
}
.projects-container {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  position: relative;
  padding: 60px 0 60px 0;
}
.projects-description {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
  position: relative;
  height: auto;
  color: #ffffff;
  font-family: Carme, var(--default-font-family);
  font-size: 20px;
  line-height: 38px;
  text-align: left;
}
.item-margin-projects {
  transition: all 0.5s ease;
  position: relative;
  overflow: visible !important;
  border-radius: 12px;
  z-index: 2;
  margin-bottom: 30px;
}

.icon-text-wrap {
  display: flex;
  flex-direction: row;
  align-items: center; /* This ensures vertical centering */
  justify-content: flex-start; /* Keep horizontal alignment as is */
  flex-wrap: nowrap;
  position: relative;
  padding: 0 0.02px 0 0;
  transition: transform 0.3s ease;
  width: 100%;
  transition: background-color 0.3s ease;
  z-index: 3;
}

/* Add border to icon-background for base state */
.icon-background {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-wrap: nowrap;
  position: relative;
  width: 150px;
  height: 128px;
  padding: 0 10px 0 10px;
  margin-right: 15px;
  background-color: rgba(28, 28, 30, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

/* Add hover effect to icon-background - darker version of language badge effect */
.item-margin-projects:hover .icon-background {
  background-color: rgba(28, 28, 30, 0.6);
  border: 1px solid rgba(78, 202, 143, 0.2);
  box-shadow: 0 8px 32px rgba(10, 102, 59, 0.3);
}

.icon-projects {
  position: relative;
  width: 82px;
  background-size: cover;
  overflow: hidden;
}
.figcaption-2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: nowrap;
  position: relative;
  width: 65%;
  padding: 0 10px;
  text-align: left;
  z-index: 2;
  margin-left: 5%;
}

.descriptions-projects {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
}
.title-projects {
  text-align: left;
  position: relative;
  color: #ffffff;
  font-family: Carme, var(--default-font-family);
  font-size: 23px;
  overflow-wrap: normal;
  white-space: nowrap;
  line-height: 30px;
  margin-right: 0;
}
.language-badges-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  padding: 0;
  width: 100%; /* Ensure it takes full width */
}
.language-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(78, 202, 143, 0.08);
  backdrop-filter: blur(8px);
  border-radius: 5px;
  padding: 4px 10px;
  margin: 0;
  font-size: 0.8rem;
  margin-top: 2px;
  transition: all 0.3s ease;
  border: 1px solid rgba(78, 202, 143, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.language-badge i {
  color: #ff6c2c; /* Swift orange color */
  font-size: 14px;
  margin-right: 5px;
}
.language-badge span {
  color: #e0e0e0;
  font-family: Carme, var(--default-font-family);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.language-badge .fa-react {
  color: #61dafb; /* React blue color */
}

.language-badge .fa-html5 {
  color: #e34c26; /* HTML5 orange color */
}

.language-badge .fa-css3-alt {
  color: #264de4; /* CSS3 blue color */
}

.language-badge .fa-js {
  color: #f7df1e; /* JavaScript yellow color */
}

.title-language-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px; /* Controls spacing between title and badges */
  padding-bottom: 20px;
  width: 100%;
}

@media (max-width: 768px) {
  .title-language-container {
    gap: 6px;
  }
  
  .language-badge {
    padding: 3px 8px;
    font-size: 12px;
  }
}

.subtitle-projects {
  text-align: left;
  width: auto;
  position: relative;
  height: auto;
  color: #ffffff;
  font-family: Carme, var(--default-font-family);
  font-size: 17px;
  opacity: 0.7;
  overflow-wrap: break-word;
  line-height: 30px;
}

.signal-stack-icon {
  position: relative;
  width: 60px;
}
.heart-icon {
  position: absolute;
  width: 70px;
}

.purpose, .projects-flex {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.purpose.visible, .projects-flex.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Hide system cursor globally across all elements and interaction states */
html, body, *, iframe, .popup-iframe, .iframe-container, .popup-content {
  cursor: none !important;
}

/* Extra specificity for common interactive elements */
a, button, input, textarea, select, summary, [role="button"], [onclick], [tabindex] {
  cursor: none !important;
}

/* Ensure states never re-enable the cursor */
*:hover, *:active, *:focus {
  cursor: none !important;
}

/* Expanding Cursor for Project Boxes */
.cursor.expanded {
    width: 160px !important;
    height: 36px !important;
    border-radius: 18px !important;
    background: rgba(78, 202, 143, 0.15) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(78, 202, 143, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 
                0 0 0 1px rgba(78, 202, 143, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--default-font-family);
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    pointer-events: none;
    z-index: 10000;
    margin-left: -80px;
    margin-top: -18px;
    padding: 10px 16px;
    box-sizing: border-box;
    opacity: 0.95;
}

.cursor.expanded::before {
    content: attr(data-cursor-text);
    opacity: 1;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.3px;
    font-weight: 500;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.cursor.expanded:hover {
    transform: scale(1.02);
    background: rgba(78, 202, 143, 0.2) !important;
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 
                0 0 0 1px rgba(78, 202, 143, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    opacity: 1;
}

/* Project Box Hover States */
.onetick-box:hover {
    cursor: none !important;
}

/* Custom cursor base*/
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  margin-top: -6px;
  border-radius: 9999px;
  background: rgba(160, 160, 160, 0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 2147483647; /* ensure above everything, including popups */
  transition: width 0.18s cubic-bezier(0.22, 1, 0.36, 1),
              height 0.18s cubic-bezier(0.22, 1, 0.36, 1),
              border-radius 0.18s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.12s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.2s ease,
              color 0.2s ease,
              font-size 0.2s ease;
  will-change: transform, width, height, border-radius;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.cursor.is-attached {
  background: rgba(78, 202, 143, 0.9) !important;
  box-shadow: 0 0 20px rgba(78, 202, 143, 0.6) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  font-weight: bold !important;
  font-size: 14px !important;
}

/* Slight lift/scale on interactive targets when attached */
.is-cursor-attached {
  transform: translateZ(0) scale(1.02);
}

/* When attached, draw the cursor background under the target's content */
.is-cursor-attached {
  position: relative;
  overflow: hidden; /* helps Safari avoid edge artifacts */
}

.is-cursor-attached::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--cursor-border-radius, inherit);
  background: var(--cursor-bg, transparent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22),
              inset 0 0 0 var(--cursor-border-w, 0px) var(--cursor-border-color, transparent);
  z-index: 0;
  opacity: var(--cursor-bg-opacity, 0);
  transition: opacity 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  will-change: opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Enhanced button hover effects when cursor is attached */
.is-cursor-attached.social-btn,
.is-cursor-attached.reach-out-linkedin,
.is-cursor-attached.email-option-btn,
.is-cursor-attached.popup-close,
.is-cursor-attached.email-popup-close,
.is-cursor-attached.scroll-top-btn,
.is-cursor-attached.mobile-nav-toggle {
  transform: scale(1.02) !important;
  transition: transform 0.2s ease !important;
}

/* Special glow effect for buttons when cursor is attached */
.is-cursor-attached[class*="btn"]::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, rgba(78, 202, 143, 0.3), rgba(120, 210, 165, 0.2));
  border-radius: inherit;
  z-index: -1;
  opacity: 0.6;
  animation: buttonGlow 2s ease-in-out infinite alternate;
}

@keyframes buttonGlow {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 0.7;
    transform: scale(1.02);
  }
}

.is-cursor-attached > * {
  position: relative;
  z-index: 1;
}
.heart-icon, .signal-stack-icon {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.footer {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: 120px;
  margin-left: 10%;
  margin-right: 10%;
  height:fit-content;
}
.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  flex-wrap: nowrap;
  position: relative;
  background-color: rgba(28, 28, 30, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  margin-bottom: 50px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.paragraph {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  position: relative;
}

/* Update homeBtn to match social button style */
#homeBtn {
  margin-left: 0;
  font-size: 16px;
  background-color: transparent;
  color: #ffffff;
  transition: background-color 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
  box-sizing: border-box;
}

#homeBtn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Footer Social Buttons Styling */
.footer-social-buttons {
  display: flex;
  align-items: center;
  margin-left: 0; /* Adjust spacing */
}

.footer-social-btn {
  margin-left: 5px;
  padding: 19px;
  transition: background-color 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
  background-color: transparent;
  color: #ffffff;
  font-size: 16px;
  border-radius: 20px;
  border: 1px solid transparent;
  box-sizing: border-box;
  cursor: none;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Adjust paragraph layout */
.paragraph {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  position: relative;
}
.hong-kong {
  flex-basis: auto;
  position: relative;
  height: auto;
  color: #b8b8b8;
  font-family: Carme, var(--default-font-family);
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
  padding-right: 20px;
  padding-left: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

@media screen and (max-width: 1350px) {
  .bento {
      scale: 0.93;
  }
  .principles {
      align-items: flex-start;
  }
  .purpose {
    align-items: flex-start;
  }
  .item-description {
      font-size: 19px;
      line-height: 28px;
  }
  .container-item {
      padding: 0;
  }
  .icon-interface {
      scale: 1.3;
      width: 60px;
      height: 60px;
      background-size: contain;
  }
  .icon-motion {
      scale: 1.3;
      width: 60px;
      height: 60px;
      background-size: contain;
  }
  .icon-animation {
      scale: 1.8;
      width: 60px;
      height: 60px;
      background-size: contain;
  }
  .projects-flex {
    height: auto;
  }
  .item-margin-projects {
    position: relative;
    margin-top: 20 px;
    top: auto;
    bottom: auto;
    left: auto;
  }
}

@media screen and (max-width: 1170px) {
  .bento {
      scale: 0.95;
  }
  .container-item {
      padding: 0;
  }
  .icon-interface {
      scale: 1.3;
      width: 60px;
      height: 60px;
      background-size: contain;
  }
  .icon-motion {
      scale: 1.3;
      width: 60px;
      height: 60px;
      background-size: contain;
  }
  .icon-animation {
      scale: 1.8;
      width: 60px;
      height: 60px;
      background-size: contain;
  }
  
  /* Add these new styles for the dropdown menu */
  .mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    background-color: rgba(10, 31, 19, 0.5);
    border-radius: 5px;
    padding: 10px;
    z-index: 1000;
    border: none; /* Remove the border */
  }

  .brand-label {
    margin-left: 10%;
  }
  
  .social-buttons {
    order: 2;
    width: 20%;
    justify-content: flex-end;
  }
  
  .nav-container {
    flex-wrap: wrap;
    position: relative;
    justify-content: space-between;
  }
  
  .brand-label {
    order: 1;
  }
  
  .navigation {
    order: 4;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    z-index: 10;
    border-radius: 0 0 15px 15px;
  }
  
  .navigation ul {
    flex-direction: column;
    width: 100%;
    align-items: center;
    padding: 10px 0;
  }
  
  .navigation ul li {
    margin: 10px 0;
    width: 80%;
    text-align: center;
  }
  
  .navigation ul li a {
    display: block;
    padding: 12px 15px;
    width: 100%;
    font-size: 18px;
    border-radius: 10px;
  }
}

/* Remove the debugging border helper completely */
.mobile-nav-toggle::after {
  display: none; /* Remove the debug border */
}

/* Make the dropdown toggle icon animation smoother */
.dropdown-active .hamburger-icon .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: #4eca8f;
}

.dropdown-active .hamburger-icon .bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.dropdown-active .hamburger-icon .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: #4eca8f;
}

@media screen and (max-width: 1080px) {
  .bento {
      scale: 0.97;
  }
}

@media screen and (max-width: 1000px) {

  .heading-container {
    margin-top: 25px;
  }

  .reach-out-linkedin-span {
    font-size: 18px;
  }
  .reach-out-linkedin {
    width: auto;
    max-width: 280px;
  }

  .bento {
    scale: 0.98;
  }

  .heading-principles {
    font-size: 60px;
  }

  .prin-description-container {
    padding: 0px;
  }
  
  .description {
    font-size: 18px;
  }
  
  .intro-bullet-list li {
    font-size: 18px; /* Match .description at this breakpoint */
  }
  
  .item-description {
      font-size: 17px;
  }
  .container-item {
      padding: 0;
  }
  .icon-interface {
      scale: 1.3;
      width: 60px;
      height: 60px;
      background-size: contain;
  }
  .icon-motion {
      scale: 1.3;
      width: 60px;
      height: 60px;
      background-size: contain;
  }
  .icon-animation {
      scale: 1.8;
      width: 60px;
      height: 60px;
      background-size: contain;
  }
  
  .explore {
    position: relative;
    margin-top: 50px;
    width: 250px;
    align-items: center;
    justify-content: center;
  }

  .projects-description {
    height: fit-content;
    font-size: 18px;
  }

  .research-description {
    height: fit-content;
    font-size: 18px;
  }

  .item-margin-projects {
    position: relative;
    margin-top: 20 px;
    top: auto;
    bottom: auto;
    left: auto;
  }
}

@media (max-width: 875px) {
  .container-item {
      padding: 0;
  }
  .figcaption {
      width: 200px;
      height: auto;
      min-height: 50px;
  }
  .icon-interface {
      scale: 1;
      width: 60px;
      height: 60px;
      background-size: contain;
      display: block;
  }
  .icon-motion {
      scale: 1;
      width: 60px;
      height: 60px;
      background-size: contain;
      display: block;
  }
  .icon-animation {
      scale: 1;
      width: 60px;
      height: 60px;
      background-size: contain;
      display: block;
  }
}

@media (max-width: 765px) {
  .list {
    height: auto;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1%;
  }
  .background-item{
    align-self: center;
    width: 50%;
  }
  .figcaption {
    align-self: center;
  }
  .container-item {
    padding: 0;
  }
  .figcaption {
    width: 300px;
    height: auto;
    min-height: 50px;
  }

  .item-description {
    font-size: 19px;
    line-height: 28px;
  }
  .icon-interface {
    scale: 1;
    width: 70px;
    height: 70px;
    background-size: contain;
    display: block;
  }
  .icon-motion {
    scale: 1;
    width: 70px;
    height: 70px;
    background-size: contain;
    display: block;
  }
  .icon-animation {
    scale: 1;
    width: 70px;
    height: 70px;
    background-size: contain;
    display: block;
  }
}
@media (max-width: 940px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }
  
  .margin {
    margin-top: 20px;
    margin-bottom: 20px;
  }
}

@media (max-width: 650px) {
  .heading {
    margin-top: 65px;
  }
  .hello-justin {
    font-size: 45px; /* Match heading-principles at this breakpoint */
  }
  .brand-label {
    font-size: 32px; /* Keep consistent size */
  }
  .heading-principles {
    font-size: 45px;
  }
  .heading-purpose {
    font-size: 45px;
  }
  .heading-projects {
    font-size: 45px;
  }
}

@media (max-width: 540px) {
  
  .heading-container {
    margin-top: 10px;
  }
}

@media (max-width: 500px) {
  .flex-row-attendify .cathay-pacific-logo{
    display: none;
  }
  .flex-row-attendify {
    justify-content: start;
  }
  .flex-row-attendify .attendify-title {
    margin-left: 40px;
  }
}

@media (max-width: 450px) {
  .attendify-box {
    margin-top: 100px;
  }
}
@media (max-width: 445px) {
  body {
    zoom: 0.95;
  }
  .hello-justin {
    font-size: 45px; /* Match heading-principles from 650px breakpoint */
  }
}
@media (max-width: 430px) {
  body {
    zoom: 0.9;
  }
  .hong-kong {
    font-size: 12px;
  }
}
@media (max-width: 400px) {
  body {
    zoom: 0.85;
  }
}
@media (max-width: 380px) {
  body {
    zoom: 0.8;
  }
}
@media (max-width: 350px) {
  body {
    zoom: 0.75;
  }
  .hong-kong {
    font-size: 10px;
  }
}
@media (max-width: 270px) {
  body {
    zoom: 0.7;
  }
}
@media (max-width: 250px) {
  body {
    zoom: 0.65;
  }
}
@media (max-width: 230px) {
  body {
    zoom: 0.6;
  }
}
@media (max-width: 210px) {
  body {
    zoom: 0.55;
  }
} 
@media (max-width: 190px) {
  body {
    zoom: 0.5;
  }
}
@media (max-width: 170px) {
  body {
    zoom: 0.35;
  }
}   
@media (max-width: 150px) {
  body {
    zoom: 0.3;
  }
} 
@media (max-width: 130px) {
  body {
    zoom: 0.25;
  }
} 
@media (max-width: 110px) {
  body {
    zoom: 0.2;
  }
}     
@media (max-width: 90px) {
  body {
    zoom: 0.15;
  }
} 
@media (max-width: 70px) {
  body {
    zoom: 0.1;
  }
}  
@media (max-width: 50px) {
  body {
    zoom: 0.05;
  }
}  
@media (max-width: 30px) {
  body {
    zoom: 0.01;
  }
}   
@media (max-width: 10px) {
  body {
    zoom: 0.005;
  }
} 

@media (hover: none) {
  body, a, button {
    cursor: none; /* Hide cursor */
  }
  .cursor {
    display: none; /* Hide custom cursor div */
  }
}

/* Hide custom cursor on mobile devices */
@media screen and (max-width: 768px) {
  .cursor {
    display: none !important;
  }
  
  /* Restore default cursor on mobile */
  body, a, button, input, textarea, select, summary, [role="button"], [onclick], [tabindex] {
    cursor: auto !important;
  }
  
  *:hover, *:active, *:focus {
    cursor: auto !important;
  }
}

/* Navigation Bar Styles */
.brand-banner.nav-up {
  transform: translateY(-100%);
}

.brand-banner.nav-down {
  transform: translateY(0);
}

@media screen and (max-width: 900px) {
  .nav-container {
    width: 95%;
    justify-content: flex-start;
  }
  .social-buttons {
    width: fit-content;
    margin-left: auto;
  }
  .brand-label {
    margin-left: 0;
  }
}

@media screen and (max-width: 650px) {
  .brand-label {
    font-size: 32px; /* Keep consistent size */
  }
  
  .navigation ul li {
    margin: 0 8px;
  }
  
  .navigation ul li a {
    font-size: 14px;
    padding: 20px 15px;
  }

  .brand-label {
    font-size: 25px;
  }
  .social-btn {
    margin-left: 10px;
  }

}

@media screen and (max-width: 480px) {

  .brand-label {
    font-size: 20px;
  }
}

/* Additional CSS for cursor-following glow */
.nav-container {
  --glow-x: 50%;
  --glow-y: 50%;
}

.nav-container::before {
  display: none;
}

.nav-container:hover::before {
  display: none;
}

/* Ensure other elements have a higher z-index */
.brand-label, .navigation, .social-buttons {
  position: relative;
  z-index: 1;
}

/* Add this to your CSS for the dropdown animation */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add this rule to make sure menu items start invisible */
.dropdown-active .navigation ul li {
  opacity: 0;
}

/* Improved hamburger menu styling */
.mobile-nav-toggle {
  display: none;
  background-color: transparent;
  border: none;
  cursor: none;
  padding: 12px;
  z-index: 20;
  position: relative;
  width: 10%;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px; /* Slightly smaller width */
  height: 18px; /* Slightly smaller height */
  pointer-events: auto;
}

.hamburger-icon .bar {
  display: block;
  height: 2px; /* Thinner bars for a more elegant look */
  width: 100%;
  background-color: #4eca8f; /* Green bars to match your theme */
  border-radius: 2px;
  margin: 0; /* Remove margins between bars */
  transition: all 0.3s ease-in-out;
}

/* Dropdown menu styling */
.dropdown-active .navigation {
  max-height: 300px;
  opacity: 1;
  padding-top: 20px;
  padding-bottom: 20px;
}

@media screen and (max-width: 1170px) {
  /* Remove cursor movement glow effect completely */
  .brand-banner::before {
    display: none !important; /* Force hide with !important */
    opacity: 0 !important;
    visibility: hidden !important;
    background: none !important;
  }
  
  .brand-banner.glow-active::before {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
  
  /* Also disable any hover effects that might trigger glow */
  .brand-banner:hover::before {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
  
  /* Remove other glow-related styles */
  .brand-banner {
    --glow-x: none !important;
    --glow-y: none !important;
  }
  
  /* Disable any JavaScript-related glow functionality */
  .glow-active {
    --glow-x: none !important;
    --glow-y: none !important;
  }
}

/* Optional: Add a grid for the project items */
@media screen and (min-width: 1130px) {
  .projects-flex {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 30px;
  }
  
  /* Adjust grid positioning */
  .projects {
    grid-column: 1 / -1; /* Span all columns */
  }
  
  /* Make project items take consistent width */
  .item-margin-projects {
    width: 90%;
    max-width: 500px;
    margin: 0 auto 30px;
  }
}

/* For smaller screens, also center content */
@media screen and (max-width: 1170px) {
  .icon-text-wrap {
    justify-content: flex-start;
  }
  
  .item-margin-projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
  }

  .title-projects {
    font-size: 20px;
  }
  .subtitle-projects {
    font-size: 16px;
  }
}

/* Updated scroll to top button with better positioning and subtler appearance */
#scroll-top-btn.scroll-top-btn {
  position: fixed;
  bottom: 45px;
  right: 45px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(6, 28, 15, 0.85);
  color: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 16px;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  box-shadow: 0 0 15px rgba(78, 202, 143, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease, background-color 0.3s ease;
  transform: translateY(20px) scale(0.9);
}

/* Button visible state */
#scroll-top-btn.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Hover effect */
#scroll-top-btn.scroll-top-btn:hover {
  background-color: rgba(10, 58, 31, 0.95);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 20px rgba(78, 202, 143, 0.7);
}

/* Create the glow effect */
#scroll-top-btn.scroll-top-btn::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background: radial-gradient(circle at center, 
    rgba(78, 202, 143, 0.15) 0%,
    rgba(78, 202, 143, 0.1) 60%,
    transparent 70%);
  z-index: -1;
  animation: subtlePulse 3s infinite ease-in-out;
  opacity: 0.7;
}

/* Subtle pulse animation */
@keyframes subtlePulse {
  0% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.08); opacity: 0.6; }
  100% { transform: scale(1); opacity: 0.4; }
}

/* Make sure the icon is properly centered */
#scroll-top-btn.scroll-top-btn i {
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

/* Handle responsive adjustments */
@media (max-width: 768px) {
  #scroll-top-btn.scroll-top-btn {
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
  }
}

/* Project items hover styles - with important fixes */
.item-margin-projects {
  transition: all 0.5s ease;
  transform: translateY(-2px);
  position: relative;
  overflow: visible !important;
  border-radius: 25px;
  z-index: 2;
  margin: 10px;
}

/* Add base pseudo-element with 0 opacity */
.item-margin-projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 25px;
  background: linear-gradient(45deg, #006040, #004c3a, #073a35);
  z-index: -1;
  filter: blur(35px);
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.6s ease-in-out;
}

/* Match border radius for the glow effect with fade-in transition */
.item-margin-projects:hover::before {
  opacity: 0.25; /* Slightly increased opacity for better visibility */
  transition: opacity 0.6s ease-in-out;
}

/* Add border radius to inner elements for consistency */
.item-margin-projects .icon-text-wrap {
  border-radius: 25px;
  transition: all 0.4s ease-in;
}

/* Project Popup Styles */
.project-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.4s ease;
    overflow-y: auto;
}

/* Ensure the custom cursor stays above popups */
.cursor { z-index: 10001; }

/* Case Study Content Styling */
.case-study-content {
    font-family: Carme, var(--default-font-family);
    color: #E0E0E0;
    line-height: 1.75;
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.case-study-content h1 {
    color: #4eca8f;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2em;
}

.case-study-content h2 {
    color: #4eca8f;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
}

.case-study-content p {
    margin-bottom: 16px;
    color: #E0E0E0;
}

.case-study-content ul {
    margin-bottom: 20px;
}

.case-study-content li {
    margin-bottom: 8px;
    color: #E0E0E0;
}

.case-study-content blockquote {
    background: rgba(78, 202, 143, 0.1);
    border-left: 5px solid #4eca8f;
    margin: 26px 0;
    padding: 20px 30px;
    font-style: italic;
    color: #B0B0B0;
    border-radius: 7px;
}

.case-study-content strong {
    color: #78D2A5;
    font-weight: 600;
}

.case-study-content em {
    color: #a6d3ff;
    font-style: italic;
}

.popup-content {
    position: relative;
    background-color: #1a1a1a;
    margin: 0 auto; /* let overlay handle scroll; pin to top */
    padding: 30px;
    width: 80%;
    max-width: 1000px;
    border-radius: 25px;
    box-shadow: 0 0 30px rgba(10, 102, 59, 0.4);
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: visible; /* avoid inner scroll, allow full content height */
    min-height: 100vh; /* extend to full popup height */
}

.popup-active {
    display: block;
    opacity: 1;
}

.popup-active .popup-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Blend Attendify popup with the site background */
#attendify-popup .popup-content {
    margin-top: 50px;
    margin-bottom: 50px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* Match ESF popup background style to Attendify */
#esf-coco-popup .popup-content {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.popup-close {
  position: relative;
  float: right;
  margin-top: -10px;
  margin-right: -10px;
  padding: 10px;
  color: #ffffff;
  font-size: 30px;
  font-weight: bold;
  z-index: 1;
  transition: color 0.3s ease, transform 0.5s ease, background-color 0.3s ease, border-radius 0.5s ease;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: none;
}

/* Align Attendify close button like ESF popup (top-right) despite transparent box */
#attendify-popup .popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
  float: none;
}

/* Match ESF close button position with Attendify */
#esf-coco-popup .popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
  float: none;
}

/* Adjust popup content to accommodate relative positioned close button */
.popup-content {
  position: relative;
  overflow: hidden;
}

/* Combined spin and hover effect */
.popup-close:hover {
  animation: spinClose 0.5s ease forwards;
  background-color: rgba(150, 150, 150, 0.15);
  transform: scale(1.1) rotate(180deg);
  color: #4eca8f;
  border-radius: 20px;
}

/* Make sure the hover state maintains the rotation */
.popup-close:active {
    transform: scale(0.95) rotate(180deg);
}

.popup-content h2 {
    color: #ffffff;
    font-family: Carme, var(--default-font-family);
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}

.popup-image-container {
    width: 100%;
    margin: 60px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    transition: transform 0.5s ease;
}

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

/* Disable hover effect specifically for ESF popup */
#esf-coco-popup .popup-image-container { 
  transition: none; 
}
#esf-coco-popup .popup-image-container:hover { 
  transform: none; 
}

.popup-image {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.popup-description {
    color: #a5a5a5;
    font-family: Carme, var(--default-font-family);
    font-size: 18px;
    line-height: 28px;
    text-align: center;
    margin-top: 20px;
}

/* Embedded iframe for case studies */
.iframe-container {
    width: 100%;
    height: auto; /* let outer overlay scroll; no fixed inner scroll */
    min-height: calc(100vh - 140px); /* fill viewport under header/padding */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

.popup-iframe {
    width: 100%;
    height: 100%; /* will be overridden to content height via JS */
    border: none;
    background: transparent; /* ensure no white box behind content */
}

/* Animation for popup entrance */
@keyframes popupFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes popupFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
}

/* Responsive adjustments for popup */
@media (max-width: 768px) {
    .popup-content {
        width: 90%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .popup-content h2 {
        font-size: 24px;
    }
    
    .popup-description {
        font-size: 16px;
        line-height: 24px;
    }
}

/* Spin animation for popup close icon */
@keyframes spinClose {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(180deg);
  }
}

/* Email Modal Popup Styles */
.email-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.email-popup-content {
    position: relative;
    background-color: rgba(28, 28, 30, 0.5);
    backdrop-filter: blur(10px);
    margin: 15% auto;
    padding: 30px;
    width: 80%;
    max-width: 500px;
    border-radius: 20px;
    border: 1px solid rgba(78, 202, 143, 0.3);
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    text-align: center;
}

.email-popup-active {
    display: block;
    opacity: 1;
}

.email-popup-active .email-popup-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.email-popup-title {
    color: #ffffff;
    font-family: "DM Sans", sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.email-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.email-option-btn {
    background-color: rgba(78, 202, 143, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(78, 202, 143, 0.2);
    color: #4ECA8F;
    padding: 15px 25px;
    border-radius: 18px;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: none;
    margin-bottom: 15px;
}

.email-option-btn:hover {
    background-color: rgba(78, 202, 143, 0.25);
    border: 1px solid rgba(78, 202, 143, 0.4);
    transform: scale(1.02);
}

.email-option-btn i {
    margin-right: 10px;
    font-size: 18px;
}

.email-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 12px;
    color: #ffffff;
    font-size: 30px;
    font-weight: bold;
    z-index: 1;
    transition: color 0.3s ease, transform 0.5s ease, background-color 0.3s ease, border-radius 0.5s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: none;
    background-color: transparent;
    border: none;
}

.email-popup-close:hover {
    animation: spinClose 0.5s ease forwards;
    background-color: rgba(150, 150, 150, 0.15);
    transform: scale(1.1) rotate(180deg);
    color: #4eca8f;
    border-radius: 10px;
}

/* Media queries for email popup */
@media (max-width: 768px) {
    .email-popup-content {
        width: 90%;
        margin: 25% auto;
        padding: 25px;
    }
    
    .email-popup-title {
        font-size: 20px;
    }
    
    .email-option-btn {
        font-size: 14px;
        padding: 12px;
    }
}
/* Fallback Popup Styles */
.fallback-content {
    text-align: center;
    padding: 40px 20px;
}

.fallback-icon {
    font-size: 4rem;
    color: #4eca8f;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

.fallback-content h1 {
    color: #4eca8f;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.fallback-content p {
    color: #a6d3ff;
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.fallback-message {
    background: rgba(78, 202, 143, 0.1);
    border: 1px solid rgba(78, 202, 143, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    text-align: left;
}

.fallback-message p {
    color: #E0E0E0;
    font-style: normal;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.fallback-message p:last-child {
    margin-bottom: 0;
}

.fallback-cta {
    background: rgba(28, 28, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
}

.fallback-cta h3 {
    color: #4eca8f;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.fallback-cta p {
    color: #d5d5d5;
    font-style: normal;
    font-size: 1rem;
    margin-bottom: 25px;
}

.fallback-email-button {
    background: linear-gradient(135deg, #4eca8f, #3db17a);
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-family: Carme, var(--default-font-family);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(78, 202, 143, 0.3);
}

.fallback-email-button:hover {
    background: linear-gradient(135deg, #3db17a, #2c9865);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 202, 143, 0.4);
}

.fallback-email-button i {
    font-size: 1.2rem;
}

/* Email Modal Animation */
@keyframes modalBounceIn {
  0% {
    opacity: 0;
    transform: translateY(-50px) scale(0.8);
  }
  50% {
    transform: translateY(10px) scale(1.01);
  }
  70% {
    transform: translateY(-5px) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modalOptionsFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalGlow {
  0% {
    box-shadow: 0 0 3px rgba(78, 202, 143, 0.2);
  }
  50% {
    box-shadow: 0 0 16px rgba(78, 202, 143, 0.4);
  }
  100% {
    box-shadow: 0 0 3px rgba(78, 202, 143, 0.2);
  }
}

/* Update existing email popup styles */
.email-popup-active .email-popup-content {
  animation: modalBounceIn 0.6s forwards cubic-bezier(0.2, 1.1, 0.4, 1);
}

.email-popup-active .email-popup-title {
  animation: modalOptionsFadeIn 0.5s forwards 0.3s;
  opacity: 0;
}

.email-popup-active .email-options {
  animation: modalOptionsFadeIn 0.5s forwards 0.5s;
  opacity: 0;
}

.email-popup-active .email-option-btn {
  position: relative;
  overflow: hidden;
}

.email-popup-active .email-option-btn:after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent, 
    rgba(78, 202, 143, 0.2), 
    transparent
  );
  animation: modalOptionSweep 3s infinite 1s;
}

@keyframes modalOptionSweep {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}


@keyframes fadeRotateIn {
  0% {
    opacity: 0;
    transform: rotate(-90deg);
  }
  100% {
    opacity: 1;
    transform: rotate(0);
  }
}

/* Remove glow effects */

/* Make sure to remove the old transform from email-popup-active to avoid conflicts */
.email-popup-active .email-popup-content {
  opacity: 1;
  transform: none;
}

.intro-bullet-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.intro-bullet-list li {
    display: block;
    margin-bottom: 15px; /* Reduced from 18px */
    color: #d5d5d5;
    font-family: Carme, var(--default-font-family);
    font-size: 20px; /* Match .description at this breakpoint */
    line-height: 38px; /* Match .description line-height */
    text-align: left;
}
.intro-bullet-list li i {
    color: #4eca8f;
    margin-right: 10px;
    font-size: 16px;
    display: inline-block;
    vertical-align: baseline;
    line-height: 1;
}

@media (max-width: 1000px) {
    .intro-bullet-list li {
        font-size: 18px; /* Match .description at this breakpoint */
        line-height: 38px; /* Match .description line-height */
    }
}

@media (max-width: 650px) {
    .intro-bullet-list li {
        font-size: 18px; /* Match .description at the 1000px breakpoint */
        line-height: 38px; /* Match .description line-height */
        margin-bottom: 8px; /* Reduced for smaller screens */
    }
}

@media (max-width: 445px) {
    .intro-bullet-list li {
        font-size: 18px; /* Keep font-size consistent with .description */
        line-height: 38px; /* Match .description line-height */
        margin-bottom: 8px; /* Reduced for smaller screens */
    }
}

@media (max-width: 350px) {
    .intro-bullet-list li {
        font-size: 18px; /* Keep font-size consistent with .description */
        line-height: 38px; /* Match .description line-height */
        margin-bottom: 8px; /* Reduced for smaller screens */
    }
}

/* Research Section Styles */
.research-flex {
  display: flex;
  flex-direction: column;
  position: relative;
  width: calc(100% - margin-left - margin-right);
  margin-left: 10%;
  margin-right: 10%;
  margin-top: 100px;
  height: auto;
}

.heading-research {
  display: block;
  position: relative;
  height: 79px;
  color: #ffffff;
  font-family: Carme, var(--default-font-family);
  font-size: 60px;
  line-height: 79px;
  text-align: left;
  white-space: nowrap;
}

.research-container {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  position: relative;
  padding: 60px 0 60px 0;
}

.research-description {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
  position: relative;
  height: auto;
  color: #ffffff;
  font-family: Carme, var(--default-font-family);
  font-size: 20px;
  line-height: 38px;
  text-align: left;
}

.item-margin-research {
  transition: all 0.5s ease;
  position: relative;
  overflow: visible !important;
  border-radius: 25px;
  z-index: 2;
  background-color: rgba(28, 28, 30, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Remove hover animation for research items */
.item-margin-research:hover {
  /* No hover effects */
}

.item-margin-research .icon-text-wrap {
  border-radius: 25px;
  transition: all 0.4s ease-in;
  display: flex;
  align-items: flex-start;
}

.title-research {
  text-align: left;
  position: relative;
  color: #ffffff;
  font-family: Carme, var(--default-font-family);
  font-size: 26px;
  font-weight: 600;
  line-height: 34px;
}

#research-language-badges {
  margin-top: 15px;
  margin-bottom: 30px;
}

.research-detail-item {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
}

.research-detail-label {
  color: #388f68; /* Dark tint of green */
  font-family: Carme, var(--default-font-family);
  font-size: 18px;
  margin-right: 8px;
  margin-bottom: 12px;
}
.research-details {
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 15px; /* Reduced from the default size */
  display: flex;
  flex-direction: column;
}

.research-detail-text {
  color: #d5d5d5;
  font-family: Carme, var(--default-font-family);
  line-height: 1.6;
  font-size: 15px;
}



#research-year-badge i {
  color: #4eca8f;
  font-size: 14px;
  margin-right: 5px;
}

.icon-research {
  font-size: 64px;
  color: #4eca8f;
  opacity: 0.8;
}

.research-inquiry {
  color: #a5a5a5;
  font-family: Carme, var(--default-font-family);
    font-size: 12px; /* Significantly smaller from original size */
    line-height: 1.3;
    margin-top: 15px;
    font-style: italic;
    opacity: 0.85; /* Slightly transparent but still visible */
    padding-left: 2px;
}

.language-badge .fa-python {
  color: #3776AB; /* Python blue color */
}

/* Add responsive styling for research section */
@media screen and (max-width: 1170px) {
  .item-margin-research .icon-text-wrap {
    flex-direction: column;
  }
  
  .item-margin-research .icon-background {
    margin-bottom: 20px;
    align-self: center;
  }
  
  .title-research {
    font-size: 22px;
    line-height: 30px;
  }
}

@media screen and (max-width: 650px) {
  .heading-research {
    font-size: 45px;
  }
  
  .research-description {
    font-size: 18px;
    line-height: 38px;
  }
  
  .title-research {
    font-size: 20px;
    line-height: 28px;
  }
  
  .research-inquiry {
    font-size: 14px;
    line-height: 22px;
  }
}

/* Make research-flex animate like projects-flex */
.research-flex {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.research-flex.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Replace the layered icon with the research image and gradient */
.icon-research-background {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    overflow: visible;
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
}

.research-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.research-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
}

.research-image-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, 
                               rgba(28, 28, 30, 0) 0%, 
                               rgba(28, 28, 30, 0.4) 30%,
                               rgba(28, 28, 30, 0.6) 70%,
                               rgba(28, 28, 30, 0.8) 100%);
    backdrop-filter: blur(5px);
    pointer-events: none;
}

.item-margin-research .icon-research-background {
    background: #1c1c1e;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

/* Remove hover animation for research background */
.item-margin-research:hover .icon-research-background {
    /* No hover effects */
}

/* Media queries for responsive design */
@media screen and (max-width: 1400px) {
    .research-image-container {
        min-height: 350px;
    }
}

@media screen and (max-width: 1200px) {
    .research-image-container {
        min-height: 320px;
    }
}

@media screen and (max-width: 1000px) {
    .icon-text-research-wrap {
        flex-direction: column;
    }
    
    .research-image-container {
        min-height: 280px;
    }
}

@media screen and (max-width: 650px) {
    .research-image-gradient {
        width: 50%;
    }
}

/* Updated icon background and image container styles */
.item-margin-research .icon-research-background {
    border-radius: 0; /* Remove border radius */
    transition: transform 0.3s ease;
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.icon-text-research-wrap {
  display: flex;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 25px;
  background-image: url('images/research.jpg');
  background-size: cover;
  background-position: center;
  padding: 60px;
  box-shadow: 0 8px 32px rgba(10, 102, 59, 0.3);
  border: 1px solid rgba(78, 202, 143, 0.2);
}

.icon-research-background {
    display: none; /* Hide the old container */
}

.figcaption-2 {
  width: 100%;
  position: relative;
  z-index: 5;
}

.descriptions-research {
  background-color: rgba(28, 28, 30, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.item-margin-research .figcaption-2 {
  margin-left: 0;
}

/* Add a gradient overlay to improve text readability */
.icon-text-research-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, 
                           rgba(28, 28, 30, 0.3) 0%, 
                           rgba(28, 28, 30, 0.5) 50%,
                           rgba(28, 28, 30, 0.7) 100%);
  pointer-events: none;
  z-index: 1;
}

@media screen and (max-width: 1000px) {
    .icon-text-research-wrap {
        flex-direction: column; /* Stack elements vertically */
    }
    
    .icon-research-background {
        width: 100%; /* Full width */
        height: 250px; /* Fixed height */
        flex: none; /* Remove flex property to use width/height directly */
    }
    
    .research-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top; /* Align to top */
        transform: none; /* Remove any scaling */
        border-radius: 15px 15px 0 0;
    }
    
    .research-image-gradient {
        top: auto; /* Reset top position */
        right: 0;
        bottom: 0; /* Position at bottom */
        width: 100%; /* Full width */
        height: 60%; /* Take up 60% of the height from bottom */
        background: linear-gradient(to bottom, 
                                  rgba(28, 28, 30, 0) 0%, 
                                  rgba(28, 28, 30, 0.3) 30%,
                                  rgba(28, 28, 30, 0.7) 70%,
                                  rgba(28, 28, 30, 1) 100%); /* Vertical gradient */
    }
    
    .figcaption-2 {
        width: 100%;
    }
}

/* Media query for even smaller screens */
@media screen and (max-width: 767px) {
    .icon-research-background {
        height: 220px; /* Slightly smaller height */
    }
}

@media screen and (max-width: 650px) {
    .icon-research-background {
        height: 200px; /* Smaller height on mobile */
    }
    
    .research-image-gradient {
        height: 70%; /* Increase gradient height */
    }
}

@media screen and (max-width: 480px) {
    .icon-research-background {
        height: 180px; /* Even smaller height for very small screens */
    }
}

/* Slightly reduce font size for research details */

/* New media query to reduce outer div margins at smaller screens */
@media screen and (max-width: 600px) {
  /* Reduce margins for main container elements */
  .principles,
  .purpose,
  .projects-flex,
  .research-flex {
    margin-left: 30px !important;
    margin-right: 30px !important;
  }
  
  /* Ensure text content doesn't overflow */
  .research-description,
  .projects-description,
  .description,
  .purpose-description {
    padding-left: 5px;
    padding-right: 5px;
    line-height: 38px; /* Ensure consistent line-height */
  }

  /* Make sure the detail text wraps properly */
  .research-detail-text {
    word-wrap: break-word;
    max-width: 100%;
  }
  
  /* Ensure footer text wraps properly */
  .hong-kong {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
  }
  
  .margin {
    width: 100%;
    text-align: center;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .footer {
    margin-left: 30px !important;
    margin-right: 30px !important;
  }
}

/* Improve text wrapping for project titles, especially long ones like ESF Computing Conference */
.title-projects {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
}

/* Make language badges container wrap properly */
.language-badges-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    width: 100%;
}

/* Adjust individual language badges for better wrapping */
.language-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 4px 10px;
    margin-right: 0; /* Remove right margin since we're using gap */
    transition: all 0.3s ease;
}

/* Specific adjustments for smaller screens */
@media screen and (max-width: 600px) {
    #esfcoco-project .title-projects {
        font-size: 20px; /* Slightly smaller on mobile */
        line-height: 1.25;
    }
    
    .language-badges-container {
        gap: 6px; /* Smaller gap on mobile */
        margin: 6px 0;
    }
    
    .language-badge {
        padding: 3px 8px;
        font-size: 12px;
    }
    
    .language-badge i {
        margin-right: 4px;
        font-size: 14px;
    }
}

/* Additional specific adjustment for very small screens */
@media screen and (max-width: 400px) {
    .language-badges-container {
        justify-content: flex-start;
    }
    
    .language-badge {
        margin-bottom: 4px;
    }
}

/* Add border radius to inner elements for consistency */
.item-margin-projects .icon-text-wrap {
  border-radius: 25px;
  transition: all 0.4s ease-in;
}

/* Ensure the background color applies to inner elements */
.item-margin-projects:hover .icon-text-wrap {
  border-radius: inherit;
  transform: scale(1.05);
}

/* Apply specific styling with consistent border radius */
#onetick-project,
#medimemo-project,
#attendify-project,
#esfcoco-project {
    border-radius: 25px;
}

.flex-row-outer {
  display: flex;
  justify-content: space-between;
  margin-left: 10%;
  margin-right: 10%;
  margin-top: 86px;
  padding-bottom: 50px;
  gap: 30px;
}

.flex-row-f {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  height: auto;
  max-width: 60%;
  margin-left: 0;
  margin-right: 0;
}

@media screen and (max-width: 1450px) {
  .flex-row-outer {
    flex-direction: column;
    gap: 20px;
  }
  
  .flex-row-f {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .tech-quote {
    max-width: 550px;
  }
}

/* Responsive styles for animated graphic */
@media screen and (max-width: 1000px) {
  .tech-quote-content {
    flex-direction: row;
    gap: 20px;
    text-align: left;
    min-height: 60px;
  }
  
  .tech-quote p {
    max-width: calc(100% - 100px);
    order: 1;
  }
  
  .animated-graphic {
    width: 60px;
    height: 60px;
    order: 2;
    margin-left: auto;
  }
  
  .empathy-heart i {
    font-size: 20px;
  }
  
  .sparkle {
    font-size: 14px;
  }
  
  /* Adjust orbital radius for smaller graphic */
  @keyframes orbit {
    0% {
      transform: rotate(0deg) translateX(22px) rotate(0deg);
      opacity: 0.9;
    }
    25% {
      transform: rotate(90deg) translateX(22px) rotate(-90deg);
      opacity: 1;
    }
    50% {
      transform: rotate(180deg) translateX(22px) rotate(-180deg);
      opacity: 0.8;
    }
    75% {
      transform: rotate(270deg) translateX(22px) rotate(-270deg);
      opacity: 1;
    }
    100% {
      transform: rotate(360deg) translateX(22px) rotate(-360deg);
      opacity: 0.9;
    }
  }
}

@media screen and (max-width: 650px) {
  .tech-quote-content {
    gap: 15px;
    min-height: 50px;
  }
  
  .tech-quote p {
    max-width: calc(100% - 80px);
    font-size: 14px;
    padding: 15px 20px;
  }
  
  .animated-graphic {
    width: 50px;
    height: 50px;
  }
  
  .empathy-heart i {
    font-size: 18px;
  }
  
  .sparkle {
    font-size: 12px;
  }
  
  /* Adjust orbital radius for mobile graphic */
  @keyframes orbit {
    0% {
      transform: rotate(0deg) translateX(18px) rotate(0deg);
      opacity: 0.9;
    }
    25% {
      transform: rotate(90deg) translateX(18px) rotate(-90deg);
      opacity: 1;
    }
    50% {
      transform: rotate(180deg) translateX(18px) rotate(-180deg);
      opacity: 0.8;
    }
    75% {
      transform: rotate(270deg) translateX(18px) rotate(-270deg);
      opacity: 1;
    }
    100% {
      transform: rotate(360deg) translateX(18px) rotate(-360deg);
      opacity: 0.9;
    }
  }
}



.skills-highlight-heading {
  display: block;
  margin: 45px 0 25px 0;
  padding: 0;
  color: #ffffff;
  font-family: Carme, var(--default-font-family);
  font-size: 24px;
  font-weight: normal;
  background: linear-gradient(110deg, #4eca8f, #3db17a, #2c9865, #1b7f50, #0a663b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tech-quote {
  margin-top: 20px;
  margin-bottom: 0;
  padding: 20px;
  color: #d5d5d5;
  font-style: italic;
  text-align: left;
  position: relative;
  z-index: 1;
  font-family: Carme, var(--default-font-family);
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  transition: all 0.3s ease;
  font-size: 16px;
  overflow: hidden; /* Clip gradient glow within rounded corners */
}

.tech-quote-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
  min-height: 80px;
}

.tech-quote p {
  border-radius: 15px;
  line-height: 30px;
  padding: 18px 25px;
  margin: 0;
  flex: 1;
  max-width: calc(100% - 120px);
  order: 1;
}

/* Animated Graphic Styles */
.animated-graphic {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  margin-left: auto;
  order: 2;
}


/* Empathy Heart - Center */
.empathy-heart {
  position: absolute;
  top: 63%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  pointer-events: none;
}

.empathy-heart i {
  font-size: 24px;
  color: #ff6b9d;
  animation: heartBeat 2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 107, 157, 0.6));
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1;
}

/* Creativity Sparkles - Orbital Animation */
.creativity-sparkles {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 0;
  height: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  /* Shift orbit to match heart's visual center */
  top: calc(25%);
  left: calc(25%);
}

.sparkle {
  position: absolute;
  font-size: 18px;
  opacity: 0.9;
  animation: orbit 6s linear infinite;
  top: 0;
  left: 0;
}

.sparkle-1 {
  animation-delay: 0s;
}

.sparkle-2 {
  animation-delay: 1.5s;
}

.sparkle-3 {
  animation-delay: 3s;
}

.sparkle-4 {
  animation-delay: 4.5s;
}

/* Animations */

@keyframes heartBeat {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  25% {
    transform: translate(-50%, -50%) scale(1.1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
  75% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(40px) rotate(0deg);
    opacity: 0.9;
  }
  25% {
    transform: rotate(90deg) translateX(40px) rotate(-90deg);
    opacity: 1;
  }
  50% {
    transform: rotate(180deg) translateX(40px) rotate(-180deg);
    opacity: 0.8;
  }
  75% {
    transform: rotate(270deg) translateX(40px) rotate(-270deg);
    opacity: 1;
  }
  100% {
    transform: rotate(360deg) translateX(40px) rotate(-360deg);
    opacity: 0.9;
  }
}

/* Add subtle animated gradient behind only the tech quote */
.tech-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #4ecaa3, #2a5298, #5d4ec7);
  opacity: 0.15;
  z-index: 0;
  border-radius: inherit;
  filter: blur(25px);
  animation: shiftingGlow 8s infinite alternate;
  background-size: 400% 400%;
}

.profile-image-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-content {
  width: 100%;
}

.profile-content h3 {
  color: #ffffff;
  font-family: Carme, var(--default-font-family);
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
  background: linear-gradient(110deg, #4eca8f, #3db17a, #2c9865, #1b7f50, #0a663b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}




@keyframes shiftingGlow {
  0% {
    background-position: 0% 50%;
    opacity: 0.25;
    filter: blur(12px);
  }
  50% {
    background-position: 100% 50%;
    opacity: 0.35;
    filter: blur(10px);
  }
  100% {
    background-position: 0% 50%;
    opacity: 0.3;
    filter: blur(8px);
  }
}


/* Removed Spline viewer styles */
 

/* Updated research layout for text-image overlap */
.icon-text-research-wrap {
  display: flex;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 25px;
}

.icon-research-background {
  position: relative;
  width: 45%;
  min-width: 300px;
  height: auto;
  z-index: 1;
  margin-right: -10%;
}

.research-image-container {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.research-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 15px;
}

@media screen and (max-width: 1000px) {
  .icon-text-research-wrap {
    padding: 20px;
    background-position: center top;
  }
  
  .descriptions-research {
    width: 100%;
    background-color: rgba(28, 28, 30, 0.8);
  }
  
  .icon-text-research-wrap::before {
    background: linear-gradient(to bottom, 
                           rgba(28, 28, 30, 0.3) 0%, 
                           rgba(28, 28, 30, 0.6) 50%,
                           rgba(28, 28, 30, 0.8) 100%);
  }
}

@media screen and (max-width: 650px) {
  .icon-text-research-wrap {
    min-height: 450px;
  }
  
  .descriptions-research {
    background-color: rgba(28, 28, 30, 0.85);
  }
}


/* Mobile-only CTA button mirroring expanded custom cursor style */
.mobile-cta {
  display: none;
  width: 160px;
  height: 36px;
  border-radius: 18px;
  background: rgba(78, 202, 143, 0.15);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(78, 202, 143, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
              0 0 0 1px rgba(78, 202, 143, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-family: var(--default-font-family);
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: auto;
  margin: 12px auto 0 auto;
  align-items: center;
  justify-content: center;
  cursor: none;
}

.mobile-cta:active {
  transform: scale(0.98);
}

/* Ensure the CTA sits at the bottom area of each project card */
.item-margin-projects { position: relative; }
.item-margin-projects .mobile-cta {
  position: relative;
  bottom: 0;
  align-self: flex-start;
  margin-left: 0;
}

/* Project Arrow Styling */
.project-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #4ECA8F;
  font-size: 24px;
  opacity: 0.8;
  transition: all 0.3s ease;
  z-index: 10;
}

/* Arrow hover effects when project item is hovered */
.item-margin-projects:hover .project-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(5px);
  color: #4ECA8F;
  animation: arrowPulse 1s infinite;
}

/* Arrow pulse animation */
@keyframes arrowPulse {
  0% {
    transform: translateY(-50%) translateX(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-50%) translateX(8px);
    opacity: 1;
  }
  100% {
    transform: translateY(-50%) translateX(0);
    opacity: 0.6;
  }
}

/* Hide mobile CTA buttons on desktop/tablet */
.mobile-cta {
  display: none;
}

/* Show mobile CTA buttons only on mobile devices */
@media screen and (max-width: 768px) {
  .mobile-cta {
    display: flex;
  }
  
  .project-arrow {
    display: none;
  }
}

/* Show project arrows only on desktop/tablet (not mobile) */
@media screen and (min-width: 769px) {
  .project-arrow {
    display: block;
  }
}

/* Style chevron arrows inside mobile CTA buttons */
@media screen and (max-width: 768px) {
  .mobile-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
}

.mobile-cta i {
  font-size: 14px;
  color: #4ECA8F;
  transition: transform 0.3s ease;
}

.mobile-cta:hover i {
  transform: translateX(3px);
}


/* Prevent buttons and navigation links from turning green on interaction */
li a:hover,
li a:focus,
li a:active,
button:hover,
button:focus,
button:active,
.navigation ul li a:hover,
.navigation ul li a:focus,
.navigation ul li a:active,
#homeBtn:hover,
#homeBtn:focus,
#homeBtn:active {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Ensure non-hover state returns to no background and no border */
.navigation ul li a,
.social-btn,
.footer-social-btn,
#homeBtn {
  background-color: transparent !important;
  border-color: transparent !important;
}

/* Force-hide system cursor on buttons and list anchor links in all states */
li a,
li a:hover,
li a:focus,
li a:active,
button,
button:hover,
button:focus,
button:active,
.navigation ul li a,
.navigation ul li a:hover,
.navigation ul li a:focus,
.navigation ul li a:active {
  cursor: none !important;
}

/* Also enforce within nav containers and header wrappers to avoid reappearing after hover */
.navigation, .navigation *,
.brand-banner, .brand-banner *,
.nav-container, .nav-container * {
  cursor: none !important;
}

/* Attendify Popup Animations */
#attendify-popup .attendify-mockup {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#attendify-popup .attendify-box {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#attendify-popup.popup-active .attendify-mockup {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.2s;
}

#attendify-popup.popup-active .attendify-box {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.4s;
}

/* Ensure Attendify mockup scrolling animation still works in popup */
#attendify-popup .attendify-mockup {
    position: relative;
    width: 110%;
    margin-left: -5%;
    margin-top: 40px;
    margin-bottom: 40px;
    opacity: 1;
    visibility: visible;
    transform: scale(0.85);
    will-change: transform;
    transition: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    z-index: -1;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, 
        black 0%,
        black 35%,
        rgba(0,0,0,0.98) 40%,
        rgba(0,0,0,0.96) 45%,
        rgba(0,0,0,0.94) 50%,
        rgba(0,0,0,0.92) 55%,
        rgba(0,0,0,0.90) 60%,
        rgba(0,0,0,0.85) 65%,
        rgba(0,0,0,0.80) 70%,
        rgba(0,0,0,0.75) 75%,
        rgba(0,0,0,0.70) 80%,
        rgba(0,0,0,0.65) 85%,
        rgba(0,0,0,0.55) 90%,
        rgba(0,0,0,0.45) 93%,
        rgba(0,0,0,0.35) 95%,
        rgba(0,0,0,0.25) 97%,
        rgba(0,0,0,0.15) 98%,
        rgba(0,0,0,0.05) 99%,
        transparent 100%
    );
    mask-image: linear-gradient(to bottom, 
        black 0%,
        black 35%,
        rgba(0,0,0,0.98) 40%,
        rgba(0,0,0,0.96) 45%,
        rgba(0,0,0,0.94) 50%,
        rgba(0,0,0,0.92) 55%,
        rgba(0,0,0,0.90) 60%,
        rgba(0,0,0,0.85) 65%,
        rgba(0,0,0,0.80) 70%,
        rgba(0,0,0,0.75) 75%,
        rgba(0,0,0,0.70) 80%,
        rgba(0,0,0,0.65) 85%,
        rgba(0,0,0,0.55) 90%,
        rgba(0,0,0,0.45) 93%,
        rgba(0,0,0,0.35) 95%,
        rgba(0,0,0,0.25) 97%,
        rgba(0,0,0,0.15) 98%,
        rgba(0,0,0,0.05) 99%,
        transparent 100%
    );
}

#attendify-popup .attendify-mockup.visible {
    transform: scale(1.25); 
}

/* Attendify box styling in popup */
#attendify-popup .attendify-box {
    position: relative;
    height: auto;
    margin: 40px 20px;
    background-color: rgba(28, 28, 30, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(78, 202, 143, 0.3);
    box-shadow: 0 8px 32px rgba(10, 102, 59, 0.4), 
                0 0 20px rgba(78, 202, 143, 0.2),
                inset 0 1px 0 rgba(78, 202, 143, 0.1);
}

/* Attendify popup header bar */
#attendify-popup .popup-header-bar {
    position: relative;
    padding: 20px 30px 30px 30px;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.2) 80%,
        transparent 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 25px;
    z-index: 10;
}

#attendify-popup .popup-header-bar h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

#attendify-popup .popup-header-bar .attendify-subtitle {
    color: #b0b0b0;
    font-size: 16px;
    font-weight: 400;
    font-family: "DM Sans", sans-serif;
    margin: 5px 0 0 0;
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
}

/* Attendify case study content margins */
#attendify-popup .case-study-content {
    margin: 0 20px;
    padding: 40px;
}

/* Attendify popup scroll animations */
#attendify-popup .attendify-box {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#attendify-popup .attendify-box .flex-row-attendify,
#attendify-popup .attendify-box .attendify-comments {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#attendify-popup .case-study-content h1,
#attendify-popup .case-study-content h2,
#attendify-popup .case-study-content h3,
#attendify-popup .case-study-content p,
#attendify-popup .case-study-content ul,
#attendify-popup .case-study-content li,
#attendify-popup .case-study-content img {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#attendify-popup .attendify-box.animate-in {
    opacity: 1;
    transform: translateY(0);
}

#attendify-popup .attendify-box .flex-row-attendify.animate-in,
#attendify-popup .attendify-box .attendify-comments.animate-in {
    opacity: 1;
    transform: translateY(0);
}

#attendify-popup .case-study-content h1.animate-in,
#attendify-popup .case-study-content h2.animate-in,
#attendify-popup .case-study-content h3.animate-in,
#attendify-popup .case-study-content p.animate-in,
#attendify-popup .case-study-content ul.animate-in,
#attendify-popup .case-study-content li.animate-in,
#attendify-popup .case-study-content img.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for Attendify popup */
#attendify-popup .attendify-box .flex-row-attendify.animate-in { transition-delay: 0.1s; }
#attendify-popup .attendify-box .attendify-comments.animate-in { transition-delay: 0.2s; }

#attendify-popup .case-study-content h1.animate-in { transition-delay: 0.1s; }
#attendify-popup .case-study-content p.animate-in { transition-delay: 0.2s; }
#attendify-popup .case-study-content h2.animate-in { transition-delay: 0.3s; }
#attendify-popup .case-study-content h3.animate-in { transition-delay: 0.4s; }
#attendify-popup .case-study-content ul.animate-in { transition-delay: 0.5s; }
#attendify-popup .case-study-content li.animate-in { transition-delay: 0.6s; }
#attendify-popup .case-study-content img.animate-in { transition-delay: 0.7s; }

/* ESF popup scroll animations */
#esf-coco-popup .case-study-content h1,
#esf-coco-popup .case-study-content h2,
#esf-coco-popup .case-study-content h3,
#esf-coco-popup .case-study-content p,
#esf-coco-popup .case-study-content ul,
#esf-coco-popup .case-study-content li,
#esf-coco-popup .case-study-content img {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#esf-coco-popup .case-study-content h1.animate-in,
#esf-coco-popup .case-study-content h2.animate-in,
#esf-coco-popup .case-study-content h3.animate-in,
#esf-coco-popup .case-study-content p.animate-in,
#esf-coco-popup .case-study-content ul.animate-in,
#esf-coco-popup .case-study-content li.animate-in,
#esf-coco-popup .case-study-content img.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for ESF popup */
#esf-coco-popup .case-study-content h1.animate-in { transition-delay: 0.1s; }
#esf-coco-popup .case-study-content p.animate-in { transition-delay: 0.2s; }
#esf-coco-popup .case-study-content h2.animate-in { transition-delay: 0.3s; }
#esf-coco-popup .case-study-content h3.animate-in { transition-delay: 0.4s; }
#esf-coco-popup .case-study-content ul.animate-in { transition-delay: 0.5s; }
#esf-coco-popup .case-study-content li.animate-in { transition-delay: 0.6s; }
#esf-coco-popup .case-study-content img.animate-in { transition-delay: 0.7s; }

/* OneTick popup styling - matching Attendify popup */
/* Blend OneTick popup with the site background */
#onetick-popup .popup-content {
    margin-top: 50px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

#onetick-popup .popup-header-bar {
    position: relative;
    padding: 20px 30px 30px 30px;
    margin: 0;
    background: linear-gradient(180deg, 
        rgba(23, 23, 23, 0.9) 0%,
        rgba(23, 23, 23, 0.8) 50%,
        rgba(23, 23, 23, 0.7) 80%,
        transparent 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 25px;
    z-index: 10;
}

#onetick-popup .popup-header-bar h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

#onetick-popup .popup-header-bar .onetick-subtitle {
    color: #b0b0b0;
    font-size: 16px;
    font-weight: 400;
    font-family: "DM Sans", sans-serif;
    margin: 5px 0 0 0;
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
}

#onetick-popup .popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    float: none;
    padding: 10px;
    color: #ffffff;
    font-size: 30px;
    font-weight: bold;
    z-index: 1;
    transition: color 0.3s ease, transform 0.5s ease, background-color 0.3s ease, border-radius 0.5s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
}

#onetick-popup .popup-close:hover {
    animation: spinClose 0.5s ease forwards;
    background-color: rgba(150, 150, 150, 0.15);
    transform: scale(1.1) rotate(180deg);
    color: #4eca8f;
    border-radius: 20px;
}

#onetick-popup .popup-close:active {
    transform: scale(0.95) rotate(180deg);
}

/* OneTick mockup styling in popup - positioned directly under header */
#onetick-popup .onetick-mockup {
    position: relative;
    width: 110%;
    margin-left: -5%;
    opacity: 1;
    visibility: visible;
    transform: scale(1.1);
    will-change: transform;
    transition: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    z-index: -1;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, 
        black 0%,
        black 35%,
        rgba(0,0,0,0.98) 40%,
        rgba(0,0,0,0.96) 45%,
        rgba(0,0,0,0.94) 50%,
        rgba(0,0,0,0.92) 55%,
        rgba(0,0,0,0.90) 60%,
        rgba(0,0,0,0.85) 65%,
        rgba(0,0,0,0.80) 70%,
        rgba(0,0,0,0.75) 75%,
        rgba(0,0,0,0.70) 80%,
        rgba(0,0,0,0.65) 85%,
        rgba(0,0,0,0.55) 90%,
        rgba(0,0,0,0.45) 93%,
        rgba(0,0,0,0.35) 95%,
        rgba(0,0,0,0.25) 97%,
        rgba(0,0,0,0.15) 98%,
        rgba(0,0,0,0.05) 99%,
        transparent 100%
    );
    mask-image: linear-gradient(to bottom, 
        black 0%,
        black 35%,
        rgba(0,0,0,0.98) 40%,
        rgba(0,0,0,0.96) 45%,
        rgba(0,0,0,0.94) 50%,
        rgba(0,0,0,0.92) 55%,
        rgba(0,0,0,0.90) 60%,
        rgba(0,0,0,0.85) 65%,
        rgba(0,0,0,0.80) 70%,
        rgba(0,0,0,0.75) 75%,
        rgba(0,0,0,0.70) 80%,
        rgba(0,0,0,0.65) 85%,
        rgba(0,0,0,0.55) 90%,
        rgba(0,0,0,0.45) 93%,
        rgba(0,0,0,0.35) 95%,
        rgba(0,0,0,0.25) 97%,
        rgba(0,0,0,0.15) 98%,
        rgba(0,0,0,0.05) 99%,
        transparent 100%
    );
}

#onetick-popup .onetick-mockup.visible {
    transform: scale(1.25); 
}

/* OneTick box styling in popup - positioned directly under mockup */
#onetick-popup .onetick-box {
    position: relative;
    height: auto;
    margin: 40px 20px;
    background-color: rgba(28, 28, 30, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(78, 202, 143, 0.3);
    box-shadow: 0 8px 32px rgba(10, 102, 59, 0.4), 
                0 0 20px rgba(78, 202, 143, 0.2),
                inset 0 1px 0 rgba(78, 202, 143, 0.1);
}

/* OneTick box content styling */
#onetick-popup .flex-row-onetick {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

#onetick-popup .onetick-comments {
    display: block;
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* OneTick popup scroll animations - matching Attendify exactly */
#onetick-popup .onetick-box {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#onetick-popup .onetick-box .flex-row-onetick,
#onetick-popup .onetick-box .onetick-comments {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#onetick-popup .onetick-box.animate-in {
    opacity: 1;
    transform: translateY(0);
}

#onetick-popup .onetick-box .flex-row-onetick.animate-in,
#onetick-popup .onetick-box .onetick-comments.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for OneTick popup */
#onetick-popup .onetick-box .flex-row-onetick.animate-in { transition-delay: 0.1s; }
#onetick-popup .onetick-box .onetick-comments.animate-in { transition-delay: 0.2s; }

