/* ------------------------------------------------------------------
   Theme variables
------------------------------------------------------------------ */
:root {
    /* Brand palette */
    --forest-900: #002200;
    --avocado-700: #88A828;
    --olive-800: #445511;
    --avocado-300: #B6D65C;
    --coral-600: #FF694D;
    --sand-50:  #F6F3EF;
    --charcoal-900: #222222;

    /* New brand color additions for navbar */
    --sand: #f6f3ef;
    --avocado-light: #b6d65c;
    --avocado: #88a828;
    --olive: #445511;
    --forest: #002200;
    --coral: #ff694d;

    /* Theme defaults */
    --bg-color: var(--sand-50);          /* light neutral background */
    --text-color: var(--charcoal-900);   /* default body text        */
    --connector-color: var(--forest-900);/* lines & accents          */
    --transition-duration: 1.288s;
    --transition-delay: 0.6s;
    --panel-shadow: 0 8px 32px rgba(0,0,0,0.3);
    --navbar-height: 90px;
}

body.light {
    /* identical to root for now; kept for compatibility */
    --bg-color: var(--sand-50);
    --text-color: var(--charcoal-900);
    --connector-color: var(--forest-900);
    --panel-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ------------------------------------------------------------------
   Global reset / layout
------------------------------------------------------------------ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    opacity: 1;
    transition:
        background-color var(--transition-duration) ease var(--transition-delay),
        color            var(--transition-duration) ease var(--transition-delay),
        opacity         0.6s ease;
    overflow-x: hidden;
}

body.page-hidden {
    opacity: 0;
}

/* ------------------------------------------------------------------
   Globe container
------------------------------------------------------------------ */
#container {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--navbar-height));
    padding-top: var(--navbar-height);
}

@supports (height: 100dvh) {
    #container { height: calc(100dvh - var(--navbar-height)); }
}

@supports not (height: 100dvh) {
    #container { height: calc(100svh - var(--navbar-height)); }
}
#globe-container{ position: absolute; inset: 0; z-index: 1; }
#globe-container canvas{ touch-action:none; }

/* ------------------------------------------------------------------
   Tooltip (small label that follows the mouse) - now disabled
------------------------------------------------------------------ */
#location-tooltip {
    position: absolute;
    z-index: 100;
    pointer-events: none;
    transform-origin: bottom center;
    transition:
        color   var(--transition-duration) ease var(--transition-delay),
        opacity 0.3s ease;
    display: none !important; /* Completely disable the legacy tooltip */
}

.tooltip-connector,
.tooltip-connector::after {
    background: var(--connector-color);
    transition: background var(--transition-duration) ease var(--transition-delay);
}

.tooltip-label {
    position: absolute;
    bottom: 40px; left: 0; width: 100%;
    text-align: center;
}
#tooltip-title { font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; }

/* ------------------------------------------------------------------
   Frosted-glass info panel (click a marker)
------------------------------------------------------------------ */
.info-panel, #info-panel {
    position: absolute;
    width: 300px;
    padding: 20px 22px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: var(--panel-shadow);
    z-index: 100;
    color: var(--forest-900);
    transition: opacity 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    pointer-events: auto;
}

body:not(.light) .info-panel,
body:not(.light) #info-panel {
    background: rgba(0,34,0,0.40);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--sand-50);
}

.info-panel:hover,
#info-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.35);
}

.info-title, #info-title {
    font-size: 18px;
    margin-bottom: 10px;
    border-bottom: 1px solid currentColor;
    padding-bottom: 5px;
}

.info-content, #info-content {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.info-link, #info-link {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(0,34,0,0.9);
    color: var(--sand-50);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.25s, transform 0.2s;
}

body.light .info-link,
body.light #info-link {
    background: rgba(0,34,0,0.85);
    color: var(--sand-50);
}

.info-link:hover,
#info-link:hover {
    background: rgba(0,34,0,1);
    transform: translateY(-2px);
}

.close-info, #close-info {
    padding: 5px 10px;
    border: none; border-radius: 4px;
    font-weight: bold; cursor: pointer;
    background: var(--sand-50); color: var(--charcoal-900);
    transition: background 0.3s, transform 0.2s;
}

body.light .close-info,
body.light #close-info {
    background: var(--forest-900); color: var(--sand-50);
}

.close-info:hover,
#close-info:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

body.light .close-info:hover,
body.light #close-info:hover {
    background: #001f00;
}

