/*==================================================
    BRIAN MALINGA PORTFOLIO
    Version 2.0
==================================================*/


/*==================================================
    VARIABLES
==================================================*/

:root {
    --primary: #0B1F3A;
    --secondary: #C8A24A;
    --white: #FFFFFF;
    --light: #F5F7FA;
    --text: #555555;
}


/*==================================================
    GLOBAL
==================================================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


body {
    font-family: "Segoe UI", sans-serif;
    background: var(--white);
    color: var(--primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
}


/*==================================================
    NAVIGATION
==================================================*/

/*==================================================
    NAVIGATION
==================================================*/

.navbar {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    z-index: 9999;

    background: rgba(255,255,255,.96);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

    padding: 20px 0;

    border-bottom: 1px solid #eeeeee;

    transition: .3s;
}

.navbar-brand {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary) !important;
}

    .navbar-brand span {
        color: var(--secondary);
    }

.nav-link {
    color: var(--primary) !important;
    font-weight: 600;
    margin-left: 25px;
    transition: .3s;
}

    .nav-link:hover {
        color: var(--secondary) !important;
    }

    .nav-link.active {
        color: var(--secondary) !important;
        font-weight: 700;
        position: relative;
    }

/*==================================================
    HERO SECTION
==================================================*/

.hero {
    position: relative;
    overflow: hidden;
    padding: 140px 0 100px;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}


.hero-tag {
    display: block;
    color: var(--secondary);
    letter-spacing: 3px;
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

    .hero h1 {
        font-size: 4.8rem;
        font-weight: 800;
        margin: 20px 0;
    }

    .hero h2 {
        color: #444;
        font-size: 2rem;
        font-weight: 400;
        line-height: 1.6;
        margin-bottom: 30px;
    }

    .hero-description {
        color: var(--text);
        font-size: 1.2rem;
        max-width: 600px;
        margin-bottom: 40px;
    }
    /*==================================================
    BUTTONS
==================================================*/

    .hero-buttons {
        display: flex;
        gap: 20px;
    }

    .btn-primary-custom {
        display: inline-block;
        background: var(--secondary);
        color: white;
        text-decoration: none;
        padding: 16px 38px;
        border-radius: 50px;
        font-weight: 600;
        transition: .3s;
    }

        .btn-primary-custom:hover {
            background: #b8902d;
            color: white;
        }

    .btn-secondary-custom {
        display: inline-block;
        padding: 16px 38px;
        border: 2px solid var(--primary);
        color: var(--primary);
        text-decoration: none;
        border-radius: 50px;
        font-weight: 600;
        transition: .3s;
    }

        .btn-secondary-custom:hover {
            background: var(--primary);
            color: white;
        }
    /*==================================================
    PROFILE IMAGE
==================================================*/

    .hero-image {
        width: 420px;
        height: 420px;
        object-fit: cover;
        border-radius: 50%;
        border: 8px solid var(--secondary);
        box-shadow: 0px 20px 50px rgba(0,0,0,.15);
    }
    /*==================================================
    RESPONSIVE
==================================================*/

    @media(max-width:991px) {

        .hero {
            text-align: center;
        }

            .hero h1 {
                font-size: 3.5rem;
            }

            .hero h2 {
                font-size: 1.6rem;
            }

        .hero-description {
            margin: auto;
            margin-bottom: 40px;
        }

        .hero-buttons {
            justify-content: center;
        }

        .hero-image {
            margin-top: 60px;
            width: 320px;
            height: 320px;
        }
    }

    @media(max-width:576px) {

        .hero h1 {
            font-size: 2.8rem;
        }

        .hero h2 {
            font-size: 1.3rem;
        }

        .hero-buttons {
            flex-direction: column;
        }
    }

.hero .container {
    position: relative;
    z-index: 2;
}
    /*==================================================
    ABOUT
==================================================*/

    .about {
        padding: 120px 0;
        background: var(--light);
    }

    .section-title {
        color: var(--secondary);
        letter-spacing: 3px;
        font-weight: bold;
        font-size: .9rem;
    }

    .about h2 {
        font-size: 3rem;
        margin: 20px 0;
        font-weight: 700;
        color: var(--primary);
    }

.about p {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 25px;
}
    /* ==========================================
   MY MISSION CARD
========================================== */

    .mission-card {
        position: relative;
        background: #fff;
        border-radius: 22px;
        padding: 48px;
        overflow: hidden;
        /* Much softer shadow */
        box-shadow: 0 10px 28px rgba(0,0,0,.08);
        transition: all .35s ease;
    }
        /* Thin gold edge */
        .mission-card::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            width: 6px;
            height: 100%;
            background: #C9A03F;
        }
        /* Lift slightly on hover */
        .mission-card:hover {
            transform: translateY(-6px);
            /* IMPORTANT:
       No gold glow anymore.
       Only a soft grey shadow.
    */
            box-shadow: 0 18px 38px rgba(0,0,0,.12);
        }
    /* ==========================================
   CORNER RIBBON
========================================== */

    .corner-ribbon {
        position: absolute;
        top: 0;
        right: 0;
        width: 170px;
        height: 170px;
        overflow: hidden;
    }
        /* Ribbon */

        .corner-ribbon span {
            position: absolute;
            width: 240px;
            height: 42px;
            display: flex;
            justify-content: center;
            align-items: center;
            background: #C9A03F;
            color: #16294B;
            font-weight: 700;
            letter-spacing: 2px;
            font-size: .88rem;
            transform: rotate(45deg);
            top: 32px;
            right: -58px;
            box-shadow: 0 5px 15px rgba(0,0,0,.15);
            transition: .35s;
        }
        /* Remove the triangles completely */

        .corner-ribbon::before,
        .corner-ribbon::after {
            display: none;
        }
    /* Ribbon hover */

    .mission-card:hover .corner-ribbon span {
        background: #D5AA46;
    }
    /*==================================================
    SKILLS
==================================================*/

    .skills {
        padding: 120px 0;
    }

        .skills h2 {
            font-size: 3rem;
            font-weight: 700;
            color: var(--primary);
            margin-top: 20px;
        }

    .skills-intro {
        max-width: 700px;
        margin: 20px auto 60px;
        color: var(--text);
        font-size: 1.1rem;
    }

    .skill-card {
        background: white;
        border-radius: 20px;
        padding: 40px;
        text-align: center;
        box-shadow: 0 15px 35px rgba(0,0,0,.08);
        transition: .35s;
        height: 100%;
    }

        .skill-card:hover {
            transform: translateY(-12px);
        }

