:root {
    --primary: #F5C000;
    --dark: #1A1A1A;
    --bg-color: #F0EBE0;
    --white: #FFFFFF;
    --heading-font: 'Anton', sans-serif;
    --body-font: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--dark);
    font-family: var(--body-font);
    overflow-x: hidden;
}

/* Background Texture */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
    pointer-events: none;
    z-index: 9999;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.yellow-text { color: var(--primary); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--heading-font);
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--dark);
    box-shadow: 4px 4px 0px var(--dark);
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--dark);
}

.btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--dark);
}

.btn-large {
    font-size: 1.5rem;
    padding: 15px 40px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(240, 235, 224, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 3px solid var(--dark);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.nav-logo {
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    background: var(--dark);
    color: var(--primary) !important;
    padding: 8px 20px;
    border-radius: 20px;
    font-family: var(--heading-font);
    font-size: 1.2rem !important;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    padding: 150px 0 50px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.company-sub {
    font-size: 1rem;
    font-weight: 600;
    background: var(--dark);
    color: var(--white);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

.hero-title .highlight {
    color: var(--primary);
    display: block;
    -webkit-text-stroke: 1px var(--dark);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 500;
}

.placeholder-image {
    background: rgba(0,0,0,0.05);
    border: 3px dashed var(--dark);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-weight: bold;
    color: var(--dark);
}

.mascot-placeholder { height: 500px; }

/* Sections Common */
section { padding: 100px 0; }

.section-header h2 {
    font-size: 3rem;
    display: inline-block;
    position: relative;
}

.divider {
    height: 5px;
    width: 100px;
    background: var(--primary);
    margin: 10px auto 40px;
    border-radius: 5px;
}

/* What is JUMPE */
.flow-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
}

.flow-step {
    flex: 1;
    text-align: center;
    background: var(--white);
    padding: 40px 20px;
    border-radius: 20px;
    border: 3px solid var(--dark);
    box-shadow: 8px 8px 0px var(--primary);
    position: relative;
    transition: transform 0.3s;
}

.flow-step:hover {
    transform: translateY(-10px);
}

.icon-wrapper {
    width: 150px;
    height: 150px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    border: 3px solid var(--dark);
}

.flow-step p {
    font-weight: 600;
    font-size: 1.1rem;
}

.flow-arrow {
    font-size: 3rem;
    color: var(--dark);
    padding: 0 20px;
}

.tech-slider-wrapper {
    margin: 40px auto;
    padding: 30px 0;
    background: var(--dark);
    border: 3px solid var(--primary);
    border-radius: 20px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
}

.tech-slider-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tech-slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    z-index: 1;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.tech-slider {
    display: flex;
    width: max-content;
    animation: slide-infinite 40s linear infinite;
}

.tech-slider:hover {
    animation-play-state: paused;
}

.tech-track {
    display: flex;
    gap: 50px;
    padding-right: 50px;
    align-items: center;
}

.tech-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
    transition: all 0.3s ease;
}

@keyframes slide-infinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.mobile-arrow { display: none; }

/* Services */
.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.yellow-card {
    background: var(--primary);
    border: 3px solid var(--dark);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 6px 6px 0px rgba(0,0,0,0.1);
}

.yellow-card:hover {
    transform: scale(1.05);
}

.card-image-placeholder {
    height: 200px;
    background: var(--white);
    border: 3px solid var(--dark);
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

/* Why Jumpe */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.mascot-jumping-placeholder { height: 600px; }

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--white);
    padding: 15px 20px;
    border-radius: 50px;
    border: 2px solid var(--dark);
    box-shadow: 4px 4px 0px var(--primary);
}

.pill-badge {
    background: var(--primary);
    color: var(--dark);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border: 2px solid var(--dark);
    flex-shrink: 0;
}

/* Mission Vision */
.dark-section {
    background: var(--dark);
    color: var(--white);
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.styled-list {
    list-style-type: square;
    padding-left: 20px;
    font-size: 1.2rem;
    line-height: 1.8;
}

.vision-statement {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    border-left: 5px solid var(--primary);
    padding-left: 20px;
}

.champion-placeholder {
    height: 500px;
    border-color: var(--primary);
    color: var(--primary);
}

/* section title slides */
.section-title-slide {
    width: 100%;
    background: var(--primary);
    border-top: 5px solid var(--dark);
    border-bottom: 5px solid var(--dark);
    padding: 40px 0;
    text-align: center;
}

.section-title-slide span {
    font-family: var(--heading-font);
    font-size: 4rem;
    letter-spacing: 2px;
}

.section-title-slide span.text-black {
    color: var(--dark);
}

.section-title-slide span.text-outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--bg-color); /* Milk/cream color stroke */
}

