/* ============================================
   SCROLLYTELLING RESUME - STYLES
   Luke Zhu | Minimalist Dark Theme
   ============================================ */

/* ============================================
   1. CSS CUSTOM PROPERTIES (THEME TOKENS)
   ============================================ */

:root {
    /* Light Mode (base) */
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f0f0;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6b6b6b;
    --accent: #0066cc;
    --accent-light: #e6f0ff;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.12);

    /* Typography */
    --font-primary: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Layout */
    --max-width: 1200px;
    --section-padding: clamp(4rem, 10vh, 8rem);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Motion Choreography Timing */
    --timing-hover: 0.35s;
    --timing-active: 0.08s;
    --timing-focus: 0.2s;

    /* Easing Curves */
    --ease-magnetic: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-snappy: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #141414;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;
    --accent: #4da6ff;
    --accent-light: #1a2a3a;
    --accent-coral: #E57373;
    --accent-ice: #A8D4E6;
    --border: #2a2a2a;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.5);
}

/* System preference detection (when no manual theme set) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-primary: #0a0a0a;
        --bg-secondary: #141414;
        --bg-tertiary: #1f1f1f;
        --text-primary: #f0f0f0;
        --text-secondary: #b0b0b0;
        --text-muted: #707070;
        --accent: #4da6ff;
        --accent-light: #1a2a3a;
        --border: #2a2a2a;
        --shadow: rgba(0, 0, 0, 0.3);
        --shadow-hover: rgba(0, 0, 0, 0.5);
    }
}

/* ============================================
   2. CSS RESET & BASE
   ============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color var(--transition-base), color var(--transition-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent transition flash on load */
.no-transitions * {
    transition: none !important;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    text-decoration: underline;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    color: var(--text-secondary);
    max-width: 65ch;
}

.text-muted {
    color: var(--text-muted);
}

.text-accent {
    color: var(--accent);
}

/* ============================================
   4. LAYOUT
   ============================================ */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

section {
    padding: var(--section-padding) 0;
}

/* ============================================
   5. HEADER & NAVIGATION
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    object-fit: cover;
    transition: transform 0.15s var(--ease-bounce);
}

/* Logo click pop animation */
.logo.pop .logo-img {
    animation: logoPop 0.3s var(--ease-bounce);
}

@keyframes logoPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.header-controls {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.blog-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.blog-link:hover {
    background: var(--accent-light);
    transform: scale(1.05);
    text-decoration: none;
}

/* Blog icon animation */
.blog-icon {
    transition: transform 0.3s var(--ease-bounce);
}

.blog-icon .book-cover {
    transform-origin: left center;
    transition: transform 0.3s var(--ease-bounce);
}

.blog-icon .book-line {
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
}

.blog-link:hover .blog-icon .book-cover {
    transform: rotateY(-30deg) translateX(-2px);
}

.blog-link:hover .blog-icon .book-line {
    opacity: 1;
}

.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--space-sm);
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    perspective: 100px;
}

.lang-toggle:hover {
    background: var(--accent-light);
    transform: scale(1.05);
}

/* Language toggle - earth icon with text on hover */
.lang-icon {
    transition: opacity 0.2s ease, transform 0.3s var(--ease-bounce);
}

.lang-text {
    position: absolute;
    opacity: 0;
    font-size: 0.875rem;
    font-weight: 600;
    transition: opacity 0.2s ease, transform 0.3s var(--ease-bounce);
    transform: rotateX(90deg);
}

/* Hide icon and show text on hover */
.lang-toggle:hover .lang-icon {
    opacity: 0;
    transform: rotateX(-90deg);
}

.lang-toggle:hover .lang-text {
    opacity: 1;
    transform: rotateX(0deg);
}

/* Language-specific visibility */
.lang-toggle .lang-en {
    display: none;
}

[data-lang="en"] .lang-toggle .lang-zh {
    display: none;
}

[data-lang="en"] .lang-toggle .lang-en {
    display: block;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
}

/* Simple glow effect on hover - hints at the target theme */
.theme-toggle.preview-light {
    background: #f0f0f0 !important;
    color: #1a1a1a !important;
    border-color: #e0e0e0 !important;
    box-shadow:
        0 0 20px 5px rgba(255, 255, 255, 0.4),
        0 0 50px 15px rgba(255, 255, 255, 0.25),
        0 0 80px 30px rgba(255, 255, 255, 0.15) !important;
}

