@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --text-color-light: #2c3e50;
    --secondary-text-light: #7f8c8d;
    --link-text-light: #34495e;
    --card-bg-dark: #1e1e1e; 
    --text-color-dark: #f5f5f5;
    --secondary-text-dark: #b0b0b0;
    --link-text-dark: #85c1e9;
    --primary-gradient: linear-gradient(45deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    --primary-gradient-hover: linear-gradient(45deg, var(--gradient-end), var(--gradient-mid), var(--gradient-start));
    --bg-color: var(--bg-color-light); 
    --card-bg: var(--card-bg-light);   
    --text-color: var(--text-color-light);
    --secondary-text: var(--secondary-text-light);
    --link-text-color: var(--link-text-light);
}

[data-theme="dark"] {
    --bg-color: var(--bg-color-dark);
    --card-bg: var(--card-bg-dark); 
    --text-color: var(--text-color-dark);
    --secondary-text: var(--secondary-text-dark);
    --link-text-color: var(--link-text-dark);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-color); 
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    min-height: 100vh;
    /*padding: 2rem 1rem;*/
    transition: background-color 0.5s, color 0.5s;
    cursor: none; 
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(26, 82, 118, 0.05) 100%);
    z-index: -1;
    opacity: 0.5;
}

.container { 
    max-width: 680px; 
    width: 100%; 
    text-align: center;
    padding: 1rem 0rem 0rem 0rem; 
}

#cursor-dot, #cursor-outline {
    pointer-events: none; 
    position: fixed;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    opacity: 1; 
    transition: opacity 0.3s, transform 0.2s, background-color 0.3s, border-color 0.3s; 
    transform: translate(-50%, -50%);
    z-index: 9999;
}
#cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--cursor-dot-color); 
}
#cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--cursor-outline-color); 
    opacity: 0.6; 
}
body:hover #cursor-dot, body:hover #cursor-outline { opacity: 1; }
.cursor-grow { transform: translate(-50%, -50%) scale(1.5); }
.cursor-hide { opacity: 0; }

.theme-toggle-button {
    position: absolute; 
    top: 20px; 
    right: 20px;
    background-color: var(--card-bg); 
    color: var(--text-color);
    border: none; 
    border-radius: 50%; 
    width: 45px; 
    height: 45px;
    font-size: 1.2rem; 
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
    display: flex; 
    justify-content: center; 
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.theme-toggle-button:hover { 
    transform: scale(1.1); 
    box-shadow: 0 6px 15px rgba(0,0,0,0.2); 
}
.theme-toggle-button .fa-sun, 
.theme-toggle-button .fa-moon { 
    position: absolute; 
    transition: opacity 0.3s, transform 0.3s; 
}
[data-theme="light"] .theme-toggle-button .fa-moon { 
    opacity: 0; 
    transform: rotate(45deg); 
}
[data-theme="dark"] .theme-toggle-button .fa-sun { 
    opacity: 0; 
    transform: rotate(-45deg); 
}

.profile-header { 
    margin-bottom: 2rem; 
}
.profile-picture {
    width: 200px;
    height: 200px;
    border-radius: 50%; 
    object-fit: cover;
    border: 7px solid transparent; 
    background-origin: border-box;
    background-clip: content-box, border-box;
    background-image: linear-gradient(var(--card-bg), var(--card-bg)), var(--primary-gradient); 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: background-image 0.5s ease, box-shadow 0.3s ease, transform 0.3s ease, border-width 0.3s ease;
}
.profile-picture:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background-image: linear-gradient(var(--card-bg), var(--card-bg)), var(--primary-gradient-hover); 
    border-width: 7px; 
}

.profile-header h1 {
    font-size: 2.5rem;
    font-weight: 700; 
    margin-bottom: 0.5rem; 
    min-height: 48px; 
    color: var(--text-color);
    transition: color 0.3s ease;
}
#typing-name::after {
    content: '|';
    animation: blink 0.7s infinite;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
@keyframes blink { 
    50% { opacity: 0; } 
}
.profile-header p { 
    font-size: 1.2rem; 
    color: var(--text-color); 
}