/* Products Detailed */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.product-card {
    background: var(--white);
    border: 3px solid var(--dark);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 6px 6px 0px var(--primary);
}

.product-header {
    background: var(--dark);
    color: var(--primary);
    padding: 20px;
    position: relative;
}

.product-header h3 { margin: 0; font-size: 1.5rem; }

.hrdf-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 10px;
}

.product-body { padding: 25px; }

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.product-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.product-features i {
    color: var(--primary);
    margin-top: 4px;
    margin-right: 10px;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tool-tag {
    background: #eee;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--dark);
}

/* Portfolio */
.portfolio-slide { background: var(--white); }
.text-outline { color: transparent; -webkit-text-stroke: 2px var(--primary); }
.text-black { color: var(--dark); }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: var(--white);
    border: 3px solid var(--dark);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s;
}

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

.portfolio-image-placeholder {
    height: 200px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--dark);
}

.qr-placeholder {
    text-align: center;
    background: var(--white);
    padding: 15px;
    border: 2px dashed var(--dark);
    border-radius: 10px;
}

.qr-placeholder i { font-size: 2.5rem; margin-bottom: 10px; color: var(--dark); }

.portfolio-info { padding: 20px; }

.red-badge {
    background: #FF4136;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
    font-family: var(--heading-font);
    letter-spacing: 1px;
}

.ai-games-portfolio {
    background: var(--dark);
    color: var(--white);
    padding: 40px;
    border-radius: 20px;
    border: 3px solid var(--primary);
}

.games-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.game-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(245, 192, 0, 0.3);
}

.game-item i { color: var(--primary); font-size: 1.5rem; }

/* Contact Section */
.engage-badge { text-align: center; margin-bottom: 40px; }
.engage-badge h2 {
    display: inline-block;
    background: var(--primary);
    padding: 15px 40px;
    border-radius: 50px;
    border: 3px solid var(--dark);
}

.contact-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border: 4px solid var(--dark);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 10px 10px 0px var(--primary);
}

.contact-logo { height: 80px; margin-bottom: 20px; }

.contact-details h3 { font-size: 1.8rem; margin-bottom: 5px; }
.sub-text { color: #666; font-style: italic; margin-bottom: 30px; }

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: left;
}

.info-item i { font-size: 1.5rem; color: var(--primary); }

footer {
    background: var(--dark);
    color: white;
    padding: 30px 0;
    text-align: center;
    border-top: 5px solid var(--primary);
}

/* Animations */
.fade-in, .fade-up, .fade-in-up, .slide-up-stagger, .fade-in-right, .slide-in-right, .fade-in-left, .slide-in-left, .pop-in {
    opacity: 0;
}

.fade-in, .fade-up, .fade-in-up, .slide-up-stagger { transform: translateY(30px); }
.fade-in-right, .slide-in-right { transform: translateX(50px); }
.fade-in-left, .slide-in-left { transform: translateX(-50px); }
.pop-in { transform: scale(0.8); }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
    to { opacity: 1; transform: translateX(0); }
}
@keyframes popIn {
    to { opacity: 1; transform: scale(1); }
}

.fade-in.visible, .fade-up.visible, .fade-in-up.visible, .slide-up-stagger.visible {
    animation: fadeInUp 0.8s ease forwards;
}
.fade-in-right.visible, .slide-in-right.visible {
    animation: slideInRight 0.8s ease forwards;
}
.fade-in-left.visible, .slide-in-left.visible {
    animation: slideInLeft 0.8s ease forwards;
}
.pop-in.visible {
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Shake animation for phone */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px) rotate(-3deg); }
    20%, 40%, 60%, 80% { transform: translateX(3px) rotate(3deg); }
}
.shake-animation:hover { animation: shake 0.8s; }

/* Responsive */
@media (max-width: 992px) {
    .flow-layout { flex-direction: column; gap: 30px; }
    .desktop-arrow { display: none; }
    .mobile-arrow { display: block; }
    .hero-container, .why-grid, .mv-grid, .product-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 3.5rem; }
    .card-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        border-bottom: 3px solid var(--dark);
    }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
}

.product-image-box {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid var(--dark);
    background: var(--dark);
}
.product-image-box > img.standard-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.product-card:hover .product-image-box > img.standard-img {
    transform: scale(1.05);
}

