/* --- Basic Setup & Variables --- */
:root {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --primary-text-color: #e0e0e0;
    --secondary-text-color: #a0a0a0;
    --accent-color: #007bff;
    --hover-color: #0056b3;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* Offset for fixed navbar */
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-text-color);
    line-height: 1.6;
}

/* --- Reusable Components --- */
section {
    padding: 100px 20px;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #ffffff;
}

.button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.button:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

.social-links { margin: 20px 0; }
.social-links a {
    color: var(--secondary-text-color);
    font-size: 1.8em;
    margin: 0 15px;
    transition: color 0.3s ease;
}
.social-links a:hover { color: var(--accent-color); }

/* --- Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
}
.navbar ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
}
.navbar li a {
    color: var(--primary-text-color);
    text-decoration: none;
    padding: 10px 20px;
    font-weight: 700;
    transition: color 0.3s;
}
.navbar li a:hover { color: var(--accent-color); }

/* --- Section 1: Hero / About --- */
.hero {
    min-height: 100vh;
    text-align: center;
}
.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--accent-color);
    object-fit: cover;
    margin-bottom: 20px;
}
.name { font-size: 3em; color: #fff; margin: 10px 0; }
.title { font-size: 1.5em; color: var(--primary-text-color); font-weight: 400; margin-bottom: 10px; }
.bio { font-size: 1.1em; color: var(--secondary-text-color); max-width: 600px; margin: 0 auto 30px; }

/* --- Section 2: Timeline --- */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--accent-color);
    top: 10px;
    bottom: 10px;
    left: 50%;
    margin-left: -2px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.timeline-item::after { /* The dot on the timeline */
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: var(--bg-color);
    border: 4px solid var(--accent-color);
    top: 50%; /* Vertically center the dot */
    transform: translateY(-50%); /* Precise vertical centering */
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(odd) {
    left: 0;
}
.timeline-item:nth-child(odd)::after {
    right: -12px; /* Position dot on the line */
}
.timeline-item:nth-child(even) {
    left: 50%;
}
.timeline-item:nth-child(even)::after {
    left: -12px; /* Position dot on the line */
}
.timeline-content {
    padding: 25px;
    background-color: var(--surface-color);
    border-radius: 8px;
    position: relative;
}
.timeline-content h3 {
    color: var(--accent-color);
    margin-top: 0;
    font-size: 1.1em;
}
.timeline-content h4 {
    margin: 5px 0;
    color: var(--primary-text-color);
    font-size: 1.3em;
}
.timeline-content p {
    margin: 0;
    color: var(--secondary-text-color);
    font-size: 1em;
}

/* --- Section 3: Portfolio --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.portfolio-item-placeholder {
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    border: 2px dashed var(--secondary-text-color);
    transition: background-color 0.3s, border-color 0.3s;
}
.portfolio-item-placeholder:hover {
    background-color: #2a2a2a;
    border-color: var(--accent-color);
}
.portfolio-item-placeholder i { font-size: 3em; color: var(--accent-color); margin-bottom: 20px; }
.portfolio-item-placeholder h3 { margin: 10px 0; color: #fff; }

/* --- Section 4: Skills --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    text-align: center;
}
.skill-item {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s;
}
.skill-item:hover { transform: translateY(-5px); }
.skill-item i { font-size: 3em; color: var(--accent-color); }
.skill-item p { margin-top: 15px; font-weight: bold; }

/* --- Section 5: Footer --- */
footer {
    text-align: center;
    padding: 50px 20px;
    background-color: var(--surface-color);
}
footer h2 { font-size: 2em; }
footer p { max-width: 600px; margin: 20px auto; }
.copyright { font-size: 0.9em; color: var(--secondary-text-color); margin-top: 40px; }

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .navbar { padding: 10px 0; }
    .navbar li a { padding: 10px; font-size: 0.9em; }

    section { padding: 60px 20px; }
    .section-title { font-size: 2em; }

    .name { font-size: 2.5em; }
    .title { font-size: 1.2em; }

    /* Center the timeline on mobile */
    .timeline-container::after { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 0; text-align: left !important; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-item::after { left: 10px; }
}
