:root {
    --cyan: #00C2FF;
    --black: #000000;
    --magenta: #FF4FD8;
    --purple: #7C4DFF;
    --green: #25D366;
    --yellow: #FFD600;
    --white: #FFFFFF;
    --gray-muted: #666666;
    
    --bg-page: #FFFFFF;
    --bg-card: #FFFFFF;
    
    --border-width: 3px;
    --border-color: #000000;
    
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --font-primary: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Geist Mono', 'Courier New', monospace;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-page);
    color: var(--black);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Interactive Background */
.interactive-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    opacity: 0.15;
    color: var(--black);
    pointer-events: none;
    user-select: none;
    will-change: transform;
}

/* Loader */
.loader {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-text {
    font-size: 2rem;
    font-weight: 900;
    color: var(--black);
    letter-spacing: -0.05em;
    animation: pulse 2s infinite;
}

.loader-bar {
    width: 200px;
    height: 16px;
    background: var(--white);
    border: var(--border-width) solid var(--black);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: 2px 2px 0px 0px var(--black);
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--cyan);
    animation: progress 1.4s ease-in-out forwards;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

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

/* Layout */
.app {
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    padding: 40px;
    position: relative;
    z-index: 1;
    transition: filter 0.3s ease;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding-bottom: 80px;
}

/* Profile Section */
.profile {
    text-align: center;
    margin-top: 40px;
    animation: fadeInDown 0.8s ease-out;
}

.avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    border: var(--border-width) solid var(--black);
    box-shadow: 6px 6px 0px 0px var(--black);
    position: relative;
    transform: translateZ(0);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.name {
    font-size: 60px;
    font-weight: 900;
    line-height: 60px;
    margin-bottom: 16px;
    color: var(--black);
}

.bio {
    color: var(--gray-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    max-width: 400px;
    margin: 0 auto;
}

/* Brutalist Filter Tabs (Navbar) */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: -20px auto 10px;
    padding: 6px;
    background: var(--white);
    border: var(--border-width) solid var(--black);
    border-radius: var(--radius-full);
    box-shadow: 6px 6px 0px 0px var(--black);
    width: fit-content;
    animation: fadeInDown 0.8s ease-out 0.1s backwards;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 10px 22px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}



.tab-btn.active {
    background: var(--cyan);
    color: var(--black);
    font-weight: 900;
    border: 2px solid var(--black);
    box-shadow: 2px 2px 0px 0px var(--black);
    padding: 8px 20px;
}

/* Sections */
.section {
    display: flex;
    flex-direction: column;
    gap: 32px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.section.hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(15px);
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    line-height: 40px;
    color: var(--black);
    text-align: left;
    align-self: flex-start;
    position: relative;
    padding-bottom: 6px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--cyan);
    border: 1px solid var(--black);
}

/* Links Grid */
.links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 48px;
    justify-content: center;
}

/* Feature Card (Link Button) */
.link-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border: var(--border-width) solid var(--black);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--black);
    box-shadow: 6px 6px 0px 0px var(--black);
    min-height: 100px;
}

.link-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px 0px var(--black), 0px 0px 10px 1px var(--shadow-color);
}

.link-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px 0px var(--black), 0px 0px 5px 0px var(--shadow-color);
}

.col-span-2 {
    grid-column: span 2;
}

.link-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cyan);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    color: var(--white);
    border: 2px solid var(--black);
}

