/* Modern Dark Theme */
:root {
    --bg-color: #0f1115;
    --card-bg: #181b21;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --border: #2d3342;
    --error: #ef4444;
    --success: #10b981;
}

body {
    background-color: var(--bg-color);
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.6;
}

.main-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Typography */
h1,
h2,
h3 {
    margin: 0;
    font-weight: 700;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeIn 0.8s ease;
}

.avatar-container {
    margin-bottom: 25px;
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    padding: 4px;
    background: var(--card-bg);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    letter-spacing: -1.5px;
    background: linear-gradient(to right, #fff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.bio {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-links a {
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.social-links a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Experience Grid */
.experience {
    margin-bottom: 80px;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: left;
}

.exp-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.exp-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Projects Grid */
.projects {
    margin-bottom: 100px;
}

.projects h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    /* Flex layout to push footer down */
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--accent);
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 25px;
    flex-grow: 1;
    /* Pushes content down */
}

.tags {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tags span {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-link {
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

/* Support Section */
.support-section {
    max-width: 550px;
    margin: 0 auto;
}

.support-header {
    text-align: center;
    margin-bottom: 40px;
}

.support-header h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.support-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.donation-card {
    background: #15171c;
    border: 1px solid #333;
    padding: 40px;
}

/* Form Elements */
label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
}

input {
    width: 100%;
    background: #0b0d10;
    border: 1px solid var(--border);
    color: white;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 1.05rem;
    box-sizing: border-box;
    transition: all 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--accent);
    background: #0f1115;
}

.input-group-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.input-wrapper {
    margin-bottom: 20px;
    width: 100%;
    position: relative;
}

.input-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: all 0.2s;
    font-size: 1.2rem;
    font-weight: 700;
    /* Bolder for text brands */
    color: var(--text-secondary);
}

.brand-visa {
    color: #3b82f6;
    letter-spacing: 1px;
}

.brand-mastercard {
    color: #f97316;
    letter-spacing: 1px;
}

.brand-amex {
    color: #06b6d4;
    letter-spacing: 1px;
}

.secure-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    display: block;
    font-weight: 700;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 25px 0;
}

.btn-donate {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 10px;
}

.btn-donate:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-reset {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    font-weight: 600;
}

.btn-reset:hover {
    color: white;
    border-color: white;
}

/* Status Screens */
.state-screen {
    text-align: center;
    padding: 30px 0;
}

.icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

footer {
    text-align: center;
    margin-top: 80px;
    color: #4b5563;
    font-size: 0.9rem;
    padding-bottom: 40px;
}

.hidden {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .experience-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .main-wrapper {
        padding: 40px 20px;
    }
}