/* ==================== BASE STYLES ==================== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: #fdf9ef;
    color: #1c1c16;
}

.editorial-header {
    font-family: 'Noto Serif', serif;
}

.glass-nav {
    background-color: rgba(253, 249, 239, 0.8);
    backdrop-filter: blur(12px);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes blink {
    50% { opacity: 0; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-slow {
    animation: floatSlow 4.5s ease-in-out infinite;
}

/* ==================== CLOUD BUBBLES ==================== */
.cloud-bubble {
    position: absolute;
    z-index: 20;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cloud-bubble::before,
.cloud-bubble::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: inherit;
}

.cloud-bubble::before {
    width: 20px;
    height: 20px;
    bottom: -6px;
    right: 18px;
}

.cloud-bubble::after {
    width: 12px;
    height: 12px;
    bottom: -12px;
    right: 10px;
}

/* Tail variants */
.cloud-bubble.tail-left::before {
    right: auto;
    left: 18px;
}

.cloud-bubble.tail-left::after {
    right: auto;
    left: 10px;
}

.cloud-bubble.tail-top-right::before {
    bottom: auto;
    top: -6px;
    right: 18px;
    left: auto;
}

.cloud-bubble.tail-top-right::after {
    bottom: auto;
    top: -12px;
    right: 10px;
    left: auto;
}

.cloud-bubble.tail-top-left::before {
    bottom: auto;
    top: -6px;
    right: auto;
    left: 18px;
}

.cloud-bubble.tail-top-left::after {
    bottom: auto;
    top: -12px;
    right: auto;
    left: 10px;
}

/* ==================== ANIMATION DELAYS ==================== */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* ==================== MOBILE MENU ==================== */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* ==================== SCROLL REVEAL ==================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== SKILL TAG CLOUD ==================== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 2rem 0;
}

.tag-cloud-left {
    justify-content: flex-start;
}

.tag-cloud-right {
    justify-content: flex-end;
}

/* Size tiers — visual hierarchy */
.tag-lg {
    padding: 14px 28px;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
}

.tag-md {
    padding: 10px 22px;
    font-size: 0.9rem;
}

.tag-sm {
    padding: 8px 16px;
    font-size: 0.78rem;
}

/* ==================== SKILL PILLS ==================== */
.skill-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 9999px;
    font-weight: 600;
    cursor: default;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.skill-pill:hover {
    transform: scale(1.1) translateY(-3px);
    z-index: 30;
}

.skill-pill .skill-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #163422;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    line-height: 1.4;
}

.skill-pill .skill-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #163422;
}

.skill-pill:hover .skill-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Glow variants — white pills on dark bg */
.skill-pill.glow-green:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 4px 16px rgba(45, 75, 55, 0.3);
}

.skill-pill.glow-blue:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 4px 16px rgba(30, 58, 95, 0.3);
}

.skill-pill.glow-maroon:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 4px 16px rgba(107, 28, 42, 0.3);
}

.skill-pill.glow-neutral:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 4px 16px rgba(45, 45, 45, 0.3);
}

.skill-pill.glow-purple:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 4px 16px rgba(74, 26, 107, 0.3);
}

/* Category legend dots */
.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* ==================== TYPING CURSOR ==================== */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

/* ==================== RESPONSIVE TAG CLOUD ==================== */
@media (max-width: 640px) {
    .tag-cloud {
        gap: 10px;
    }
    .tag-cloud-left,
    .tag-cloud-right {
        justify-content: center;
    }
    .tag-lg {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    .tag-md {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    .tag-sm {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}
