:root {
    --bg: #0f172a;
    --card: #111827;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --accent: #38bdf8;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #020617, #020617 60%, #020617);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1, h2, h3 {
    color: var(--text);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 0.5rem;
    color: var(--accent);
}

p {
    color: var(--muted);
}

ul {
    padding-left: 1.2rem;
}

li {
    margin-bottom: 0.5rem;
}

.links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

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

.links a:hover {
    text-decoration: underline;
}

.footer {
    margin-top: 4rem;
    font-size: 0.8rem;
    color: #475569;
    text-align: center;
}

/* --- Resume Specific Styles --- */

article {
    margin-bottom: 2rem;
}

article h3 {
    margin-bottom: 0.25rem;
}

article p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
}

.nav-back {
    margin-bottom: 2rem;
}

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

.nav-back a:hover {
    text-decoration: underline;
}

.skills-grid {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

/* --- Contact Modal Styles --- */

.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 23, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--card);
    padding: 2rem;
    border: 1px solid var(--accent);
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    color: var(--muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: var(--accent);
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

form label {
    font-size: 0.9rem;
    color: var(--text);
}

input, textarea {
    padding: 0.8rem;
    border-radius: 4px;
    border: 1px solid #334155;
    background: #1e293b;
    color: var(--text);
    font-family: inherit;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.submit-button {
    background: var(--accent);
    color: #020617;
    border: none;
    padding: 12px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: filter 0.2s;
}

.submit-button:hover {
    filter: brightness(1.1);
}
