/* Base animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

@keyframes glow {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(118, 75, 162, 0.6);
    }
    100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
}

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

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

a {
    text-decoration: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
        "Helvetica Neue", sans-serif;
    background: linear-gradient(-45deg, #667eea, #764ba2, #6B8DD6, #8E37D7);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Profile section */
.profile {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.profile-picture-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(45deg, #667eea, #764ba2, #6B8DD6, #8E37D7);
    background-size: 300% 300%;
    animation: gradientBG 3s ease infinite;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.profile-picture {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.profile h1 {
    color: white;
    margin-bottom: 0.8rem;
    font-size: 2.2rem;
    letter-spacing: 1px;
}

.glowing-text {
    animation: glow 3s ease-in-out infinite;
}

.sparkle {
    display: inline-block;
    animation: sparkle 2s ease-in-out infinite;
}

.bio {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.bio-link {
    color: #a5b4fc;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.bio-link:hover {
    color: white;
}

.bio-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, transparent, #a5b4fc, transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.bio-link:hover::after {
    transform: scaleX(1);
}

/* Sections */
.sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.8rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.section:nth-child(1) {
    animation-delay: 0.3s;
}

.section:nth-child(2) {
    animation-delay: 0.6s;
}

.section:nth-child(3) {
    animation-delay: 0.9s;
}

.section-title {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.section-title i {
    font-size: 1.1rem;
}

.section-title i.pulse {
    animation: pulse 2s infinite;
    color: #ff6b6b;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.link-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.link-card:hover {
    transform: translateY(-3px) scale(1.01);
    background: white;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.link-card:hover::before {
    opacity: 1;
}

.link-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.link-content i {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
    color: #764ba2;
}

.link-arrow {
    color: #aaa;
    transition: transform 0.3s ease, color 0.3s ease;
}

.link-card:hover .link-arrow {
    transform: translateX(3px);
    color: #764ba2;
}

/* Footer */
footer {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    animation: fadeIn 0.6s ease forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

.mt-8 {
    margin-top: 2rem;
}

.text-center {
    text-align: center;
}

.text-white\/80 {
    color: rgba(255, 255, 255, 0.8);
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
}

.modal.hidden {
    display: none;
    opacity: 0;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 90%;
    width: 400px;
    text-align: center;
    animation: modalSlideIn 0.4s ease;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal p {
    color: #666;
    margin-bottom: 1.8rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-button {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.modal-button.continue {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.modal-button.continue:hover {
    background: linear-gradient(45deg, #5a71d6, #6a439a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.3);
}

.modal-button.cancel {
    background: #f1f1f1;
    color: #333;
}

.modal-button.cancel:hover {
    background: #e1e1e1;
    transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 768px) {
    body {
        padding: 1.5rem 1rem;
    }
    
    .container {
        padding: 15px;
    }
    
    .profile-picture-container {
        width: 130px;
        height: 130px;
    }
    
    .profile h1 {
        font-size: 1.8rem;
    }
    
    .bio {
        font-size: 1rem;
    }
    
    .section {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem;
    }

    .container {
        padding: 10px;
    }

    .profile-picture-container {
        width: 110px;
        height: 110px;
    }
    
    .profile h1 {
        font-size: 1.6rem;
    }

    .section {
        padding: 1.2rem;
    }
    
    .link-card {
        padding: 0.9rem 1.2rem;
    }
    
    .modal-content {
        padding: 1.8rem;
    }
}