.portrait-box {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.portrait-box .blur-overlay {
    position: absolute;
    top: -10%; left: -10%; right: -10%; bottom: -10%;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(0,0,0,0.5);
    z-index: 0;
}
.portrait-box img.contained-img {
    position: relative;
    height: 90%;
    width: auto;
    object-fit: contain;
    z-index: 1;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: transform 0.4s ease;
}
.product-card:hover .portrait-box img.contained-img {
    transform: scale(1.05);
}

/* MODERN FOOTER */
.modern-footer {
    background: var(--dark);
    color: #e4e3df;
    padding: 70px 0 20px 0;
    border-top: 5px solid var(--primary);
    font-family: 'Outfit', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
    text-align: left;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
}

.footer-logo {
    height: 55px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-about p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 350px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .footer-about p {
        margin: 0 auto 25px auto;
    }
}

.footer-socials {
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
    .footer-socials {
        justify-content: center;
    }
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-socials a:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
    border-color: var(--primary);
}

.footer-links h4, .footer-contact h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    font-family: 'Anton', sans-serif;
    letter-spacing: 1px;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

@media (max-width: 768px) {
    .footer-links h4::after, .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

.footer-links ul, .footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-contact ul li {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #aaa;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .footer-contact ul li {
        justify-content: center;
        text-align: center;
    }
}

.footer-contact ul li i {
    color: var(--primary);
    margin-top: 5px;
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #777;
    font-size: 0.95rem;
}

/* Flow Button Animation */
.flow-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  border-radius: 100px;
  border: 1.5px solid rgba(17, 17, 17, 0.4);
  background: transparent;
  padding: 12px 40px;
  font-family: var(--heading-font);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  text-decoration: none;
  transition: all 600ms cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
}

.flow-button:hover {
  border-color: transparent;
  color: var(--primary); /* Text color when hovered */
  border-radius: 12px;
}

.flow-button:active {
  transform: scale(0.95);
}

.flow-button .left-arrow {
  position: absolute;
  font-size: 1.1rem;
  left: -25%;
  color: var(--dark);
  z-index: 9;
  transition: all 800ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flow-button:hover .left-arrow {
  left: 20px;
  color: var(--primary);
}

.flow-button .btn-text {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: all 800ms ease-out;
  letter-spacing: 1px;
}

.flow-button:hover .btn-text {
  transform: translateX(12px);
}

.flow-button .bg-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background-color: var(--dark);
  border-radius: 50%;
  opacity: 0;
  transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
  z-index: -1;
}

.flow-button:hover .bg-circle {
  width: 400px;
  height: 400px;
  opacity: 1;
}

.flow-button .right-arrow {
  position: absolute;
  font-size: 1.1rem;
  right: 20px;
  color: var(--dark);
  z-index: 9;
  transition: all 800ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flow-button:hover .right-arrow {
  right: -25%;
  color: var(--primary);
}

/* Liquid Nav Pill */
.liquid-nav-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    padding: 6px;
    border-radius: 12px;
    gap: 0;
    z-index: 1;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.liquid-bg-filter {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 12px;
    z-index: -2;
    filter: url('#radio-glass');
    opacity: 0.5;
}

.liquid-glider {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    width: 0;
    background: var(--white);
    border-radius: 8px;
    z-index: -1;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 6px rgba(0,0,0,0.03), 0 2px 6px rgba(0,0,0,0.08), inset 3px 3px 0.5px -3px rgba(0,0,0,0.2), inset -3px -3px 0.5px -3px rgba(0,0,0,0.1), inset 1px 1px 1px -0.5px rgba(255,255,255,0.8), inset -1px -1px 1px -0.5px rgba(255,255,255,0.8);
}

.liquid-link {
    position: relative;
    padding: 8px 24px;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-family: var(--body-font);
    z-index: 1;
    transition: color 0.3s ease;
    text-align: center;
    font-size: 1.05rem;
}

.liquid-link.active, .liquid-link:hover {
    color: var(--dark);
}

@media (max-width: 768px) {
    .liquid-nav-pill {
        flex-direction: column;
        width: 100%;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }
    .liquid-bg-filter, .liquid-glider { display: none; }
    .liquid-link {
        width: 100%;
        margin-bottom: 10px;
        background: rgba(0,0,0,0.05);
        border-radius: 8px;
        padding: 12px;
    }
    .liquid-link.active {
        background: var(--primary);
    }
}

/* Universal fix for horizontal scrolling on mobile */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Navigation Anim Button */
.nav-anim-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    background: transparent;
}

.nav-anim-btn:hover {
    border-radius: 4px;
}

