/*=========================================
    CHARLES OTUGEH PORTFOLIO
    STYLE.CSS
==========================================*/

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/*=========================================
    VARIABLES
==========================================*/

:root{

    --bg:#050816;
    --secondary:#0f172a;
    --card:#111827;

    --primary:#00ff88;
    --primary-dark:#00d974;

    --white:#ffffff;

    --text:#d1d5db;
    --muted:#94a3b8;

    --border:#1f2937;

    --shadow:0 15px 40px rgba(0,255,136,.15);

    --transition:.35s ease;

}

/*=========================================
        RESET
==========================================*/

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    background:var(--bg);
    color:var(--text);

    font-family:"Poppins",sans-serif;

    overflow-x:hidden;

    line-height:1.7;

}

img{

    max-width:100%;
    display:block;

}

a{

    color:inherit;
    text-decoration:none;

}

ul{

    list-style:none;

}

.container{

    width:90%;
    max-width:1200px;

    margin:auto;

}

/*=========================================
        SCROLLBAR
==========================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#09090b;

}

::-webkit-scrollbar-thumb{

    background:var(--primary);

    border-radius:20px;

}

/*=========================================
        SECTION
==========================================*/

section{

    padding:100px 0;

}

.section-title{

    text-align:center;

    margin-bottom:70px;

}

.section-title h2{

    color:var(--primary);

    font-size:2.3rem;

    margin-bottom:15px;

}

.section-title p{

    color:var(--muted);

}

/*=========================================
        NAVBAR
==========================================*/

.navbar{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    padding:20px 8%;

    display:flex;

    justify-content:space-between;

    align-items:center;

    background:rgba(5,8,22,.85);

    backdrop-filter:blur(12px);

    z-index:999;

    border-bottom:1px solid rgba(255,255,255,.05);

}

.logo{

    font-size:1.4rem;

    font-weight:700;

    color:var(--white);

}

.logo span{

    color:var(--primary);

}

.nav-links{

    display:flex;

    gap:35px;

}

.nav-links a{

    transition:var(--transition);

    color:var(--text);

}

.nav-links a:hover{

    color:var(--primary);

}

.menu-btn{

    display:none;

    color:white;

    font-size:1.7rem;

    cursor:pointer;

}

/*=========================================
        HERO
==========================================*/

.hero{

    min-height:100vh;

    display:flex;

    align-items:center;

    position:relative;

    overflow:hidden;

}

#particles-js{

    position:absolute;

    width:100%;

    height:100%;

    top:0;
    left:0;

}

.hero-container{

    width:90%;

    max-width:1200px;

    margin:auto;

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:60px;

    align-items:center;

    position:relative;

    z-index:2;

}

.hero-left h1{

    font-size:4rem;

    color:var(--white);

    margin:20px 0;

}

.hero-left h1 span{

    color:var(--primary);

}

.hero-left h2{

    color:var(--primary);

    font-size:1.6rem;

    min-height:45px;

}

.welcome{

    color:var(--muted);

    letter-spacing:2px;

}

.hero-text{

    margin:30px 0;

    color:var(--text);

}

/*=========================================
        BUTTONS
==========================================*/

.hero-buttons{

    display:flex;

    gap:20px;

    margin-top:40px;

}

.btn{

    background:var(--primary);

    color:#000;

    padding:14px 28px;

    border-radius:8px;

    font-weight:600;

    transition:var(--transition);

    display:inline-block;

}

.btn:hover{

    transform:translateY(-5px);

    box-shadow:var(--shadow);

}

.btn-outline{

    background:transparent;

    color:var(--primary);

    border:2px solid var(--primary);

}

.btn-outline:hover{

    background:var(--primary);

    color:#000;

}

/*=========================================
        SOCIAL ICONS
==========================================*/

.socials{

    display:flex;

    gap:20px;

    margin-top:45px;

}

.socials a{

    width:48px;

    height:48px;

    display:flex;

    justify-content:center;

    align-items:center;

    background:var(--card);

    border-radius:50%;

    transition:var(--transition);

}

.socials a:hover{

    background:var(--primary);

    color:#000;

    transform:translateY(-6px);

}

/*=========================================
        TERMINAL
==========================================*/

.terminal{

    background:#0b1220;

    border:1px solid var(--border);

    border-radius:12px;

    overflow:hidden;

    box-shadow:var(--shadow);

}

.terminal-header{

    padding:12px;

    background:#111827;

    display:flex;

    gap:10px;

}

.red,
.yellow,
.green{

    width:12px;

    height:12px;

    border-radius:50%;

}

.red{

    background:#ef4444;

}

.yellow{

    background:#facc15;

}

.green{

    background:#22c55e;

}

.terminal-body{

    color:#00ff88;

    padding:30px;

    font-family:monospace;

    font-size:15px;

    line-height:1.8;

    white-space:pre-wrap;

}