.theme-toggle.preview-dark {
    background: #1a1a1a !important;
    color: #f0f0f0 !important;
    border-color: #333 !important;
    box-shadow:
        0 0 20px 5px rgba(0, 0, 0, 0.3),
        0 0 50px 15px rgba(0, 0, 0, 0.2),
        0 0 80px 30px rgba(0, 0, 0, 0.1) !important;
}

.theme-toggle:hover {
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s var(--ease-bounce);
}

/* Sun icon animation - rotate on hover */
.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle:hover .icon-sun {
    animation: sunRise 0.5s var(--ease-bounce);
}

@keyframes sunRise {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Moon icon animation - wobble/tilt on hover */
.theme-toggle .icon-moon {
    display: none;
}

.theme-toggle:hover .icon-moon {
    animation: moonWobble 0.5s var(--ease-bounce);
}

@keyframes moonWobble {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-15deg);
    }

    75% {
        transform: rotate(15deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* Light mode: show moon icon */
:root:not([data-theme="dark"]) .theme-toggle .icon-moon,
[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
}

/* Dark mode: show sun icon */
[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

/* Progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent);
    z-index: 1001;
    transition: width 50ms linear;
}

/* ============================================
   6. HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Bokeh background canvas */
.bokeh-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Ambient lighting - subtle radial glow */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 70%;
    background: radial-gradient(ellipse at center,
            rgba(77, 166, 255, 0.04) 0%,
            transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: ambientBreath 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Secondary ambient glow - warm accent */
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -15%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse at center,
            rgba(229, 115, 115, 0.03) 0%,
            transparent 60%);
    z-index: 0;
    pointer-events: none;
    animation: ambientBreath 12s cubic-bezier(0.4, 0, 0.2, 1) infinite reverse;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

/* Premium breathing animation - slow, silky */
@keyframes ambientBreath {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.hero-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto var(--space-lg);
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--bg-tertiary);
    border: 3px solid var(--border);
}

.hero-avatar img,
.hero-avatar svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    /* Show face and shoulders */
}

.hero-title {
    margin-bottom: var(--space-sm);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.hero-tagline {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    position: relative;
    overflow: visible;
}

.badge-icon {
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-bounce);
}

.badge:hover .badge-icon {
    transform: scale(1.1);
}

/* ===== DRONE BADGE ANIMATIONS ===== */
.drone-badge {
    position: relative;
}

/* Screen glow on hover */
.rc-screen {
    transition: all 0.3s ease;
}

.drone-badge:hover .rc-screen {
    fill: rgba(72, 187, 120, 0.2);
}

/* Checkmark draw animation */
.screen-check {
    stroke-dasharray: 12;
    stroke-dashoffset: 12;
    transition: stroke-dashoffset 0.4s ease-out;
}

.drone-badge:hover .screen-check {
    stroke-dashoffset: 0;
    stroke: #48bb78;
}

/* Joystick wiggle */
.rc-joystick {
    transition: transform 0.2s ease;
}

.drone-badge:hover .rc-joystick {
    animation: joystickMove 0.5s ease-in-out infinite alternate;
}

@keyframes joystickMove {
    0% {
        transform: translate(-0.5px, -0.5px);
    }

    100% {
        transform: translate(0.5px, 0.5px);
    }
}

/* ===== AI BADGE ANIMATIONS ===== */
.ai-badge {
    position: relative;
}

/* Sparkle animation */
.sparkle {
    transition: all 0.3s ease;
}

.sparkle-main {
    transform-origin: center;
}

.ai-badge:hover .sparkle-main {
    animation: sparkleRotate 2s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

/* Small sparkles twinkle */
.ai-badge:hover .sparkle-1 {
    animation: twinkle 0.6s ease-in-out infinite;
}

.ai-badge:hover .sparkle-2 {
    animation: twinkle 0.6s ease-in-out infinite;
    animation-delay: 0.2s;
}

.ai-badge:hover .sparkle-3 {
    animation: twinkle 0.6s ease-in-out infinite;
    animation-delay: 0.4s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.scroll-indicator {
    margin-top: var(--space-xl);
    color: var(--text-muted);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
    opacity: 1;
    transition: opacity 0.5s var(--ease-magnetic), transform 0.5s var(--ease-magnetic);
}

/* Hidden state when user has scrolled */
.scroll-indicator.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    animation: none;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    margin: var(--space-sm) auto 0;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* ============================================
   7. SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Staggered delays */
.stagger-1 {
    transition-delay: 100ms;
}

.stagger-2 {
    transition-delay: 200ms;
}

.stagger-3 {
    transition-delay: 300ms;
}

.stagger-4 {
    transition-delay: 400ms;
}

.stagger-5 {
    transition-delay: 500ms;
}

.stagger-6 {
    transition-delay: 600ms;
}

/* ============================================
   8. SECTION HEADERS
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.section-title {
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   9. ABOUT SECTION
   ============================================ */

.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: var(--space-md);
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ============================================
   10. TIMELINE SECTION
   ============================================ */

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

@media (min-width: 768px) {
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-item {
    position: relative;
    padding-left: var(--space-xl);
    padding-bottom: var(--space-xl);
}

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

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    background: var(--accent);
    border: 3px solid var(--bg-primary);
}

@media (min-width: 768px) {
    .timeline-item {
        width: 50%;
        padding-left: var(--space-xl);
        padding-right: 0;
    }

    .timeline-item:nth-child(odd) {
        margin-left: 50%;
        padding-left: var(--space-xl);
    }

    .timeline-item:nth-child(even) {
        margin-left: 0;
        padding-left: 0;
        padding-right: var(--space-xl);
        text-align: right;
    }

    .timeline-item:nth-child(odd) .timeline-dot {
        left: calc(-1 * var(--space-xl) - 6px);
    }

    .timeline-item:nth-child(even) .timeline-dot {
        right: calc(-1 * var(--space-xl) - 6px);
        left: auto;
    }
}

.timeline-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-xs);
}

.timeline-title {
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
}

.timeline-company {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.timeline-description {
    font-size: 0.9375rem;
}

.timeline-description ul {
    margin-top: var(--space-sm);
}

.timeline-description li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-xs);
}

