:root {
    --bg-base: #050505;
    --card-bg: rgba(18, 12, 16, 0.7);
    --card-border: rgba(180, 40, 40, 0.2);
    --card-border-hover: rgba(235, 60, 60, 0.5);
    
    --text-primary: #f2f2f5;
    --text-secondary: #a0a0b0;
    --text-muted: #666677;
    
    /* Accents */
    --accent-red: #c82222;
    --accent-red-glow: rgba(200, 34, 34, 0.35);
    --accent-purple: #8b5cf6;
    --accent-amber: #f59e0b;
    
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 20px 50px -10px rgba(180, 20, 20, 0.25);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 2.5rem 1.5rem;
}

/* Background Animated Glow Mesh */
.bg-mesh {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.4;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
    animation: float 22s infinite ease-in-out alternate;
}

.orb-1 {
    width: 65vw; height: 65vw;
    top: -20%; left: -15%;
    background: radial-gradient(circle, rgba(160, 10, 10, 0.3) 0%, transparent 70%);
    animation-delay: 0s;
}

.orb-2 {
    width: 55vw; height: 55vw;
    bottom: -15%; right: -15%;
    background: radial-gradient(circle, rgba(100, 0, 40, 0.25) 0%, transparent 70%);
    animation-delay: -7s;
}

.orb-3 {
    width: 45vw; height: 45vw;
    top: 35%; left: 40%;
    background: radial-gradient(circle, rgba(140, 30, 80, 0.15) 0%, transparent 70%);
    animation-delay: -14s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(8vw, 6vw) scale(1.1); }
}

/* App Container */
.app-container {
    width: 100%;
    max-width: 820px;
    z-index: 10;
}

/* Entry Stagger Animations */
.stagger-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Header */
.hero {
    text-align: center;
    margin-bottom: 3.5rem;
}

.profile-avatar-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 1.5rem;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #14080a;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
}

.avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-red), #600000);
    z-index: 1;
    box-shadow: 0 0 20px var(--accent-red-glow);
}

.status-indicator {
    position: absolute;
    bottom: 4px; right: 4px;
    width: 14px; height: 14px;
    background-color: #22c55e;
    border: 2px solid #050505;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(200, 34, 34, 0.12);
    border: 1px solid rgba(200, 34, 34, 0.3);
    color: #f87171;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 1.2rem;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.title {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #ffffff 0%, #b0b0c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.6;
}

.highlight {
    color: #f87171;
    font-weight: 600;
}

/* Portfolio Navigation Cards */
.portfolio-nav {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.nav-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 18px;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-soft);
}

.nav-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-glow);

}

.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(200, 34, 34, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
}

.nav-card:hover .card-glow {
    opacity: 1;
}

.card-content {
    display: flex;
    align-items: center;
    padding: 1.5rem 1.75rem;
    gap: 1.25rem;
    position: relative;
    z-index: 2;
}

.icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(200, 34, 34, 0.12);
    border: 1px solid rgba(200, 34, 34, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.3s ease;
}

.nav-card:hover .icon-wrapper {
    transform: scale(1.08);
    background: rgba(200, 34, 34, 0.2);
    color: #f87171;
}

.text-content {
    flex: 1;
}

.title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.3rem;
}

.text-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.text-content p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.action-arrow {
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-card:hover .action-arrow {
    transform: translateX(5px);
    color: #f87171;
}

/* Badges */
.badge {
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pro-badge {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.ultra-badge {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.extreme-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge.sm {
    font-size: 0.65rem;
    padding: 2px 6px;
}

/* Dropdown styling */
.dropdown-wrapper {
    position: relative;
}

.dropdown-trigger {
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.action-arrow.chevron {
    transition: transform 0.3s ease;
}

.dropdown-trigger[aria-expanded="true"] .action-arrow.chevron {
    transform: rotate(180deg);
    color: #f87171;
}

.dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), margin-top 0.4s ease;
    margin-top: 0;
}

.dropdown-menu.open {
    max-height: 250px;
    margin-top: 0.75rem;
}

.dropdown-inner {
    background: rgba(12, 8, 10, 0.85);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    transition: background 0.2s ease;
    gap: 12px;
}

.dropdown-item:hover {
    background: rgba(200, 34, 34, 0.15);
}

.item-icon {
    font-size: 1.1rem;
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.item-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Ecosystem Section */
.ecosystem-section {
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-left: 1rem;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.eco-card {
    background: rgba(14, 10, 12, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.eco-card:hover {
    background: rgba(200, 34, 34, 0.1);
    border-color: rgba(200, 34, 34, 0.3);
    transform: translateY(-3px);
}

.eco-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.eco-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.eco-link-icon {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s, transform 0.2s;
}

.eco-card:hover .eco-link-icon {
    color: #ef4444;
    transform: translate(2px, -2px);
}

.eco-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ef4444;
}

.dot {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.copyright code {
    font-family: 'Fira Code', monospace;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    color: #f87171;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .title {
        font-size: 2.2rem;
    }
    
    .card-content {
        padding: 1.2rem;
    }
    
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
}