/* slim connector line from panel to marker */
.info-connect, #info-connect {
    position: absolute;
    height: 2px;
    background: var(--connector-color);
    transform-origin: 0 0;
    z-index: 99;
    pointer-events: none;
    transition: background var(--transition-duration) ease var(--transition-delay), opacity 0.3s ease;
}

body.light .info-connect,
body.light #info-connect {
    background: var(--connector-color);
}

/* ------------------------------------------------------------------
   Theme-toggle slider
------------------------------------------------------------------ */
#theme-toggle {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}


/* ------------------------------------------------------------------
   Simple theme switch
   ------------------------------------------------------------------ */
.switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 3.5em;
    height: 2em;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    --background: #002200;
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--background);
    transition: .5s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 1.4em;
    width: 1.4em;
    border-radius: 50%;
    left: 10%;
    bottom: 15%;
    box-shadow: inset 8px -4px 0px 0px #B6D65C;
    background: var(--background);
    transition: .5s;
}

input:checked + .slider {
    background-color: #002200;
}

input:checked + .slider:before {
    transform: translateX(100%);
    box-shadow: inset 15px -4px 0px 15px #B6D65C;
}

/* ------------------------------------------------------------------
   Scroll indicator
------------------------------------------------------------------ */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-color);
    font-size: 14px;
    opacity: 0.7;
    animation: pulse 2s infinite;
    z-index: 100;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator span {
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    transform: rotate(45deg);
    margin: 0 auto;
}

@keyframes pulse {
    0% {
        opacity: 0.7;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(10px);
    }
    100% {
        opacity: 0.7;
        transform: translateX(-50%) translateY(0);
    }
}

/* ------------------------------------------------------------------
   Content section (blog posts)
------------------------------------------------------------------ */
#content-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background: var(--bg-color);
    color: var(--text-color);
    padding: 120px 20px 80px;
    z-index: 10;
    transition: background-color var(--transition-duration) ease-in-out,
                color var(--transition-duration) ease-in-out;
    overflow: hidden;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

#content-section h2 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 80px;
    text-align: center;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--forest-900) 0%, var(--avocado-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 20;
}

body.light #content-section h2 {
    background: linear-gradient(135deg, var(--forest-900) 0%, var(--olive-800) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-posts {
    display: grid;
    /*
     * Use a smaller minimum width for the post cards so that the
     * grid does not overflow on narrow mobile screens. The previous
     * value of 380px caused the page to be wider than the viewport
     * on devices with widths around 320–330px.
     */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    perspective: 1000px;
}

/* Modern card design with glassmorphism and depth */
.highlight-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    transform-style: preserve-3d;
    opacity: 0;
    transform: translateY(60px) rotateX(-15deg);
    animation: cardReveal 0.8s cubic-bezier(0.23, 1, 0.320, 1) forwards;
}

body.light .highlight-card {
    background: linear-gradient(
        135deg,
        rgba(0, 34, 0, 0.08) 0%,
        rgba(0, 34, 0, 0.03) 100%
    );
    border: 1px solid rgba(0, 34, 0, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Stagger the card animations */
.highlight-card:nth-child(1) { animation-delay: 0.1s; }
.highlight-card:nth-child(2) { animation-delay: 0.2s; }
.highlight-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes cardReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* Card hover effects */
.highlight-card:hover {
    transform: translateY(-20px) rotateX(5deg) scale(1.02);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.light .highlight-card:hover {
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Flag container with particle formation area */
.card-flag-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.02) 0%,
        transparent 100%
    );
}

.card-particles {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.highlight-card.particles-formed .card-particles {
    opacity: 1;
}

.highlight-card img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    opacity: 0;
}

.highlight-card.particles-formed img {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.highlight-card:hover img {
    transform: translate(-50%, -50%) scale(1.1) rotateZ(3deg);
}

/* Card content with elegant typography */
.card-content {
    padding: 40px 30px 30px;
    position: relative;
}

.highlight-card h3 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--forest-900);
    transition: color 0.3s ease;
}

body.light .highlight-card h3 {
    color: var(--forest-900);
}

.highlight-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--charcoal-900);
    opacity: 0.8;
    margin-bottom: 30px;
}

body.light .highlight-card p {
    opacity: 0.9;
}

/* Interactive element */
.card-cta {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light .card-cta {
    border-top-color: rgba(0, 34, 0, 0.1);
}

.card-cta span {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--avocado-700);
}

