:root {
    --text-primary: #ffffff;
    --text-dimmed: rgba(255, 255, 255, 0.4);
}

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

body {
    background-color: #000;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.mesh-bg {
    position: fixed;
    inset: -100px;
    z-index: -3;
    background:
        radial-gradient(circle at 20% 30%, #0a0a0a 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, #050505 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, #030303 0%, transparent 50%);
    background-color: #000;
    filter: blur(80px);
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.12;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Glass base — no transform transition here, JS handles tilt only on .tilt-card */
.glass-card,
.glass-pill {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover,
.glass-pill:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.profile {
    padding: 3.5rem 2rem;
    border-radius: 4px;
    text-align: center;
}

.title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    margin-bottom: 0.25rem;
    color: #fff;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-dimmed);
    font-weight: 400;
}

.data-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.glass-pill {
    padding: 1.25rem 1.75rem;
    border-radius: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.skills-block {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}

.skill-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.label {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
}

.value {
    color: rgba(255, 255, 255, 0.6);
}

.dimmed {
    color: rgba(255, 255, 255, 0.25);
}

/* Contact row — single full-width button */
.contact-btn {
    display: flex;
    width: 100%;
    margin-top: 0.25rem;
}

/* Tilt-enabled contact buttons */
.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.25rem 1.5rem;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    /* Smooth return from tilt */
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.contact-btn .icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.contact-btn:hover .icon {
    opacity: 1;
}

@media (max-width: 500px) {
    .title {
        font-size: 2.8rem;
    }

    .glass-pill {
        padding: 1.25rem;
    }

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