/* portfolio/style.css */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    min-height: 100vh;

    font-family: "Inter", "Segoe UI", Arial, sans-serif;

    background: #0f1117;
    color: #e6e6e6;

    line-height: 1.7;
}


/* Back button */

body > h4 {
    text-align: center;
    margin-top: 30px;
}


body > h4 a {
    display: inline-block;

    padding: 10px 18px;

    background: #171a22;
    border: 1px solid #272c38;

    border-radius: 10px;

    color: #e6e6e6;
    text-decoration: none;

    transition:
        0.2s ease;
}


body > h4 a:hover {
    border-color: #3d7cff;
    background: #222735;
    transform: translateY(-2px);
}


/* Header */

header {
    max-width: 1000px;

    margin: 50px auto 40px;

    padding: 0 20px;

    text-align: center;
}


header h1 {
    font-size: 3rem;

    color: white;

    letter-spacing: -1px;

    margin-bottom: 15px;
}


header p {
    color: #a9adb8;

    font-size: 1.1rem;

    margin: 10px 0;
}


header b {
    color: #6ea8fe;
}


/* Dividers */

hr {
    max-width: 1100px;

    height: 1px;

    margin: 35px auto;

    border: none;

    background: #292d38;
}


/* Sections */

section {
    max-width: 1100px;

    margin: 40px auto;

    padding: 30px;

    background: #171a22;

    border: 1px solid #272c38;

    border-radius: 18px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


section:hover {
    border-color: #3d7cff;

    box-shadow:
        0 15px 35px rgba(0,0,0,0.25);
}



section h2 {
    font-size: 2rem;

    color: white;

    margin-bottom: 20px;
}


section h3 {
    margin-top: 25px;

    margin-bottom: 12px;

    color: #6ea8fe;

    font-size: 1.3rem;
}


section p {
    color: #b5b8c2;

    margin-bottom: 15px;
}


/* Lists */

ul {
    margin: 15px 0 20px 25px;
}


li {
    color: #c8cbd3;

    margin: 6px 0;
}


li::marker {
    color: #6ea8fe;
}


/* Projects */

article {
    background: #10131a;

    border: 1px solid #272c38;

    border-radius: 15px;

    padding: 25px;

    margin: 25px 0;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}


article:hover {
    transform: translateY(-5px);

    border-color: #3d7cff;
}


article h3 {
    color: white;

    margin-top: 0;

    font-size: 1.5rem;
}


article p {
    color: #a9adb8;
}


/* =========================
   Animated Links
========================= */


a {

    color: #6ea8fe;

    text-decoration: none;

    position: relative;

    display: inline-block;

    transition:
        color 0.2s ease;

}


a::after {

    content: "";

    position: absolute;

    left: 50%;

    bottom: -3px;

    width: 0;

    height: 2px;

    background:

        linear-gradient(
            90deg,
            #3d7cff,
            #60a5fa
        );

    border-radius: 10px;

    transform:

        translateX(-50%);

    transition:

        width 0.3s ease;

}


a:hover {

    color: #9cc5ff;

}


a:hover::after {

    width: 100%;

}


/* Contact */

section:last-of-type a {
    font-weight: 600;
}


/* Footer */

footer {
    text-align: center;

    color: #8b8f99;

    padding: 30px 20px;
}


footer hr {
    margin-bottom: 20px;
}


/* Page animation */

header,
section,
footer {
    animation: fadeIn 0.6s ease-out;
}


@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(15px);
    }


    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Mobile */

@media(max-width:600px) {

    header h1 {
        font-size: 2.2rem;
    }


    section {
        margin: 25px 15px;
        padding: 25px;
    }


    section h2 {
        font-size: 1.6rem;
    }


    article {
        padding: 20px;
    }

}

/* Scroll reveal animations */

section,
article {
    opacity: 0;
    transform: translateY(40px) scale(0.98);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}


section.show,
article.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}


/* Optional: stagger project cards */

article:nth-child(1) {
    transition-delay: 0.05s;
}

article:nth-child(2) {
    transition-delay: 0.1s;
}

article:nth-child(3) {
    transition-delay: 0.15s;
}

article:nth-child(4) {
    transition-delay: 0.2s;
}

article:nth-child(5) {
    transition-delay: 0.25s;
}

article:nth-child(6) {
    transition-delay: 0.3s;
}