.card-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--avocado-700);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card-arrow::after {
    content: '→';
    color: white;
    font-size: 1.2rem;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.highlight-card:hover .card-arrow {
    background: var(--coral-600);
    transform: scale(1.1);
}

.highlight-card:hover .card-arrow::after {
    transform: translateX(3px);
}

/* Floating accent elements */
.card-accent {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        var(--avocado-300),
        transparent 70%
    );
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.card-accent:nth-child(1) {
    top: -40px;
    right: -40px;
    animation-delay: 0s;
}

.card-accent:nth-child(2) {
    bottom: -30px;
    left: -30px;
    width: 60px;
    height: 60px;
    animation-delay: 7s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ------------------------------------------------------------------
   Blog card style used for highlights
------------------------------------------------------------------ */
.blog-card {
    position: relative;
    display: block;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 3px 3px 20px rgba(0,0,0,.5);
    background-size: cover;
    background-position: center;
    color: #DCE3E7;
}

.blog-card .color-overlay,
.blog-card .gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.blog-card .color-overlay {
    background: rgba(84,104,110,0.4);
    z-index: 10;
    transition: background .3s cubic-bezier(.33,.66,.66,1);
}

.blog-card .gradient-overlay {
    background: linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,.6) 21%);
    top: 350px;
    z-index: 15;
}

.blog-card:hover .color-overlay {
    background: rgba(84,104,110,0.8);
}

.blog-card .title-content {
    text-align: center;
    margin-top: 70px;
    position: absolute;
    z-index: 20;
    width: 100%;
    top: 0;
    left: 0;
    color: #9CC9E3;
}

.blog-card .title-content h3 {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.blog-card .title-content hr {
    width: 50px;
    margin: 10px auto;
    border: 1px solid #D0BB57;
}

.blog-card .intro {
    color: #DCE3E7;
    font-size: 0.95rem;
}

.blog-card .card-info {
    position: absolute;
    bottom: 80px;
    left: 20px;
    right: 20px;
    opacity: 0;
    transition: all .3s cubic-bezier(.33,.66,.66,1);
}

.blog-card:hover .card-info {
    opacity: 1;
    bottom: 120px;
}

.blog-card .utility-info {
    position: absolute;
    bottom: 30px;
    width: 100%;
    z-index: 20;
}

.blog-card .utility-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    color: #DCE3E7;
    font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .highlight-card,
    .blog-card {
        height: 450px;
    }

    #content-section h2 {
        font-size: 3rem;
        margin-bottom: 60px;
    }

    .highlight-card h3,
    .blog-card h3 {
        font-size: 1.8rem;
    }
}

/* Ensure proper stacking */
.premium-navbar {
    z-index: 1000;
}

#globe-container {
    z-index: 1; /* Below navbar */
}

.scroll-indicator {
    z-index: 50; /* Above content but below navbar */
}

#content-section {
    position: relative; /* Ensure it's above the globe */
    z-index: 10; /* Ensures content appears above the globe */
}

/* Ensure scrollbar styling is consistent */
body {
    scrollbar-width: thin;
    scrollbar-color: var(--connector-color) var(--bg-color);
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: var(--bg-color);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--connector-color);
    border-radius: 4px;
}

/* Ensure fonts are consistent throughout */
body, button, input {
    font-family: Arial, sans-serif;
    transition: color var(--transition-duration) ease-in-out var(--transition-delay);
}

/* ------------------------------------------------------------------
   Zoom hint bottom‑left
------------------------------------------------------------------ */
.zoom-hint {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
    cursor: default;
    transition: opacity 0.3s ease;
    z-index: 80; /* above globe but below navbar */
}
.zoom-hint:hover {
    opacity: 1;
}
.zoom-hint i {
    font-size: 16px;
}

/* ------------------------------------------------------------------
   Country label shown on hover
------------------------------------------------------------------ */
.country-label {
    position: absolute;
    bottom: 60px;
    left: 30px;
    padding: 4px 8px;
    background: rgba(34,34,34,0.6);
    color: var(--sand-50);
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    z-index: 80;
}
body.light .country-label {
    background: rgba(246, 243, 239, 0.8);
    color: var(--charcoal-900);
}

/* ------------------------------------------------------------------
   Country hover tooltip
------------------------------------------------------------------ */
.country-tooltip {
    position: absolute;
    width: 220px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: var(--panel-shadow);
    color: var(--forest-900);
    pointer-events: none;
    z-index: 120;
    display: none;
}
body:not(.light) .country-tooltip {
    background: rgba(0,34,0,0.40);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--sand-50);
}
.country-tooltip img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 8px;
}
.country-tooltip .tooltip-title {
    font-size: 16px;
    margin-bottom: 6px;
    font-weight: bold;
}
.country-tooltip .tooltip-teaser {
    font-size: 14px;
    line-height: 1.4;
}
/* ------------------------------------------------------------------
   Loading screen and progress bar
------------------------------------------------------------------ */
#loading-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    color: var(--text-color);
    z-index: 2000;
}

