:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --accent-color: #38bdf8;
    --secondary-color: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
    --highlight-bg: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    --hover-bg: rgba(56, 189, 248, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
    overflow: hidden;
}

.background-animation::before,
.background-animation::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floating 10s infinite ease-in-out alternate;
}

.background-animation::before {
    background: #0ea5e9;
    top: -100px;
    left: -100px;
}

.background-animation::after {
    background: #6366f1;
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes floating {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Profile Section */
.profile-section {
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
}

.profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #1e293b;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.profile-bio {
    color: var(--secondary-color);
    font-size: 1rem;
    line-height: 1.5;
}

/* Links Section */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.bio-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.bio-link:hover {
    transform: translateY(-3px) scale(1.02);
    background: var(--hover-bg);
    border-color: var(--accent-color);
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.2);
}

.bio-link.highlight {
    background: var(--highlight-bg);
    border: none;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.bio-link.highlight:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
    filter: brightness(1.1);
}

.icon-box {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.bio-link:hover .icon-box {
    transform: rotate(10deg);
}

.bio-link span {
    flex: 1;
    font-weight: 500;
    font-size: 1.05rem;
}

.arrow-icon {
    font-size: 0.9rem;
    opacity: 0.6;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.bio-link:hover .arrow-icon {
    transform: translateX(4px);
    opacity: 1;
}

/* Footer */
.footer {
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-top: auto;
    animation: fadeIn 1s ease-out 0.5s backwards;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (min-width: 640px) {
    .container {
        padding: 3rem;
    }

    .profile-image {
        width: 140px;
        height: 140px;
    }

    .profile-name {
        font-size: 2.25rem;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #1e293b;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.close-modal {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.modal-form .form-group {
    margin-bottom: 1rem;
}

.modal-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 0.4rem;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.btn-submit-modal {
    width: 100%;
    padding: 1rem;
    background: var(--highlight-bg);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: filter 0.3s;
}

.btn-submit-modal:hover {
    filter: brightness(1.1);
}

.bio-link.modal-trigger {
    cursor: pointer;
}