.action-buttons { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 1rem; 
    margin-bottom: 2rem; 
}
.action-buttons button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem; 
    border-radius: 25px; 
    font-size: 1rem; 
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease; 
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.action-buttons button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient-hover);
    z-index: -1;
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: left;
}
.action-buttons button:hover::before {
    transform: scaleX(1);
}
.action-buttons button:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 8px 18px rgba(0,0,0,0.25); 
}
.action-buttons i { 
    margin-right: 0.5rem; 
}

.links-section { 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
}
.link-box {
    background-color: var(--card-bg);
    display: flex; 
    align-items: center; 
    padding: 0.8rem 1rem;
    border-radius: 12px; 
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 5px solid var(--link-color, var(--gradient-start)); 
    opacity: 0; 
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.link-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--link-color); 
    z-index: -1;
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: left;
}
.link-box:hover::before {
    transform: scaleX(1);
}

.link-box.visible { 
    opacity: 1; 
    transform: translateY(0); 
}
.link-box:hover { 
    transform: scale(1.03); 
    box-shadow: 0 6px 15px rgba(0,0,0,0.2); 
}
.link-icon { 
    font-size: 1.5rem; 
    width: 30px; 
    margin-right: 1rem; 
    color: var(--link-text-color); 
    transition: color 0.3s ease; 
}
.link-content { 
    flex-grow: 1; 
    text-align: left; 
}
.link-content span { 
    font-size: 1.1rem; 
    font-weight: 500; 
    color: var(--link-text-color); 
    transition: color 0.3s ease; 
}
.link-content small { 
    font-size: 0.8rem; 
    color: var(--secondary-text); 
    display: block; 
    transition: color 0.3s ease; 
}

.link-box:hover .link-icon,
.link-box:hover .link-content span,
.link-box:hover .link-content small { 
    color: white; 
}

.copy-button {
    background: none; 
    border: none; 
    font-size: 1.1rem; 
    color: var(--secondary-text);
    margin-left: 1rem; 
    padding: 0.5rem; 
    border-radius: 50%; 
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer; 
    flex-shrink: 0; 
}
.copy-button:hover { 
    background-color: rgba(0,0,0,0.1); 
}
.link-box:hover .copy-button { 
    color: white; 
}
.link-box:hover .copy-button:hover { 
    background-color: rgba(255,255,255,0.2); 
}
.copy-button.copied {
    background: #28a745;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    width: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.copy-button.copied i.fas.fa-check {
    margin: 0;
}