.loading-bar {
    width: 70%;
    max-width: 300px;
    height: 10px;
    background: rgba(246, 243, 239, 0.3);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 1rem;
}

#loading-bar-fill {
    height: 100%;
    width: 0;
    background: var(--connector-color);
    transition: width 0.3s ease;
}

#loading-screen.hidden {
    display: none;
}

/* Replaceable loading animation */
#loading-animation {
    width: 12em;
    height: 12em;
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.loading-message {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.wheel-and-hamster {
  --dur: 1s;
  position: relative;
  width: 12em;
  height: 12em;
  font-size: 14px;
}

.wheel,
.hamster,
.hamster div,
.spoke {
  position: absolute;
}

.wheel,
.spoke {
  border-radius: 50%;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.wheel {
  background: radial-gradient(100% 100% at center,hsla(0,0%,60%,0) 47.8%,hsl(0,0%,60%) 48%);
  z-index: 2;
}

.hamster {
  animation: hamster var(--dur) ease-in-out infinite;
  top: 50%;
  left: calc(50% - 3.5em);
  width: 7em;
  height: 3.75em;
  transform: rotate(4deg) translate(-0.8em,1.85em);
  transform-origin: 50% 0;
  z-index: 1;
}

.hamster__head {
  animation: hamsterHead var(--dur) ease-in-out infinite;
  background: hsl(30,90%,55%);
  border-radius: 70% 30% 0 100% / 40% 25% 25% 60%;
  box-shadow: 0 -0.25em 0 hsl(30,90%,80%) inset,
        0.75em -1.55em 0 hsl(30,90%,90%) inset;
  top: 0;
  left: -2em;
  width: 2.75em;
  height: 2.5em;
  transform-origin: 100% 50%;
}

.hamster__ear {
  animation: hamsterEar var(--dur) ease-in-out infinite;
  background: hsl(0,90%,85%);
  border-radius: 50%;
  box-shadow: -0.25em 0 hsl(30,90%,55%) inset;
  top: -0.25em;
  right: -0.25em;
  width: 0.75em;
  height: 0.75em;
  transform-origin: 50% 75%;
}

.hamster__eye {
  animation: hamsterEye var(--dur) linear infinite;
  background-color: hsl(0,0%,0%);
  border-radius: 50%;
  top: 0.375em;
  left: 1.25em;
  width: 0.5em;
  height: 0.5em;
}

.hamster__nose {
  background: hsl(0,90%,75%);
  border-radius: 35% 65% 85% 15% / 70% 50% 50% 30%;
  top: 0.75em;
  left: 0;
  width: 0.2em;
  height: 0.25em;
}

.hamster__body {
  animation: hamsterBody var(--dur) ease-in-out infinite;
  background: hsl(30,90%,90%);
  border-radius: 50% 30% 50% 30% / 15% 60% 40% 40%;
  box-shadow: 0.1em 0.75em 0 hsl(30,90%,55%) inset,
        0.15em -0.5em 0 hsl(30,90%,80%) inset;
  top: 0.25em;
  left: 2em;
  width: 4.5em;
  height: 3em;
  transform-origin: 17% 50%;
  transform-style: preserve-3d;
}

.hamster__limb--fr,
.hamster__limb--fl {
  clip-path: polygon(0 0,100% 0,70% 80%,60% 100%,0% 100%,40% 80%);
  top: 2em;
  left: 0.5em;
  width: 1em;
  height: 1.5em;
  transform-origin: 50% 0;
}

.hamster__limb--fr {
  animation: hamsterFRLimb var(--dur) linear infinite;
  background: linear-gradient(hsl(30,90%,80%) 80%,hsl(0,90%,75%) 80%);
  transform: rotate(15deg) translateZ(-1px);
}

.hamster__limb--fl {
  animation: hamsterFLLimb var(--dur) linear infinite;
  background: linear-gradient(hsl(30,90%,90%) 80%,hsl(0,90%,85%) 80%);
  transform: rotate(15deg);
}

.hamster__limb--br,
.hamster__limb--bl {
  border-radius: 0.75em 0.75em 0 0;
  clip-path: polygon(0 0,100% 0,100% 30%,70% 90%,70% 100%,30% 100%,40% 90%,0% 30%);
  top: 1em;
  left: 2.8em;
  width: 1.5em;
  height: 2.5em;
  transform-origin: 50% 30%;
}

.hamster__limb--br {
  animation: hamsterBRLimb var(--dur) linear infinite;
  background: linear-gradient(hsl(30,90%,80%) 90%,hsl(0,90%,75%) 90%);
  transform: rotate(-25deg) translateZ(-1px);
}

.hamster__limb--bl {
  animation: hamsterBLLimb var(--dur) linear infinite;
  background: linear-gradient(hsl(30,90%,90%) 90%,hsl(0,90%,85%) 90%);
  transform: rotate(-25deg);
}

.hamster__tail {
  animation: hamsterTail var(--dur) linear infinite;
  background: hsl(0,90%,85%);
  border-radius: 0.25em 50% 50% 0.25em;
  box-shadow: 0 -0.2em 0 hsl(0,90%,75%) inset;
  top: 1.5em;
  right: -0.5em;
  width: 1em;
  height: 0.5em;
  transform: rotate(30deg) translateZ(-1px);
  transform-origin: 0.25em 0.25em;
}

.spoke {
  animation: spoke var(--dur) linear infinite;
  background: radial-gradient(100% 100% at center,hsl(0,0%,60%) 4.8%,hsla(0,0%,60%,0) 5%),
        linear-gradient(hsla(0,0%,55%,0) 46.9%,hsl(0,0%,65%) 47% 52.9%,hsla(0,0%,65%,0) 53%) 50% 50% / 99% 99% no-repeat;
}

@keyframes hamster {
  from, to {
    transform: rotate(4deg) translate(-0.8em,1.85em);
  }

  50% {
    transform: rotate(0) translate(-0.8em,1.85em);
  }
}

@keyframes hamsterHead {
  from, 25%, 50%, 75%, to {
    transform: rotate(0);
  }

  12.5%, 37.5%, 62.5%, 87.5% {
    transform: rotate(8deg);
  }
}

@keyframes hamsterEye {
  from, 90%, to {
    transform: scaleY(1);
  }

  95% {
    transform: scaleY(0);
  }
}

@keyframes hamsterEar {
  from, 25%, 50%, 75%, to {
    transform: rotate(0);
  }

  12.5%, 37.5%, 62.5%, 87.5% {
    transform: rotate(12deg);
  }
}

@keyframes hamsterBody {
  from, 25%, 50%, 75%, to {
    transform: rotate(0);
  }

  12.5%, 37.5%, 62.5%, 87.5% {
    transform: rotate(-2deg);
  }
}

@keyframes hamsterFRLimb {
  from, 25%, 50%, 75%, to {
    transform: rotate(50deg) translateZ(-1px);
  }

  12.5%, 37.5%, 62.5%, 87.5% {
    transform: rotate(-30deg) translateZ(-1px);
  }
}

@keyframes hamsterFLLimb {
  from, 25%, 50%, 75%, to {
    transform: rotate(-30deg);
  }

  12.5%, 37.5%, 62.5%, 87.5% {
    transform: rotate(50deg);
  }
}

@keyframes hamsterBRLimb {
  from, 25%, 50%, 75%, to {
    transform: rotate(-60deg) translateZ(-1px);
  }

  12.5%, 37.5%, 62.5%, 87.5% {
    transform: rotate(20deg) translateZ(-1px);
  }
}

@keyframes hamsterBLLimb {
  from, 25%, 50%, 75%, to {
    transform: rotate(20deg);
  }

  12.5%, 37.5%, 62.5%, 87.5% {
    transform: rotate(-60deg);
  }
}

@keyframes hamsterTail {
  from, 25%, 50%, 75%, to {
    transform: rotate(30deg) translateZ(-1px);
  }

  12.5%, 37.5%, 62.5%, 87.5% {
    transform: rotate(10deg) translateZ(-1px);
  }
}

@keyframes spoke {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(-1turn);
  }
}

/* ------------------------------------------------------------------
   New Navbar Updates
------------------------------------------------------------------ */

/* Update responsive navbar height */
@media (max-width: 1024px) {
    :root { --navbar-height: 70px; }
}

@media (max-width: 768px) {
    :root { --navbar-height: 60px; }
}

/* Smooth page load transition */
body {
    opacity: 0;
    animation: pageLoad 0.8s ease forwards;
}

@keyframes pageLoad {
    to {
        opacity: 1;
    }
}

/* Enhanced focus styles for accessibility */
*:focus {
    outline: 2px solid var(--avocado);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Ensure navbar stays above all content during transitions */
.premium-navbar {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
}

/* Globale Fixes for compatibility with old navbar references */
.info-connect,
#info-connect {
    display: none !important;
}