/* styles.css */
body {
    font-family: 'Courier New', monospace;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

header {
    background: #111;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #333;
}

main {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
}

.hero-image {
    margin-bottom: 20px;
}

.hero-image img {
    border-radius: 50%;
    object-fit: cover;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project {
    background-color: #111;
    padding: 20px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
}

.github-link, .download-button {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.github-link:hover, .download-button:hover {
    background-color: #555;
}

#blog ul {
    list-style-type: none;
    padding: 0;
}

#blog li {
    margin-bottom: 30px;
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #333;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px 30px;
    background-color: #111;
    position: relative;
    border-radius: 6px;
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: #111;
    border: 4px solid #333;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -16px;
}

.timeline-content h3 {
    margin-top: 0;
    color: #ddd;
}

/* Responsive layout for smaller screens */
@media screen and (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0%;
    }
    
    .timeline-content::after {
        left: -16px;
    }
}

#contact {
    margin-bottom: 20px;
}

#contact h3 {
    margin-bottom: 10px;
}

#contact p {
    margin: 5px 0;
}

#contact a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

#contact a:hover {
    color: #ccc;
}

footer {
    background-color: #111;
    text-align: center;
    padding: 20px 0;
    width: 100%;
}
