@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* =====================
   GLOBAL STYLES
   ===================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #041827;
    color: #ededed;
}

/* =====================
   HEADER
   ===================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px 50px;
    display: flex;
    align-items: center;
    z-index: 100;
}

.logo {
    position: relative;
    font-size: 25px;
    color: #00abf0;
    font-weight: 600;
    text-decoration: none;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #041827;
    animation: showRight 1s ease forwards;
    animation-delay: .4s;
}

/* =====================
   SECTION LAYOUT
   ===================== */

.education {
    padding-top: 100px;
    padding-bottom: 5rem;
    padding-left: 20%;
    padding-right: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.education-row {
    width: 100%;
}

.heading {
    position: relative;
    font-size: 40px;
    text-align: center;
    margin-bottom: 3rem;
    z-index: 2;
}

.heading::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #041827;
    animation: showRight 1s ease forwards;
    animation-delay: 1s;
    z-index: -1;
}

span {
    color: #00abf0;
}

/* =====================
   PROJECT STRUCTURE
   ===================== */

.education-column .title {
    position: relative;
    font-size: 2.5rem;
    color: aquamarine;
    margin-bottom: 2rem;
}

.education-column .title::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #041827;
    animation: showRight 1s ease forwards;
    animation-delay: 1.4s;
}

.education-box {
    border-left: .2rem solid #00abf0;
}

.education-content {
    padding-left: 2rem;
}

.education-content .content {
    position: relative;
    padding: 1.5rem;
    border: .2rem solid #00abf0;
    border-radius: .6rem;
    margin-bottom: 2.5rem;
}

/* =====================
   PROJECT IMAGE
   ===================== */

.project-img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 171, 240, 0.5);
}

/* =====================
   TEXT STYLES
   ===================== */

.education-content h3 {
    position: relative;
    font-size: 24px;
    color: #00abf0;
    margin-bottom: .5rem;
}

.education-content h3::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #041827;
    animation: showRight 1s ease forwards;
    animation-delay: 2.5s;
}

.education-content p {
    position: relative;
    font-size: 15px;
    line-height: 1.6;
}

.education-content p::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #041827;
    animation: showRight 1s ease forwards;
    animation-delay: 3s;
}

/* =====================
   BUTTON
   ===================== */

.btn-box {
    margin-top: 1rem;
}

.btn-box a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 50px;
    background: #00abf0;
    border-radius: 8px;
    color: #041827;
    font-size: 19px;
    font-weight: 600;
    text-decoration: none;
    transition: .5s;
}

.btn-box a:hover {
    background: transparent;
    color: #00abf0;
    border: 2px solid #00abf0;
}

/* =====================
   KEYFRAME ANIMATIONS
   ===================== */

@keyframes showRight {
    100% {
        width: 0;
    }
}

/* =====================================================
   MOBILE ONLY (CLEAN VERSION — DESKTOP UNAFFECTED)
   ===================================================== */

@media (max-width: 768px) {

    /* Disable ONLY animated overlays */
    .logo::before,
    .heading::before,
    .education-column .title::before,
    .education-content h3::before,
    .education-content p::before {
        animation: none !important;
        display: none !important;
    }

    /* Hide header on mobile */
    .header {
        display: none;
    }

    /* Remove timeline & boxes */
    .education-box {
        border-left: none;
    }

    .education-content {
        padding-left: 0;
    }

    .education-content .content {
        border: none;
        padding: 0;
        margin-bottom: 2rem;
    }

    /* Equal padding on both sides */
    .education {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 2rem;
    }

    /* Image sizing */
    .project-img {
        max-height: 180px;
    }

    /* Mobile typography */
    .education-content h3 {
        font-size: 14px;
    }

    .education-content p {
        font-size: 12px;
        line-height: 1.6;
        text-align: justify;
        text-justify: inter-word;
    }

    /* Button */
    .btn-box a {
        width: 120px;
        height: 38px;
        font-size: 14px;
    }
}
