/* Project page text visibility fix */
.panel-content p,
.panel-content li,
.panel-content h3,
.panel-content h4 {
    color: var(--text-primary);
}

.panel-content ul {
    color: var(--text-secondary);
}

/* Breadcrumb navigation styling */
.breadcrumb-nav {
    margin-bottom: 20px;
}

.breadcrumb-nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.breadcrumb-nav a:hover {
    opacity: 0.8;
}

.breadcrumb-nav .separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
}

.breadcrumb-nav .current {
    color: rgba(255, 255, 255, 0.7);
}

/* scroll-triggered animations - optimized for mobile */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* reducing animation complexity on mobile for better performance */
@media (max-width: 768px) {
    @keyframes fadeInUp {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    @keyframes fadeInLeft {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    @keyframes fadeInRight {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.visible {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-left.visible {
    animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-right.visible {
    animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* parallax card hover effects */
.parallax-card {
    transform-style: preserve-3d;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.parallax-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(2deg) scale(1.02);
}

.parallax-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 136, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    border-radius: inherit;
}

.parallax-card:hover::before {
    opacity: 1;
}


/* site search bar */
.search-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 20px 0;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.1);
}

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

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-item {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: var(--bg-secondary);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 14px;
}

.search-result-description {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.search-result-category {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    font-size: 11px;
    margin-top: 4px;
    text-transform: uppercase;
}



/* accessibility features */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100000;
    font-weight: 600;
    border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
    top: 0;
}

/* keyboard focus indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* high contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-primary: #000000;
        --bg-primary: #FFFFFF;
    }


}

/* reduced motion preference support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}






/* hover tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    background: var(--gray-800);
    color: white;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--gray-800) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* making images responsive */
img {
    max-width: 100%;
    height: auto;
}

.responsive-img {
    display: block;
    width: 100%;
    height: auto;
}


/* smooth page transitions */
body {
    opacity: 1;
}

body.loaded {
    opacity: 1;
}

/* button ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}


/* interactive stat cards */
.stat-card.clickable {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card.clickable:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.stat-card.clickable:active {
    transform: translateY(-2px) scale(1.01);
}



/* toast notification popups */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--danger);
}

.toast.warning {
    border-left-color: var(--warning);
}

.toast-icon {
    font-size: 20px;
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--danger);
}

.toast.warning .toast-icon {
    color: var(--warning);
}

.toast-message {
    flex: 1;
    color: var(--text-primary);
    font-size: 14px;
}

/* scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 99999;
    transition: width 0.1s ease;
}

/* back to top scroll button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* tooltip display system */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-800);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 10000;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--gray-800);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* stock ticker animations */
.ticker-item {
    animation: tickerPulse 3s ease-in-out infinite;
}

@keyframes tickerPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.ticker-value {
    animation: numberFlip 0.5s ease;
}

