/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 50%;
    }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: #b74b4b;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.1);
}

header .logo {
    font-size: 2.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2.4rem;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}

header nav {
    display: flex;
    gap: 1.5rem;
}

header nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: #fff;
    font-size: 1.6rem;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

header nav a:hover {
    color: #f4f4f9;
    background-color: rgba(255, 255, 255, 0.1);
}

header nav a.active {
    font-weight: bold;
    text-decoration: underline;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 30rem;
        height: 100vh;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 8rem;
        background-color: #b74b4b;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    header nav.active {
        right: 0;
    }

    header nav a {
        display: block;
        margin: 1.5rem 0;
        font-size: 1.8rem;
        width: 100%;
        text-align: center;
    }
}

/* Experience Section */
.experience {
    max-width: 80rem;
    margin: 2rem auto;
    padding: 2rem;
    text-align: center;
    background: #fff;
    border-radius: 0.8rem;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
}

.experience h1 {
    color: #b74b4b;
    margin-bottom: 3rem;
    font-size: 3rem;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 0.2rem;
    height: 100%;
    background: #b74b4b;
    transform: translateX(-50%);
}

.timeline-item {
    background: #fff;
    border-radius: 0.8rem;
    box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: left;
    position: relative;
    width: calc(50% - 2rem);
    align-self: flex-start;
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 2rem;
    height: 2rem;
    background: #b74b4b;
    border-radius: 50%;
    top: 2rem;
}

.timeline-item:nth-child(odd)::before {
    right: -3rem;
}

.timeline-item:nth-child(even)::before {
    left: -3rem;
}

.timeline-item h2 {
    color: #b74b4b;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.timeline-item p {
    font-size: 1.6rem;
    line-height: 1.6;
}

.timeline-item span {
    display: block;
    margin-top: 1rem;
    font-size: 1.4rem;
    color: #666;
}

@media (max-width: 768px) {
    .experience {
        margin: 1.5rem;
        padding: 1.5rem;
    }
    
    .experience h1 {
        font-size: 2.5rem;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        width: calc(100% - 3rem);
        margin-left: 3rem;
        align-self: flex-start;
    }
    
    .timeline-item:nth-child(even) {
        align-self: flex-start;
    }
    
    .timeline-item::before {
        left: -3rem;
    }
    
    .timeline-item:nth-child(odd)::before {
        right: auto;
        left: -3rem;
    }
    
    .timeline-item h2 {
        font-size: 1.8rem;
    }
    
    .timeline-item p {
        font-size: 1.4rem;
    }
}