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

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('wallpaper-light.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: background-image 0.5s ease;
    padding: 20px;
}

body.dark-mode {
    background-image: url('wallpaper-dark.webp');
}

.card {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    overflow: visible;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

body.dark-mode .card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.banner {
    height: 180px;
    background-image: url('banner.gif');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-style: italic;
    border-radius: 30px 30px 0 0;
}

.banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.top-buttons {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 10;
}

.qr-button {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

body.dark-mode .qr-button {
    background: rgba(30, 30, 30, 0.95);
    color: #a5b4fc;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.qr-button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.theme-toggle {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

body.dark-mode .theme-toggle {
    background: rgba(30, 30, 30, 0.95);
    color: #a5b4fc;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.theme-toggle:hover {
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 40px;
    margin-top: -30px;
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.5);
    background-image: url('pfp.webp');
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-out 0.3s both;
    position: relative;
    z-index: 5;
}

body.dark-mode .profile-picture {
    border: 5px solid rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.name {
    margin-top: 20px;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    animation: fadeIn 1s ease-out 0.5s both;
}

body.dark-mode .name {
    color: white;
}

.description {
    margin-top: 8px;
    font-size: 14px;
    color: #2e2e2e;
    font-style: italic;
    text-align: center;
    animation: fadeIn 1s ease-out 0.7s both;
}

body.dark-mode .description {
    color: rgba(255, 255, 255, 0.7);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    animation: fadeIn 1s ease-out 0.9s both;
    flex-wrap: wrap;
    justify-content: center;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

body.dark-mode .social-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.social-icon:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body.dark-mode .social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

.buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    padding: 30px 40px 20px;
    animation: fadeIn 1s ease-out 1.1s both;
}

.button {
    flex: 1;
    padding: 15px 20px;
    border-radius: 15px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

body.dark-mode .button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.button:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.button i {
    font-size: 16px;
}

.support-wrapper {
    padding: 0 40px 20px;
    display: flex;
    justify-content: center;
}

.support-button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

.support-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.footer {
    padding: 20px 40px 30px;
    text-align: center;
    color: #666;
    font-size: 12px;
    animation: fadeIn 1s ease-out 1.3s both;
}

body.dark-mode .footer {
    color: rgba(255, 255, 255, 0.6);
}

.footer-love {
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    animation: scaleIn 0.3s ease;
    position: relative;
    max-width: 350px;
    width: 100%;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.qr-code {
    width: 250px;
    height: 250px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 15px;
}

.qr-code img {
    width: 100%;
    height: 100%;
}

/* Mobile Responsive */
@media (max-width: 580px) {
    body {
        padding: 15px;
    }

    .card {
        max-width: 100%;
    }

    .banner {
        height: 150px;
        font-size: 16px;
    }

    .top-buttons {
        padding: 0 25px;
        bottom: -25px;
    }

    .qr-button,
    .theme-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .profile-section {
        padding: 0 25px;
        margin-top: -25px;
    }

    .profile-picture {
        width: 100px;
        height: 100px;
        border: 4px solid rgba(255, 255, 255, 0.5);
    }

    .name {
        font-size: 24px;
        margin-top: 15px;
    }

    .description {
        font-size: 13px;
    }

    .social-icons {
        gap: 12px;
        margin-top: 20px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .buttons {
        flex-direction: column;
        padding: 25px 25px 15px;
        gap: 12px;
    }

    .button {
        padding: 14px 18px;
        font-size: 13px;
    }

    .support-wrapper {
        padding: 0 25px 15px;
    }

    .support-button {
        padding: 14px 25px;
        font-size: 13px;
        width: 100%;
    }

    .footer {
        padding: 15px 25px 25px;
        font-size: 11px;
    }

    .qr-code {
        width: 200px;
        height: 200px;
    }

    .modal-content {
        padding: 25px;
    }
}

@media (max-width: 400px) {
    .top-buttons {
        padding: 0 20px;
    }

    .profile-section {
        padding: 0 20px;
    }

    .buttons {
        padding: 20px 20px 12px;
    }

    .support-wrapper {
        padding: 0 20px 12px;
    }

    .footer {
        padding: 12px 20px 20px;
    }

    .social-icons {
        gap: 10px;
    }
}
