/* ==========================================================
   Mohd Atif Cybersecurity Portfolio
   style.css
   Part 1
========================================================== */

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

:root{

    --bg-primary:#050816;
    --bg-secondary:#08121f;
    --bg-card:rgba(255,255,255,.06);

    --cyan:#00e5ff;
    --blue:#2196f3;
    --electric:#4fc3ff;

    --text:#ffffff;
    --text-light:#b8c4d9;

    --border:rgba(255,255,255,.12);

    --shadow:
        0 0 20px rgba(0,229,255,.15);

    --glass:
        rgba(255,255,255,.05);

    --radius:18px;

    --transition:.35s ease;

}

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

*{

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

}

html{

    scroll-behavior:smooth;

}

body{

    background:
    linear-gradient(
        180deg,
        var(--bg-primary),
        var(--bg-secondary)
    );

    color:var(--text);

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

    overflow-x:hidden;

    min-height:100vh;

}

a{

    text-decoration:none;

    color:inherit;

}

ul{

    list-style:none;

}

img{

    max-width:100%;

    display:block;

}

section{

    position:relative;

    padding:120px 8%;

}

.container{

    max-width:1200px;

    margin:auto;

}

.glass{

    background:var(--glass);

    backdrop-filter:blur(16px);

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

    border-radius:var(--radius);

    box-shadow:var(--shadow);

}

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

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#07101d;

}

::-webkit-scrollbar-thumb{

    background:linear-gradient(
    var(--cyan),
    var(--blue));

    border-radius:50px;

}

/* ==========================
   LOADER
========================== */

#loader{

    position:fixed;

    inset:0;

    background:#050816;

    display:flex;

    align-items:center;

    justify-content:center;

    z-index:99999;

    transition:.8s;

}

.loader-content{

    text-align:center;

}

.loader-logo{

    font-size:2rem;

    font-family:"JetBrains Mono",monospace;

    color:var(--cyan);

    margin-bottom:30px;

}

.loader-bar{

    width:280px;

    height:8px;

    border-radius:20px;

    overflow:hidden;

    background:#0d1a29;

}

.loader-bar span{

    display:block;

    width:0%;

    height:100%;

    background:linear-gradient(
    90deg,
    var(--cyan),
    var(--electric));

    animation:loading 2.8s linear forwards;

}

.loader-content p{

    margin-top:20px;

    color:var(--text-light);

}

/* ==========================
   CURSOR GLOW
========================== */

#cursor-glow{

    width:280px;

    height:280px;

    position:fixed;

    left:0;

    top:0;

    pointer-events:none;

    border-radius:50%;

    background:

    radial-gradient(
    circle,
    rgba(0,229,255,.20),
    transparent 70%);

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

    z-index:0;

}

/* ==========================
   STARS
========================== */

.stars{

    position:fixed;

    inset:0;

    background-image:

    radial-gradient(
    white 1px,
    transparent 1px);

    background-size:55px 55px;

    opacity:.08;

    animation:starsMove 80s linear infinite;

    z-index:-3;

}

/* ==========================
   CYBER GRID
========================== */

.grid-overlay{

    position:fixed;

    inset:0;

    background-image:

    linear-gradient(
    rgba(0,229,255,.06) 1px,
    transparent 1px),

    linear-gradient(
    90deg,
    rgba(0,229,255,.06) 1px,
    transparent 1px);

    background-size:60px 60px;

    mask-image:
    linear-gradient(to bottom,
    transparent,
    black);

    z-index:-2;

}

/* ==========================
   FLOATING SHAPES
========================== */

.floating-shapes{

    position:fixed;

    inset:0;

    overflow:hidden;

    pointer-events:none;

    z-index:-1;

}

.floating-shapes span{

    position:absolute;

    width:180px;

    height:180px;

    border-radius:50%;

    filter:blur(70px);

    opacity:.18;

    animation:float 18s linear infinite;

}

.floating-shapes span:nth-child(1){

    background:#00e5ff;

    left:5%;

    top:20%;

}

.floating-shapes span:nth-child(2){

    background:#2196f3;

    right:10%;

    top:15%;

}

.floating-shapes span:nth-child(3){

    background:#4fc3ff;

    bottom:10%;

    left:15%;

}

.floating-shapes span:nth-child(4){

    background:#00bfff;

    right:18%;

    bottom:15%;

}

.floating-shapes span:nth-child(5){

    background:#00e5ff;

    left:50%;

    top:55%;

}

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