.social-media-icons { 
    margin-top: 2rem; 
}
.social-media-icons a {
    color: var(--secondary-text);
    font-size: 1.8rem; 
    margin: 0 1rem; 
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
}
.social-media-icons a .fa-instagram:hover { color: #E4405F; transform: scale(1.2); }
.social-media-icons a .fa-x-twitter:hover { color: #1DA1F2; transform: scale(1.2); }
.social-media-icons a .fa-twitter:hover { color: #1DA1F2; transform: scale(1.2); }
.social-media-icons a .fa-facebook:hover { color: #1877F2; transform: scale(1.2); }
.social-media-icons a .fa-facebook-f:hover { color: #1877F2; transform: scale(1.2); }
.social-media-icons a .fa-tiktok:hover { color: #69C9D0; transform: scale(1.2); }
.social-media-icons a .fa-whatsapp:hover { color: #25D366; transform: scale(1.2); }
.social-media-icons a .fa-linkedin:hover { color: #0077B5; transform: scale(1.2); }
.social-media-icons a .fa-github:hover { color: #333; transform: scale(1.2); }
.social-media-icons a .fa-envelope:hover { color: #EA4335; transform: scale(1.2); }
.social-media-icons a .fa-globe:hover { color: #28a745; transform: scale(1.2); }
.social-media-icons a .fa-telegram:hover { color: #0088CC; transform: scale(1.2); }
.social-media-icons a .fa-discord:hover { color: #5865F2; transform: scale(1.2); }
.social-media-icons a .fa-youtube:hover { color: #FF0000; transform: scale(1.2); }
.social-media-icons a .fa-pinterest:hover { color: #E60023; transform: scale(1.2); }
.social-media-icons a .fa-snapchat:hover { color: #FFFC00; transform: scale(1.2); }
.social-media-icons a .fa-reddit:hover { color: #FF4500; transform: scale(1.2); }
.social-media-icons a .fa-behance:hover { color: #1769FF; transform: scale(1.2); }
.social-media-icons a .fa-dribbble:hover { color: #EA4C89; transform: scale(1.2); }
.social-media-icons a .fa-medium:hover { color: #12100E; transform: scale(1.2); }
.social-media-icons a .fa-skype:hover { color: #00AFF0; transform: scale(1.2); }
.social-media-icons a .fa-vimeo:hover { color: #1AB7EA; transform: scale(1.2); }
.social-media-icons a .fa-slack:hover { color: #4A154B; transform: scale(1.2); }
.social-media-icons a .fa-tumblr:hover { color: #35465C; transform: scale(1.2); }
.social-media-icons a .fa-soundcloud:hover { color: #FF5500; transform: scale(1.2); }
.social-media-icons a .fa-spotify:hover { color: #1DB954; transform: scale(1.2); }
.social-media-icons a .fa-apple:hover { color: #A2AAAD; transform: scale(1.2); }
.social-media-icons a .fa-android:hover { color: #3DDC84; transform: scale(1.2); }

.modal-overlay {
    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;
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.3s, visibility 0.3s; 
    z-index: 1000;
}
.modal-overlay.show { 
    opacity: 1; 
    visibility: visible; 
}
.modal-content {
    background: var(--card-bg); 
    padding: 2rem; 
    border-radius: 15px; 
    text-align: center;
    position: relative; 
    transform: scale(0.9); 
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.modal-overlay.show .modal-content { 
    transform: scale(1); 
}
.modal-close-button {
    position: absolute; 
    top: 10px; 
    right: 15px; 
    background: none; 
    border: none;
    font-size: 2rem; 
    color: var(--secondary-text); 
    cursor: pointer; 
    transition: color 0.2s;
}
.modal-close-button:hover {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
#qrcode { 
    margin: 1.5rem auto; 
    width: 200px; 
    height: 200px; 
    padding: 10px; 
    background: white; 
    border-radius: 5px; 
}
#qrcode img { 
    width: 100% !important; 
    height: 100% !important; 
}

#toast-container {
    position: fixed; 
    bottom: 20px; 
    left: 50%; 
    transform: translateX(-50%);
    z-index: 1001; 
    display: flex; 
    flex-direction: column; 
    gap: 10px;
    align-items: center;
}
.toast {
    background-color: rgba(0, 0, 0, 0.8); 
    color: white;
    padding: 10px 20px; 
    border-radius: 5px;
    font-size: 0.9rem; 
    opacity: 0; 
    transition: opacity 0.3s ease-in-out;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.toast.show { 
    opacity: 1; 
}

.main-footer {
    padding: 1rem 0;
    color: var(--secondary-text);
    font-size: 0.9rem;
    border-top: 1px solid rgba(127, 140, 141, 0.2); 
    transition: color 0.5s, border-color 0.5s;
}

.main-footer p {
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    body { 
        cursor: auto; 
    }
    #cursor-dot, #cursor-outline { 
        display: none; 
    }
    .container { 
        padding: 1rem 0.5rem; 
    }
    .profile-header h1 { 
        font-size: 1.8rem; 
        min-height: 43px; 
    }
    .theme-toggle-button { 
        top: 10px; 
        right: 10px; 
        width: 40px; 
        height: 40px; 
        font-size: 1.1rem; 
    }
    .action-buttons button { 
        width: calc(50% - 0.5rem); 
        padding: 0.6rem 1rem; 
        font-size: 0.9rem; 
    }

    .profile-picture {
        width: 120px;
        height: 120px;
        border: none; 
        background-image: none; 
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3); 
    }
    .profile-picture:hover {
        transform: none; 
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3); 
        background-image: none; 
    }

    .main-footer {
        margin-top: 2rem; 
        padding: 1rem 0;
        font-size: 0.8rem;
    }
}