/*=========================================
        SCROLL INDICATOR
==========================================*/

.scroll-down{

    position:absolute;

    bottom:30px;

    left:50%;

    transform:translateX(-50%);

    color:var(--primary);

    font-size:2rem;

    animation:bounce 2s infinite;

}

@keyframes bounce{

    0%,20%,50%,80%,100%{

        transform:translate(-50%,0);

    }

    40%{

        transform:translate(-50%,-10px);

    }

    60%{

        transform:translate(-50%,-5px);

    }

}
/*=========================================
        ABOUT SECTION
==========================================*/

.about-grid{

    display:grid;

    grid-template-columns:350px 1fr;

    gap:70px;

    align-items:center;

}

.about-image{

    display:flex;

    justify-content:center;

}

.about-image img{

    width:320px;

    height:320px;

    object-fit:cover;

    border-radius:50%;

    border:4px solid var(--primary);

    box-shadow:0 0 40px rgba(0,255,136,.25);

}

.about-content h3{

    color:var(--white);

    font-size:2rem;

    margin-bottom:25px;

}

.about-content p{

    margin-bottom:20px;

    color:var(--text);

}

/*=========================================
        SKILLS
==========================================*/

.skills-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:30px;

}

.skill-card{

    background:var(--card);

    padding:25px;

    border-radius:12px;

    border:1px solid var(--border);

    transition:var(--transition);

}

.skill-card:hover{

    transform:translateY(-10px);

    border-color:var(--primary);

    box-shadow:var(--shadow);

}

.skill-card h4{

    color:var(--white);

    margin-bottom:18px;

}

.progress{

    width:100%;

    height:10px;

    background:#1f2937;

    border-radius:20px;

    overflow:hidden;

    margin-bottom:10px;

}

.progress span{

    display:block;

    height:100%;

    background:linear-gradient(
        90deg,
        var(--primary),
        #00c96b
    );

    border-radius:20px;

}

.skill-card small{

    color:var(--muted);

    font-weight:600;

}

/*=========================================
      CERTIFICATIONS
==========================================*/

.cert-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));

    gap:30px;

}

.cert-card{

    background:var(--card);

    padding:35px;

    text-align:center;

    border-radius:12px;

    border:1px solid var(--border);

    transition:var(--transition);

}

.cert-card:hover{

    transform:translateY(-8px);

    border-color:var(--primary);

}

.cert-card i{

    font-size:3rem;

    color:var(--primary);

    margin-bottom:20px;

}

.cert-card h4{

    color:var(--white);

    margin-bottom:15px;

}

.cert-card p{

    color:var(--muted);

}

/*=========================================
        EXPERIENCE
==========================================*/

.timeline{

    position:relative;

    max-width:900px;

    margin:auto;

}

.timeline::before{

    content:"";

    position:absolute;

    left:50%;

    top:0;

    width:4px;

    height:100%;

    background:var(--primary);

    transform:translateX(-50%);

}

.timeline-item{

    position:relative;

    width:50%;

    padding:20px 45px;

    margin-bottom:60px;

}

.timeline-item:nth-child(odd){

    left:0;

    text-align:right;

}

.timeline-item:nth-child(even){

    left:50%;

}

.timeline-date{

    color:var(--primary);

    font-weight:700;

    margin-bottom:12px;

    font-size:1.1rem;

}

.timeline-content{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:12px;

    padding:25px;

}

.timeline-content h3{

    color:var(--white);

    margin-bottom:12px;

}

.timeline-content p{

    color:var(--text);

}

.timeline-item::after{

    content:"";

    position:absolute;

    top:35px;

    width:18px;

    height:18px;

    border-radius:50%;

    background:var(--primary);

    box-shadow:0 0 15px var(--primary);

}

.timeline-item:nth-child(odd)::after{

    right:-9px;

}

.timeline-item:nth-child(even)::after{

    left:-9px;

}

/*=========================================
        STATS
==========================================*/

.stats{

    background:var(--secondary);

}

.stats-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:30px;

}

.stat-card{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:15px;

    text-align:center;

    padding:40px 20px;

    transition:var(--transition);

}

.stat-card:hover{

    transform:translateY(-8px);

    border-color:var(--primary);

    box-shadow:var(--shadow);

}

.stat-card h2{

    color:var(--primary);

    font-size:3rem;

    margin-bottom:10px;

}

.stat-card p{

    color:var(--muted);

    font-weight:500;

}

/*=========================================
            PROJECTS
==========================================*/

.projects-grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:35px;

}

.project-card{

    background:var(--card);
    border:1px solid var(--border);
    border-radius:15px;
    overflow:hidden;
    transition:var(--transition);

}