header{

    position:fixed;

    width:100%;

    top:0;

    z-index:999;

}

.navbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 8%;

    backdrop-filter:blur(18px);

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

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

}

.logo{

    font-size:1.35rem;

    font-weight:700;

    color:var(--cyan);

}

.logo-symbol{

    color:var(--electric);

}

.nav-links{

    display:flex;

    gap:30px;

}

.nav-links a{

    color:var(--text-light);

    transition:var(--transition);

    position:relative;

}

.nav-links a:hover,

.nav-links a.active{

    color:var(--cyan);

}

.nav-links a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:2px;

    background:var(--cyan);

    transition:.3s;

}

.nav-links a:hover::after,

.nav-links a.active::after{

    width:100%;

}

.menu-toggle{

    display:none;

    cursor:pointer;

}

.menu-toggle span{

    display:block;

    width:28px;

    height:3px;

    margin:5px;

    background:white;

}

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

.hero{

    min-height:100vh;

    display:grid;

    grid-template-columns:1fr 420px;

    gap:70px;

    align-items:center;

}

.hero-tag{

    display:inline-block;

    padding:8px 18px;

    border-radius:50px;

    background:rgba(0,229,255,.12);

    color:var(--cyan);

    margin-bottom:20px;

    border:1px solid rgba(0,229,255,.2);

}

.hero h1{

    font-size:4.5rem;

    font-weight:800;

    line-height:1;

    margin-bottom:15px;

}

.hero h2{

    color:var(--text-light);

    font-size:2rem;

    margin-bottom:25px;

}

.hero h2 span{

    color:var(--cyan);

}

.typing-wrapper{

    font-family:"JetBrains Mono",monospace;

    color:var(--cyan);

    font-size:1.3rem;

    margin-bottom:30px;

}

.typing-cursor{

    animation:blink .8s infinite;

}

.hero-description{

    max-width:650px;

    color:var(--text-light);

    line-height:1.9;

    margin-bottom:35px;

}

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

.btn{

    display:inline-flex;

    align-items:center;

    gap:10px;

    padding:15px 34px;

    border-radius:50px;

    transition:.35s;

    font-weight:600;

}

.btn-primary{

    background:

    linear-gradient(
    135deg,
    var(--cyan),
    var(--blue));

    color:#04111d;

}

.btn-primary:hover{

    transform:translateY(-5px);

    box-shadow:

    0 0 25px rgba(0,229,255,.5);

}

.btn-secondary{

    border:1px solid rgba(255,255,255,.15);

    backdrop-filter:blur(15px);

}

.btn-secondary:hover{

    border-color:var(--cyan);

    color:var(--cyan);

}

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

.hero-stats{

    display:flex;

    gap:20px;

    margin-top:60px;

    flex-wrap:wrap;

}

.stat-card{

    padding:25px;

    min-width:170px;

    border-radius:18px;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    transition:.35s;

}

.stat-card:hover{

    transform:translateY(-8px);

    box-shadow:

    0 0 30px rgba(0,229,255,.25);

}

.stat-card h3{

    font-size:2rem;

    color:var(--cyan);

}

.stat-card p{

    margin-top:8px;

    color:var(--text-light);

}

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

.terminal-window{

    border-radius:20px;

    overflow:hidden;

    background:#08111d;

    border:1px solid rgba(255,255,255,.08);

    box-shadow:

    0 0 35px rgba(0,229,255,.15);

}

.terminal-header{

    display:flex;

    align-items:center;

    gap:10px;

    padding:15px 20px;

    background:#0d1727;

}

.dot{

    width:12px;

    height:12px;

    border-radius:50%;

}

.red{

    background:#ff5f56;

}

.yellow{

    background:#ffbd2e;

}

.green{

    background:#27c93f;

}

.terminal-title{

    margin-left:auto;

    color:#9db0c8;

    font-size:.9rem;

}

.terminal-body{

    padding:28px;

    font-family:"JetBrains Mono",monospace;

    color:#6cf6ff;

    line-height:1.9;

}

.scroll-indicator{

    position:absolute;

    bottom:30px;

    left:50%;

    transform:translateX(-50%);

    display:flex;

    flex-direction:column;

    gap:6px;

}

.scroll-indicator span{

    width:10px;

    height:10px;

    border-radius:50%;

    background:var(--cyan);

    animation:bounce 1.5s infinite;

}

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

.section-title{

    text-align:center;

    margin-bottom:70px;

}

