/* Monotone with RED-inspired accent */

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

:root {
    --bg: #ffffff;
    --text: #0a0a0a;
    --text-light: #666666;
    --border: #e0e0e0;
    --accent: #000000;
    --red: #ED1C24;
}

body {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-weight: 300;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-section {
    margin-bottom: 3rem;
    text-align: center;
}

.profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid var(--border);
    border-radius: 50%;
    z-index: -1;
}

.red-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: var(--red);
    border-radius: 50%;
    z-index: 10;
    border: 2px solid var(--bg);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulseRed 2s ease-in-out infinite;
}

@keyframes pulseRed {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(237, 28, 36, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 4px rgba(237, 28, 36, 0);
    }
}

.red-dot:hover {
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(237, 28, 36, 0.8);
    animation: none;
}

.social-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
    z-index: 5;
}

.menu-item {
    position: absolute;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    text-decoration: none;
    opacity: 0;
    transform: scale(0) rotate(180deg);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    font-size: 1.2rem;
    animation: float 3s ease-in-out infinite;
    animation-delay: calc(var(--delay) * 0.2s);
}

.menu-item svg {
    width: 20px;
    height: 20px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(237, 28, 36, 0);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(237, 28, 36, 0);
    }
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.social-menu.open .menu-item {
    pointer-events: all;
}

.menu-item i {
    transition: color 0.2s;
}

.menu-item:hover {
    border-color: var(--red);
    color: var(--red);
    animation: bounce 0.6s ease !important;
    z-index: 6;
}

.menu-item:active {
    animation: bounce 0.6s ease !important;
}

.menu-item:hover i,
.menu-item:hover svg {
    color: var(--red);
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1.15) translateY(0);
    }
    50% {
        transform: scale(1.25) translateY(-5px);
    }
}

.social-menu.open .menu-item {
    animation: float 3s ease-in-out infinite, fadeInScale 0.5s ease forwards;
    animation-fill-mode: both;
}

@keyframes fadeInScale {
    to {
        opacity: 1;
    }
}

/* Position menu items in a circle */
.menu-item[data-icon="github"] {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%) scale(0) rotate(180deg);
}

.menu-item[data-icon="linkedin"] {
    top: 15%;
    right: 5%;
    transform: translate(50%, -50%) scale(0) rotate(180deg);
}

.menu-item[data-icon="email"] {
    bottom: 15%;
    right: 5%;
    transform: translate(50%, 50%) scale(0) rotate(180deg);
}

.menu-item[data-icon="credly"] {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%) scale(0) rotate(180deg);
}

.menu-item[data-icon="x"] {
    bottom: 15%;
    left: 5%;
    transform: translate(-50%, 50%) scale(0) rotate(180deg);
}

.menu-item[data-icon="instagram"] {
    top: 15%;
    left: 5%;
    transform: translate(-50%, -50%) scale(0) rotate(180deg);
}

.social-menu.open .menu-item[data-icon="github"] {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    --delay: 0;
}

.social-menu.open .menu-item[data-icon="linkedin"] {
    transform: translate(50%, -50%) scale(1) rotate(0deg);
    --delay: 1;
}

.social-menu.open .menu-item[data-icon="email"] {
    transform: translate(50%, 50%) scale(1) rotate(0deg);
    --delay: 2;
}

.social-menu.open .menu-item[data-icon="credly"] {
    transform: translate(-50%, 50%) scale(1) rotate(0deg);
    --delay: 3;
}

.social-menu.open .menu-item[data-icon="x"] {
    transform: translate(-50%, 50%) scale(1) rotate(0deg);
    --delay: 4;
}

.social-menu.open .menu-item[data-icon="instagram"] {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    --delay: 5;
}


.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--accent);
    display: block;
}

.content {
    text-align: center;
}

.name {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    text-transform: lowercase;
    font-family: 'JetBrains Mono', monospace;
}

.tagline {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: lowercase;
    font-weight: 300;
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
}

.bio {
    max-width: 480px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.bio p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text);
    font-weight: 300;
    letter-spacing: -0.005em;
}

.contact {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.email {
    font-size: 0.9rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 300;
    position: relative;
    display: inline-block;
    transition: all 0.2s;
}

.email::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--red);
    transition: width 0.3s ease;
}

.email:hover::after {
    width: 100%;
}

.socials {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 300;
}

.socials a {
    color: var(--text);
    text-decoration: none;
    text-transform: lowercase;
    position: relative;
    transition: all 0.2s;
}

.socials a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--red);
    transition: width 0.3s ease;
}

.socials a:hover {
    color: var(--text);
}

.socials a:hover::after {
    width: 100%;
}

.socials .separator {
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 3rem 1.5rem;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .red-dot {
        width: 10px;
        height: 10px;
        top: 3px;
        right: 3px;
    }

    .social-menu {
        width: 160px;
        height: 160px;
    }

    .menu-item {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .name {
        font-size: 1.75rem;
    }

    .tagline {
        font-size: 0.8rem;
    }

    .bio {
        padding-top: 1.5rem;
    }

    .bio p {
        font-size: 0.85rem;
    }

    .contact {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .email {
        font-size: 0.85rem;
    }

    .socials {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.5rem;
    }

    .profile-image {
        width: 90px;
        height: 90px;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0a0a0a;
        --text: #f5f5f5;
        --text-light: #888888;
        --border: #2a2a2a;
        --accent: #ffffff;
    }
    
    .red-dot {
        border-color: var(--bg);
    }
}
