:root {
    --dracula-bg: #282a36;
    --dracula-current-line: #44475a;
    --dracula-selection: #44475a;
    --dracula-fg: #f8f8f2;
    --dracula-comment: #6272a4;
    --dracula-cyan: #8be9fd;
    --dracula-green: #50fa7b;
    --dracula-orange: #ffb86c;
    --dracula-pink: #ff79c6;
    --dracula-purple: #bd93f9;
    --dracula-red: #ff5555;
    --dracula-yellow: #f1fa8c;
}

[data-theme="light"] {
    --bg: #ffffff;
    --bg-secondary: #f8f9fa;
    --text: #0d1117;
    --text-secondary: #656d76;
    --accent: #7c3aed;
    --accent-hover: #6d28d9;
    --border: #d1d9e0;
    --card-bg: #f6f8fa;
    --nav-bg: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] {
    --bg: #282a36;
    --bg-secondary: #21222c;
    --text: #ffffff;
    --text-secondary: #b4b9d6;
    --accent: #bd93f9;
    --accent-hover: #8be9fd;
    --border: #44475a;
    --card-bg: #343746;
    --nav-bg: rgba(40, 42, 54, 0.95);
}

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

html {
    background-color: var(--bg);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1;
    text-rendering: optimizeLegibility;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

p {
    line-height: 1.75;
    margin-bottom: 1.25em;
}

.navbar {
    position: sticky;
    top: 0;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
    width: 100%;
    min-height: 78px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    box-sizing: border-box;
    position: relative;
    height: 100%;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    z-index: 2;
}

.nav-logo:hover {
    color: var(--accent-hover);
}


.nav-brand {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    justify-content: center;
    grid-column: 1;
    max-width: 450px;
    min-width: 0;
    align-self: center;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
    color: var(--accent);
}

.nav-description {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.3;
}

.theme-toggle {
    grid-column: 3;
    justify-self: end;
    align-self: center;
}



@media (max-width: 768px) {
    .nav-container {
        grid-template-columns: 1fr auto !important;
        gap: 1rem;
    }

    .nav-links {
        display: none;
    }

    .nav-brand {
        grid-column: 1;
    }

    .theme-toggle {
        grid-column: 2;
    }

    .nav-title {
        font-size: 1.25rem;
    }
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text);
}

.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent);
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text);
    position: absolute;
    right: 2rem;
}

.theme-toggle:hover {
    background-color: var(--border);
    transform: scale(1.05);
}

.theme-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    color: var(--text);
}

.theme-toggle:hover .theme-icon {
    transform: rotate(15deg);
}

.theme-icon .sun-circle,
.theme-icon .sun-ray {
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.theme-icon .moon-path {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

[data-theme="light"] .theme-icon .sun-circle,
[data-theme="light"] .theme-icon .sun-ray {
    opacity: 1;
    transform: scale(1);
}

[data-theme="light"] .theme-icon .moon-path {
    opacity: 0;
    transform: scale(0);
}

.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.hero-name {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--accent);
}

.hero-tagline {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.home-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 800px;
    margin: 4rem auto 0;
}

.home-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 1.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    flex: 0 1 auto;
    min-width: 200px;
}

.home-grid-item:hover {
    background-color: var(--card-bg);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.home-grid-icon {
    color: var(--accent);
    transition: color 0.3s ease, transform 0.3s ease;
}

.home-grid-item:hover .home-grid-icon {
    color: var(--accent-hover);
    transform: scale(1.1);
}

.home-grid-label {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.home-grid-item:hover .home-grid-label {
    color: var(--text);
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    width: 100%;
}

.quick-link {
    background-color: var(--bg-secondary);
    border: none;
    border-radius: 8px;
    padding: 3rem 2.5rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 180px;
}

.quick-link:hover {
    background-color: var(--card-bg);
    transform: translateY(-2px);
}

.quick-link-icon {
    font-size: 2rem;
    color: var(--accent);
    transition: color 0.2s ease, transform 0.2s ease;
}

.quick-link:hover .quick-link-icon {
    color: var(--accent-hover);
    transform: translateX(4px);
}

.quick-link h2 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
    color: var(--accent);
    transition: color 0.2s ease;
    text-align: center;
}

.quick-link:hover h2 {
    color: var(--accent-hover);
}

.quick-link p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
}

.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.page-header p {
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.project-card {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    display: block;
    transition: all 0.2s ease;
}

.project-card:last-child {
    border-bottom: none;
}

.project-card:hover {
    padding-left: 0.5rem;
}

.project-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 0.375rem;
    color: var(--accent);
    transition: color 0.2s ease;
}

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

.project-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

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

.resource-card {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    display: block;
    transition: all 0.2s ease;
}

.resource-card:last-child {
    border-bottom: none;
}

.resource-card:hover {
    padding-left: 0.5rem;
}

.resource-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 0.375rem;
    color: var(--accent);
    transition: color 0.2s ease;
}

.resource-card:hover h2 {
    color: var(--accent-hover);
}

.resource-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.resource-section {
    margin-bottom: 3rem;
}

.resource-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--accent);
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.resource-list {
    list-style: none;
}

.resource-list li {
    margin-bottom: 1rem;
}

.resource-link {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
}

.resource-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

body:has(.contact-content) .main-content {
    padding: 3rem 2rem;
    display: block;
}

.contact-form {
    text-align: left;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background-color: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(189, 147, 249, 0.1);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 160px;
}

.form-group:has(.submit-btn) {
    display: flex;
    justify-content: flex-end;
}

.submit-btn {
    width: auto;
    padding: 0.875rem 2rem;
    background-color: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.submit-btn:hover:not(:disabled) {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-size: 0.95rem;
}

.form-message.success {
    background-color: rgba(80, 250, 123, 0.1);
    color: var(--dracula-green);
    border: 1px solid var(--dracula-green);
}

.form-message.error {
    background-color: rgba(255, 85, 85, 0.1);
    color: var(--dracula-red);
    border: 1px solid var(--dracula-red);
}

.contact-divider-wrapper {
    margin: 1.5rem 0 0;
}

.contact-divider {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.contact-divider span {
    padding: 0 1rem;
    white-space: nowrap;
}

.contact-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.contact-link:hover {
    color: var(--accent);
    transform: translateY(-1px);
}

.contact-link svg {
    transition: transform 0.3s ease;
}

.contact-link:hover svg {
    transform: scale(1.1);
}

.footer {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
    margin-top: auto;
    flex-shrink: 0;
}

.footer p {
    margin-bottom: 0;
}

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

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .theme-toggle {
        right: 1rem;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .quick-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .home-grid {
        gap: 1rem;
        max-width: 100%;
    }

    @media (max-width: 768px) {
        .home-grid {
            flex-direction: column;
        }
        
        .home-grid-item {
            width: 100%;
        }
    }

    .home-grid-item {
        padding: 1.5rem 1rem;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .contact-link {
        padding: 0.75rem 0;
    }
}

@media (min-width: 1400px) {
    .main-content {
        max-width: 1400px;
    }

    .nav-container {
        max-width: 1400px;
    }
}