.section-badge{

    display:inline-block;

    padding:8px 18px;

    margin-bottom:18px;

    border-radius:999px;

    background:rgba(0,229,255,.08);

    border:1px solid rgba(0,229,255,.18);

    color:var(--cyan);

    font-size:.8rem;

    font-weight:600;

    letter-spacing:2px;

    text-transform:uppercase;

}

.section-title h2{

    font-size:3rem;

    font-weight:700;

    margin-bottom:18px;

}

.section-title p{

    max-width:700px;

    margin:auto;

    color:var(--text-light);

    line-height:1.8;

}

/* ==========================
   ABOUT
========================== */

.about-wrapper{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:35px;

}

.about-card{

    padding:35px;

    transition:var(--transition);

}

.about-card:hover{

    transform:translateY(-10px);

    border-color:rgba(0,229,255,.35);

    box-shadow:

    0 0 35px rgba(0,229,255,.18);

}

.card-header{

    display:flex;

    align-items:center;

    gap:15px;

    margin-bottom:25px;

}

.card-header i{

    width:60px;

    height:60px;

    display:grid;

    place-items:center;

    border-radius:50%;

    background:rgba(0,229,255,.12);

    color:var(--cyan);

    font-size:1.4rem;

}

.card-header h3{

    font-size:1.6rem;

}

.about-card p{

    color:var(--text-light);

    line-height:1.9;

    margin-bottom:18px;

}

.info-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:18px;

}

.info-box{

    background:rgba(255,255,255,.04);

    border:1px solid rgba(255,255,255,.08);

    border-radius:14px;

    padding:18px;

    transition:.3s;

}

.info-box:hover{

    transform:translateY(-5px);

    border-color:rgba(0,229,255,.35);

}

.info-title{

    display:block;

    color:var(--cyan);

    font-size:.85rem;

    margin-bottom:8px;

    text-transform:uppercase;

    letter-spacing:1px;

}

.info-value{

    color:var(--text);

    font-weight:600;

}

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

.skills-container{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:28px;

}

.skill-card{

    padding:28px;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    transition:var(--transition);

}

.skill-card:hover{

    transform:translateY(-8px);

    border-color:rgba(0,229,255,.35);

    box-shadow:

    0 0 30px rgba(0,229,255,.15);

}

.skill-title{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:16px;

    font-weight:600;

}

.skill-title span:last-child{

    color:var(--cyan);

}

.skill-progress{

    height:12px;

    border-radius:999px;

    overflow:hidden;

    background:rgba(255,255,255,.08);

}

.skill-fill{

    width:0;

    height:100%;

    border-radius:999px;

    background:linear-gradient(
        90deg,
        var(--cyan),
        var(--electric),
        var(--blue)
    );

    box-shadow:

        0 0 15px rgba(0,229,255,.45);

    transition:width 1.8s ease;

}

/* Skill shine animation */

.skill-fill::after{

    content:"";

    position:absolute;

    inset:0;

    background:

        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.45),
            transparent
        );

    animation:shine 2.5s infinite;

}

.skill-progress{

    position:relative;

}

/* Reveal animation base */

.reveal{

    opacity:0;

    transform:translateY(60px);

    transition:

        opacity .8s ease,

        transform .8s ease;

}

.reveal.active{

    opacity:1;

    transform:translateY(0);

}
/* ==========================
   LANGUAGES
========================== */

.language-grid{

    display:grid;

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

    gap:28px;

}

.language-card{

    padding:35px 25px;

    text-align:center;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    border-radius:20px;

    transition:var(--transition);

    position:relative;

    overflow:hidden;

}

.language-card::before{

    content:"";

    position:absolute;

    inset:0;

    background:

        linear-gradient(
            135deg,
            rgba(0,229,255,.08),
            transparent 70%
        );

    opacity:0;

    transition:.4s;

}

.language-card:hover::before{

    opacity:1;

}

.language-card:hover{

    transform:translateY(-10px);

    border-color:rgba(0,229,255,.35);

    box-shadow:

        0 0 30px rgba(0,229,255,.18);

}

.language-card i{

    font-size:2.5rem;

    color:var(--cyan);

    margin-bottom:20px;

}

.language-card h3{

    margin-bottom:12px;

    font-size:1.35rem;

}

.language-card p{

    color:var(--text-light);

}

/* ==========================
   COMMUNITY
========================== */

.discord-card{

    display:grid;

    grid-template-columns:180px 1fr;

    gap:40px;

    align-items:center;

    padding:45px;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    border-radius:24px;

    transition:var(--transition);

}

