/* Base styles */
:root {
    --background-start: #000000;
    --background-end: #111111;
    --foreground: #ffffff;
    --primary: #ffffff;
    --blue: #ffffff;
    --indigo: #ffffff;
    --sky: #ffffff;
    --slate: #ffffff;
    --red: #ffffff;
    --white: #ffffff;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.2);
    --radius: 0.5rem;
    --particle-color: rgba(255, 255, 255, 0.1);
    --line-color: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'IBM Plex Mono', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(to bottom, var(--background-start), var(--background-end));
    color: var(--foreground);
}

/* Cloud component */
.clouds-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--background-start), var(--background-end));
}

.cloud {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
    filter: blur(8px);
}

.cloud::before {
    content: "";
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    filter: blur(8px);
}

.cloud::after {
    content: "";
    position: absolute;
    top: 33%;
    left: 33%;
    width: 33%;
    height: 33%;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    filter: blur(8px);
}

.cloud-1 {
    top: 15%;
    left: 10%;
    width: 350px;
    height: 260px;
    animation: float-1 20s ease-in-out infinite;
}

.cloud-2 {
    top: 45%;
    left: 70%;
    width: 400px;
    height: 300px;
    animation: float-2 25s ease-in-out infinite;
}

.cloud-3 {
    top: 75%;
    left: 20%;
    width: 380px;
    height: 280px;
    animation: float-3 22s ease-in-out infinite;
}

.cloud-4 {
    top: 30%;
    left: 50%;
    width: 420px;
    height: 320px;
    animation: float-4 18s ease-in-out infinite;
}

@keyframes float-1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(40px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-30px, 40px) scale(0.95);
    }
    75% {
        transform: translate(-40px, -40px) scale(1.02);
    }
}

@keyframes float-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-50px, 30px) scale(0.98);
    }
    50% {
        transform: translate(30px, -40px) scale(1.03);
    }
    75% {
        transform: translate(40px, 40px) scale(0.97);
    }
}

@keyframes float-3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(35px, 35px) scale(1.01);
    }
    50% {
        transform: translate(-35px, -35px) scale(0.99);
    }
    75% {
        transform: translate(-35px, 35px) scale(1.02);
    }
}

@keyframes float-4 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-40px, -30px) scale(0.98);
    }
    50% {
        transform: translate(40px, 30px) scale(1.02);
    }
    75% {
        transform: translate(30px, -40px) scale(0.99);
    }
}

/* Tech network background */
.network-line {
    position: absolute;
    background: var(--line-color);
    height: 1px;
    width: 100px;
    transform-origin: left center;
}

.network-line::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--line-color);
    border-radius: 50%;
    top: -1.5px;
    left: 0;
    animation: pulse 2s ease-in-out infinite;
}

.network-line::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--line-color);
    border-radius: 50%;
    top: -1.5px;
    right: 0;
    animation: pulse 2s ease-in-out infinite 1s;
}

.line-1 {
    top: 20%;
    left: 10%;
    transform: rotate(45deg);
    animation: move-line-1 8s ease-in-out infinite;
}

.line-2 {
    top: 60%;
    left: 80%;
    transform: rotate(-45deg);
    animation: move-line-2 10s ease-in-out infinite;
}

.line-3 {
    top: 80%;
    left: 30%;
    transform: rotate(30deg);
    animation: move-line-3 12s ease-in-out infinite;
}

.line-4 {
    top: 40%;
    left: 50%;
    transform: rotate(-30deg);
    animation: move-line-4 9s ease-in-out infinite;
}

.line-5 {
    top: 70%;
    left: 20%;
    transform: rotate(60deg);
    animation: move-line-5 11s ease-in-out infinite;
}

.line-6 {
    top: 30%;
    left: 70%;
    transform: rotate(-60deg);
    animation: move-line-6 7s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

@keyframes move-line-1 {
    0%, 100% {
        transform: rotate(45deg) translateX(0);
    }
    50% {
        transform: rotate(45deg) translateX(50px);
    }
}

@keyframes move-line-2 {
    0%, 100% {
        transform: rotate(-45deg) translateX(0);
    }
    50% {
        transform: rotate(-45deg) translateX(-50px);
    }
}

@keyframes move-line-3 {
    0%, 100% {
        transform: rotate(30deg) translateX(0);
    }
    50% {
        transform: rotate(30deg) translateX(30px);
    }
}

@keyframes move-line-4 {
    0%, 100% {
        transform: rotate(-30deg) translateX(0);
    }
    50% {
        transform: rotate(-30deg) translateX(-30px);
    }
}

@keyframes move-line-5 {
    0%, 100% {
        transform: rotate(60deg) translateX(0);
    }
    50% {
        transform: rotate(60deg) translateX(40px);
    }
}

@keyframes move-line-6 {
    0%, 100% {
        transform: rotate(-60deg) translateX(0);
    }
    50% {
        transform: rotate(-60deg) translateX(-40px);
    }
}

/* Content layout */
.content-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.content-wrapper {
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
}

/* Profile section */
.profile-section {
    margin-bottom: 2rem;
    text-align: center;
}

.profile-avatar {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

.profile-avatar:hover {
    animation: bounce 2s ease-in-out infinite;
}

.profile-emoji {
    font-size: 3rem;
    line-height: 1;
    animation: bounce 2s ease-in-out infinite;
}

.profile-name {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.profile-description {
    color: #a0a0a0;
    animation: fadeIn 1s ease-in;
}

.profile-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    animation: glow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    }
    to {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3))
                drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
    }
}

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

/* Social links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: var(--foreground);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.icon-container {
    padding: 0.5rem;
    border-radius: 50%;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

.icon-container svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #000000;
}

.blue, .indigo, .sky, .slate, .red, .green, .purple {
    background-color: #ffffff;
}

.link-name {
    font-weight: 500;
    flex-grow: 1;
}

.email-link {
    text-decoration: none;
    color: var(--foreground);
}

/* Copy button */
.copy-button {
    padding: 0.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-button:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.1);
}

.copy-button svg {
    width: 1rem;
    height: 1rem;
}

#checkIcon, #mobileCheckIcon {
    color: #22c55e;
    animation: checkmark 0.5s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile menu */
.mobile-menu-button {
    display: none;
}

.mobile-menu {
    position: relative;
    background-color: transparent;
    backdrop-filter: none;
    opacity: 1;
    pointer-events: auto;
    display: none;
}

/* Media queries */
@media (max-width: 768px) {
    .desktop-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .mobile-links {
        width: 100%;
        max-width: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .cloud-1, .cloud-2 {
        display: block;
    }

    .cloud-3, .cloud-4 {
        display: none;
    }

    .cloud-1 {
        width: 250px;
        height: 180px;
        top: 20%;
        left: 5%;
    }

    .cloud-2 {
        width: 280px;
        height: 210px;
        top: 60%;
        left: 60%;
    }
}