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

body {
    background: #000;
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: hidden;
}

.container {
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.intro {
    text-align: center;
    max-width: 800px;
    animation: fadeIn 1s ease-out;
    flex-shrink: 0;
}

.name {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    color: #ccc;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.tech-item {
    position: relative;
    padding: 0.5rem 1rem;
    border: 1px solid #333;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    font-weight: 400;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tech-item:hover {
    border-color: #555;
    background: rgba(255, 255, 255, 0.08);
}

.donut-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease-out 0.5s both;
}

#a {
    background: #000;
    width: min(450px, 80vw);
    height: min(450px, 80vw, 50vh);
    object-fit: contain;
}

.links {
    display: flex;
    gap: 1rem;
    animation: fadeIn 1.5s ease-out;
    flex-wrap: nowrap;
    justify-content: center;
    flex-shrink: 0;
    width: 100%;
    max-width: 700px;
    align-items: center;
    overflow-x: auto;
}

.link-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 100px;
    justify-content: center;
    height: 48px;
    box-sizing: border-box;
    flex-shrink: 0;
    white-space: nowrap;
    margin-top: 1rem;
}

.link-item:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

.link-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

.link-text {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    line-height: 1;
}

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

@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
        gap: 0.75rem;
    }

    .links {
        gap: 0.75rem;
        max-width: 100%;
    }

    .link-item {
        flex: 1;
        min-width: 80px;
        padding: 0.6rem 0.5rem;
    }

    .tech-stack {
        gap: 0.4rem;
    }

    .tech-item {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    #a {
        width: min(350px, 75vw) !important;
        height: min(350px, 75vw, 45vh) !important;
    }

    .name {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .title {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
    }
}

@media (max-width: 480px) {
    .container {
        gap: 0.5rem;
        padding: 0.25rem;
    }

    .name {
        font-size: clamp(1.3rem, 7vw, 2rem);
        margin-bottom: 0.25rem;
    }

    .title {
        font-size: clamp(1rem, 5vw, 1.5rem);
        margin-bottom: 1rem;
    }

    #a {
        width: min(280px, 85vw) !important;
        height: min(280px, 85vw, 40vh) !important;
    }

    .links {
        gap: 0.5rem;
    }

    .link-item {
        min-width: 70px;
        padding: 0.5rem 0.4rem;
    }

    .link-text {
        font-size: 0.65rem;
    }

    .link-icon {
        width: 14px;
        height: 14px;
    }

    .tech-item {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-height: 600px) {
    .container {
        gap: 0.25rem;
        justify-content: center;
    }

    #a {
        height: min(250px, 35vh) !important;
        width: min(250px, 35vh) !important;
    }

    .name {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        margin-bottom: 0.25rem;
    }

    .title {
        font-size: clamp(1rem, 3vw, 1.4rem);
        margin-bottom: 0.5rem;
    }

    .tech-stack {
        margin-top: 0.25rem;
    }
}

@media (min-width: 1200px) {
    .container {
        gap: 1.5rem;
    }

    #a {
        width: 450px !important;
        height: 450px !important;
    }
}

::selection {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

::-moz-selection {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