.discord-card:hover{

    transform:translateY(-10px);

    border-color:rgba(88,101,242,.45);

    box-shadow:

        0 0 35px rgba(88,101,242,.25);

}

.discord-icon{

    width:150px;

    height:150px;

    border-radius:50%;

    display:grid;

    place-items:center;

    margin:auto;

    background:

        radial-gradient(circle,
        rgba(88,101,242,.35),
        rgba(88,101,242,.08));

}

.discord-icon i{

    font-size:5rem;

    color:#5865F2;

}

.discord-content h3{

    font-size:2rem;

    margin-bottom:18px;

}

.discord-content p{

    color:var(--text-light);

    margin-bottom:20px;

}

.community-stats{

    display:flex;

    gap:25px;

    margin-bottom:30px;

}

.community-stat{

    padding:20px 28px;

    border-radius:16px;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

}

.community-stat h4{

    font-size:2rem;

    color:var(--cyan);

    margin-bottom:6px;

}

.community-stat span{

    color:var(--text-light);

}

/* ==========================
   TIMELINE
========================== */

.timeline{

    position:relative;

    max-width:900px;

    margin:auto;

    padding-left:40px;

}

.timeline::before{

    content:"";

    position:absolute;

    left:15px;

    top:0;

    bottom:0;

    width:3px;

    background:

        linear-gradient(
            var(--cyan),
            var(--blue)
        );

}

.timeline-item{

    position:relative;

    margin-bottom:50px;

}

.timeline-dot{

    position:absolute;

    left:-32px;

    top:6px;

    width:18px;

    height:18px;

    border-radius:50%;

    background:var(--cyan);

    box-shadow:

        0 0 20px rgba(0,229,255,.8);

}

.timeline-content{

    padding:25px;

    border-radius:18px;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    transition:var(--transition);

}

.timeline-content:hover{

    transform:translateX(10px);

    border-color:rgba(0,229,255,.35);

}

.timeline-content h3{

    margin-bottom:10px;

}

.timeline-content p{

    color:var(--text-light);

    line-height:1.8;

}

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

.contact-grid{

    display:grid;

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

    gap:30px;

}

.contact-card{

    padding:35px;

    text-align:center;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    border-radius:20px;

    transition:var(--transition);

}

.contact-card:hover{

    transform:translateY(-10px);

    border-color:rgba(0,229,255,.35);

    box-shadow:

        0 0 30px rgba(0,229,255,.18);

}

.contact-card i{

    font-size:2.8rem;

    color:var(--cyan);

    margin-bottom:18px;

}

.contact-card h3{

    margin-bottom:10px;

}

.contact-card p{

    color:var(--text-light);

    word-break:break-word;

}

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

footer{

    padding:40px 8%;

    text-align:center;

    border-top:1px solid rgba(255,255,255,.08);

    background:rgba(255,255,255,.03);

}

footer p{

    color:var(--text-light);

    font-size:1rem;

}

footer span{

    color:var(--cyan);

}

/* ==========================
   BACK TO TOP
========================== */

#backToTop{

    position:fixed;

    right:25px;

    bottom:25px;

    width:55px;

    height:55px;

    border:none;

    border-radius:50%;

    background:

        linear-gradient(
            135deg,
            var(--cyan),
            var(--blue)
        );

    color:#04111d;

    font-size:1.2rem;

    cursor:pointer;

    display:flex;

    align-items:center;

    justify-content:center;

    opacity:0;

    visibility:hidden;

    transition:.35s;

    z-index:999;

    box-shadow:

        0 0 20px rgba(0,229,255,.3);

}

#backToTop.show{

    opacity:1;

    visibility:visible;

}

#backToTop:hover{

    transform:translateY(-6px);

    box-shadow:

        0 0 30px rgba(0,229,255,.45);

}
/* ==========================
   KEYFRAME ANIMATIONS
========================== */

@keyframes loading{

    from{

        width:0;

    }

    to{

        width:100%;

    }

}

@keyframes blink{

    0%,
    50%{

        opacity:1;

    }

    51%,
    100%{

        opacity:0;

    }

}

@keyframes bounce{

    0%{

        transform:translateY(0);

        opacity:.4;

    }

    50%{

        transform:translateY(12px);

        opacity:1;

    }

    100%{

        transform:translateY(0);

        opacity:.4;

    }

}

.scroll-indicator span:nth-child(2){

    animation-delay:.2s;

}

.scroll-indicator span:nth-child(3){

    animation-delay:.4s;

}