.timeline-description li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

@media (min-width: 768px) {
    .timeline-item:nth-child(even) .timeline-description li {
        padding-left: 0;
        padding-right: var(--space-md);
    }

    .timeline-item:nth-child(even) .timeline-description li::before {
        left: auto;
        right: 0;
        content: '←';
    }
}

/* ============================================
   11. SKILLS SECTION
   ============================================ */

.skills {
    background: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.skill-category {
    padding: var(--space-lg);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.skill-category-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.skill-category-title svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    transition: transform 0.3s var(--ease-bounce);
}

.skill-category:hover .skill-category-title svg {
    transform: scale(1.15);
}

/* ===== TECHNICAL ICON ANIMATIONS ===== */
.technical-icon .tech-screen {
    transition: fill 0.3s ease;
}

.skill-category:hover .technical-icon .tech-screen {
    fill: rgba(77, 166, 255, 0.15);
    animation: screenPulse 1.5s ease-in-out infinite;
}

@keyframes screenPulse {

    0%,
    100% {
        fill: rgba(77, 166, 255, 0.15);
    }

    50% {
        fill: rgba(77, 166, 255, 0.3);
    }
}

/* ===== LANGUAGE/GLOBE ICON ANIMATIONS ===== */
.language-icon {
    transform-origin: center;
    overflow: visible;
}

/* Speech bubbles hidden by default */
.lang-bubble {
    opacity: 0;
    transform: translateY(5px) scale(0.5);
    transition: opacity 0.3s ease, transform 0.4s var(--ease-bounce);
}

/* On hover: globe gently pulses, bubbles appear and alternate */
.skill-category:hover .language-icon .globe-circle {
    animation: globePulse 2s ease-in-out infinite;
}

@keyframes globePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Chinese bubble appears first */
.skill-category:hover .bubble-zh {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: bubbleFloat 3s ease-in-out infinite;
}

/* English bubble appears with delay, alternates */
.skill-category:hover .bubble-en {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: bubbleFloat 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes bubbleFloat {

    0%,
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    25% {
        opacity: 1;
        transform: translateY(-2px) scale(1.1);
    }

    50% {
        opacity: 0.3;
        transform: translateY(0) scale(0.9);
    }

    75% {
        opacity: 0.3;
        transform: translateY(2px) scale(0.9);
    }
}

/* ===== SOFT SKILLS ICON ANIMATIONS ===== */
.soft-skills-icon {
    overflow: visible;
}

/* Chat bubble */
.soft-skills-icon .chat-main {
    transition: transform 0.3s var(--ease-bounce), fill 0.3s ease;
}

.skill-category:hover .soft-skills-icon .chat-main {
    fill: rgba(77, 166, 255, 0.1);
}

/* Typing dots - bounce animation on hover */
.typing-dot {
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.skill-category:hover .typing-dot {
    opacity: 1;
}

.skill-category:hover .dot-1 {
    animation: typingBounce 1s ease-in-out infinite;
}

.skill-category:hover .dot-2 {
    animation: typingBounce 1s ease-in-out infinite;
    animation-delay: 0.15s;
}

.skill-category:hover .dot-3 {
    animation: typingBounce 1s ease-in-out infinite;
    animation-delay: 0.3s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-3px);
    }
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.skill-tag {
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.skill-tag:hover {
    background: var(--accent-light);
    color: var(--accent);
}

/* Language bars */
.language-item {
    margin-bottom: var(--space-md);
}

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

.language-name {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

.language-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.language-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 1s ease-out;
}

.language-bar-fill.animate {
    width: var(--level, 0%);
}

/* ============================================
   12. EDUCATION SECTION
   ============================================ */

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.education-card {
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.education-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px var(--shadow);
}

.education-years {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.education-degree {
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
}

.education-school {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* ============================================
   13. CERTIFICATIONS SECTION
   ============================================ */

.certifications {
    background: var(--bg-secondary);
}

.cert-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    max-width: 900px;
    margin: 0 auto;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.cert-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    color: var(--accent);
}

.cert-icon svg {
    width: 24px;
    height: 24px;
}

/* Drone icon special container */
.drone-icon-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    overflow: visible;
}

.drone-platform {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 6px;
    opacity: 0.5;
}

.drone-body {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 20px;
    transition: transform 0.6s var(--ease-bounce);
}

/* Rotor spinning animation */
.rotor {
    transform-origin: center;
    animation: none;
}

@keyframes rotorSpin {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

/* On hover: spin rotors and take off */
.drone-cert:hover .rotor {
    animation: rotorSpin 0.1s linear infinite;
}

.drone-cert:hover .drone-body {
    animation: droneFlight 3s ease-in-out forwards;
}

/* Flight animation: takeoff, circle, land */
@keyframes droneFlight {
    0% {
        transform: translateX(-50%) translateY(0);
    }

    15% {
        transform: translateX(-50%) translateY(-15px);
    }

    30% {
        transform: translateX(-40%) translateY(-18px);
    }

    50% {
        transform: translateX(-50%) translateY(-20px);
    }

    70% {
        transform: translateX(-60%) translateY(-18px);
    }

    85% {
        transform: translateX(-50%) translateY(-15px);
    }

    100% {
        transform: translateX(-50%) translateY(0);
    }
}

/* If mouse leaves mid-flight, drop down */
.drone-cert:not(:hover) .drone-body {
    animation: droneDrop 0.4s ease-in forwards;
}

@keyframes droneDrop {
    from {
        transform: translateX(-50%) translateY(-15px);
    }

    to {
        transform: translateX(-50%) translateY(0);
    }
}

/* SEO/Marketing icon styles */
.seo-icon-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    overflow: visible;
}

.seo-icon {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Trend line animation */
.trend-line {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    transition: stroke-dashoffset 0.8s ease-out;
}

.seo-cert:hover .trend-line {
    stroke-dashoffset: 0;
}

/* Chart bars animation */
.chart-bar {
    stroke-width: 2;
    stroke-linecap: round;
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 0.4s var(--ease-bounce);
}

.seo-cert:hover .bar-1 {
    transform: scaleY(1);
    transition-delay: 0.1s;
}

.seo-cert:hover .bar-2 {
    transform: scaleY(1);
    transition-delay: 0.2s;
}

.seo-cert:hover .bar-3 {
    transform: scaleY(1);
    transition-delay: 0.3s;
}

.seo-cert:hover .bar-4 {
    transform: scaleY(1);
    transition-delay: 0.4s;
}

/* Magnifying glass animation */
.magnifier {
    transform-origin: center;
    transition: transform 0.3s var(--ease-bounce);
}

.seo-cert:hover .magnifier {
    animation: magnifierPulse 1s ease-in-out infinite;
}

@keyframes magnifierPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Floating SEO labels */
.seo-label {
    position: absolute;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 3px;
    background: var(--accent);
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s ease, transform 0.3s var(--ease-bounce);
    white-space: nowrap;
}

.label-seo {
    top: -5px;
    right: -8px;
}

.label-ad {
    bottom: 5px;
    right: -10px;
}

.label-sem {
    top: 10px;
    left: -12px;
}

.seo-cert:hover .label-seo {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.2s;
}

.seo-cert:hover .label-ad {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.4s;
}

.seo-cert:hover .label-sem {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.6s;
}

/* Media Operations icon styles */
.media-icon-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    overflow: visible;
}

.media-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.media-card {
    position: absolute;
    width: 32px;
    height: 24px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.4s var(--ease-bounce), opacity 0.3s ease;
    border-radius: 3px;
}

/* Stacked card positions */
.card-video {
    z-index: 1;
}

.card-photo {
    z-index: 2;
}

.card-article {
    z-index: 3;
}

/* Fan out on hover */
.media-cert:hover .card-video {
    transform: translate(-80%, -70%) rotate(-15deg);
}

.media-cert:hover .card-photo {
    transform: translate(-50%, -50%) rotate(0deg);
}

.media-cert:hover .card-article {
    transform: translate(-20%, -30%) rotate(15deg);
}

/* Play button pulse */
.play-btn {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.media-cert:hover .play-btn {
    animation: playPulse 0.8s ease-in-out infinite;
}

@keyframes playPulse {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Article lines typing effect */
.article-line {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    transition: stroke-dashoffset 0.4s ease-out;
}

.media-cert:hover .line-1 {
    stroke-dashoffset: 0;
    transition-delay: 0.1s;
}

.media-cert:hover .line-2 {
    stroke-dashoffset: 0;
    transition-delay: 0.25s;
}

.media-cert:hover .line-3 {
    stroke-dashoffset: 0;
    transition-delay: 0.4s;
}

/* Photo mountain draw effect */
.photo-mountain {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    transition: stroke-dashoffset 0.6s ease-out;
}

.media-cert:hover .photo-mountain {
    stroke-dashoffset: 0;
}

/* Editing cursor */
.edit-cursor {
    position: absolute;
    width: 14px;
    height: 14px;
    bottom: 2px;
    right: 2px;
    opacity: 0;
    transform: translate(5px, 5px);
    transition: opacity 0.3s ease, transform 0.4s var(--ease-bounce);
}

.media-cert:hover .edit-cursor {
    opacity: 1;
    transform: translate(0, 0);
    animation: cursorWrite 1.5s ease-in-out infinite;
}

@keyframes cursorWrite {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-3px, 2px);
    }

    50% {
        transform: translate(2px, -2px);
    }

    75% {
        transform: translate(-2px, -1px);
    }
}

.cert-name {
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ============================================
   14. CONTACT SECTION
   ============================================ */

.contact {
    text-align: center;
    padding-bottom: var(--space-2xl);
}

.contact-cta {
    max-width: 600px;
    margin: 0 auto;
}

.contact-title {
    margin-bottom: var(--space-md);
}

.contact-text {
    margin-bottom: var(--space-lg);
    margin-left: auto;
    margin-right: auto;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--accent);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-hover);
    text-decoration: none;
}

.contact-button svg {
    width: 20px;
    height: 20px;
}

/* ===== EMAIL BUTTON ANIMATIONS ===== */
.email-icon {
    overflow: visible;
}

.envelope-flap {
    transform-origin: top center;
    transition: transform 0.3s var(--ease-bounce);
}

.email-button:hover .envelope-flap {
    transform: rotateX(180deg) translateY(-2px);
}

.envelope-letter {
    transition: transform 0.4s var(--ease-bounce);
}

.email-button:hover .envelope-letter {
    transform: translateY(-6px);
}

/* Letter lines typing effect */
.letter-line {
    stroke-width: 1;
    stroke-dasharray: 10;
    stroke-dashoffset: 10;
    transition: stroke-dashoffset 0.3s ease-out, transform 0.4s var(--ease-bounce);
}

.email-button:hover .letter-line {
    transform: translateY(-6px);
}

.email-button:hover .line-1 {
    stroke-dashoffset: 0;
    transition-delay: 0.2s;
}

.email-button:hover .line-2 {
    stroke-dashoffset: 0;
    transition-delay: 0.35s;
}

.email-button:hover .line-3 {
    stroke-dashoffset: 0;
    transition-delay: 0.5s;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.contact-link:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.contact-link svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   15. FOOTER
   ============================================ */

.footer {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    max-width: none;
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    max-width: none;
    opacity: 0.8;
}

.footer-icp {
    font-size: 0.75rem;
    margin-top: var(--space-sm);
    text-align: center;
    max-width: none;
}

.footer-icp a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-icp a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ============================================
   16. ACCESSIBILITY - REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }

    .scroll-indicator {
        animation: none;
    }
}

/* ============================================
   17. RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    :root {
        --section-padding: clamp(3rem, 8vh, 5rem);
    }

    .hero-avatar {
        width: 120px;
        height: 120px;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .contact-links {
        gap: var(--space-md);
    }
}

/* Mobile */
@media (max-width: 480px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2.5rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .hero-avatar {
        width: 100px;
        height: 100px;
    }

    .skills-grid,
    .education-grid,
    .cert-list {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   18. ATMOSPHERIC MINIMALISM
   Absorb the vibe, don't copy the look
   ============================================ */

/* --- ATOMIZED ACCENT BADGES --- */
.badge--coral {
    background: rgba(229, 115, 115, 0.08);
    color: #E57373;
    border: 1px solid rgba(229, 115, 115, 0.15);
}

.badge--coral svg {
    stroke: #E57373;
}

.badge--ice {
    background: rgba(168, 212, 230, 0.08);
    color: #A8D4E6;
    border: 1px solid rgba(168, 212, 230, 0.15);
}

/* --- AMBIENT GLOBAL LIGHTING (Dark Mode) --- */
/* Subtle vignette effect - feel the depth without seeing it */
[data-theme="dark"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 50%,
            transparent 0%,
            rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
}

/* --- GLASSMORPHISM CARDS --- */
[data-theme="dark"] .skill-category,
[data-theme="dark"] .education-card,
[data-theme="dark"] .cert-item {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Refined hover - subtle lift, not explosive glow */
[data-theme="dark"] .education-card:hover,
[data-theme="dark"] .skill-category:hover {
    transform: translateY(-2px);
    border-color: rgba(77, 166, 255, 0.1);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(77, 166, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- TIMELINE DOT: Subtle breathing glow --- */
[data-theme="dark"] .timeline-dot {
    box-shadow: 0 0 6px rgba(77, 166, 255, 0.3);
    animation: subtleBreath 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes subtleBreath {

    0%,
    100% {
        box-shadow: 0 0 6px rgba(77, 166, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 12px rgba(77, 166, 255, 0.5);
    }
}

/* --- PROGRESS BAR: Subtle gradient --- */
[data-theme="dark"] .scroll-progress {
    background: linear-gradient(90deg,
            rgba(77, 166, 255, 0.8) 0%,
            rgba(168, 212, 230, 0.6) 50%,
            rgba(229, 115, 115, 0.5) 100%);
    height: 2px;
}

/* --- MICRO-PARTICLES: Pure CSS atomized accents --- */
/* Single subtle dot - top right ambient */
[data-theme="dark"] .hero-content::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -100px;
    width: 4px;
    height: 4px;
    background: rgba(229, 115, 115, 0.4);
    border-radius: 50%;
    animation: particleDrift 20s ease-in-out infinite;
}

/* Second micro-particle */
[data-theme="dark"] .hero-content::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -80px;
    width: 3px;
    height: 3px;
    background: rgba(168, 212, 230, 0.3);
    border-radius: 50%;
    animation: particleDrift 25s ease-in-out infinite reverse;
}

@keyframes particleDrift {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }

    25% {
        transform: translate(10px, -5px);
        opacity: 0.6;
    }

    50% {
        transform: translate(5px, 8px);
        opacity: 0.4;
    }

    75% {
        transform: translate(-5px, 3px);
        opacity: 0.5;
    }
}

/* --- THIN GLOWING LINE: Section accent --- */
.section-header::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    margin: var(--space-md) auto 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(77, 166, 255, 0.4),
            transparent);
}

/* --- CONTACT BUTTON: Refined hover --- */
[data-theme="dark"] .contact-button {
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .contact-button:hover::before {
    left: 100%;
}

[data-theme="dark"] .contact-button:hover {
    box-shadow:
        0 4px 15px rgba(77, 166, 255, 0.15),
        inset 0 0 0 1px rgba(77, 166, 255, 0.1);
}

/* --- HEADER: Subtle glassmorphism --- */
[data-theme="dark"] .header {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* --- REDUCED MOTION: Respect user preference --- */
@media (prefers-reduced-motion: reduce) {

    .hero::before,
    .hero::after,
    .timeline-dot,
    .hero-content::before,
    .hero-content::after {
        animation: none;
    }

    [data-theme="dark"] .contact-button::before {
        transition: none;
    }

    .btn-primary,
    .btn-secondary,
    .btn-coral {
        transition-duration: 0.01s !important;
    }

    .btn-primary::before {
        display: none;
    }

    .btn-primary.is-loading::after {
        animation: none;
        border-top-color: rgba(255, 255, 255, 0.5);
    }
}

/* ============================================
   BUTTON STATE CHOREOGRAPHY
   Atmospheric Minimalism Design System
   ============================================ */

/* --- PRIMARY BUTTON: Frosted Glass CTA --- */
.btn-primary {
    /* Surface */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    background: rgba(77, 166, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    /* Edge */
    border: 1px solid rgba(77, 166, 255, 0.25);
    border-radius: var(--radius-md);

    /* Typography */
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;

    /* Positioning for shimmer effect */
    position: relative;
    overflow: hidden;

    /* Base transition */
    transition:
        transform var(--timing-active) var(--ease-snappy),
        box-shadow var(--timing-hover) var(--ease-magnetic),
        background var(--timing-hover) var(--ease-magnetic),
        border-color var(--timing-hover) var(--ease-magnetic);
}

/* Shimmer effect element */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.08),
            transparent);
    transition: left 0.5s var(--ease-magnetic);
    pointer-events: none;
}

/* HOVER: Magnetic Invitation */
.btn-primary:hover {
    transform: scale(1.02) translateY(-1px);
    background: rgba(77, 166, 255, 0.22);
    border-color: rgba(77, 166, 255, 0.4);
    box-shadow:
        0 4px 20px rgba(77, 166, 255, 0.15),
        0 0 0 1px rgba(77, 166, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-primary:hover::before {
    left: 100%;
}

/* ACTIVE: Tactile Impact */
.btn-primary:active {
    transform: scale(0.98) translateY(1px);
    background: rgba(77, 166, 255, 0.12);
    box-shadow:
        0 1px 4px rgba(77, 166, 255, 0.1),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition-duration: var(--timing-active);
}

/* FOCUS: Accessible Glow */
.btn-primary:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 1),
        0 0 0 4px rgba(77, 166, 255, 0.6),
        0 0 20px rgba(77, 166, 255, 0.3);
    border-color: rgba(77, 166, 255, 0.5);
}

/* DISABLED: Dormant */
.btn-primary:disabled,
.btn-primary[aria-disabled="true"] {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.3);
    backdrop-filter: none;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

/* LOADING: Morphing Patience */
.btn-primary.is-loading {
    pointer-events: none;
    color: transparent;
}

.btn-primary.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: btnSpin 0.8s linear infinite;
}

@keyframes btnSpin {
    to {
        transform: rotate(360deg);
    }
}

/* --- SECONDARY BUTTON: Ghost Outline --- */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition:
        all var(--timing-hover) var(--ease-magnetic),
        transform var(--timing-active) var(--ease-bounce);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(1px) scale(0.99);
    background: rgba(255, 255, 255, 0.03);
    transition-duration: var(--timing-active);
}

.btn-secondary:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 1),
        0 0 0 4px rgba(255, 255, 255, 0.4);
}

