:root {
    --primary-color: #9b59b6;
    --bg-color: #121212;
    --text-color: #ffffff;
    --card-bg: #1e1e1e;
}

body.light {
    --bg-color: #ffffff;
    --text-color: #000000;
    --card-bg: #f5f5f5;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background 0.3s, color 0.3s;
}

header {
    text-align: center;
    padding: 2rem;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.typing-text {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-height: 2rem;
}

/* Portfolio grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.project {
    background-color: var(--card-bg);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.project-img {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

button {
    background-color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    margin-top: 0.5rem;
}

button:hover {
    opacity: 0.8;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
}

footer a {
    margin: 0 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}
