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

:root {
    /* Light mode colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #212121;
    --text-secondary: #757575;
    --accent-color: #2196F3;
    --accent-light: #E3F2FD;
    --surface: #fafafa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-elevated: 0 8px 16px rgba(0, 0, 0, 0.12);
}

body.dark-mode {
    /* Dark mode colors */
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-color: #90CAF9;
    --accent-light: #1a237e;
    --surface: #1e1e1e;
    --border-color: #303030;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.25);
    --shadow-elevated: 0 8px 16px rgba(0, 0, 0, 0.4);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    background-color: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-elevated);
    max-width: 900px;
    width: 100%;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header */
header {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.title-section {
    flex: 1;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.title-block {
    display: flex;
    flex-direction: column;
}

header h1 {
    font-size: 2.5em;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

header .tagline {
    font-size: 1em;
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-photo {
        width: 56px;
        height: 56px;
    }
}

.header-controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s ease;
}

.language-toggle:hover {
    background-color: var(--accent-light);
    border-color: var(--accent-color);
}

.language-toggle .flag {
    font-size: 1.2em;
}

.language-code {
    font-weight: 600;
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 8px;
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow-elevated);
    z-index: 1000;
    min-width: 160px;
}

.language-menu.active {
    display: flex;
}

.lang-option {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 12px 16px;
    cursor: pointer;
    text-align: left;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.lang-option:hover,
.lang-option.active {
    background-color: var(--accent-light);
    color: var(--accent-color);
    font-weight: 500;
}

.lang-option:first-child {
    border-radius: 8px 8px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 8px 8px;
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    width: 52px;
    height: 32px;
    background-color: var(--border-color);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 2px;
    display: flex;
    align-items: center;
}

.theme-toggle:hover {
    opacity: 0.8;
}

.theme-toggle .toggle-circle {
    width: 28px;
    height: 28px;
    background-color: var(--bg-primary);
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
}

body.dark-mode .theme-toggle {
    background-color: var(--accent-color);
}

body.dark-mode .theme-toggle .toggle-circle {
    transform: translateX(20px);
}

/* Main Content */
main {
    padding: 32px 24px;
    transition: background-color 0.3s ease;
}

section {
    margin-bottom: 32px;
}

section:last-child {
    margin-bottom: 0;
}

section h2 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 1.5em;
    font-weight: 500;
    letter-spacing: -0.25px;
}

section p {
    margin-bottom: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* About Section */
.about p {
    font-size: 1em;
    color: var(--text-primary);
}

/* Donation Section */
.donate-intro {
    font-size: 1em;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.donation-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.donation-card {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.donation-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
    transform: translateY(-2px);
}

.donation-icon {
    font-size: 2.5em;
    margin-bottom: 12px;
}

.donation-card h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.1em;
    font-weight: 500;
}

.donation-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.9em;
}

.donation-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    margin: 4px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.donation-button:hover {
    opacity: 0.9;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* Thank You Section */
.thank-you {
    background-color: var(--accent-light);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

.thank-you h2 {
    color: var(--text-primary);
    margin-bottom: 16px;
    border: none;
    padding-bottom: 0;
}

.thank-you p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 0.95em;
    line-height: 1.7;
}

.thank-you p:last-child {
    margin-bottom: 0;
}

/* Contact Section */
section ul {
    list-style: none;
    padding-left: 0;
}

section li {
    padding: 10px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
}

section li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 600;
}

section a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

section a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Footer */
footer {
    background-color: var(--surface);
    color: var(--text-secondary);
    text-align: center;
    padding: 16px;
    font-size: 0.85em;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    header h1 {
        font-size: 2em;
    }

    .header-controls {
        width: 100%;
        justify-content: flex-end;
    }

    main {
        padding: 20px 16px;
    }

    section h2 {
        font-size: 1.3em;
    }

    .donation-methods {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .donation-card {
        padding: 16px;
    }

    .donation-icon {
        font-size: 2em;
    }
}

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

    header {
        padding: 16px;
    }

    header h1 {
        font-size: 1.6em;
    }

    header .tagline {
        font-size: 0.9em;
    }

    main {
        padding: 16px;
    }

    section h2 {
        font-size: 1.2em;
        margin-bottom: 12px;
    }

    .language-toggle {
        padding: 6px 10px;
        font-size: 0.8em;
    }

    .language-toggle .flag {
        font-size: 1em;
    }
}