@keyframes float{

    0%{

        transform:
            translateY(0)
            translateX(0)
            scale(1);

    }

    25%{

        transform:
            translateY(-60px)
            translateX(30px)
            scale(1.05);

    }

    50%{

        transform:
            translateY(-20px)
            translateX(-40px)
            scale(.95);

    }

    75%{

        transform:
            translateY(40px)
            translateX(20px)
            scale(1.08);

    }

    100%{

        transform:
            translateY(0)
            translateX(0)
            scale(1);

    }

}

@keyframes starsMove{

    from{

        background-position:0 0;

    }

    to{

        background-position:0 2000px;

    }

}

@keyframes shine{

    from{

        transform:translateX(-100%);

    }

    to{

        transform:translateX(200%);

    }

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:
            translateY(40px);

    }

    to{

        opacity:1;

        transform:
            translateY(0);

    }

}

@keyframes fadeLeft{

    from{

        opacity:0;

        transform:
            translateX(-40px);

    }

    to{

        opacity:1;

        transform:
            translateX(0);

    }

}

@keyframes fadeRight{

    from{

        opacity:0;

        transform:
            translateX(40px);

    }

    to{

        opacity:1;

        transform:
            translateX(0);

    }

}

@keyframes pulseGlow{

    0%{

        box-shadow:
            0 0 12px rgba(0,229,255,.15);

    }

    50%{

        box-shadow:
            0 0 35px rgba(0,229,255,.45);

    }

    100%{

        box-shadow:
            0 0 12px rgba(0,229,255,.15);

    }

}

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

@media (max-width:1100px){

    .hero{

        grid-template-columns:1fr;

        text-align:center;

    }

    .hero-description{

        margin-left:auto;

        margin-right:auto;

    }

    .hero-buttons{

        justify-content:center;

        display:flex;

        flex-wrap:wrap;

        gap:18px;

    }

    .hero-stats{

        justify-content:center;

    }

    .terminal-window{

        max-width:700px;

        margin:auto;

    }

    .about-wrapper{

        grid-template-columns:1fr;

    }

    .skills-container{

        grid-template-columns:1fr;

    }

    .discord-card{

        grid-template-columns:1fr;

        text-align:center;

    }

    .community-stats{

        justify-content:center;

    }

}

@media (max-width:900px){

    .nav-links{

        position:fixed;

        top:75px;

        right:-100%;

        width:280px;

        height:calc(100vh - 75px);

        flex-direction:column;

        padding:40px;

        background:#08121f;

        transition:.35s;

        border-left:1px solid rgba(255,255,255,.08);

    }

    .nav-links.active{

        right:0;

    }

    .menu-toggle{

        display:block;

    }

    .hero h1{

        font-size:3.4rem;

    }

    .hero h2{

        font-size:1.6rem;

    }

    .section-title h2{

        font-size:2.4rem;

    }

    .info-grid{

        grid-template-columns:1fr;

    }

}

@media (max-width:768px){

    section{

        padding:90px 7%;

    }

    .hero{

        gap:50px;

    }

    .hero-stats{

        flex-direction:column;

        align-items:center;

    }

    .stat-card{

        width:100%;

        max-width:320px;

    }

    .timeline{

        padding-left:30px;

    }

    .timeline::before{

        left:10px;

    }

    .timeline-dot{

        left:-20px;

    }

    .community-stats{

        flex-direction:column;

    }

}

@media (max-width:600px){

    .hero h1{

        font-size:2.7rem;

    }

    .hero h2{

        font-size:1.25rem;

    }

    .typing-wrapper{

        font-size:1rem;

    }

    .btn{

        width:100%;

        justify-content:center;

    }

    .terminal-body{

        font-size:.85rem;

        padding:22px;

    }

    .language-grid{

        grid-template-columns:1fr;

    }

    .contact-grid{

        grid-template-columns:1fr;

    }

    .discord-icon{

        width:110px;

        height:110px;

    }

    .discord-icon i{

        font-size:3.5rem;

    }

}

@media (max-width:420px){

    .navbar{

        padding:16px 5%;

    }

    .hero h1{

        font-size:2.2rem;

    }

    .section-title h2{

        font-size:2rem;

    }

    .about-card,

    .skill-card,

    .contact-card,

    .language-card,

    .timeline-content,

    .discord-card{

        padding:22px;

    }

    .loader-logo{

        font-size:1.5rem;

    }

    .loader-bar{

        width:220px;

    }

}