:root {
    --primary-grey: #2f3136;     /* 60% - main backgrounds */
    --dark-grey: #202225;        /* 30% - darker sections */
    --accent-purple: #5865f2;    /* 10% - royal purple accents */
    --text-white: #ffffff;
    --text-grey: #b9bbbe;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-grey);
    color: var(--text-white);
    line-height: 1.6;
}

/* Header */
header {
    position: sticky;
    top: 0;
    background-color: var(--dark-grey);
    padding: 1rem 2rem;
    z-index: 1000;
    border-bottom: 1px solid var(--primary-grey);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: var(--text-grey);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

nav a:hover {
    color: var(--accent-purple);
}

/* Main sections */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-alt {
    background-color: var(--dark-grey);
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--accent-purple);
}

.hero-content {
    text-align: center;
    padding: 2rem 0;
}

.hero-image {
    width: 300px;
    height: 300px;
    border-radius: 50px;
    background-color: var(--dark-grey);
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-grey);
    border: 3px solid var(--accent-purple);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 46px;
}

/* Timeline styles */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--accent-purple);
    transform: translateX(-50%);
}

.timeline-item {
    background-color: var(--primary-grey);
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-purple);
}

/* Projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: var(--dark-grey);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--primary-grey);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    background-color: var(--primary-grey);
    border-radius: 4px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-grey);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Game section */
.game-container {
    background-color: var(--dark-grey);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
}

.game-question {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.game-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.game-button {
    background-color: var(--accent-purple);
    color: var(--text-white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

/* Game progress */
.game-progress {
    margin-top: 1rem;
    color: var(--text-grey);
    font-size: 0.9rem;
}

.game-button:disabled {
    background-color: var(--primary-grey);
    cursor: not-allowed;
    opacity: 0.6;
}

.next-question-btn {
    background-color: var(--dark-grey);
    border: 2px solid var(--accent-purple);
    color: var(--accent-purple);
    margin-top: 1rem;
}

.next-question-btn:hover {
    background-color: var(--accent-purple);
    color: var(--text-white);
}

.game-complete {
    background: linear-gradient(135deg, var(--accent-purple), #4752c4);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.score-display {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Contact section */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Footer */
footer {
    background-color: var(--dark-grey);
    padding: 2rem;
    text-align: center;
    color: var(--text-grey);
    border-top: 1px solid var(--primary-grey);
}

/* Responsive design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    section {
        padding: 2rem 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .timeline::before {
        left: 1rem;
    }

    .timeline-item {
        margin-left: 2rem;
    }

    .game-options {
        flex-direction: column;
        align-items: center;
    }

    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }
}