/* Modern Reset & Base Styles */
:root {
    --primary: #6c5ce7;
    --primary-dark: #5649c0;
    --secondary: #00cec9;
    --dark: #1e272e;
    --darker: #0f1721;
    --light: #f5f6fa;
    --gray: #a4b0be;
    --success: #2ecc71;
    --danger: #e74c3c;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 5px 10px rgba(0,0,0,0.05);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Light mode variables */
.light-mode {
    --bg-color: #f5f6fa;
    --text-color: #1e272e;
    --container-bg: rgba(255, 255, 255, 0.9);
    --link-bg: rgba(108, 92, 231, 0.1);
    --link-hover-bg: rgba(108, 92, 231, 0.2);
    --border-color: rgba(0, 0, 0, 0.1);
    --gray: #636e72;
}

/* Dark mode variables */
.dark-mode {
    --bg-color: #1e272e;
    --text-color: #f5f6fa;
    --container-bg: rgba(30, 39, 46, 0.8);
    --link-bg: rgba(255, 255, 255, 0.1);
    --link-hover-bg: rgba(108, 92, 231, 0.2);
    --border-color: rgba(255, 255, 255, 0.1);
    --gray: #a4b0be;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.5s ease, color 0.5s ease;
}

/* Container */
.container {
    background: var(--container-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.5s ease;
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.1) 0%, transparent 70%);
    z-index: -1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

#theme-toggle-button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

#theme-toggle-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Profile Section */
.profile-section {
    margin-bottom: 2.5rem;
    text-align: center;
}

.profile-pic-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.profile-pic-border {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    z-index: 1;
    animation: rotate-border 4s linear infinite;
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-section h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.profile-section .title {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 400;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.profile-section .bio {
    font-size: 1rem;
    color: var(--gray);
    max-width: 80%;
    margin: 0 auto;
}

/* Links Section */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--link-bg);
    color: var(--text-color);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

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

.link-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
    background: var(--link-hover-bg);
}

.link-button:active {
    transform: translateY(0);
}

.link-button i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

/* Specific button colors */
.link-button:nth-child(1) { --hover-color: #25D366; } /* WhatsApp */
.link-button:nth-child(2) { --hover-color: #FF0000; } /* YouTube */
.link-button:nth-child(3) { --hover-color: #E1306C; } /* Instagram */
.link-button:nth-child(4) { --hover-color: #25F4EE; } /* TikTok */
.link-button:nth-child(5) { --hover-color: #25F4EE; } /* TikTok */
.link-button:nth-child(6) { --hover-color: #333; } /* GitHub */
.link-button:nth-child(7) { --hover-color: #EA4335; } /* Email */

/* Footer */
.footer {
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 2rem;
    position: relative;
}

/* Donation Section */
.donation-section {
    margin-bottom: 2rem;
    text-align: center;
}

.donation-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.donation-option {
    background: var(--link-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.qris-image {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    object-fit: contain;
    margin-bottom: 1rem;
    background: white;
    padding: 15px;
    border: 2px solid var(--border-color);
}

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

.donation-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    gap: 0.75rem;
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    border: 1px solid var(--border-color);
}

/* Tako Button */
.tako-button {
    background: rgba(108, 92, 231, 0.2);
    color: var(--text-color);
}

.tako-button:hover {
    background: var(--primary);
    transform: translateY(-3px);
    color: white;
}

/* Saweria Button */
.saweria-button {
    background: rgba(255, 107, 107, 0.2);
    color: var(--text-color);
}

.saweria-button:hover {
    background: #FF6B6B;
    transform: translateY(-3px);
    color: white;
}

.donation-logo {
    height: 24px;
    width: auto;
}

/* Logo Filters */
.tako-button .donation-logo {
    filter: brightness(0) invert(var(--logo-filter, 0));
}

.saweria-button .donation-logo {
    filter: brightness(0) invert(var(--logo-filter, 0));
}

.tako-button:hover .donation-logo,
.saweria-button:hover .donation-logo {
    filter: none;
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        padding: 1rem;
    }

    .container {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .profile-pic-container {
        width: 120px;
        height: 120px;
    }

    .profile-section h1 {
        font-size: 1.8rem;
    }

    .profile-section .bio {
        max-width: 100%;
    }

    .link-button {
        padding: 0.9rem 1.25rem;
        font-size: 0.95rem;
    }

    .donation-buttons {
        flex-direction: column;
        align-items: center;
    }

    .donation-button {
        width: 100%;
        max-width: none;
    }

    #theme-toggle-button span {
        display: none;
    }

    #theme-toggle-button {
        padding: 0.5rem;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        justify-content: center;
    }
}