.skills-icon {
    font-size: 55px;
    color: #4A5D87;
    margin-bottom: 25px;
    transition: .35s ease;
}




    .skill-card h3 {
        margin-bottom: 25px;
        color: var(--primary);
    }

    .skill-card ul {
        list-style: none;
        padding: 0;
    }

    .skill-card li {
        padding: 10px 0;
        color: var(--text);
        border-bottom: 1px solid #f1f1f1;
    }

        .skill-card li:last-child {
            border: none;
        }
    /*==================================================
    PROJECTS
==================================================*/

    .projects {
        padding: 120px 0;
        background: var(--light);
    }

        .projects h2 {
            font-size: 3rem;
            font-weight: 700;
            margin-top: 20px;
        }

    .projects-intro {
        max-width: 700px;
        margin: 20px auto 60px;
        color: var(--text);
        font-size: 1.1rem;
    }

    .project-card {
        background: white;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 15px 35px rgba(0,0,0,.08);
        transition: .35s;
        height: 100%;
    }

        .project-card:hover {
            transform: translateY(-12px);
        }

    .project-image {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

    .project-content {
        padding: 30px;
    }

    .project-status {
        display: inline-block;
        background: var(--secondary);
        color: white;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: .85rem;
        margin-bottom: 15px;
    }

    .project-content h3 {
        margin-bottom: 20px;
        color: var(--primary);
    }

    .project-content p {
        color: var(--text);
        margin-bottom: 25px;
    }

    .project-tags {
        margin-bottom: 25px;
    }

        .project-tags span {
            display: inline-block;
            background: #eef2f7;
            color: var(--primary);
            padding: 8px 14px;
            border-radius: 20px;
            font-size: .85rem;
            margin: 5px;
        }

    .project-button {
        display: inline-block;
        text-decoration: none;
        color: white;
        background: var(--primary);
        padding: 12px 28px;
        border-radius: 30px;
        transition: .3s;
    }

        .project-button:hover {
            background: var(--secondary);
            color: white;
        }

    /*==================================================
    JOURNEY
==================================================*/

    .journey {
        padding: 120px 0;
    }

        .journey h2 {
            font-size: 3rem;
            margin-top: 20px;
        }

    .journey-intro {
        max-width: 700px;
        margin: 20px auto 70px;
        color: var(--text);
    }

    .timeline {
        border-left: 4px solid var(--secondary);
        padding-left: 40px;
    }

    .timeline-item {
        margin-bottom: 60px;
        position: relative;
    }

        .timeline-item::before {
            content: "";
            width: 22px;
            height: 22px;
            background: var(--secondary);
            border-radius: 50%;
            position: absolute;
            left: -53px;
            top: 10px;
        }

    .timeline-year {
        color: var(--secondary);
        font-size: 1.2rem;
        font-weight: bold;
        margin-bottom: 15px;
    }

    .timeline-content {
        background: white;
        padding: 30px;
        border-radius: 15px;
        box-shadow: 0 15px 30px rgba(0,0,0,.08);
    }

        .timeline-content h3 {
            color: var(--primary);
            margin-bottom: 15px;
        }
    /*==================================================
    CONTACT
==================================================*/

    .contact {
        padding: 120px 0;
        background: var(--primary);
        color: white;
    }

        .contact h2 {
            color: white;
            font-size: 3rem;
            margin-top: 20px;
        }
       

    .contact-intro {
        max-width: 700px;
        margin: 20px auto 60px;
        color: #dddddd;
    }

    .contact-card {
        background: rgba(255,255,255,.08);
        padding: 40px;
        border-radius: 20px;
        text-align: center;
        transition: .3s;
        height: 100%;
    }

        .contact-card:hover {
            transform: translateY(-10px);
            background: rgba(255,255,255,.12);
        }

        .contact-card h3 {
            color: var(--secondary);
            margin-bottom: 20px;
        }

        .contact-card p {
            margin: 0;
        }

        .contact-card a {
            color: inherit; /* Uses the same color as the surrounding text */
            text-decoration: none; /* Removes the underline */
        }

            .contact-card a:hover {
                color: inherit;
                text-decoration: none;
            }


