/*
Theme Name: Selasi v4 Cyber Portfolio
Theme URI: https://github.com/samuelselasi
Author: Samuel Selasi Kporvie
Description: A high-fidelity clone of the v4 portfolio layout engineered as a fast, native WordPress theme.
Version: 4.3.0
Text Domain: selasi-v4
*/

:root {
    --dark-navy: #0a192f;
    --navy: #0f2b48;
    --light-navy: #112240;
    --lightest-navy: #233554;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --white: #e6f1ff;
    --green: #64ffda;
    --font-sans: 'Calibre', 'Inter', 'San Francisco', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-navy);
    color: var(--light-slate); 
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.3;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5 {
    color: var(--white);
    font-weight: 600;
}

a {
    color: var(--green);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.main-container {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    padding: 0 150px;
    margin: 0 auto;
}

section {
    padding: 100px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.numbered-heading {
    display: flex;
    align-items: center;
    position: relative;
    margin: 10px 0 40px;
    width: 100%;
    font-size: clamp(26px, 5vw, 32px);
    white-space: nowrap;
    color: var(--white);
}

.numbered-heading::before {
    content: "0" attr(data-num) ".";
    margin-right: 10px;
    font-family: var(--font-mono);
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 400;
    color: var(--green);
}

.numbered-heading::after {
    content: "";
    display: block;
    position: relative;
    width: min(300px, 30%);
    height: 1px;
    margin-left: 20px;
    background-color: var(--lightest-navy);
}

.profile-img-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    background-color: var(--green);
    border-radius: 4px;
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.profile-img-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-navy);
    mix-blend-mode: screen;
    border-radius: 4px;
    z-index: 2;
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.profile-img-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--green);
    border-radius: 4px;
    top: 20px;
    left: 20px;
    z-index: -1;
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.profile-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    mix-blend-mode: multiply;
    filter: grayscale(100%) brightness(1) contrast(1);
    position: relative;
    z-index: 1;
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.profile-img-wrapper:hover {
    background-color: transparent;
    transform: translate(-4px, -4px);
}

.profile-img-wrapper:hover::before { opacity: 0; }
.profile-img-wrapper:hover::after { transform: translate(6px, 6px); }
.profile-img-wrapper:hover img { mix-blend-mode: normal; filter: none; }

.v4-tabs-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.v4-tab-list {
    display: flex;
    flex-direction: column;
    min-width: 180px;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.v4-tab-button {
    background: transparent;
    border: none;
    border-left: 2px solid var(--lightest-navy);
    color: var(--light-slate);
    font-family: var(--font-mono);
    font-size: 13px;
    text-align: left;
    padding: 0 20px;
    height: 42px;
    line-height: 42px;
    cursor: pointer;
    width: 100%;
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.v4-tab-button:hover {
    background-color: var(--light-navy);
    color: var(--green);
}

.v4-tab-button.active {
    color: var(--green);
    background-color: var(--light-navy);
    border-left: 2px solid var(--green);
}

.v4-tab-content-wrapper {
    flex-grow: 1;
    position: relative;
    padding-left: 30px;
}

.v4-tab-content {
    display: none;
    width: 100%;
}

.v4-tab-content.active {
    display: block;
}

.v4-tab-content h3 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--white);
}

.v4-tab-content h3 .company-highlight { color: var(--green); }
.v4-tab-content .job-timeline-text { font-family: var(--font-mono); font-size: 13px; color: var(--slate); margin-bottom: 25px; }
.v4-tab-content ul { list-style: none; padding: 0; margin: 0; }

.v4-tab-content ul li {
    position: relative;
    padding-left: 25px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--light-slate);
    margin-bottom: 12px;
}

.v4-tab-content ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--green);
    font-size: 14px;
}

.featured-projects-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.featured-project-item {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
}

.project-content-block {
    position: relative;
    grid-column: 7 / -1;
    grid-row: 1 / -1;
    text-align: right;
    z-index: 2;
}

.featured-project-item:nth-child(even) .project-content-block {
    grid-column: 1 / 7;
    text-align: left;
}

.project-overhead-tag {
    margin: 10px 0;
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
}

.project-main-title {
    color: var(--white);
    font-size: clamp(24px, 5vw, 28px);
    margin-bottom: 20px;
}

.project-description-bubble {
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
    position: relative;
    z-index: 2;
    padding: 25px;
    border-radius: 4px;
    background-color: var(--light-navy);
    color: var(--light-slate);
    font-size: 15px;
    line-height: 1.6;
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    list-style: none;
    gap: 15px;
    margin: 20px 0 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--light-slate);
}