.btn-secondary:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- CORAL ACCENT BUTTON --- */
.btn-coral {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    background: rgba(229, 115, 115, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(229, 115, 115, 0.25);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition:
        transform var(--timing-active) var(--ease-snappy),
        box-shadow var(--timing-hover) var(--ease-magnetic),
        background var(--timing-hover) var(--ease-magnetic),
        border-color var(--timing-hover) var(--ease-magnetic);
}

.btn-coral:hover {
    transform: scale(1.02) translateY(-1px);
    background: rgba(229, 115, 115, 0.22);
    border-color: rgba(229, 115, 115, 0.4);
    box-shadow:
        0 4px 20px rgba(229, 115, 115, 0.15),
        0 0 0 1px rgba(229, 115, 115, 0.1);
}

.btn-coral:active {
    transform: scale(0.98) translateY(1px);
    background: rgba(229, 115, 115, 0.12);
    transition-duration: var(--timing-active);
}

.btn-coral:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 1),
        0 0 0 4px rgba(229, 115, 115, 0.6),
        0 0 20px rgba(229, 115, 115, 0.3);
}

/* --- UPDATE EXISTING CONTACT BUTTON --- */
[data-theme="dark"] .contact-button {
    background: rgba(77, 166, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(77, 166, 255, 0.25);
    transition:
        transform var(--timing-active) var(--ease-snappy),
        box-shadow var(--timing-hover) var(--ease-magnetic),
        background var(--timing-hover) var(--ease-magnetic),
        border-color var(--timing-hover) var(--ease-magnetic);
}

[data-theme="dark"] .contact-button:hover {
    transform: scale(1.02) translateY(-2px);
    background: rgba(77, 166, 255, 0.22);
    border-color: rgba(77, 166, 255, 0.4);
    box-shadow:
        0 4px 20px rgba(77, 166, 255, 0.2),
        0 0 0 1px rgba(77, 166, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .contact-button:active {
    transform: scale(0.98) translateY(1px);
    box-shadow:
        0 1px 4px rgba(77, 166, 255, 0.1),
        inset 0 2px 4px rgba(0, 0, 0, 0.15);
    transition-duration: var(--timing-active);
}

[data-theme="dark"] .contact-button:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 1),
        0 0 0 4px rgba(77, 166, 255, 0.6),
        0 0 20px rgba(77, 166, 255, 0.3);
}

/* --- THEME TOGGLE BUTTON CHOREOGRAPHY --- */
[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition:
        transform var(--timing-active) var(--ease-snappy),
        background var(--timing-hover) var(--ease-magnetic),
        border-color var(--timing-hover) var(--ease-magnetic),
        box-shadow var(--timing-hover) var(--ease-magnetic);
}

[data-theme="dark"] .theme-toggle:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .theme-toggle:active {
    transform: scale(0.95);
    transition-duration: var(--timing-active);
}

[data-theme="dark"] .theme-toggle:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 1),
        0 0 0 4px rgba(255, 255, 255, 0.4);
}

