/* about.css */

h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.main-content {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    justify-content: space-between; /* Space between text blocks and image */
    flex-wrap: wrap; /* Allow wrapping for responsiveness */
}

.text-blocks {
    flex: 1;
    max-width: 60%; /* Adjust this as needed to fit your design */
}

section {
    color: #ddd; /* Light grey text */
    padding: 20px;
    margin-bottom: 0;
    margin-left: 15%;
    margin-bottom: 20px;
    border-radius: 10px;
}

.background-section{
    background-color: #2c2c3a; /* Dark grey background for sections */
}

section h2 {
    font-size: 24px;
    color: #d6b3ff; /* Soft purple for section titles */
    margin-bottom: 10px;
}

section p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
}

a.link {
    color: #c092f5; /* Lighter blue for better visibility */
}

a.link:hover {
    color: #884eca; /* Even lighter blue on hover */
}

.image-content {
    max-width: 27%;
    margin-right: 5%;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center align the items */
}

.image-content p{
    text-align: center;
}

.profile-photo {
    width: 500px; /* Adjust width as needed */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px; /* Optional: round corners of the photo */
    margin-left: 20px; /* Space between text and image */
    margin-right: 5%; /* Space between text and image */
    margin-bottom: 0;
}
.profile-photo-stage {
    width: 500px; /* Smaller second image */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px; /* Optional: round corners */
    margin-top: 10px; /* Space between the two images */
}

/* Styling for buttons */
button {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #884eca; /* Purple background */
    border: none;
    padding: 10px 20px;
    margin-top: 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

button:hover {
    background-color: #a16ee0; /* Slightly lighter purple */
    transform: translateY(-2px); /* Lift effect */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(0); /* Reset lift on click */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Styling for text enhancements */
.text-highlight {
    font-size: 18px;
    color: #c092f5; /* Light purple for emphasis */
    background-color: rgba(136, 78, 202, 0.1); /* Subtle purple background */
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: bold;
}

/* Container for the entire timeline */
.timeline {
    margin: 30px 0;
    /* background-color: #2c2c3a; */
    padding: 20px;
    padding-left: 250px;
    border-radius: 10px;
    position: relative; /* Set position relative so the line can be positioned inside it */
}

/* Styling for the header of the timeline */
.timeline h2 {
    color: #d6b3ff;
    font-size: 24px;
    margin-bottom: 20px;
}

/* The timeline container which holds all the events and the line */
.timeline-container {
    position: relative;
    padding-left: 30px;
    padding-right: 30px; /* Ensures some padding on the right as well */
}

/* Styling for the year label */
.timeline-year {
    margin-top: 30px;
    margin-bottom: 10px;
}

.timeline-year h2 {
    font-size: 28px;
    color: #c092f5;
    z-index: 1;
}

/* Individual event items in the timeline */
.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

/* Add a vertical line for each timeline item */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 10px; /* Align with the main line */
    top: 20px; /* Start below the dot */
    bottom: -15px; /* Extend down to the next dot */
    width: 2px; /* Width of the line */
    background-color: #c092f5; /* Line color */
    z-index: 0; /* Ensure it's behind the content but above the main line */
}

/* Dot style for each event */
.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: #c092f5; /* Dot color */
    border-radius: 50%; /* Make the dot round */
    position: absolute;
    left: 0; /* Align dot to the left of the line */
    top: 0; /* Place dot on top of the line */
    z-index: 1; /* Ensure dots are above the line */
}

/* Content box for each event */
.timeline-content {
    background-color: #2c2c3a;
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
    max-width: 70%;
    margin-left: 40px; /* Add space to the left of content */
    transition: background-color 0.5s ease;
}

.timeline-content:hover {
    background-color: #3b3b4b;
}

/* Title styling inside the event content */
.timeline-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #c092f5;
}

/* Paragraph styling inside the event content */
.timeline-content p {
    font-size: 16px;
    color: #ddd;
    margin-bottom: 10px;
}

/* Links inside the timeline content */
.timeline-content a {
    color: #c092f5;
    font-size: 16px;
    text-decoration: none;
}

.timeline-content a:hover {
    color: #884eca;
}

/* Responsive Design for Timeline */
@media (max-width: 768px) {
    button {
        font-size: 14px;
        padding: 8px 16px;
    }

    .timeline {
        padding: 0px 0px;
    }

    .timeline-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .timeline-item {
        padding-left: 20px;
    }

    .timeline-content {
        max-width: 100%;
    }
}


/* Media query for screens narrower than 768px */
@media (max-width: 1200px) {
    section{
        margin-left: 0%;
    }

    .main-content {
        flex-direction: column; /* Stack text blocks and image vertically */
        align-items: center; /* Center align items */
        padding: 0;
        margin: 0;
    }

    .text-blocks {
        max-width: 100%; /* Allow text blocks to take full width */
        margin-bottom: 20px; /* Add margin below text blocks */
    }
    
    .image-content{
        max-width: 100%;
        width: 90%;
        margin-right: 0;
    }

    .profile-photo, .profile-photo-stage {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }
}

/* Media query for screens narrower than 480px */
@media (max-width: 480px) {
    h1 {
        font-size: 28px; /* Reduce font size for small screens */
    }

    section h2 {
        font-size: 20px; /* Reduce font size for section titles */
    }

    section p {
        font-size: 14px; /* Reduce font size for section text */
    }
}