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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

:root {
    --bg-page: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-section: rgba(0, 0, 0, 0.02);

    --text-primary: rgb(0, 55, 32);
    --text-body: rgb(14, 15, 12);
    --text-secondary: rgb(131, 146, 140);
    --text-muted: rgb(175, 183, 180);

    --border-light: rgba(0, 0, 0, 0.1);
    --border-medium: rgba(0, 0, 0, 0.2);
    --border-strong: rgba(0, 0, 0, 0.3);

    --accent-primary: #8FEC78;
    --accent-strong: #81DD67;
    --accent-text: rgb(13, 121, 22);
    --accent-wash: rgba(148, 242, 127, 0.1);

    --gradient-hero: radial-gradient(at 53% 78%, hsla(60,100%,50%,0.3) 0px, transparent 50%), 
                     radial-gradient(at 71% 91%, hsla(108,100%,50%,0.3) 0px, transparent 50%), 
                     radial-gradient(at 31% 91%, hsla(30,100%,50%,0.17) 0px, transparent 50%);
    --gradient-button: linear-gradient(to bottom right, var(--accent-primary), var(--accent-strong));
}

[data-theme="dark"] {
    --bg-page: #0f0f10;
    --bg-card: #1a1a1c;
    --bg-section: rgba(255, 255, 255, 0.02);

    --text-primary: #8FEC78;
    --text-body: #e5e5e5;
    --text-secondary: rgb(175, 183, 180);
    --text-muted: rgb(131, 146, 140);

    --border-light: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.2);
    --border-strong: rgba(255, 255, 255, 0.3);

    --gradient-hero: radial-gradient(at 53% 78%, hsla(60,100%,50%,0.1) 0px, transparent 50%), 
                     radial-gradient(at 71% 91%, hsla(108,100%,50%,0.1) 0px, transparent 50%), 
                     radial-gradient(at 31% 91%, hsla(30,100%,50%,0.05) 0px, transparent 50%);
}

body {
    background-color: var(--bg-page);
    color: var(--text-body);
}

.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

[data-theme="dark"] .nav-header {
    background: rgba(15, 15, 16, 0.8);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

[data-theme="dark"] .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 9999px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--border-medium);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hero-section {
    background: var(--gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7rem 1.5rem 3rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-weight: 700;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.btn-primary {
    background: var(--gradient-button);
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0px 4px 8px rgba(148, 242, 127, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: 9999px;
    padding: 14px 24px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--border-medium);
}

[data-theme="dark"] .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.section {
    padding: 4rem 1.5rem;
}

.section-alt {
    background: var(--bg-section);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-weight: 600;
    font-size: clamp(1.875rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3rem;
}

.about-content {
    display: grid;
    gap: 3rem;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
}

.body-large {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-body);
    margin-bottom: 1rem;
}

.body-medium {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.5;
    color: var(--text-body);
    margin-bottom: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.2s ease;
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--border-medium);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.skill-title {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.skill-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--border-medium);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.contact-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    word-break: break-word;
}

.support-content {
    max-width: 900px;
    margin: 0 auto;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.support-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
}

.support-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--border-medium);
}

.support-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.support-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.support-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.footer {
    background: var(--bg-section);
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.footer-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0.25rem 0;
}

@media (max-width: 768px) {
    .nav-links {
        gap: 0.25rem;
    }

    .nav-link {
        font-size: 0.875rem;
        padding: 6px 8px;
    }

    .hero-section {
        padding: 5rem 1rem 2rem;
        min-height: 80vh;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .section {
        padding: 3rem 1rem;
    }

    .skills-grid,
    .contact-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-links {
        gap: 0;
    }

    .nav-link {
        font-size: 0.75rem;
        padding: 4px 6px;
    }

    .theme-toggle {
        padding: 6px 10px;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}