.featured-project-item:nth-child(even) .project-tech-list { justify-content: flex-start; }

.project-links-row {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    color: var(--white);
    font-size: 18px;
}

.featured-project-item:nth-child(even) .project-links-row { justify-content: flex-start; }

.project-image-block {
    grid-column: 1 / 8;
    grid-row: 1 / -1;
    position: relative;
    z-index: 1;
    background-color: var(--green);
    border-radius: 4px;
    height: 340px;
    overflow: hidden;
    cursor: pointer;
    transition: background-color 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.featured-project-item:nth-child(even) .project-image-block { grid-column: 6 / -1; }

.project-image-block::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--dark-navy);
    mix-blend-mode: screen;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.project-image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    filter: grayscale(100%) contrast(1.2) brightness(0.9);
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.project-image-block:hover {
    background-color: transparent;
}

.project-image-block:hover::before {
    opacity: 0;
}

.project-image-block:hover img {
    mix-blend-mode: normal;
    filter: none;
}

.noteworthy-grid-shell {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 15px;
    position: relative;
    margin-top: 50px;
}

.noteworthy-card {
    background-color: var(--light-navy);
    padding: 30px 25px;
    border-radius: 4px;
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.noteworthy-card:hover { transform: translateY(-7px); }
.noteworthy-card h3 { margin: 10px 0; font-size: 18px; color: var(--white); }
.noteworthy-card p { font-size: 14px; line-height: 1.5; color: var(--light-slate); }

.publication-item-card {
    background-color: rgba(17, 34, 64, 0.3);
    padding: 25px;
    border-radius: 4px;
    border-left: 2px solid var(--lightest-navy);
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.publication-item-card:hover { background-color: var(--light-navy); border-left: 2px solid var(--green); transform: translateX(4px); }
.publication-item-card:hover h4, .publication-item-card:hover .pub-meta { color: var(--green); }
.publication-item-card h4 { font-size: 16px; color: var(--white); margin-bottom: 8px; transition: color 0.25s ease; }
.publication-item-card .pub-author { font-size: 14px; color: var(--white); font-style: italic; margin-bottom: 5px; }
.publication-item-card .pub-meta { font-size: 13px; font-family: var(--font-mono); color: var(--light-slate); transition: color 0.25s ease; }

.side-dock { position: fixed; bottom: 0; width: 40px; z-index: 10; display: flex; flex-direction: column; align-items: center; }
.side-dock.left { left: 40px; right: auto; }
.side-dock.right { right: 40px; left: auto; }
.side-dock ul { display: flex; flex-direction: column; align-items: center; list-style: none; gap: 25px; margin-bottom: 25px; padding: 0; }
.side-dock ul li a { font-size: 20px; color: var(--light-slate); display: inline-block; transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1); }
.side-dock ul li a:hover { transform: translateY(-3px); color: var(--green) !important; }
.side-dock .vertical-line { width: 1px; height: 90px; background-color: var(--light-slate); }
.email-link { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; writing-mode: vertical-rl; margin-bottom: 25px; color: var(--light-slate); transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1); }
.email-link:hover { transform: translateY(-3px); color: var(--green); }

.reveal-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.6s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1); }
.reveal-on-scroll.visible { opacity: 1; transform: translateY(0); }

.v4-site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(10, 25, 47, 0.90);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    box-sizing: border-box;
}

.v4-header-logo {
    cursor: pointer;
    flex-shrink: 0;
    line-height: 0;
}

