/* =========================
   GLOBAL
========================= */
html {
    scroll-behavior: smooth;
}
section,
#about,
#experience,
#education,
#project,
#skills,
#contact {
    margin-bottom: 40px;
}

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: #5C4A5D;

    background: linear-gradient(
        135deg,
        #E8AFC7 0%,
        #F7C8A5 50%,
        #FFF1B8 100%
    );
}

/* smooth scroll offset */
#lead,
#about,
#experience,
#education,
#project,
#skills,
#contact {
    scroll-margin-top: 90px;
}

/* =========================
   GLOBAL HEADINGS
========================= */
h1, h2, h3 {
    color: #C86C8B;
}

/* underline effect */
.heading {
    position: relative;
    display: inline-block;
    font-size: 2em;
    font-weight: 300;
    margin-bottom: 30px;
}

.heading:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: auto;
    width: 50px;
    height: 1px;
    background: #F4A6B8;
}

/* =========================
   TOP NAVIGATION BAR
========================= */
.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #FFFDF9;
    padding: 12px 20px;

    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    z-index: 9999;
}
.nav-logo {
    position: absolute;
    left: 20px;
    color: #C86C8B;
    font-size: 1.5rem;
    font-weight: 900;
    color: #C86C8B;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 10px;
}

.side-nav a {
    margin: 0 12px;
    padding: 8px 14px;
    text-decoration: none;
    color: #C86C8B;
    border-radius: 8px;
    transition: 0.2s ease;
}

.side-nav a:hover,
.side-nav a.active {
    background: #FFF2D8;
    color: #E88CA2;
}

/* =========================
   HEADER NAV
========================= */
header {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 253, 248, 0.95);
    padding: 10px 0;
}

header ul {
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 10px 15px;
}

header a {
    color: #F4A6B8;
    padding: 10px;
    text-decoration: none;
}

header a:hover {
    background: #FFF2D8;
    border-radius: 5px;
}

/* =========================
   HERO / LEAD
========================= */
#lead {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px;
    position: relative;
    min-height: 60vh;
    overflow: hidden;
}

#lead-overlay {
    position: absolute;
    inset: 0;
    background: rgba(244,166,184,0.85);
}

#lead-content {
    position: relative;
    text-align: center;
    margin-top: 40px;
}

#lead-content h1 {
    font-size: 5em;
    color: #C86C8B;
    text-transform: uppercase;
    font-weight: 900;
}

#lead-content h2 {
    font-size: 2.25em;
    color: #C86C8B;
}

/* =========================
   SECTIONS
========================= */
section {
    padding: 60px 15px;
}

/* force uniform background everywhere */
#about,
#experience,
#education,
#project,
#skills,
#contact {
    background: rgba(255, 253, 249, 0.95);

    margin: 40px auto;
    padding: 40px;

    max-width: 1200px;

    border-radius: 20px;

    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
/* =========================
   ABOUT 
========================= */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-photo {
    flex-shrink: 0;
}

.about-photo img {
    width: 250px;
    height: 250px;

    object-fit: cover;

    border-radius: 20px;

    border: 4px solid white;

    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.about-text {
    flex: 1;
}

/* =========================
   EXPERIENCE TIMELINE
========================= */
#experience-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* each row */
#experience-timeline > div {
    display: grid;
    grid-template-columns: 200px 40px 1fr;
    align-items: start;
    column-gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

/* DATE (left of line) */
#experience-timeline > div::after {
    content: attr(data-date);
    grid-column: 1;
    text-align: right;
    font-weight: 700;
    color: #C86C8B;
    padding-right: 10px;
}

/* DOT (center column) */
#experience-timeline > div::before {
    content: "";
    grid-column: 2;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #C86C8B;
    border: 4px solid white;
    justify-self: center;
    margin-top: 4px;
    z-index: 2;
}

/* EXPERIENCE CONTENT (right side) */
#experience-timeline > div > * {
    grid-column: 3;
}

/* VERTICAL LINE (true center between date + content) */
#experience-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;

    /* THIS is the real fix */
    left: 220px; /* 200px date column + ~20px spacing */

    width: 3px;
    background: #C86C8B;
}
/* =========================
   PROJECT
========================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: auto;
}

.project-card {
    background: #FFFDF9;

    border: 1px solid #F6D7E5;

    border-radius: 12px;

    padding: 25px;

    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.project-card:hover {
    transform: translateY(-5px);
}

/* =========================
   SKILLS
========================= */
#skills ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
}

#skills li {
    list-style: none;
    margin: 7px;
    padding: 6px 12px;
    background: #FFF2D8;
    border: 1px solid #F7D6DD;
    border-radius: 8px;
}

/* =========================
   CONTACT
========================= */
#contact {
    text-align: center;
    background: linear-gradient(135deg, #F4A6B8, #F9E79F);
    color: white;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    background: rgba(255,255,255,0.25);
    color: white;
}

/* =========================
   BUTTON
========================= */
.btn {
    display: inline-block;
    padding: 12px 24px;

    background: linear-gradient(
        135deg,
        #E8AFC7 0%,
        #F7C8A5 50%,
        #FFF1B8 100%
    );

    border: 2px solid rgba(255,255,255,.9);

    border-radius: 30px;

    color: #5C4A5D;
    font-weight: 700;
    text-decoration: none;

    box-shadow:
        0 6px 15px rgba(0,0,0,.08),
        inset 0 1px 1px rgba(255,255,255,.6);

    transition: all .25s ease;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
}

/* =========================
   MOBILE / TABLET
========================= */
@media (max-width: 768px) {

    body {
        padding-left: 0;
        font-size: 15px;
    }

    /* ---------- NAV ---------- */
    .side-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        padding: 10px;
    }

    .side-nav a {
        margin: 0;
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    /* ---------- HERO ---------- */
    #lead {
        padding: 120px 15px 60px;
        min-height: auto;
    }

    #lead-content {
        margin-top: 20px;
    }

    #lead-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    #lead-content h2 {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    /* ---------- HEADINGS ---------- */
    .heading {
        font-size: 1.75rem;
        text-align: center;
        display: block;
    }

    .heading:after {
        left: 50%;
        transform: translateX(-50%);
    }
       /* ---------- ABOUT ---------- */

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-photo img {
        width: 180px;
        height: 180px;
    }
   
    /* ---------- TIMELINE ---------- */
  #experience-timeline > div {
        grid-template-columns: 1fr;
    }

    #experience-timeline::before {
        left: 10px;
    }

    #experience-timeline > div::before {
        display: none;
    }

    #experience-timeline > div::after {
        grid-column: 1;
        text-align: left;
        margin-bottom: 5px;
    }
    /* ---------- PROJECTS ---------- */
    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        padding: 20px;
    }

    /* ---------- ABOUT ---------- */
    #about .row {
        display: flex;
        flex-direction: column;
    }

    /* ---------- SKILLS ---------- */
    #skills {
        padding: 40px 15px;
    }

    #skills .project-card {
        margin-bottom: 20px;
    }

    #skills li {
        display: inline-block;
        margin: 4px;
        font-size: 0.9rem;
    }

    /* ---------- CONTACT ---------- */
    #contact h1 {
        font-size: 1.8rem;
    }

    #contact h2 {
        font-size: 1rem;
        word-break: break-word;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}
