/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #ffffff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Particles Background */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Main Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Profile Section */
.profile {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-in-out;
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 0 20px rgba(0, 128, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 128, 255, 0.8);
}

.avatar-dialog {
    position: absolute;
    top: 50%;
    left: 130px; /* Position to the right of the avatar */
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 15px;
    width: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.avatar-dialog:before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent rgba(255, 255, 255, 0.1) transparent transparent;
}

.avatar-dialog p {
    color: #ffffff;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

.avatar-container:hover .avatar-dialog {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(5px);
}

.profile h1 {
    font-size: 28px;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bio {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 10px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* About Me Section */
.about-me {
    margin-bottom: 40px;
    animation: fadeIn 1.2s ease-in-out;
}

.about-me h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.about-item i {
    font-size: 24px;
    margin-bottom: 15px;
    color: #00c6ff;
    display: block;
}

.about-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #ffffff;
}

.about-item p {
    font-size: 15px;
    color: #cccccc;
    line-height: 1.5;
}

.about-item ul {
    list-style-type: none;
    padding-left: 0;
}

.about-item ul li {
    font-size: 15px;
    color: #cccccc;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.about-item ul li:before {
    content: '•';
    color: #00c6ff;
    position: absolute;
    left: 0;
    font-size: 18px;
}

/* Links Section */
.links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.link-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.link-card i {
    font-size: 24px;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.link-card span {
    font-size: 16px;
    font-weight: 500;
}

/* Social Media Icon Colors */
.fa-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.fa-youtube {
    color: #FF0000;
}

.fa-twitter {
    color: #1DA1F2;
}

.fa-github {
    color: #ffffff;
}

.fa-linkedin {
    color: #0077B5;
}

.fa-envelope {
    color: #D44638;
}

/* Footer */
footer {
    text-align: center;
    color: #888888;
    font-size: 14px;
    margin-top: 20px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 30px 15px;
    }

    .profile-img {
        width: 100px;
        height: 100px;
    }

    .avatar-dialog {
        left: 50%;
        top: 110px;
        transform: translateX(-50%);
        width: 180px;
    }

    .avatar-dialog:before {
        left: 50%;
        top: -10px;
        transform: translateX(-50%);
        border-width: 0 10px 10px 10px;
        border-color: transparent transparent rgba(255, 255, 255, 0.1) transparent;
    }

    .avatar-container:hover .avatar-dialog {
        transform: translateX(-50%) translateY(5px);
    }

    .profile h1 {
        font-size: 24px;
    }

    .bio {
        font-size: 14px;
    }

    /* Responsive About Me Section */
    .about-me h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .about-item {
        padding: 15px;
    }

    .about-item i {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .about-item h3 {
        font-size: 16px;
    }

    .about-item p,
    .about-item ul li {
        font-size: 14px;
    }

    .about-item ul li {
        padding-left: 15px;
        margin-bottom: 6px;
    }

    .about-item ul li:before {
        font-size: 16px;
    }

    .link-card {
        padding: 14px 16px;
    }

    .link-card i {
        font-size: 20px;
    }

    .link-card span {
        font-size: 14px;
    }
}
