:root {
    --primary-color: #3498db;
    /* Bright Blue */
    --secondary-color: #9b59b6;
    /* Bright Purple (Survivor/Cancer awareness accent) */
    --accent-color: #e74c3c;
    /* Resilient Red/Pink element */
    --text-color: #333333;
    /* Dark Grey for text */
    --bg-color: #ffffff;
    /* White Background */
    --section-bg-alt: #f8f9fa;
    /* Very Light Grey for alternating sections */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-speed), background-color var(--transition-speed);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: #9b59b6;
    transform: translateY(-3px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    /* White header */
    padding: 20px 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle dark border */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

/* Hide Hamburger by default on Desktop */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

.hamburger .line1 {
    width: 25px;
}

.hamburger .line2 {
    width: 25px;
}

.hamburger .line3 {
    width: 25px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(52, 152, 219, 0.2), rgba(155, 89, 182, 0.2)), url('images/buffalo2.jpeg');
    /* Lighter overlay with tint */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    color: white;
    /* Keep text white on Hero for contrast with image */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-content {
    animation: fadeInUp 1.5s ease-out;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* About Me */
.about {
    background-color: var(--bg-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
    /* Darker grey for readability on light bg */
}

/* History - Modern Timeline */
.history {
    background-color: var(--section-bg-alt);
    overflow: hidden;
    /* Prevent horizontal scroll from animations */
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Vertical Line */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #eee;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    opacity: 0;
    /* Hidden initially */
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Timeline Dot/Icon background */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    right: -12px;
    background-color: #fff;
    border: 4px solid var(--secondary-color);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(155, 89, 182, 0.2);
    /* Glow effect */
    transition: background-color 0.3s, transform 0.3s;
}

.timeline-item:hover::after {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #ffffff;
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent #ffffff transparent transparent;
}

.right::after {
    left: -12px;
}

.timeline-content {
    padding: 25px 30px;
    background-color: white;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Slightly stronger shadow */
    border-left: none;
    /* Removing simple border for a full card look */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--secondary-color);
    font-size: 1.4rem;
}

.timeline-content .date {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content p {
    margin: 0;
    color: #555;
    line-height: 1.7;
}

/* Responsive fixes */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 17px;
        /* Adjusted alignment */
    }

    .left::after,
    .right::after {
        left: 17px;
    }

    .right {
        left: 0%;
    }

    .left::before,
    .right::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent #ffffff transparent transparent;
    }
}

/* Doing Now */
.doing-now {
    background-color: var(--bg-color);
}

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

.activity-card {
    display: block;
    /* Ensure anchor tag behaves like a block */
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition-speed);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.activity-card:hover {
    transform: translateY(-10px);
}

.activity-image {
    height: 200px;
    background-color: #333;
    /* Placeholder color */
    background-size: cover;
    background-position: center;
}

.activity-content {
    padding: 20px;
}

.activity-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Contact Form */
.contact {
    background-color: var(--section-bg-alt);
    text-align: center;
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    /* White form bg */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    /* Soft shadow */
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    /* Light border */
    background-color: #f9f9f9;
    /* Very light grey input bg */
    color: #333;
    /* Dark text */
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: #fff;
}

/* Footer */
footer {
    padding: 30px 0;
    text-align: center;
    background-color: #2c3e50;
    /* Keep dark for grounding, but lighter than black */
    color: #ecf0f1;
    /* Light text on dark footer */
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: var(--bg-color);
        /* Revert to solid color */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 50%;
        /* Revert to 50% width */
        transform: translateX(100%);
        transition: transform 0.4s ease-in;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        /* Restore shadow */
        padding-top: 0;
        z-index: 998;
    }

    .nav-links li {
        margin: 20px 0;
        opacity: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--text-color);
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        z-index: 999;
    }

    /* Fries Design: Staggered Widths */
    .hamburger .line1 {
        width: 25px;
    }

    .hamburger .line2 {
        width: 18px;
    }

    .hamburger .line3 {
        width: 12px;
    }

    .nav-active {
        transform: translateX(0%);
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }

        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    .toggle .line1 {
        width: 25px;
        transform: rotate(-45deg) translate(-5px, 6px);
        background-color: var(--accent-color);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        width: 25px;
        transform: rotate(45deg) translate(-5px, -6px);
        background-color: var(--accent-color);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .left::after,
    .right::after {
        left: 21px;
    }

    .right {
        left: 0%;
    }

    .left::before,
    .right::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent #ffffff transparent transparent;
    }
}