/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: #F4F4F9; /* Light Off-White Background */
    color: #2C2C2C; /* Deep Charcoal Gray Text */
    text-align: left; /* Ensures that all text is left-aligned globally */
}

/* Color Palette */
:root {
    --primary-dark: #2C2C2C;   /* Deep Charcoal Gray */
    --secondary-light: #F4F4F9; /* Light Off-White */
    --accent-pink: #FAD1D8;     /* Coral Pink */
    --muted-gray: #A0A4B8;      /* Soft Slate Gray */
    --accent-green: #88C8BC;    /* Sage Green */
    --primary-blue: #5A7D9A;    /* Muted Steel Blue */
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-blue), #3a5c73); /* Gradient for Header */
    color: var(--secondary-light);
    padding: 120px 0;
    text-align: center;
    position: relative;
    border-bottom: 6px solid var(--accent-pink); /* Coral Pink Divider */
}

header .overlay {
    background: rgba(90, 125, 154, 0.7); /* Slightly More Transparent Blue */
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Shadow for Overlay */
}

header h1 {
    font-size: 4em;
    margin: 0;
    color: var(--secondary-light); /* Light Off-White */
}

header p {
    font-size: 1.5em;
    margin-top: 10px;
    color: var(--secondary-light);
}

/* Navigation Styles */
nav {
    background-color: var(--muted-gray); /* Soft Slate Gray Navigation */
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Shadow for Navigation */
}

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

nav ul li {
    display: inline;
    margin-right: 30px;
}

nav ul li a {
    color: var(--secondary-light);
    text-decoration: none;
    font-size: 1.1em;
    padding: 5px 10px;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;
}

nav ul li a:hover {
    color: var(--accent-green); /* Sage Green Hover */
    background-color: rgba(255, 255, 255, 0.2); /* Light Background on Hover */
}

/* Section Styles */
.section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 50px;
    background-color: var(--secondary-light); /* Light Off-White Section Background */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Soft Shadow */
}

.section h2 {
    color: var(--primary-dark);
    font-size: 2.8em;
    margin-bottom: 20px; /* Extra spacing */
}

.section p {
    font-size: 1.2em;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

/* Image Container */
.image-container img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Shadow for Images */
}

.image-container img:hover {
    transform: scale(1.05);
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: auto;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-item {
    position: relative;
    width: 80%; 
    margin: 20px 0;
    padding: 20px;
    box-sizing: border-box;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    background-color: var(--secondary-light); /* Light Off-White Background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Soft Shadow */
    cursor: pointer; /* Add cursor to show it's interactive */
}

/* Even and Odd items alignment and style */
.timeline-item:nth-child(even) {
    align-self: flex-start;
    border-left: 4px solid var(--accent-pink); /* Left Border for Even Items */
}

.timeline-item:nth-child(odd) {
    align-self: flex-end;
    border-right: 4px solid var(--accent-pink); /* Right Border for Odd Items */
}

/* Hover Effect: Interaction */
.timeline-item:hover {
    transform: translateY(-10px); /* Slightly lift the item on hover */
    background-color: var(--accent-green); /* Change background on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

/* Add a subtle animation when the item enters the viewport */
.timeline-item {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.timeline-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Content inside each timeline item */
.timeline-content {
    background-color: var(--secondary-light); /* Light Off-White Background */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Shadow for Content */
}

h3 {
    margin-top: 0;
    color: var(--primary-dark);
}

/* Scroll-triggered animation for interactive experience */
.timeline-item.in-view {
    animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Infographic Styles */
.infographic {
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: left;
    padding: 20px;
    background-color: var(--secondary-light); /* Light Off-White Background */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Shadow for Infographic */
}

.infographic-item {
    background-color: var(--muted-gray); /* Soft Slate Gray Background */
    border: 2px solid var(--accent-pink); /* Coral Pink Border */
    border-radius: 10px;
    padding: 15px;
    margin: 10px;
    width: 90%; /* Make it responsive */
    transition: transform 0.3s ease;
}

.infographic-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

p {
    color: var(--primary-dark);
    text-align: left;
}

/* Buttons and Links */
button {
    background-color: var(--accent-green); /* Sage Green Button */
    color: var(--primary-dark);
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Added transform transition */
    border-radius: 5px;
    font-size: 1em;
}

button:hover {
    background-color: #74b9a3; /* Slightly Darker Green Hover */
    transform: scale(1.05); /* Scale on hover */
}

/* Footer Styles */
footer {
    background-color: var(--muted-gray);
    color: var(--primary-dark);
    text-align: center;
    padding: 30px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Shadow for Footer */
}

footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.8em;
    }

    header p {
        font-size: 1.2em;
    }

    .section {
        padding: 20px;
    }

    .timeline-item {
        width: 90%; /* Adjust for smaller screens */
    }
}
