:root {
    --background-color: #ececec;
    --text-color: #e0e0e0;
    --accent-color: #54a1bf; /* Soft pastel pink */
    --button-hover: #ffb7b2; /* Lighter pastel */
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

footer p {
    color: #2c3540;
    text-align: center;
}

/* Header Styling*/
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #171C26;
}
header h1 {
    color: var(--text-color);
    margin-left: 60px;
}

#page-nav ul {
    font-size: 15px;
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin-right: 60px;
}
#page-nav ul li {
    display: inline;
}
#page-nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    padding-bottom: 5px;
}
#page-nav ul li a:hover {
    color: var(--accent-color);
}
#page-nav ul li a:hover::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    position: absolute;
    left: 0;
    bottom: 0;
}

/*About Section Styling*/
section {
    padding: 20px;
}

/*About Section Styling*/
.about-section {
    display: flex;
    align-items: center;
    color: #2c3540;
    justify-content: space-between;
    width: 70%;
    margin: 20px auto;
    padding: 10px;
}
.about-text{
    text-align: left;
    max-width: 50%;
}
.about-text h1 {
    font-size: 70px;
    margin: 0;
}
.about-text p{
    text-align: left;
    max-width: 80%;
}
.profile-picture img {
    width: 400px;
    height: 500px;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    border-radius: 20px;
}

/*About Me Section Styling*/
#about {
    width: 70%;
    margin: 20px auto;
    padding: 10px;
}
#about p, ul {
    color: #2c3540;
    line-height: 1.3;
    text-align: justify;
}
#about h2 {
    font-size: 30px;
    color: #2c3540;
}
#about h3 {
    font-size: 20px;
    color: #2c3540;
    text-align: left;
}

/*About Me Timeline Styling*/
.container {
    width: 70%;
    margin: 20px auto;
    padding: 10px;
    padding-bottom: 30px;
}
.container h2 {
    font-size: 30px;
    text-align: center;
    color: #2c3540;
}
.container p {
    text-align: justify;
    color: #2c3540;
}
.timeline {
    position: relative;
    width: 70%;
    margin: 20px auto;
    padding: 10px;
}
.timeline h2 {
    text-align: left;
    font-size: 16px;
    color: var(--accent-color);
}
.timeline p {
    text-align: center;
    font-size: 14px;
    color: var(--accent-color);
}
.timeline ul li {
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
    color: #ececec;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -10px;
}
.timeline-item {
    padding: 10px 10px;
    position: relative;
    background: #1e1e1e;
    border-radius: 5px;
    width: 60%;
    margin-bottom: 40px;
    box-shadow: 0px 4px 8px rgba(126, 202, 232, 0.898);
}
.left {
    left: -20.4%;
}
.right {
    left: 55%;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    right: -48px;
    background-color: var(--accent-color);
    border: 2px solid white;
    top: 50px;
    border-radius: 50%;
    z-index: 1;
}
.right::after {
    left: -48px;
}

/* Updated Pill Dates */
.timeline-date {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 15px;
    position: absolute;
    top: 40px;
    white-space: nowrap;
    z-index: 2;
}
.timeline-item.left .timeline-date {
    left: calc(100% + 60px);   /* appear right of line */
}
.timeline-item.right .timeline-date {
    right: calc(100% + 60px);  /* appear left of line */
}

/*Page Button Styling*/
.btn {
    background: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}
.btn:hover {
    background: white;
    border: 1px solid #54a1bf;
    color: var(--accent-color);
    font-weight: bold;
}

/*Scroll to Top Button*/
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
}
.scroll-top-btn:hover::after {
    content: "Back to Top";
    position: absolute;
    bottom: 50px;
    right: 5px;
    background: #1e2e34;
    color: white;
    padding: 10px;
    border-radius: 15px;
    font-size: 11px;
    white-space: nowrap;
}
.scroll-icon {
    width: 40px;
    height: 40px;
}

/*Slide In Effect Styling*/
.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}
.slide-in-bottom { transform: translateY(40px); }
.slide-in-left { transform: translateX(-40px); }
.slide-in-right { transform: translateX(40px); }
.show {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/*Responsive Adjustments */
@media screen and (max-width: 1007px) {
    .timeline::after {
        left: 10px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 30px;
        padding-right: 20px;
        left: 0 !important;
    }
    .timeline-item::after {
        display: none;
    }
    .timeline-date {
        position: relative;
        left: auto !important;
        right: auto !important;
        margin-bottom: 10px;
        display: inline-block;
    }
}

@media screen and (max-width: 640px) {
    .timeline::after,
    .timeline-item::after {
        display: none;
    }
    .timeline-date {
        position: relative;
        margin: 0 0 10px 0;
        display: block;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    .timeline-item {
        font-size: 0.9rem;
        padding: 15px;
    }
}