@keyframes numberFlip {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

/* ========================================
   ENHANCED ANIMATIONS
   ======================================== */

/* Staggered fade-in for stat cards */
.stat-card {
    opacity: 0;
    animation: slideUpFade 0.6s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth hover lift for cards */
.stat-card,
.webull-panel,
.endorsement-item,
.timeline-item {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.webull-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Sparkline animation */
.sparkline {
    opacity: 0;
    animation: drawIn 1s ease forwards 0.5s;
}

@keyframes drawIn {
    from {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

/* Stat value counter animation */
.stat-value {
    animation: countUp 0.8s ease-out forwards;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sidebar link hover animation */
.sidebar-link {
    position: relative;
    overflow: hidden;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--webull-yellow);
    transition: width 0.3s ease;
}

.sidebar-link:hover::before {
    width: 100%;
}

.sidebar-link i {
    transition: transform 0.3s ease;
}

.sidebar-link:hover i {
    transform: scale(1.2);
}

/* Timeline marker pulse */
.timeline-marker {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 currentColor;
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 8px transparent;
    }
}

/* Panel header icon spin on hover */
.panel-header h2 i {
    transition: transform 0.4s ease;
}

.webull-panel:hover .panel-header h2 i {
    transform: rotate(360deg);
}

/* Table row slide in */
.webull-table tbody tr {
    opacity: 0;
    animation: slideInRow 0.4s ease forwards;
}

.webull-table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.webull-table tbody tr:nth-child(2) { animation-delay: 0.15s; }
.webull-table tbody tr:nth-child(3) { animation-delay: 0.2s; }
.webull-table tbody tr:nth-child(4) { animation-delay: 0.25s; }
.webull-table tbody tr:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideInRow {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Asset icon bounce on hover */
.asset-icon {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.webull-table tbody tr:hover .asset-icon {
    transform: scale(1.15) rotate(5deg);
}

/* Endorsement card animations */
.endorsement-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Subtle border glow on hover */
.endorsement-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, transparent 40%, rgba(61, 90, 128, 0.3) 50%, transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.endorsement-item:hover::before {
    opacity: 1;
}

/* Soft light sweep effect */
.endorsement-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.04) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
    pointer-events: none;
}

.endorsement-item:hover::after {
    left: 100%;
}

/* Hover lift effect */
.endorsement-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Click/active effect */
.endorsement-item:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* Rating stars animation on hover */
.endorsement-item .stars {
    transition: transform 0.3s ease, letter-spacing 0.3s ease;
}

.endorsement-item:hover .stars {
    letter-spacing: 2px;
}

/* Company badge pulse on click */
.endorsement-item:active .company-badge {
    animation: badgePulse 0.3s ease;
}

@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Quote highlight on hover */
.endorsement-item .endorsement-quote {
    transition: color 0.3s ease;
}

.endorsement-item:hover .endorsement-quote {
    color: var(--text-primary);
}

/* Header logo glow */
.ticker-logo {
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(0, 136, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 136, 255, 0.6), 0 0 30px rgba(0, 136, 255, 0.4);
    }
}

/* Ticker scroll with smooth fade edges */
.market-ticker-bar {
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* Button press effect */
.theme-toggle-btn,
.tab-btn,
.filter-btn {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.theme-toggle-btn:active,
.tab-btn:active,
.filter-btn:active {
    transform: scale(0.95);
}

/* Tab active indicator slide */
.tab-btn {
    position: relative;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--webull-yellow);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Metric badge pop */
.metric-badge {
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Chart panel entrance */
.chart-panel {
    opacity: 0;
    animation: fadeInScale 0.6s ease forwards 0.3s;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Legend color dot pulse on hover */
.legend-item:hover .legend-color {
    animation: colorPulse 0.5s ease;
}

@keyframes colorPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* Smooth text highlight on hover */
.timeline-title,
.asset-name,
.endorser-name {
    transition: color 0.2s ease;
}

/* Terminal cursor blink */
.terminal-input::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Page load animation */
.webull-main {
    animation: pageLoad 0.5s ease;
}

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

/* Floating animation for particles */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    75% {
        transform: translateY(10px) rotate(-5deg);
    }
}

/* Gradient border animation */
.stat-card.positive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--success), var(--webull-yellow));
    background-size: 200% 100%;
    animation: gradientSlide 3s linear infinite;
}

@keyframes gradientSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Smooth scroll indicator */
.scroll-indicator {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Loading skeleton animation */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--surface) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Icon rotation on interaction */
.fa-chart-line,
.fa-code,
.fa-briefcase,
.fa-users,
.fa-trophy,
.fa-user {
    transition: transform 0.3s ease;
}

.sidebar-link.active i {
    animation: iconPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iconPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Smooth color transitions for theme changes */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* ========================================
   REDESIGNED STAT CARDS WITH ICONS
   ======================================== */

.stat-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.stat-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.stat-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.15;
    border-radius: inherit;
}

.stat-icon-wrapper.projects {
    background: #3d5a80;
    color: white;
    box-shadow: 0 2px 8px rgba(61, 90, 128, 0.2);
}

.stat-icon-wrapper.leadership {
    background: #b8860b;
    color: white;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.2);
}

.stat-icon-wrapper.awards {
    background: #2d6a4f;
    color: white;
    box-shadow: 0 2px 8px rgba(45, 106, 79, 0.2);
}

.stat-icon-wrapper.volunteer {
    background: #7c3238;
    color: white;
    box-shadow: 0 2px 8px rgba(124, 50, 56, 0.2);
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 40px;
    padding: 5px 0;
}

.mini-bar {
    width: 8px;
    background: var(--border-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    opacity: 0.6;
    animation: barRise 0.8s ease-out forwards;
    transform-origin: bottom;
}

.mini-bar:nth-child(1) { animation-delay: 0.1s; }
.mini-bar:nth-child(2) { animation-delay: 0.2s; }
.mini-bar:nth-child(3) { animation-delay: 0.3s; }
.mini-bar:nth-child(4) { animation-delay: 0.4s; }
.mini-bar:nth-child(5) { animation-delay: 0.5s; }
.mini-bar:nth-child(6) { animation-delay: 0.6s; }

@keyframes barRise {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

.mini-bar.active {
    background: var(--success);
    opacity: 1;
}

.stat-card:hover .mini-bar {
    background: var(--primary);
    opacity: 0.8;
}

.stat-card:hover .mini-bar.active {
    background: var(--success);
    opacity: 1;
    transform: scaleY(1.1);
}

/* ========================================
   REDESIGNED ACTIVITY FEED
   ======================================== */

.activity-filter-tabs {
    display: flex;
    gap: 5px;
}

.filter-tab {
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    background: var(--surface);
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.activity-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.activity-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.activity-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.activity-card:hover::before {
    transform: scaleY(1);
}

.activity-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.activity-card-icon.founder {
    background: #5c5470;
    color: white;
}

.activity-card-icon.startup {
    background: #b8860b;
    color: white;
}

.activity-card-icon.internship {
    background: #3d5a80;
    color: white;
}

.activity-card-icon.award {
    background: #d4a017;
    color: #1a1a1a;
}

.activity-card-icon.volunteer {
    background: #7c3238;
    color: white;
}

.activity-card-content {
    flex: 1;
    min-width: 0;
}

.activity-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.activity-card-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.activity-time {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.activity-card-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.activity-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.activity-tag {
    padding: 3px 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.activity-tag.success {
    background: rgba(45, 106, 79, 0.1);
    color: #2d6a4f;
}

.activity-tag.info {
    background: rgba(61, 90, 128, 0.1);
    color: #3d5a80;
}

.activity-tag.gold {
    background: rgba(212, 160, 23, 0.12);
    color: #9a7b0a;
}

.activity-card-indicator {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

/* ========================================
   VISUAL BAR CHARTS
   ======================================== */

.visual-chart-container {
    padding: 20px;
}

.horizontal-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-label {
    width: 140px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.bar-label i {
    width: 20px;
    color: var(--text-muted);
}

.bar-track {
    flex: 1;
    height: 28px;
    background: var(--bg-secondary);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    animation: barGrow 1s ease-out forwards;
    transform-origin: left;
}

@keyframes barGrow {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.bar-fill.gold {
    background: #d4a017;
}

.bar-fill.silver {
    background: #8a8a8a;
}

.bar-fill.bronze {
    background: #a0522d;
}

.bar-fill.blue {
    background: #3d5a80;
}

.bar-value {
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.bar-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.bar-badge.gold {
    background: #d4a017;
    color: #1a1a1a;
    box-shadow: 0 2px 6px rgba(212, 160, 23, 0.25);
}

.bar-badge.silver {
    background: #8a8a8a;
    color: white;
    box-shadow: 0 2px 6px rgba(138, 138, 138, 0.25);
}

.bar-badge.bronze {
    background: #a0522d;
    color: white;
    box-shadow: 0 2px 6px rgba(160, 82, 45, 0.25);
}

.bar-badge.blue {
    background: #3d5a80;
    color: white;
    box-shadow: 0 2px 6px rgba(61, 90, 128, 0.25);
}

/* ========================================
   HONORS GRID
   ======================================== */

.honors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
}

.honor-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.honor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.honor-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.honor-icon.research {
    background: #3d5a80;
    color: white;
}

.honor-icon.writing {
    background: #5c5470;
    color: white;
}

.honor-icon.nonprofit {
    background: #2d6a4f;
    color: white;
}

.honor-icon.academic {
    background: #b8860b;
    color: white;
}

.honor-content {
    flex: 1;
    min-width: 0;
}

.honor-content h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2px 0;
}

.honor-content p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}

.honor-year {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ========================================
   PROJECT HERO SECTION
   ======================================== */

.project-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #3d5a80;
}

.project-hero.napkin::before {
    background: #2d6a4f;
}

.project-hero-content {
    flex: 1;
    max-width: 60%;
}

.project-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.project-hero-badge.active {
    background: rgba(16, 185, 129, 0.15);
    animation: pulse 2s infinite;
}

.project-hero-badge i {
    font-size: 10px;
}

.project-hero-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.project-hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.project-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.hero-tag.role {
    background: rgba(61, 90, 128, 0.1);
    color: #3d5a80;
}

.hero-tag.tech {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.project-hero-actions {
    display: flex;
    gap: 12px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-btn.primary {
    background: var(--primary);
    color: white;
}

.hero-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.hero-btn.secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.hero-btn.secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
}

.project-hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-stat-ring {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #3d5a80;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(61, 90, 128, 0.2);
}

.hero-stat-ring.active {
    background: #2d6a4f;
    box-shadow: 0 8px 24px rgba(45, 106, 79, 0.2);
}

.hero-stat-ring::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--surface);
}

.ring-stat {
    position: relative;
    z-index: 1;
    text-align: center;
}

.ring-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.ring-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.hero-mini-stats {
    display: flex;
    gap: 20px;
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.mini-stat i {
    color: var(--primary);
}

/* ========================================
   VISUAL TIMELINE
   ======================================== */

.visual-timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-track {
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #2d6a4f, #3d5a80, #5c5470);
    border-radius: 2px;
}

.timeline-node {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    position: relative;
}

.timeline-node:last-child {
    margin-bottom: 0;
}

.node-marker {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.node-marker.success {
    background: #2d6a4f;
    color: white;
}

.node-marker.primary {
    background: #3d5a80;
    color: white;
}

.node-marker.purple {
    background: #5c5470;
    color: white;
}

.node-content {
    flex: 1;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.node-content:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.node-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}

.node-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.node-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.node-tags {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.node-tags span {
    padding: 4px 10px;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

.node-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 5px 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
}

.node-status i {
    font-size: 8px;
    animation: pulse 2s infinite;
}

/* ========================================
   ARCHITECTURE PIPELINE
   ======================================== */

.architecture-pipeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow-x: auto;
}

.pipeline-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    flex-shrink: 0;
}

.stage-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stage-icon.user {
    background: #475569;
    color: white;
}

.stage-icon.ocr {
    background: #3d5a80;
    color: white;
}

.stage-icon.ai {
    background: #5c5470;
    color: white;
}

.stage-icon.db {
    background: #2d6a4f;
    color: white;
}

.stage-icon.share {
    background: #b8860b;
    color: white;
}

.stage-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.stage-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.pipeline-arrow {
    color: var(--text-muted);
    font-size: 18px;
    flex-shrink: 0;
    animation: arrowPulse 2s infinite;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.4; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(3px); }
}

/* Architecture Layers */
.architecture-layers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.arch-layer {
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.arch-layer.presentation {
    background: rgba(71, 85, 105, 0.08);
    border-left: 4px solid #475569;
}

.arch-layer.api {
    background: rgba(61, 90, 128, 0.08);
    border-left: 4px solid #3d5a80;
}

.arch-layer.data {
    background: rgba(45, 106, 79, 0.08);
    border-left: 4px solid #2d6a4f;
}

.layer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

.layer-header i {
    width: 20px;
}

.layer-items {
    display: flex;
    gap: 10px;
}

.layer-items span {
    padding: 4px 12px;
    background: var(--surface);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========================================
   POSITIONS LIST
   ======================================== */

.positions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.position-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.position-row:hover {
    background: var(--bg-secondary);
    transform: translateX(5px);
    border-color: var(--primary);
}

.position-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.position-icon.founder {
    background: #5c5470;
    color: white;
}

.position-icon.leadership {
    background: #b8860b;
    color: white;
}

.position-icon.code {
    background: #2d6a4f;
    color: white;
}

.position-icon.projects {
    background: #3d5a80;
    color: white;
}

.position-icon.volunteer {
    background: #7c3238;
    color: white;
}

.position-icon.research {
    background: #456268;
    color: white;
}

.position-info {
    flex: 1;
    min-width: 0;
}

.position-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.position-detail {
    font-size: 12px;
    color: var(--text-muted);
}

.position-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 50px;
    text-align: right;
}

.position-trend {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.position-trend.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

/* ========================================
   FIGURES GRID (Research Visualizations)
   ======================================== */

.figures-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.figure-item {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.figure-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.figure-item h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.figure-item h4 i {
    color: var(--text-muted);
    font-size: 12px;
}

.figure-img-container {
    background: var(--bg-secondary);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
}

.figure-img-container img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.figure-item p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .figures-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   FINDINGS GRID (StockML)
   ======================================== */

.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.finding-card {
    padding: 25px;
    background: var(--surface);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.finding-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.finding-card.danger::before { background: #9b2c2c; }
.finding-card.warning::before { background: #b8860b; }
.finding-card.purple::before { background: #5c5470; }
.finding-card.cyan::before { background: #456268; }

.finding-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.finding-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 15px;
}

.finding-card.danger .finding-icon {
    background: rgba(155, 44, 44, 0.1);
    color: #9b2c2c;
}

.finding-card.warning .finding-icon {
    background: rgba(184, 134, 11, 0.1);
    color: #b8860b;
}

.finding-card.purple .finding-icon {
    background: rgba(92, 84, 112, 0.1);
    color: #5c5470;
}

.finding-card.cyan .finding-icon {
    background: rgba(69, 98, 104, 0.1);
    color: #456268;
}

.finding-stat {
    margin-bottom: 15px;
}

.finding-stat .stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.finding-stat .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.finding-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.finding-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ========================================
   FEATURES GRID
   ======================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 15px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-icon.ocr {
    background: #3d5a80;
    color: white;
}

.feature-icon.ai {
    background: #5c5470;
    color: white;
}

.feature-icon.marketplace {
    background: #2d6a4f;
    color: white;
}

.feature-icon.courses {
    background: #b8860b;
    color: white;
}

.feature-icon.users {
    background: #475569;
    color: white;
}

.feature-icon.email {
    background: #7c3238;
    color: white;
}

.feature-content {
    flex: 1;
    min-width: 0;
}

.feature-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 5px 0;
}

.feature-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.feature-tech {
    display: inline-block;
    padding: 3px 10px;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.feature-status {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
}

.feature-status.live {
    color: var(--success);
}

.feature-status.live i {
    font-size: 8px;
    animation: pulse 2s infinite;
}

/* Model Grid */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.model-category {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.model-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.model-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.model-icon.users {
    background: #3d5a80;
    color: white;
}

.model-icon.notes {
    background: #5c5470;
    color: white;
}

.model-icon.academic {
    background: #b8860b;
    color: white;
}

.model-icon.marketplace {
    background: #2d6a4f;
    color: white;
}

.model-category h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 5px 0;
}

.model-count {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
}

.model-category p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 8px 0 0 0;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-card {
        flex-wrap: wrap;
    }

    .stat-mini-chart {
        width: 100%;
        margin-top: 10px;
    }

    .honors-grid {
        grid-template-columns: 1fr;
    }

    .bar-label {
        width: 100px;
        font-size: 11px;
    }

    .bar-label span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .project-hero {
        flex-direction: column;
        padding: 25px;
        text-align: center;
    }

    .project-hero-content {
        max-width: 100%;
    }

    .project-hero-tags,
    .project-hero-actions {
        justify-content: center;
    }

    .project-hero-visual {
        margin-top: 25px;
    }

    .hero-stat-ring {
        width: 120px;
        height: 120px;
    }

    .architecture-pipeline {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .pipeline-arrow {
        display: none;
    }

    .arch-layer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .timeline-track {
        left: 20px;
    }

    .node-marker {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .timeline-node {
        gap: 15px;
    }
}

/* ========================================
   SIMPLE STAT CARDS (About page style)
   Stat cards without icon wrapper should stack vertically
   ======================================== */

.stat-card:not(:has(.stat-icon-wrapper)) {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.stat-card:not(:has(.stat-icon-wrapper)) .stat-label {
    order: 1;
}

.stat-card:not(:has(.stat-icon-wrapper)) .stat-value {
    order: 2;
}

.stat-card:not(:has(.stat-icon-wrapper)) .stat-change {
    order: 3;
}

/* ========================================
   COMPREHENSIVE MOBILE FIXES
   ======================================== */

@media (max-width: 768px) {
    /* Fix main content area on mobile */
    .webull-main {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px !important;
    }

    /* Stats row - single column on small mobile */
    .webull-stats-row {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    /* Stat cards - ensure proper mobile layout */
    .stat-card {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px;
        padding: 15px;
        min-width: 0;
    }

    .stat-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .stat-content {
        width: 100%;
    }

    .stat-mini-chart {
        width: 100%;
        margin-top: 10px;
        justify-content: flex-start;
    }

    /* Panel headers - stack on mobile */
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 15px;
    }

    .panel-tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Activity cards - full width */
    .activity-card {
        flex-direction: column;
        gap: 10px;
    }

    .activity-card-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .activity-card-content {
        width: 100%;
    }

    .activity-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .activity-tags {
        flex-wrap: wrap;
    }

    /* Charts row - single column */
    .webull-charts-row {
        grid-template-columns: 1fr !important;
    }

    /* Bar chart labels - smaller on mobile */
    .bar-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .bar-label {
        width: 100%;
        margin-bottom: 5px;
    }

    .bar-track {
        flex: 1;
        min-width: 150px;
    }

    /* Honors grid - single column */
    .honors-grid {
        grid-template-columns: 1fr !important;
    }

    .honor-card {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        padding: 15px;
    }

    /* Endorsements - single column */
    .endorsements-grid {
        grid-template-columns: 1fr !important;
    }

    .endorsement-item {
        padding: 15px;
    }

    .endorsement-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .endorsement-meta {
        width: 100%;
        justify-content: flex-start;
    }

    /* Position rows - adjust for mobile */
    .position-row {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px;
    }

    .position-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .position-info {
        flex: 1;
        min-width: 120px;
    }

    .position-value {
        font-size: 1.1rem;
    }

    /* Table responsiveness */
    .webull-data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .webull-data-table th,
    .webull-data-table td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    .org-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .org-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    /* Skills tags - smaller on mobile */
    .skills-tags {
        gap: 6px;
    }

    .skill-tag {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    /* Search container */
    .search-container {
        margin-bottom: 15px;
    }

    .search-input {
        padding: 10px 15px;
        font-size: 14px;
    }

    /* Inline style overrides for about page grids */
    [style*="grid-template-columns: repeat(auto-fit, minmax(300px"] {
        grid-template-columns: 1fr !important;
    }

    [style*="grid-template-columns: repeat(auto-fit, minmax(250px"] {
        grid-template-columns: 1fr !important;
    }

    /* Resume section buttons - stack on mobile */
    [style*="display: flex"][style*="gap: 15px"][style*="justify-content: center"] {
        flex-direction: column !important;
        width: 100%;
    }

    [style*="display: flex"][style*="gap: 15px"][style*="justify-content: center"] a {
        width: 100%;
        justify-content: center;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .webull-container {
        padding: 0 8px !important;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .panel-header h2 {
        font-size: 0.9rem;
    }

    .tab-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .filter-tab {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

/* ========================================
   TERMINAL PAGE ANIMATIONS
   ======================================== */

/* Terminal container entrance */
.terminal-container {
    animation: terminalBoot 0.8s ease-out;
}

@keyframes terminalBoot {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Terminal header controls animation */
.terminal-controls .control {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.terminal-controls .control:hover {
    transform: scale(1.2);
}

/* Terminal cursor blink */
.terminal-input {
    caret-color: var(--success);
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { border-right-color: var(--success); }
    50% { border-right-color: transparent; }
}

/* Terminal output line animation */
.terminal-line {
    animation: terminalLineAppear 0.3s ease-out;
}

@keyframes terminalLineAppear {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Command help grid animations */
.command-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.command-help-item {
    padding: 15px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.command-help-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    transition: left 0.5s ease;
}

.command-help-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.command-help-item:hover::before {
    left: 100%;
}

.command-help-item code {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--success);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.command-help-item:hover code {
    background: var(--primary);
    color: white;
}

.command-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* Terminal prompt animation */
.prompt {
    color: var(--success);
    animation: promptPulse 3s ease-in-out infinite;
}

@keyframes promptPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ========================================
   LEADERSHIP PAGE ANIMATIONS
   ======================================== */

/* Organization icon animations */
.org-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
    font-size: 20px;
    color: var(--primary);
}

.expandable-row:hover .org-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: white;
}

.org-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.org-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.expandable-row:hover .org-logo img {
    transform: scale(1.1);
}

/* Expandable row animations */
.expandable-row {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.expandable-row::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 12px;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.expandable-row:hover::after {
    opacity: 1;
}

.expandable-row.expanded::after {
    transform: translateY(-50%) rotate(180deg);
}

.expandable-row:hover {
    background: var(--bg-secondary);
}

/* Details row slide animation */
.details-row {
    display: none;
    background: var(--surface);
}

.details-row.show {
    display: table-row;
    animation: detailsSlide 0.4s ease-out;
}

@keyframes detailsSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.experience-details {
    padding: 20px;
    border-left: 3px solid var(--primary);
    margin-left: 20px;
    animation: detailsFadeIn 0.5s ease-out 0.1s both;
}

@keyframes detailsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Position badge pulse */
.position-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(61, 90, 128, 0.1);
    color: #3d5a80;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.expandable-row:hover .position-badge {
    background: #3d5a80;
    color: white;
    transform: scale(1.05);
}

/* Impact positive animation */
.impact-positive {
    color: var(--success);
    font-weight: 600;
    position: relative;
}

.impact-positive::before {
    content: '\f062';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 5px;
    font-size: 10px;
    animation: arrowBounce 2s ease-in-out infinite;
}

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

/* Skills tags stagger animation */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.details-row.show .skill-tag {
    animation: tagPopIn 0.3s ease-out backwards;
}

.details-row.show .skill-tag:nth-child(1) { animation-delay: 0.1s; }
.details-row.show .skill-tag:nth-child(2) { animation-delay: 0.15s; }
.details-row.show .skill-tag:nth-child(3) { animation-delay: 0.2s; }
.details-row.show .skill-tag:nth-child(4) { animation-delay: 0.25s; }
.details-row.show .skill-tag:nth-child(5) { animation-delay: 0.3s; }
.details-row.show .skill-tag:nth-child(6) { animation-delay: 0.35s; }

@keyframes tagPopIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   ACHIEVEMENTS PAGE ANIMATIONS
   ======================================== */

/* Achievement placement badges */
.status-badge.completed {
    position: relative;
    overflow: hidden;
}

.status-badge.completed::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmerBadge 3s ease-in-out infinite;
}

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

/* Trophy icon pulse for 1st place */
tr[data-category] .status-badge.completed:contains("1ST") {
    animation: goldPulse 2s ease-in-out infinite;
}

/* Category badge hover */
.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.location-badge i {
    transition: transform 0.3s ease;
}

.expandable-row:hover .location-badge {
    background: var(--primary);
    color: white;
}

.expandable-row:hover .location-badge i {
    transform: rotate(360deg);
}

/* Date range animation */
.date-range {
    font-weight: 600;
    color: var(--text-primary);
}

.duration {
    font-size: 11px;
    color: var(--text-muted);
}

/* Achievement row stagger entrance */
.webull-data-table tbody tr.expandable-row {
    opacity: 0;
    animation: rowSlideIn 0.5s ease-out forwards;
}

.webull-data-table tbody tr.expandable-row:nth-child(1) { animation-delay: 0.1s; }
.webull-data-table tbody tr.expandable-row:nth-child(3) { animation-delay: 0.15s; }
.webull-data-table tbody tr.expandable-row:nth-child(5) { animation-delay: 0.2s; }
.webull-data-table tbody tr.expandable-row:nth-child(7) { animation-delay: 0.25s; }
.webull-data-table tbody tr.expandable-row:nth-child(9) { animation-delay: 0.3s; }
.webull-data-table tbody tr.expandable-row:nth-child(11) { animation-delay: 0.35s; }
.webull-data-table tbody tr.expandable-row:nth-child(13) { animation-delay: 0.4s; }
.webull-data-table tbody tr.expandable-row:nth-child(15) { animation-delay: 0.45s; }
.webull-data-table tbody tr.expandable-row:nth-child(17) { animation-delay: 0.5s; }

@keyframes rowSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Page header animations */
.page-header {
    animation: headerFadeIn 0.6s ease-out;
}

.page-header h1 {
    position: relative;
    display: inline-block;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    animation: underlineGrow 0.8s ease-out 0.3s forwards;
}

@keyframes headerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes underlineGrow {
    to { width: 100%; }
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 5px;
    animation: subtitleFadeIn 0.6s ease-out 0.4s both;
}

@keyframes subtitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Panel entrance animation */
.webull-panel {
    opacity: 0;
    animation: panelEnter 0.5s ease-out forwards;
}

.webull-panel:nth-child(1) { animation-delay: 0.2s; }
.webull-panel:nth-child(2) { animation-delay: 0.3s; }
.webull-panel:nth-child(3) { animation-delay: 0.4s; }

@keyframes panelEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tab button active indicator */
.panel-tabs .tab-btn {
    position: relative;
    transition: all 0.3s ease;
}

.panel-tabs .tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.panel-tabs .tab-btn.active::after {
    width: 80%;
}

.panel-tabs .tab-btn:hover:not(.active) {
    color: var(--primary);
}

/* List view table row hover */
#listView .webull-data-table tbody tr {
    transition: all 0.3s ease;
}

#listView .webull-data-table tbody tr:hover {
    background: var(--bg-secondary);
    transform: scale(1.01);
}

#listView .webull-data-table tbody tr:hover .asset-icon {
    transform: scale(1.2) rotate(10deg);
    color: var(--primary);
}

/* Link badge animation */
.link-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border-radius: 8px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.link-badge:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 90, 128, 0.3);
}

.link-badge i {
    transition: transform 0.3s ease;
}

.link-badge:hover i {
    transform: rotate(-45deg);
}

/* ========================================
   WELCOME SCREEN — Matrix Rain
   ======================================== */

.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0B0E11;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
}

.welcome-overlay.welcome-fade-out {
    opacity: 0;
}

.welcome-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.6s ease;
}

.welcome-name {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.welcome-name.visible {
    opacity: 1;
    transform: scale(1);
}

.welcome-name-main {
    font-family: 'Courier New', Courier, monospace;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 12px;
    text-shadow: 0 0 20px #00FF41, 0 0 40px rgba(0, 255, 65, 0.4);
}

.welcome-name-sub {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    color: #00FF41;
    letter-spacing: 6px;
    text-transform: uppercase;
}

@media (max-width: 480px) {
    .welcome-name-main {
        font-size: 28px;
        letter-spacing: 8px;
    }

    .welcome-name-sub {
        font-size: 12px;
    }
}

/* print-friendly styles */
@media print {
    .webull-header,
    .webull-sidebar,
    .theme-toggle-btn,
    .search-container {
        display: none !important;
    }

    .webull-main {
        margin-left: 0 !important;
        padding: 20px !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .webull-panel {
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* ============================================================
   VISUAL EFFECTS - Features 1-5
   Desktop-only, respects prefers-reduced-motion
   ============================================================ */

/* --- Feature 1: Typing Animation on .brand-name --- */

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.brand-name.typing-active::after {
    content: '|';
    display: inline-block;
    margin-left: 1px;
    color: var(--primary);
    animation: blinkCursor 0.7s step-end infinite;
    font-weight: 400;
}

.brand-name.typing-done::after {
    display: none;
}

/* --- Feature 2: Staggered Card Entrance --- */

.activity-card.card-hidden,
.honor-card.card-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.activity-card.card-visible,
.honor-card.card-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Feature 3: Spotlight + Tilt on Card Hover --- */

.stat-card,
.endorsement-item {
    position: relative;
    overflow: visible;
    transform-style: preserve-3d;
}

.stat-card .card-spotlight,
.endorsement-item .card-spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: inherit;
    overflow: hidden;
}

.stat-card:hover .card-spotlight,
.endorsement-item:hover .card-spotlight {
    opacity: 1;
}

/* Once JS adds .tilt-enabled, nuke all competing animation/transition/hover
   so the tilt has full control over transform */
.stat-card.tilt-enabled,
.endorsement-item.tilt-enabled {
    animation: none !important;
    animation-fill-mode: none !important;
    opacity: 1 !important;
    transition: none !important;
}

.stat-card.tilt-enabled:hover,
.stat-card.tilt-enabled.parallax-card:hover,
.endorsement-item.tilt-enabled:hover {
    transform: none;
}

/* Spring-back on mouseleave */
.stat-card.tilt-enabled.tilt-reset,
.endorsement-item.tilt-enabled.tilt-reset {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease !important;
}

/* --- Feature 4: Magnetic Buttons (CSS spring-back transition) --- */

.sidebar-link,
.tab-btn,
.filter-tab {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* --- Feature 5: Spotlight/Glow Cursor --- */

.glow-cursor-active,
.glow-cursor-active * {
    cursor: none !important;
}

.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 136, 255, 0.08) 0%, rgba(0, 136, 255, 0.03) 40%, transparent 70%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

.cursor-glow-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 8px rgba(0, 136, 255, 0.4);
}

/* hover state — expand glow, warm shift */
.cursor-glow.cursor-hover {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 208, 0, 0.1) 0%, rgba(255, 208, 0, 0.04) 40%, transparent 70%);
}

.cursor-glow-dot.cursor-hover {
    width: 10px;
    height: 10px;
    background: var(--secondary);
    box-shadow: 0 0 14px rgba(255, 208, 0, 0.5);
}

/* hidden when mouse leaves */
.cursor-glow.cursor-hidden,
.cursor-glow-dot.cursor-hidden {
    opacity: 0;
}

/* ============================================================
   MOBILE OVERRIDES — disable all visual effects below 768px
   ============================================================ */

@media (max-width: 768px) {
    /* Feature 1: show static text, no typing */
    .brand-name.typing-active::after {
        display: none;
    }

    /* Feature 2: simplify to opacity-only */
    .activity-card.card-hidden,
    .honor-card.card-hidden {
        transform: none;
    }

    /* Feature 3: disable spotlight on mobile */
    .stat-card .card-spotlight,
    .endorsement-item .card-spotlight {
        display: none;
    }

    /* Feature 5: no custom cursor on mobile */
    .cursor-glow,
    .cursor-glow-dot {
        display: none !important;
    }

    .glow-cursor-active,
    .glow-cursor-active * {
        cursor: auto !important;
    }
}

/* ============================================================
   PREFERS-REDUCED-MOTION — disable all animations/effects
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .brand-name.typing-active::after {
        display: none;
    }

    .activity-card.card-hidden,
    .honor-card.card-hidden {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .stat-card .card-spotlight,
    .endorsement-item .card-spotlight {
        display: none;
    }

    .cursor-glow,
    .cursor-glow-dot {
        display: none !important;
    }

    .glow-cursor-active,
    .glow-cursor-active * {
        cursor: auto !important;
    }

    @keyframes blinkCursor {
        0%, 100% { opacity: 1; }
    }
}