/* Icon color utility classes - 14 unique, non-repeating colors */
.bg-icon-1 { background: #FF8A80 !important; }
.bg-icon-2 { background: #FF4FD8 !important; }
.bg-icon-3 { background: #7C4DFF !important; }
.bg-icon-4 { background: #03A9F4 !important; }
.bg-icon-5 { background: #FFD600 !important; }
.bg-icon-6 { background: #FF5722 !important; }
.bg-icon-7 { background: #90A4AE !important; }
.bg-icon-8 { background: #A1887F !important; }
.bg-icon-9 { background: #00E676 !important; }
.bg-icon-10 { background: #FFE082 !important; }
.bg-icon-11 { background: #FF1744 !important; }
.bg-icon-12 { background: #AEEA00 !important; }
.bg-icon-13 { background: #3F51B5 !important; }
.bg-icon-14 { background: #D500F9 !important; }

/* Dynamic Accent Colors for Hover Shadows */
.link-btn:has(.bg-icon-1) { --shadow-color: #FF8A80; }
.link-btn:has(.bg-icon-2) { --shadow-color: #FF4FD8; }
.link-btn:has(.bg-icon-3) { --shadow-color: #7C4DFF; }
.link-btn:has(.bg-icon-4) { --shadow-color: #03A9F4; }
.link-btn:has(.bg-icon-5) { --shadow-color: #FFD600; }
.link-btn:has(.bg-icon-6) { --shadow-color: #FF5722; }
.link-btn:has(.bg-icon-7) { --shadow-color: #90A4AE; }
.link-btn:has(.bg-icon-8) { --shadow-color: #A1887F; }
.link-btn:has(.bg-icon-9) { --shadow-color: #00E676; }
.link-btn:has(.bg-icon-10) { --shadow-color: #FFE082; }
.link-btn:has(.bg-icon-11) { --shadow-color: #FF1744; }
.link-btn:has(.bg-icon-12) { --shadow-color: #AEEA00; }
.link-btn:has(.bg-icon-13) { --shadow-color: #3F51B5; }
.link-btn:has(.bg-icon-14) { --shadow-color: #D500F9; }

.link-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5px;
}

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

.link-label {
    font-weight: 900;
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 4px;
    color: var(--black);
}

.link-desc {
    color: var(--gray-muted);
    font-size: 14px;
    line-height: 21px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-arrow {
    color: var(--black);
    opacity: 1;
    transition: all 0.25s ease;
}

.link-btn:hover .link-arrow {
    transform: translateX(4px);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 40px;
    color: var(--black);
    font-size: 14px;
    font-weight: 900;
    border-top: var(--border-width) solid var(--black);
}

.footer-brand {
    opacity: 1;
}

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

/* Typing Animation */
.typing-text {
    display: inline;
}

.cursor {
    display: inline-block;
    color: var(--cyan);
    font-weight: 900;
    animation: blink 1s infinite;
}

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

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

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

/* Responsive */
@media (max-width: 1023px) {
    .app {
        padding: 24px;
    }
    .content {
        gap: 56px;
        padding-bottom: 56px;
    }
    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 599px) {
    .app {
        padding: 16px;
    }
    .content {
        gap: 40px;
        padding-bottom: 40px;
    }
    .name {
        font-size: 40px;
        line-height: 44px;
    }
    .section-title {
        font-size: 28px;
    }
    .links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .col-span-2 {
        grid-column: span 1;
    }
    .link-btn {
        min-height: 80px;
        padding: 16px;
    }
    
    .filter-tabs {
        width: 100%;
        justify-content: space-around;
        border-radius: var(--radius-md);
        box-shadow: 4px 4px 0px 0px var(--black);
    }
    .tab-btn {
        padding: 8px 14px;
        font-size: 13px;
        flex: 1;
        text-align: center;
    }
    .tab-btn.active {
        padding: 6px 12px;
    }
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content (Brutalist Box) */
.modal-content {
    background: var(--white);
    border: var(--border-width) solid var(--black);
    border-radius: var(--radius-lg);
    box-shadow: 10px 10px 0px 0px var(--black);
    max-width: 420px;
    width: 100%;
    padding: 32px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

body:has(.modal-overlay.active) .app {
    filter: blur(8px);
    pointer-events: none;
}

.modal-title {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--black);
}

.modal-message {
    color: var(--gray-muted);
    font-size: 15px;
    line-height: 22px;
    margin-bottom: 24px;
}

.modal-btn {
    width: 100%;
    background: var(--cyan);
    color: var(--black);
    border: var(--border-width) solid var(--black);
    border-radius: var(--radius-md);
    padding: 14px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 4px 4px 0px 0px var(--black);
    transition: all 0.2s ease;
}

.modal-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px 0px var(--black);
}

.modal-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px 0px var(--black);
}