.project-card:hover{

    transform:translateY(-12px);
    border-color:var(--primary);
    box-shadow:var(--shadow);

}

.project-header{

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:25px;

    background:#0b1220;

}

.project-header i{

    font-size:2rem;
    color:var(--primary);

}

.project-header span{

    color:var(--primary);
    font-weight:600;

}

.project-card h3{

    color:var(--white);

    margin:25px 25px 15px;

}

.project-card p{

    margin:0 25px 25px;

}

.project-card a{

    display:inline-block;

    margin:0 25px 25px;

    color:var(--primary);

    font-weight:600;

}

/*=========================================
            WRITEUPS
==========================================*/

.writeups-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

    gap:30px;

}

.writeup-card{

    background:var(--card);

    border-radius:12px;

    border:1px solid var(--border);

    padding:30px;

    transition:var(--transition);

}

.writeup-card:hover{

    transform:translateY(-8px);

    border-color:var(--primary);

}

.tag{

    display:inline-block;

    background:rgba(0,255,136,.15);

    color:var(--primary);

    padding:6px 15px;

    border-radius:30px;

    font-size:.85rem;

    margin-bottom:20px;

}

.writeup-card h3{

    color:white;

    margin-bottom:15px;

}

/*=========================================
                LABS
==========================================*/

.labs-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:30px;

}

.lab-card{

    background:var(--card);

    border-radius:15px;

    border:1px solid var(--border);

    text-align:center;

    padding:40px;

    transition:var(--transition);

}

.lab-card:hover{

    transform:translateY(-10px);

    border-color:var(--primary);

}

.lab-card h3{

    font-size:2rem;

    color:var(--primary);

    margin-bottom:10px;

}

/*=========================================
            CONTACT
==========================================*/

.contact-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:25px;

    margin-bottom:50px;

}

.contact-card{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:12px;

    padding:30px;

    text-align:center;

}

.contact-card i{

    font-size:2rem;

    color:var(--primary);

    margin-bottom:20px;

}

.contact-card h3{

    color:white;

    margin-bottom:10px;

}

.contact-form{

    display:flex;

    flex-direction:column;

    gap:20px;

    max-width:700px;

    margin:auto;

}

.contact-form input,
.contact-form textarea{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:8px;

    color:white;

    padding:18px;

    font-family:inherit;

}

.contact-form textarea{

    resize:vertical;

}

.contact-form input:focus,
.contact-form textarea:focus{

    outline:none;

    border-color:var(--primary);

}

/*=========================================
            FOOTER
==========================================*/

footer{

    background:#020617;

    padding:60px 0;

    text-align:center;

}

.footer-content h3{

    color:white;

    margin-bottom:20px;

}

.footer-socials{

    display:flex;

    justify-content:center;

    gap:20px;

    margin:30px 0;

}

.footer-socials a{

    width:48px;

    height:48px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    background:var(--card);

    transition:var(--transition);

}

.footer-socials a:hover{

    background:var(--primary);

    color:black;

}

.copyright{

    color:var(--muted);

    font-size:.9rem;

}

/*=========================================
        RESPONSIVE
==========================================*/

@media(max-width:991px){

.hero-container{

grid-template-columns:1fr;

text-align:center;

}

.about-grid{

grid-template-columns:1fr;

text-align:center;

}

.hero-buttons{

justify-content:center;

}

.socials{

justify-content:center;

}

.timeline::before{

left:20px;

}

.timeline-item{

width:100%;

left:0!important;

padding-left:60px;

padding-right:20px;

text-align:left!important;

}

.timeline-item::after{

left:11px!important;

}

}

@media(max-width:768px){

.nav-links{

display:none;

}

.menu-btn{

display:block;

}

.hero-left h1{

font-size:2.8rem;

}

.section-title h2{

font-size:2rem;

}

section{

padding:80px 0;

}

.container{

width:92%;

}

}

@media(max-width:500px){

.hero-left h1{

font-size:2.2rem;

}

.hero-left h2{

font-size:1.2rem;

}

.hero-buttons{

flex-direction:column;

}

.btn{

text-align:center;

}

.about-image img{

width:230px;

height:230px;

}

}

/*=========================================
        ANIMATIONS
==========================================*/

.fade-up{

opacity:0;

transform:translateY(40px);

transition:.8s;

}

.fade-up.active{

opacity:1;

transform:translateY(0);

}

.glow{

box-shadow:0 0 30px rgba(0,255,136,.35);

}
/* Button toggle*/
@media (max-width:768px) {
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 5%;
        background: var(--secondary);
        padding: 20px;
        border-radius: 10px;
    }
}

.top-btn{
    position:fixed;
    bottom:25px;
    right:25px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:var(--primary);
    color:#000;
    cursor:pointer;
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:1000;
}

.top-btn:hover{
    transform:translateY(-5px);
}