/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%; /* Ensure body takes full height */
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Make sure body takes up at least the full viewport height */
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

header {
    background: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
}

/* About Me Section */
.about-me {
    padding: 40px 0;
    background-color: #fff;
    text-align: center;
}

.about-me h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.about-me p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: auto;
}


.gallery {
    padding: 40px 0;
    background-color: #fff;
    flex: 1; /* This will allow the gallery section to expand and push the footer down */
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 20px;
}

.grid-item {
    border: 2px solid #ddd;
    padding: 10px;
    background-color: #fff;
    text-align: center;
    transition: transform 0.3s;
}

.grid-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
}

.grid-item:hover {
    transform: scale(1.05);
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: auto; /* Ensure footer sticks to the bottom */
}

footer p {
    font-size: 0.9rem;
}
/* Timeline Section */
.timeline {
    padding: 40px 0;
    background-color: #fff;
}

.timeline h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

#timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding-left: 20px;
    max-width: 800px;
    margin: auto;
    border-left: 2px solid #333;
}

.timeline-event {
    position: relative;
    padding-left: 20px;
}

.timeline-event::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 0;
    width: 16px;
    height: 16px;
    background-color: #333;
    border-radius: 50%;
}

.timeline-event h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.timeline-event p {
    font-size: 1rem;
    color: #555;
}