.v4-header-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.v4-header-nav {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.desktop-nav-links {
    display: flex !important;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    align-items: center;
    white-space: nowrap;
}

.desktop-nav-links li a {
    color: var(--light-slate);
    transition: color 0.25s ease;
}

.desktop-nav-links li a:hover {
    color: var(--green);
}

.desktop-nav-links li a span {
    color: var(--green);
    margin-right: 4px;
}

.desktop-nav-links li a.resume-btn {
    border: 1px solid var(--green);
    padding: 8px 16px;
    border-radius: 4px;
    color: var(--green);
    transition: background 0.25s ease;
}

.desktop-nav-links li a.resume-btn:hover {
    background: rgba(100, 255, 218, 0.08);
}

.mobile-drawer-overlay,
.mobile-drawer-container {
    display: none !important;
}

.hamburger-menu-toggle {
    display: none !important;
    background: transparent;
    border: 0;
    color: var(--green);
    cursor: pointer;
    z-index: 1100;
    padding: 15px;
    position: relative;
}

.hamburger-box-inner {
    width: 30px;
    height: 2px;
    background-color: var(--green);
    display: block;
    position: relative;
    transition: transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger-box-inner::before, .hamburger-box-inner::after {
    content: "";
    width: 30px;
    height: 2px;
    background-color: var(--green);
    position: absolute;
    left: 0;
    transition: transform 0.22s ease, top 0.22s ease, bottom 0.22s ease;
}

.hamburger-box-inner::before { top: -10px; }
.hamburger-box-inner::after { bottom: -10px; }

body.menu-open .hamburger-box-inner {
    transform: rotate(225deg);
    transition: transform 0.22s cubic-bezier(0.215, 0.61, 0.355, 1);
}
body.menu-open .hamburger-box-inner::before { top: 0; opacity: 0; }
body.menu-open .hamburger-box-inner::after { bottom: 0; transform: rotate(-90deg); }

@media (max-width: 1080px) {
    .main-container { padding: 0 80px; }
    .side-dock.left { left: 20px; }
    .side-dock.right { right: 20px; }
    .v4-site-header { padding: 0 30px; }
    .desktop-nav-links { gap: 15px; font-size: 12px; }
}

@media (max-width: 768px) {
    .main-container { padding: 0 25px; }
    .side-dock { display: none !important; }
    .desktop-nav-links { display: none !important; }
    .hamburger-menu-toggle { display: block !important; }

    .v4-header-nav .mobile-drawer-overlay {
        display: flex !important;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 1000;
        background-color: rgba(10, 25, 47, 0.7);
        backdrop-filter: blur(5px);
        visibility: hidden;
        opacity: 0;
        transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    }
    
    body.menu-open .v4-header-nav .mobile-drawer-overlay {
        visibility: visible;
        opacity: 1;
    }

    .v4-header-nav .mobile-drawer-container {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: var(--light-navy);
        padding: 50px;
        width: min(75vw, 400px);
        height: 100vh;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1050;
        box-shadow: -10px 0px 30px -15px rgba(2,12,27,0.7);
        transform: translateX(100%);
        transition: transform 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    }

    body.menu-open .v4-header-nav .mobile-drawer-container {
        transform: translateX(0);
    }

    .v4-header-nav .mobile-drawer-container ul {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        list-style: none;
        gap: clamp(20px, 4vw, 40px);
        width: 100%;
    }

    .v4-header-nav .mobile-drawer-container ul li {
        width: 100%;
        text-align: center;
    }

    .v4-header-nav .mobile-drawer-container ul li a {
        color: var(--light-slate);
        display: inline-block;
        font-family: var(--font-sans);
        font-size: clamp(14px, 4vw, 18px);
        padding: 5px 20px;
        transition: color 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    }

    .v4-header-nav .mobile-drawer-container ul li a:hover {
        color: var(--green);
    }

    .v4-header-nav .mobile-drawer-container ul li a span {
        display: block;
        color: var(--green);
        font-family: var(--font-mono);
        font-size: clamp(12px, 3vw, 14px);
        margin-bottom: 8px;
        margin-right: 0;
    }

    .v4-header-nav .mobile-drawer-container ul li a.mobile-resume {
        border: 1px solid var(--green);
        padding: 16px 45px;
        border-radius: 4px;
        color: var(--green);
        font-family: var(--font-mono);
        font-size: 14px;
        display: inline-block;
        margin-top: 10px;
        transition: background-color 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    }

    .v4-header-nav .mobile-drawer-container ul li a.mobile-resume:hover {
        background-color: rgba(100, 255, 218, 0.08);
    }

    .v4-tabs-container { flex-direction: column; }
    .v4-tab-list { flex-direction: row; overflow-x: auto; margin-bottom: 20px; border-left: none; border-bottom: 2px solid var(--lightest-navy); }
    .v4-tab-button { border-left: none; border-bottom: 2px solid transparent; text-align: center; padding: 0 15px; }
    .v4-tab-button.active { border-left: none; border-bottom: 2px solid var(--green); }
    .v4-tab-content-wrapper { padding-left: 0; }

    .featured-project-item {
        grid-template-columns: 1fr !important;
        margin-bottom: 50px;
    }
    .project-content-block {
        grid-column: 1 / -1 !important;
        text-align: left !important;
        padding: 40px 30px 30px !important;
        background-color: rgba(17, 34, 64, 0.92);
        border-radius: 4px;
        box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
    }
    .project-tech-list { justify-content: flex-start !important; }
    .project-links-row { justify-content: flex-start !important; }
    .project-description-bubble {
        background-color: transparent !important;
        padding: 20px 0 !important;
        box-shadow: none !important;
    }
    .project-image-block {
        grid-column: 1 / -1 !important;
        grid-row: 1 / -1 !important;
        height: 100% !important;
        min-height: 380px;
        opacity: 0.25;
        pointer-events: none;
    }
}

@media (max-width: 480px) {
    .main-container { padding: 0 20px; }
    .project-content-block { padding: 30px 20px 20px !important; }
}

.footer-mobile-email { display: none; }

@media (max-width: 768px) {
    .footer-mobile-email { display: block; }
}

#about ul li.hoverable-item {
    padding: 8px 12px 8px 32px;
    border-left: 2px solid transparent;
    border-radius: 3px;
    transition: background-color 0.25s cubic-bezier(0.645, 0.045, 0.355, 1),
                border-left-color 0.25s cubic-bezier(0.645, 0.045, 0.355, 1),
                color 0.25s ease;
    cursor: default;
}

#about ul li.hoverable-item:hover {
    background-color: var(--light-navy);
    border-left-color: var(--green);
    color: var(--white);
}

