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

:root {
    --econ-red: #E3120B;
    --blue: #006BA2;
    --text: #1a1a1a;
    --text-light: #666;
    --border: #e0e0e0;
    --bg: #fafafa;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.5;
    font-size: 15px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.hero {
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
}

.hero h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.hero .subtitle {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.header-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.linkedin-link,
.github-link,
.support-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.2s;
}

.linkedin-link:hover,
.github-link:hover,
.support-link:hover {
    border-color: var(--text);
    background: var(--bg);
}

.linkedin-link {
    background: #0A66C2;
    border-color: #0A66C2;
    color: #fff;
    font-weight: 500;
}

.linkedin-link:hover {
    background: #004182;
    border-color: #004182;
}

.support-link {
    background: #FFDD00;
    border-color: #FFDD00;
    color: #000;
    font-weight: 500;
}

.support-link:hover {
    background: #FFED4E;
    border-color: #FFED4E;
}

/* Main */
main {
    padding: 3rem 0;
}

section {
    margin-bottom: 4rem;
}

section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text);
    position: relative;
    padding-left: 0.75rem;
}

section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 3px;
    height: 1rem;
    background: var(--econ-red);
}

/* Collapsible Sections */
.collapsible-section .section-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
    padding: 0.25rem 0;
    margin: -0.25rem 0;
}

.collapsible-section .section-header:hover {
    color: var(--blue);
}

.collapsible-section .section-header:active {
    opacity: 0.7;
}

.toggle-icon {
    font-size: 0.875rem;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.section-content {
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-section.collapsed .section-content {
    max-height: 0;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Cards */
.card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s;
    background: #fff;
}

.card:hover {
    border-color: var(--blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.card p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Tags & Meta */
.tags,
.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tags span,
.meta span {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    background: var(--bg);
    color: var(--text-light);
    border-radius: 4px;
    font-weight: 500;
}

/* Links */
.links {
    display: flex;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.links a {
    font-size: 0.875rem;
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.links a:hover {
    color: var(--econ-red);
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

footer p {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
}

/* Responsive */

/* Tablet styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero .subtitle {
        font-size: 0.875rem;
    }

    .header-links {
        gap: 0.5rem;
    }

    .linkedin-link,
    .github-link,
    .support-link {
        font-size: 0.8125rem;
        padding: 0.5rem 0.875rem;
    }

    main {
        padding: 2rem 0;
    }

    section {
        margin-bottom: 3rem;
    }

    section h2 {
        font-size: 1.125rem;
        margin-bottom: 1.25rem;
    }

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

    .card {
        padding: 1.25rem;
    }

    .card h3 {
        font-size: 1rem;
    }

    .links {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 0.875rem;
    }

    .hero h1 {
        font-size: 1.375rem;
    }

    .hero .subtitle {
        font-size: 0.8125rem;
    }

    .header-links {
        flex-direction: column;
        align-items: stretch;
    }

    .linkedin-link,
    .github-link,
    .support-link {
        justify-content: center;
        width: 100%;
    }

    section h2 {
        font-size: 1.0625rem;
    }

    .card {
        padding: 1rem;
    }

    .toggle-icon {
        font-size: 0.75rem;
    }
}
