
/* ==========================================
   EKENE ASADU - PERSONAL PORTFOLIO
   BLACK & ELECTRIC BLUE DESIGN
========================================== */

/* 1. GLOBAL SETTINGS */

:root {
    --black: #080b12;
    --dark: #0d1422;
    --card: #111c2e;
    --blue: #168bff;
    --light-blue: #58b5ff;
    --white: #ffffff;
    --text: #c4d0df;
    --border: rgba(22, 139, 255, 0.25);
    --gradient: linear-gradient(135deg, #0878ed, #36b8ff);
    --shadow: 0 10px 35px rgba(0, 115, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

section {
    padding: 100px 8%;
    scroll-margin-top: 75px;
}

.section h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 12px;
    color: var(--white);
}

.section h2::after {
    content: "";
    display: block;
    width: 75px;
    height: 4px;
    background: var(--gradient);
    margin: 12px auto 25px;
    border-radius: 20px;
}

.section-intro {
    text-align: center;
    color: var(--text);
    max-width: 700px;
    margin: 0 auto 45px;
}


/* 2. HEADER AND NAVIGATION */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    min-height: 75px;
    padding: 15px 8%;
    background: rgba(8, 11, 18, 0.94);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--light-blue);
    white-space: nowrap;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 25px;
}

.navbar a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    transition: 0.3s ease;
    position: relative;
}

.navbar a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -7px;
    left: 0;
    background: var(--blue);
    transition: 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: var(--light-blue);
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--light-blue);
    font-size: 1.7rem;
    padding: 3px 12px;
    border-radius: 8px;
    cursor: pointer;
}


/* 3. HOME / HERO SECTION */

.hero {
    min-height: 90vh;
    padding: 110px 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background:
        radial-gradient(circle at 15% 25%, rgba(0, 120, 255, 0.17), transparent 35%),
        radial-gradient(circle at 85% 75%, rgba(0, 70, 180, 0.16), transparent 35%),
        var(--black);
}

.hero-content {
    max-width: 900px;
    animation: heroAppear 1.2s ease;
}

.welcome {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--blue);
    border-radius: 30px;
    color: var(--light-blue);
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 900;
}

.hero h1 span {
    color: var(--light-blue);
    text-shadow: 0 0 25px rgba(22, 139, 255, 0.4);
}

.hero h2 {
    color: var(--blue);
    font-size: clamp(1.1rem, 3vw, 1.7rem);
    margin-bottom: 25px;
}

.hero-content > p:not(.welcome) {
    max-width: 750px;
    margin: auto;
    color: var(--text);
    font-size: 1.05rem;
}

.hero-buttons {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}


/* 4. BUTTONS */

.btn {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: 0.35s ease;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(22, 139, 255, 0.2);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(22, 139, 255, 0.4);
}

.btn.secondary {
    background: transparent;
    border: 1px solid var(--blue);
    color: var(--light-blue);
}

.btn.secondary:hover {
    background: var(--blue);
    color: white;
}


/* 5. ABOUT ME */

.about {
    background: var(--dark);
}

.about-content {
    max-width: 950px;
    margin: auto;
}

.about-text {
    background: var(--card);
    padding: 40px;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.about-text h3 {
    color: var(--light-blue);
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text);
    margin-bottom: 18px;
    font-size: 1.03rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}


/* 6. MY JOURNEY */

.journey {
    background: var(--black);
}

.journey-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.journey-card {
    background: var(--card);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: 0.35s ease;
}

.journey-card:hover {
    transform: translateY(-8px);
    border-color: var(--blue);
    box-shadow: var(--shadow);
}

.journey-card h3 {
    color: var(--light-blue);
    margin-bottom: 15px;
}

.journey-card p {
    color: var(--text);
}


/* 7. MY SKILLS */

.skills {
    background: var(--dark);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.skill-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: 0.35s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    background: #132641;
    border-color: var(--light-blue);
    box-shadow: var(--shadow);
}

.skill-card h3 {
    color: var(--light-blue);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.skill-card p {
    color: var(--text);
}


/* 8. MY PROJECTS */

.projects {
    background: var(--black);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    background: var(--card);
    padding: 32px 25px;
    border-radius: 17px;
    border: 1px solid var(--border);
    transition: 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--blue);
    box-shadow: var(--shadow);
}

