:root {
    --bg-primary: #0a0a0f;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent: #a855f7;
    --accent-light: #c084fc;
    --status-active: #22c55e;
    --status-paused: #f59e0b;
    --status-abandoned: #ef4444;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(168, 85, 247, 0.2), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(168, 85, 247, 0.1), transparent);
    pointer-events: none;
    z-index: 0;
}

/* Landing (index) */
.landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.landing-content {
    text-align: center;
    animation: fadeIn 1s ease;
}

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

.avatar {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 40px;
}

.avatar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px dashed rgba(168, 85, 247, 0.6);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 
        0 0 70px rgba(168, 85, 247, 0.35),
        0 40px 100px rgba(0, 0, 0, 0.4);
}

.name {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #fff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro {
    margin-bottom: 28px;
}

.intro p {
    font-size: 22px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.intro .highlight {
    background: rgba(168, 85, 247, 0.2);
    color: var(--text-primary);
}

.about {
    margin-bottom: 48px;
}

.about p {
    font-size: 16px;
    color: var(--text-muted, #808090);
    line-height: 1.7;
    max-width: 500px;
}

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

.name {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro {
    margin-bottom: 20px;
}

.intro p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.intro .highlight {
    background: rgba(168, 85, 247, 0.2);
    color: var(--text-primary);
}

.about p {
    font-size: 14px;
    color: var(--text-muted, #808090);
    line-height: 1.6;
    max-width: 400px;
}

.links {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.link-card:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-4px);
}

.link-card svg {
    color: var(--text-secondary);
}

/* Pages */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 60px 24px;
}

.back {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 48px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back:hover {
    color: var(--text-primary);
}

.back svg {
    transition: transform 0.3s ease;
}

.back:hover svg {
    transform: translateX(-4px);
}

.page-content {
    width: 100%;
    max-width: 600px;
    animation: fadeIn 0.8s ease;
}

.section-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 40px;
}

/* Projects */
.projects-section {
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.section-icon {
    opacity: 0.8;
}

.section-icon.text-teal { color: #2dd4bf; }
.section-icon.text-sky { color: #38bdf8; }
.section-icon.text-gray { color: #6b7280; }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    background: rgba(168, 85, 247, 0.06);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-logo {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(168, 85, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-placeholder {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-light);
}

.project-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.project-short {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--accent-light);
}

.project-short svg {
    color: var(--accent-light);
}

.project-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    flex-grow: 1;
}

.project-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.project-links a {
    font-size: 13px;
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-links a:hover {
    color: var(--text-primary);
}

.project-role {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    padding-top: 12px;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
}

.project-role svg {
    color: var(--accent-light);
}

/* Contact Page */
.contact-page {
    justify-content: flex-start;
    padding-top: 120px;
}

.contact-hero {
    margin-bottom: 48px;
}

.contact-intro {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.contact-heading {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 700;
    line-height: 1.2;
}

.contact-cards {
    width: 100%;
}

.contact-main-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    margin-bottom: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.contact-main-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 20px 40px rgba(168, 85, 247, 0.15);
}

.contact-icon-wrapper {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-main-card:hover .contact-icon-wrapper {
    background: rgba(168, 85, 247, 0.15);
}

.contact-icon-wrapper svg {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.contact-main-card:hover .contact-icon-wrapper svg {
    color: var(--accent-light);
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.contact-handle {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.contact-arrow {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.contact-main-card:hover .contact-arrow {
    transform: translateX(8px);
    color: var(--accent-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.contact-mini-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-mini-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 10px 30px rgba(168, 85, 247, 0.15);
    transform: translateY(-4px);
}

.contact-mini-card svg {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.contact-mini-card:hover svg {
    color: var(--accent-light);
}

.contact-mini-card span {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

@media (max-width: 600px) {
    .avatar {
        width: 160px;
        height: 160px;
    }
    
    .name {
        font-size: 48px;
    }
    
    .intro p {
        font-size: 18px;
    }
    
    .tagline {
        font-size: 16px;
        margin-bottom: 36px;
    }
    
    .links {
        flex-direction: column;
        padding: 0 40px;
    }
    
    .link-card {
        justify-content: center;
    }

    .back {
        margin-bottom: 32px;
    }

    .project-card {
        padding: 20px;
    }

    .project-logo {
        width: 48px;
        height: 48px;
    }

    .project-name {
        font-size: 18px;
    }

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

    .contact-page {
        padding-top: 100px;
    }

    .contact-main-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .contact-icon-wrapper {
        width: 64px;
        height: 64px;
    }

    .contact-handle {
        font-size: 24px;
    }

    .contact-arrow {
        display: none;
    }

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