.nav-anim-btn .nav-text-original {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-anim-btn:hover .nav-text-original {
    transform: translateY(-25px);
    opacity: 0;
}

.nav-anim-btn .nav-text-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--dark);
    transform: translateY(25px);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 50px;
    font-weight: 700;
}

.nav-anim-btn:hover .nav-text-hover {
    transform: translateY(0);
    opacity: 1;
    border-radius: 4px;
}

/* Interactive Hover Button Animation */
.interactive-hover-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    border-radius: 50px;
    border: 2px solid var(--dark);
    background-color: var(--white);
    padding: 12px 32px;
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    cursor: pointer;
    z-index: 1;
}

.interactive-hover-btn.nav-size {
    padding: 8px 24px;
    font-size: 1rem;
    border: 1px solid var(--dark);
    gap: 8px;
}

.interactive-hover-btn .hover-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.interactive-hover-btn:hover .hover-dot {
    transform: scale(45);
}

.interactive-hover-btn .text-initial {
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateX(0);
    opacity: 1;
}

.interactive-hover-btn:hover .text-initial {
    transform: translateX(80px);
    opacity: 0;
}

.interactive-hover-btn .text-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 10;
    transform: translateX(-60px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    color: var(--dark);
}

.interactive-hover-btn:hover .text-hover {
    transform: translateX(0);
    opacity: 1;
}

/* ==========================================================================
   DYNAMIC ISLAND TOC
   ========================================================================== */

.dynamic-island-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.dynamic-island-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.dynamic-island {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    
    /* Default size (Closed) */
    width: 280px;
    height: 52px;
    border-radius: 26px;
    
    background-color: var(--dark);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    cursor: pointer;
    
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.dynamic-island.expanded {
    width: 340px;
    height: 400px;
    border-radius: 24px;
    cursor: default;
    border: 2px solid var(--primary); /* Matching website color */
}

/* Closed Pill Content */
.di-pill {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
}

.dynamic-island.expanded .di-pill {
    opacity: 0;
    transform: scale(0.95);
    filter: blur(4px);
    pointer-events: none;
}

.di-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary); /* Theme color */
    flex-shrink: 0;
}

.di-current-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.di-progress {
    display: flex;
    align-items: center;
    justify-content: center;
}

.di-progress svg {
    transform: rotate(-90deg);
    flex-shrink: 0;
}

.di-progress-bg {
    fill: none;
    stroke: rgba(255,255,255,0.2);
    stroke-width: 2.5;
}

.di-progress-bar {
    fill: none;
    stroke: var(--primary); /* Theme color */
    stroke-width: 2.5;
    stroke-dasharray: 66; /* approx 2 * PI * 10.5 */
    stroke-dashoffset: 66;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.15s ease-out;
}

/* Expanded Menu Content */
.di-menu {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.dynamic-island.expanded .di-menu {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.di-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 12px;
    flex-shrink: 0;
}

.di-menu-header span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.6);
}

#di-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
}

#di-close:hover {
    color: var(--white);
}

.di-menu-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Scrollbar styling for menu */
.di-menu-list::-webkit-scrollbar {
    width: 6px;
}
.di-menu-list::-webkit-scrollbar-track {
    background: transparent;
}
.di-menu-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}

.di-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-radius: 8px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.di-link:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    padding-left: 20px; /* slight hover indent */
}

.di-link.active {
    background: rgba(255, 230, 0, 0.15); /* var(--primary) with opacity */
    color: var(--primary);
    font-weight: 600;
}

/* Small dot indicator for active link */
.di-link::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.di-link.active::after {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================================================
   TO TOP BUTTON (DROPLET EFFECT)
   ========================================================================== */
.di-wrapper {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Override previous dynamic-island position since wrapper handles it now */
.dynamic-island {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    z-index: 2;
}

.to-top-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) scale(0.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--dark);
    border: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1; /* Behind island */
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.to-top-btn:hover {
    background-color: var(--white);
    transform: translateY(-50%) translateX(calc(100% + 15px)) scale(1.1) !important;
}

/* Droplet pop-out effect for desktop */
@media (min-width: 769px) {
    .di-wrapper.show-totop .to-top-btn {
        transform: translateY(-50%) translateX(calc(100% + 15px)) scale(1);
        opacity: 1;
        pointer-events: auto;
    }
}

/* Mobile always show */
@media (max-width: 768px) {
    .to-top-btn {
        transform: translateY(-50%) translateX(calc(100% + 10px)) scale(1);
        opacity: 1;
        pointer-events: auto;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}
