:root {
    --bg-color: #121212;
    --primary-color: #1e1e1e;
    --secondary-color: #2a2a2a;
    --font-color: #e0e0e0;
    --accent-color: #007bff;
    --border-color: #333;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--font-color);
    line-height: 1.6;
}

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

.hero {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 1));
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: #aaa;
}

.hero .typing-text {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: var(--accent-color);
    height: 2rem;
}

#role {
    border-right: 2px solid var(--accent-color);
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-color); }
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

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

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.skill-card {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 1rem;
    border-radius: 5px;
    font-weight: 600;
}

.timeline {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
}

.timeline-item {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-left: 2px solid var(--accent-color);
    position: relative;
    padding-left: 2rem;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 2px solid var(--bg-color);
}

.timeline-item h3 {
    font-size: 1.5rem;
}

.timeline-details {
    font-weight: 300;
    color: #aaa;
    margin-bottom: 1rem;
}

.timeline-item ul {
    list-style-type: disc;
    padding-left: 20px;
}

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

.project-card h3 {
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

#contact {
    text-align: center;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-color);
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .projects-grid { grid-template-columns: 1fr; }
}
