* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* === CSS Custom Properties (Color Theme) === */
:root {
    --color-pink: #FF6B9D;
    --color-turquoise: #4ECDC4;
    --color-purple: #9B59B6;
    --color-amber: #FFB347;
    --color-mars-red: #C1440E;
    --color-space-dark: #0f172a;
    --color-space-light: #1e293b;
    --color-text: #ffffff;
}

canvas {
    background: linear-gradient(135deg, var(--color-space-dark) 0%, var(--color-space-light) 100%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* === Content Overlay === */
.content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: var(--color-text);
    max-width: 500px;
    width: 100%;
}

/* === Profile Section === */
.profile {
    margin-bottom: 30px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.profile h1 {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    color: var(--color-text);
}

.job-title {
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    /* Low-poly effect with better contrast */
    text-shadow:
        2px 2px 0 rgba(0, 0, 0, 0.5),
        0 0 20px rgba(78, 205, 196, 0.3),
        -1px -1px 0 var(--color-pink),
        1px -1px 0 var(--color-purple),
        -1px 1px 0 var(--color-amber),
        1px 1px 0 var(--color-turquoise);
    color: var(--color-turquoise);
}

/* === Divider === */
.divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-pink) 25%,
        var(--color-turquoise) 75%,
        transparent 100%
    );
    margin: 25px auto;
    opacity: 0.8;
}

/* === Section Title === */
.section-title {
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    /* Low-poly effect with better contrast */
    text-shadow:
        2px 2px 0 rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 107, 157, 0.3),
        -1px -1px 0 var(--color-pink),
        1px -1px 0 var(--color-purple),
        -1px 1px 0 var(--color-amber),
        1px 1px 0 var(--color-turquoise);
    color: var(--color-pink);
}

/* === Links (Base Styles) === */
.links {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Vertical Links (Social) */
.links-vertical {
    flex-direction: column;
}

/* Horizontal Links (Projects) */
.links-horizontal {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.link-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: var(--color-text);
    text-decoration: none;
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    min-width: 180px;
    justify-content: center;
}

/* For horizontal links, reduce minimum width */
.links-horizontal .link-btn {
    min-width: auto;
    padding: 12px 20px;
    font-size: 0.95rem;
}

/* Hover Effects with Color Transitions */
.link-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        var(--color-pink),
        var(--color-purple),
        var(--color-turquoise)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: inherit;
}

.link-btn:hover::before {
    opacity: 0.2;
}

.link-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-turquoise);
    transform: translateY(-3px);
    box-shadow:
        0 6px 20px rgba(78, 205, 196, 0.3),
        0 0 30px rgba(255, 107, 157, 0.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.link-btn:active {
    transform: translateY(-1px);
}

.link-btn svg {
    flex-shrink: 0;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .content {
        max-width: 350px;
    }

    .profile-pic {
        width: 120px;
        height: 120px;
    }

    .profile h1 {
        font-size: 2rem;
    }

    .job-title {
        font-size: 0.9rem;
    }

    .links {
        gap: 12px;
    }

    .link-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        min-width: 160px;
    }

    .links-horizontal .link-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .divider {
        width: 80px;
        margin: 20px auto;
    }
}

@media (max-width: 480px) {
    .links-horizontal {
        flex-direction: column;
    }

    .links-horizontal .link-btn {
        min-width: 160px;
    }
}