.project-card h3 {
    color: var(--light-blue);
    margin-bottom: 15px;
}

.project-card p {
    color: var(--text);
    margin-bottom: 25px;
    flex: 1;
}

.project-card .btn {
    margin-top: auto;
}


/* 9. MY SERVICES */

.services {
    background: var(--dark);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--card);
    padding: 30px;
    border-radius: 16px;
    border-bottom: 3px solid var(--blue);
    transition: 0.35s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.service-card h3 {
    color: var(--light-blue);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text);
}


/* 10. MY GOALS */

.goals {
    text-align: center;
    background:
        linear-gradient(rgba(8, 11, 18, 0.92), rgba(8, 11, 18, 0.95)),
        var(--dark);
}

.goals h2 {
    color: var(--light-blue);
    margin-bottom: 25px;
}

.goals p {
    max-width: 850px;
    margin: auto;
    color: var(--text);
    font-size: 1.1rem;
}


/* 11. CONTACT SECTION */

.contact {
    background: var(--dark);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 28px;
    border-radius: 15px;
    text-align: center;
    transition: 0.35s ease;
}

.contact-card:hover {
    transform: translateY(-7px);
    border-color: var(--blue);
    box-shadow: var(--shadow);
}

.contact-card h3 {
    color: var(--light-blue);
    margin-bottom: 12px;
}

.contact-card p {
    color: var(--text);
    margin-bottom: 20px;
    overflow-wrap: anywhere;
}


/* 12. CONTACT FORM */

.contact-form {
    max-width: 750px;
    margin: 60px auto 0;
    padding: 35px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    text-align: center;
    color: var(--light-blue);
    font-size: 1.7rem;
    margin-bottom: 25px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: var(--black);
    border: 1px solid #273b57;
    border-radius: 9px;
    outline: none;
    color: white;
    transition: 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 12px rgba(22, 139, 255, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #8291a5;
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form button {
    padding: 15px;
    border: none;
    border-radius: 30px;
    background: var(--gradient);
    color: white;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(22, 139, 255, 0.4);
}


/* 13. FOOTER */

.footer {
    text-align: center;
    background: #05070c;
    padding: 55px 8% 25px;
    border-top: 1px solid var(--border);
}

.footer h2 {
    color: var(--light-blue);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer p {
    color: var(--text);
    max-width: 650px;
    margin: 0 auto 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin: 30px 0;
}

.footer-links a {
    color: var(--text);
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: var(--light-blue);
}

.footer .copyright {
    font-size: 0.85rem;
    margin-top: 30px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}


/* 14. ANIMATIONS */

@keyframes heroAppear {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.js-reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* 15. TABLET RESPONSIVENESS */

@media (max-width: 1000px) {

    .header {
        padding: 15px 5%;
    }

    .navbar {
        gap: 14px;
    }

    .navbar a {
        font-size: 0.82rem;
    }

    .skills-container,
    .projects-container,
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }

    section {
        padding: 85px 6%;
    }
}


/* 16. PHONE RESPONSIVENESS */

@media (max-width: 768px) {

    .header {
        min-height: 70px;
        padding: 12px 5%;
    }

    .logo {
        font-size: 1.15rem;
    }

    .menu-toggle {
        display: block;
    }

    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px 5%;
        background: #0b1423;
        border-bottom: 1px solid var(--border);

        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .navbar.open {
        display: flex;
    }

    .navbar a {
        padding: 13px 10px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        font-size: 1rem;
    }

    .navbar a::after {
        display: none;
    }

    .hero {
        min-height: 80vh;
        padding: 90px 6%;
    }

    .hero-content > p:not(.welcome) {
        font-size: 0.96rem;
    }

    section {
        padding: 75px 6%;
    }

    .journey-content,
    .skills-container,
    .projects-container,
    .services-container,
    .contact-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-text {
        padding: 25px;
    }

    .contact-form {
        padding: 25px 18px;
    }

}


/* 17. SMALL PHONE RESPONSIVENESS */

@media (max-width: 480px) {

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.15rem;
    }

    .welcome {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .journey-content,
    .skills-container,
    .projects-container,
    .services-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-text,
    .journey-card,
    .skill-card,
    .project-card,
    .service-card,
    .contact-card {
        padding: 23px;
    }

    .footer-links {
        gap: 15px;
    }

    .section h2 {
        font-size: 1.9rem;
    }

}
