@import url("https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500;600;700&display=swap");

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

:root {
    --bg: #0d0d0d;
    --text: #e8e8e8;
    --text-dim: #888888;
    --accent: #00d4ff;
    --border: #2a2a2a;
}

/* Light Theme */
[data-theme="light"] {
    --bg: #ffffff;
    --text: #1a1a1a;
    --text-dim: #666666;
    --accent: #0096cc;
    --border: #e0e0e0;
}

/* Dark Theme (default) */
[data-theme="dark"] {
    --bg: #0d0d0d;
    --text: #e8e8e8;
    --text-dim: #888888;
    --accent: #00d4ff;
    --border: #2a2a2a;
}

/* Gruvbox Theme */
[data-theme="gruvbox"] {
    --bg: #282828;
    --text: #ebdbb2;
    --text-dim: #a89984;
    --accent: #fabd2f;
    --border: #3c3836;
}

body {
    font-family: "Geist Mono", "Courier New", monospace;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

#tsparticles {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: auto;
}

main {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    pointer-events: none;
}

main * {
    pointer-events: auto;
}

.container {
    max-width: 100%;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.hero-content {
    max-width: 700px;
}

.hero .signature {
    width: 300px;
    height: auto;
    margin-bottom: 32px;
    filter: brightness(1.1);
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.interests {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 24px;
    line-height: 1.6;
    font-weight: 400;
}

.interests span {
    display: inline;
}

.interests span:not(:nth-child(2n)) {
    transition: color 0.2s ease;
}

.interests span:not(:nth-child(2n)):hover {
    color: var(--accent);
}

.hero .subtitle {
    font-size: 18px;
    color: var(--text-dim);
    margin-bottom: 24px;
    font-weight: 500;
}

.hero .bio {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dim);
    margin-bottom: 32px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.social-link svg {
    width: 20px;
    height: 20px;
    stroke: var(--text);
    transition: stroke 0.3s ease;
}

.social-link:hover {
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.05);
}

.social-link:hover svg {
    stroke: var(--accent);
}

.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
}

.resume-btn svg {
    stroke: var(--text);
    transition: stroke 0.3s ease;
}

.resume-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 212, 255, 0.05);
}

.resume-btn:hover svg {
    stroke: var(--accent);
}

section {
    padding: 80px 0;
}

.philosophy-container {
    max-width: 600px;
}

.philosophy-quote {
    font-size: 16px;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 2px solid var(--border);
    font-style: italic;
    transition: border-color 0.3s ease;
}

.philosophy-quote:hover {
    border-left-color: var(--accent);
}

section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: 700;
}

.experience-item {
    margin-bottom: 40px;
}

.experience-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.experience-item .meta {
    font-size: 15px;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.experience-item p {
    color: var(--text-dim);
    line-height: 1.7;
    font-size: 16px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.project-card {
    padding: 24px;
    border: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.project-card:hover {
    border-color: var(--border);
}

.project-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

.project-card p {
    color: var(--text-dim);
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.7;
}

.project-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-card .tags span {
    font-size: 13px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-weight: 500;
}

.project-card a {
    color: var(--accent);
    text-decoration: none;
    font-size: 15px;
    transition: opacity 0.2s ease;
    margin-right: 16px;
    font-weight: 500;
}

.project-card a:hover {
    opacity: 0.7;
}

.explore-more {
    text-align: left;
    margin-top: 24px;
    font-size: 16px;
    color: var(--text-dim);
}

.explore-more a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.explore-more a:hover {
    opacity: 0.7;
}

.education-item {
    margin-bottom: 32px;
}

.education-item h3 {
    font-size: 19px;
    margin-bottom: 6px;
    font-weight: 600;
}

.education-item .institution {
    color: var(--text-dim);
    margin-bottom: 4px;
    font-size: 16px;
}

.education-item .meta {
    font-size: 15px;
    color: var(--text-dim);
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 40px 0;
}

.education h3 {
    font-size: 22px;
    margin-bottom: 16px;
    margin-top: 32px;
    font-weight: 600;
}

.certifications,
.accomplishments {
    list-style: none;
    margin-bottom: 32px;
}

.certifications li,
.accomplishments li {
    color: var(--text-dim);
    padding-left: 20px;
    margin-bottom: 10px;
    position: relative;
    font-size: 15px;
}

.certifications li::before,
.accomplishments li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-switcher:hover {
    opacity: 1;
}

.theme-slider {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.theme-option {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    border-radius: 16px;
    font-family: "Geist Mono", "Courier New", monospace;
    font-size: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.theme-option:hover {
    color: var(--text);
}

.theme-option.active {
    background: var(--accent);
    color: var(--bg);
}

.theme-option[data-theme="gruvbox"] {
    max-width: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

[data-theme="dark"] .theme-option[data-theme="gruvbox"] {
    max-width: 24px;
    padding: 8px 6px;
    opacity: 0.5;
}

[data-theme="dark"] .theme-option[data-theme="gruvbox"]:hover {
    max-width: 100px;
    padding: 8px 16px;
    opacity: 1;
}

[data-theme="gruvbox"] .theme-option[data-theme="gruvbox"] {
    max-width: 100px;
    padding: 8px 16px;
    opacity: 1;
}

@media (max-width: 768px) {
    .theme-switcher {
        top: 20px;
        right: 20px;
    }

    main {
        padding: 0 24px;
    }

    .hero .signature {
        width: 250px;
    }

    .hero h1 {
        font-size: 44px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    main {
        padding: 0 24px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero .signature {
        width: 200px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero .subtitle {
        font-size: 16px;
    }

    .hero .bio {
        font-size: 15px;
    }

    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 26px;
        margin-bottom: 32px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}

html {
    scroll-behavior: smooth;
}

/* Additional dynamic content styles */
.loading {
    text-align: center;
    padding: 100px 0;
    color: var(--text-dim);
}

.experience-item ul,
.certifications,
.accomplishments {
    list-style: none;
    margin-top: 16px;
}

.core-strengths {
    list-style: none;
    margin-bottom: 32px;
}

.core-strengths li {
    color: var(--text-dim);
    padding-left: 20px;
    margin-bottom: 16px;
    position: relative;
    font-size: 15px;
}

.core-strengths li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.core-strengths strong {
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}