#about ul li.hoverable-item:hover strong {
    color: var(--green);
}

.v4-tab-content ul li {
    border-left: 2px solid transparent;
    border-radius: 3px;
    transition: background-color 0.25s cubic-bezier(0.645, 0.045, 0.355, 1),
                border-left-color 0.25s cubic-bezier(0.645, 0.045, 0.355, 1),
                color 0.25s ease;
    cursor: default;
}

.v4-tab-content ul li:hover {
    background-color: var(--light-navy);
    border-left-color: var(--green);
    color: var(--white);
}

#about .tech-item {
    padding: 6px 10px 6px 28px;
    border-left: 2px solid transparent;
    border-radius: 3px;
    transition: background-color 0.25s cubic-bezier(0.645, 0.045, 0.355, 1),
                border-left-color 0.25s cubic-bezier(0.645, 0.045, 0.355, 1),
                color 0.25s ease;
    cursor: default;
}

#about .tech-item:hover {
    background-color: var(--light-navy);
    border-left-color: var(--green);
    color: var(--green);
}

.footer-mobile-socials {
    display: none;
}

@media (max-width: 768px) {
    .footer-mobile-socials {
        display: block;
        margin-bottom: 15px;
    }
    
    .footer-mobile-socials ul {
        display: flex;
        justify-content: center;
        align-items: center;
        list-style: none;
        padding: 0;
        margin: 0;
        gap: 30px;
    }
    
    .footer-mobile-socials ul li a {
        font-size: 22px;
        color: var(--light-slate);
        transition: transform 0.25s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.25s ease;
        display: inline-block;
    }
    
    .footer-mobile-socials ul li a:hover {
        transform: translateY(-3px);
        color: var(--green);
    }
}

/* ==========================================================================
   NEW REFINEMENTS: TEXT HIGHLIGHTS, CARD HOVERS, AND BUTTON GLOWS
   ========================================================================== */

.about-text-content strong {
    color: var(--white);
    font-weight: 500;
}

.featured-project-item:hover .project-description-bubble {
    color: var(--white);
    background-color: var(--lightest-navy);
}

.featured-project-item:hover .project-tech-list li {
    color: var(--green);
}

#contact a.say-hello-btn:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

/* ==========================================================================
   ADDITIONS: CONTACT BLOCK KEYWORD HIGHLIGHTS & SECTION HOVERS
   ========================================================================== */

.contact-keyword {
    color: var(--light-slate);
    font-weight: 500;
    transition: color 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

#contact:hover .contact-text-content {
    color: var(--white) !important;
}

#contact:hover .contact-keyword {
    color: var(--green);
}

/* ==========================================================================
   NEW REFINEMENTS: HERO & ABOUT HOVER HIGHLIGHTS WITH BLUE-GREEN KEYWORDS
   ========================================================================= */

/* Base setup for custom keywords inside Hero block */
.hero-keyword {
    color: var(--slate);
    font-weight: 500;
    transition: color 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Lights up parent description paragraph and flips keywords when container section registers a hover state */
#hero:hover .hero-text-content {
    color: var(--white) !important;
}

#hero:hover .hero-keyword {
    color: var(--green);
}

/* Base setup for custom keywords inside About section */
.about-keyword {
    color: var(--light-slate);
    font-weight: 500;
    transition: color 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Lights up about description paragraphs and turns keywords green concurrently upon hover */
#about:hover .about-text-content {
    color: var(--white) !important;
}

#about:hover .about-keyword {
    color: var(--green);
}

/* Check out my work! CTA alpha channel glow focus pipeline */
#hero a[href="#projects"]:hover {
    background-color: rgba(100, 255, 218, 0.1);
}