/* --- LANGUAGE TOGGLE BUTTON CHOREOGRAPHY --- */
[data-theme="dark"] .lang-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition:
        transform var(--timing-active) var(--ease-snappy),
        background var(--timing-hover) var(--ease-magnetic),
        border-color var(--timing-hover) var(--ease-magnetic),
        box-shadow var(--timing-hover) var(--ease-magnetic);
}

[data-theme="dark"] .lang-toggle:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .lang-toggle:active {
    transform: scale(0.95);
    transition-duration: var(--timing-active);
}

[data-theme="dark"] .lang-toggle:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 1),
        0 0 0 4px rgba(255, 255, 255, 0.4);
}

/* --- CONTACT LINK ICONS CHOREOGRAPHY --- */
[data-theme="dark"] .contact-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition:
        transform var(--timing-active) var(--ease-bounce),
        background var(--timing-hover) var(--ease-magnetic),
        border-color var(--timing-hover) var(--ease-magnetic),
        box-shadow var(--timing-hover) var(--ease-magnetic);
}

[data-theme="dark"] .contact-link:hover {
    transform: translateY(-3px) scale(1.05);
    background: rgba(77, 166, 255, 0.1);
    border-color: rgba(77, 166, 255, 0.3);
    box-shadow:
        0 8px 20px rgba(77, 166, 255, 0.15),
        0 0 0 1px rgba(77, 166, 255, 0.1);
}

[data-theme="dark"] .contact-link:active {
    transform: translateY(0) scale(0.98);
    transition-duration: var(--timing-active);
}

[data-theme="dark"] .contact-link:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 1),
        0 0 0 4px rgba(77, 166, 255, 0.6);
}