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

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Manrope',sans-serif;
}

:root{
    --primary:#cc0000;
    --secondary:#ff4d4d;

    --bg:#f8f9fb;
    --card:rgba(255,255,255,.75);

    --text:#111111;
    --muted:#6b7280;

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

    --shadow:
    0 10px 40px rgba(0,0,0,.08);
}

html{
    scroll-behavior:smooth;
}

body{
    background:var(--bg);
    color:var(--text);
    overflow-x:hidden;
    line-height:1.7;
    position:relative;
}

body::before{
    content:"";
    position:fixed;
    width:500px;
    height:500px;
    top:-250px;
    left:-250px;
    background:#ffd7d7;
    filter:blur(180px);
    z-index:-2;
}

body::after{
    content:"";
    position:fixed;
    width:500px;
    height:500px;
    bottom:-250px;
    right:-250px;
    background:#ffeaea;
    filter:blur(180px);
    z-index:-2;
}

#particles-js{
    position:fixed;
    inset:0;
    z-index:-1;
}

a{
    text-decoration:none;
    color:inherit;
}

ul{
    list-style:none;
}

/* NAVBAR */

.navbar{

    position:fixed;

    top:20px;
    left:50%;

    transform:translateX(-50%);

    width:95%;
    max-width:1400px;

    height:85px;

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

    padding:0 50px;

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

    backdrop-filter:blur(25px);
    -webkit-backdrop-filter:blur(25px);

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

    border-radius:80px;

    box-shadow:var(--shadow);

    z-index:9999;
}

.nav-left,
.nav-right{
    display:flex;
    gap:35px;
}

.nav-links a{

    color:var(--text);

    font-weight:600;

    position:relative;

    transition:.3s;
}

.nav-links a::after{

    content:'';

    position:absolute;

    left:0;
    bottom:-8px;

    width:0;
    height:2px;

    background:var(--primary);

    transition:.3s;
}

.nav-links a:hover{
    color:var(--primary);
}

.nav-links a:hover::after{
    width:100%;
}

.logo{

    position:absolute;

    left:50%;

    transform:translateX(-50%);
}

.logo img{
    height:60px;
    width:auto;
}


/* MOBILE */

.menu-btn{
    display:none;
    font-size:1.5rem;
    cursor:pointer;
}

/* HERO */

.hero{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:150px 20px 80px;
}

.hero-content{
    max-width:900px;
}

.hero h3{
    color:var(--primary);
    margin-bottom:15px;
}

.hero h1{

    font-size:clamp(4rem,8vw,7rem);

    font-weight:800;

    line-height:1.1;
}

.hero h2{

    font-size:clamp(1.2rem,4vw,2rem);

    color:#555;

    margin:20px 0;
}

.hero p{

    max-width:700px;

    margin:auto;

    color:var(--muted);
}

/* BUTTONS */

.hero-buttons{
    margin-top:35px;
}

.btn,
.btn-outline{

    display:inline-block;

    padding:15px 35px;

    border-radius:60px;

    margin:10px;

    transition:.3s;
}

.btn{

    background:var(--primary);

    color:#fff;

    font-weight:600;
}

.btn:hover{

    transform:translateY(-5px);

    box-shadow:
    0 12px 25px rgba(204,0,0,.25);
}

.btn-outline{

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

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

    backdrop-filter:blur(15px);
}

.social-icons{
    margin-top:25px;
}

.social-icons a{

    font-size:1.3rem;

    margin:0 10px;

    transition:.3s;
}

.social-icons a:hover{
    color:var(--primary);
}

/* SECTIONS */

section{
    padding:100px 8%;
}

.section-title{

    text-align:center;

    font-size:clamp(2rem,5vw,3rem);

    margin-bottom:70px;

    position:relative;
}

.section-title::after{

    content:'';

    position:absolute;

    width:80px;
    height:4px;

    background:var(--primary);

    left:50%;

    bottom:-15px;

    transform:translateX(-50%);
}


/* GLASS CARDS */

.glass-card,
.stat-card,
.project-card,
.certificate-card,
.timeline-item{

    background:var(--card);

    backdrop-filter:blur(25px);

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

    border-radius:30px;

    box-shadow:var(--shadow);

    transition:.4s;
}

.glass-card{
    padding:45px;
    text-align:center;
}

.stat-card,
.project-card,
.certificate-card{
    padding:30px;
}

.stat-card:hover,
.project-card:hover,
.certificate-card:hover{

    transform:
    translateY(-10px);

    box-shadow:
    0 15px 45px rgba(0,0,0,.12);
}

.stats-grid,
.project-grid,
.certificate-grid{

    display:grid;

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

    gap:25px;
}

.stat-card h2{

    color:var(--primary);

    font-size:3rem;
}

/* SKILLS */

.skills-container{
    max-width:900px;
    margin:auto;
}

.skill{
    margin-bottom:25px;
}

.skill-info{

    display:flex;

    justify-content:space-between;

    margin-bottom:10px;
}

.progress{

    background:#e5e7eb;

    height:12px;

    border-radius:30px;

    overflow:hidden;
}

.progress-bar{

    height:100%;

    background:
    linear-gradient(
    90deg,
    var(--primary),
    var(--secondary)
    );
}

/* CONTACT */

.contact-form{

    max-width:800px;

    margin:auto;
}

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

    width:100%;

    padding:18px;

    margin-bottom:18px;

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

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

    border-radius:18px;

    color:#111;
}

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

    outline:none;

    border-color:var(--primary);
}

/* FILTER BUTTONS */

.filter-buttons{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:15px;
    margin:40px 0;
}

.filter-buttons button{
    padding:12px 28px;
    border:none;
    border-radius:50px;
    background:#f5f5f5;
    color:#222;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:.4s;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.filter-buttons button:hover,
.filter-buttons button.active{
    background:#cc0000;
    color:#fff;
    transform:translateY(-3px);
}

/* PROJECT GRID */

.project-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
    margin-top:30px;
}

.project-card{
    background:#fff;
    padding:30px;
    border-radius:20px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.4s;
}

.project-card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 40px rgba(204,0,0,.15);
}

.project-card h3{
    margin-bottom:10px;
    color:#111;
}

.project-card p{
    color:#666;
    font-size:14px;
}


/* FOOTER */

footer{

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

    backdrop-filter:blur(25px);

    padding:70px 20px;

    text-align:center;

    border-top:1px solid rgba(0,0,0,.05);
}

.footer-social{
    margin:20px 0;
}

.footer-social a{
    margin:0 10px;
    font-size:1.2rem;
}

/* =========================
   GLOBAL LAYOUT FIX
========================= */

body{
    overflow-x:hidden;
}

section{
    width:100%;
    max-width:1400px;
    margin:auto;
    padding:100px 40px;
}

img{
    max-width:100%;
    display:block;
}

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

.navbar{
    width:95%;
    max-width:1400px;
    margin:auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.nav-left,
.nav-right{
    display:flex;
    align-items:center;
    gap:35px;
}

.logo{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
}

.logo img{
    height:60px;
    object-fit:contain;
}

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

.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding-top:180px;
    padding-bottom:100px;
}

.hero-content{
    width:100%;
    max-width:900px;
    margin:auto;
}

.hero h1{
    margin-bottom:20px;
}

.hero h2{
    margin:20px 0;
}

.hero p{
    max-width:750px;
    margin:auto;
}

/* =========================
   BUTTON ALIGNMENT
========================= */

.hero-buttons{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:15px;
    margin-top:40px;
}

.btn,
.btn-outline{
    min-width:190px;
    text-align:center;
}

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

.social-icons{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;
    margin-top:30px;
}

.social-icons a{
    display:flex;
    align-items:center;
    justify-content:center;
}

/* =========================
   GRID FIX
========================= */

.stats-grid,
.project-grid,
.certificate-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.stat-card,
.project-card,
.certificate-card{
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    text-align:center;
}

/* =========================
   PROJECT FILTER BUTTONS
========================= */

.filter-buttons{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:15px;
    margin-bottom:50px;
}

.filter-buttons button{
    min-width:120px;
}

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

.glass-card{
    max-width:1000px;
    margin:auto;
}

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

.skills-container{
    max-width:900px;
    margin:auto;
}

.skill{
    margin-bottom:30px;
}

.skill-info{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

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

.contact-form{
    max-width:850px;
    margin:auto;
}

.contact-form input,
.contact-form textarea{
    width:100%;
}

.contact-form textarea{
    min-height:180px;
    resize:none;
}

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

footer{
    width:100%;
}

.footer-social{
    display:flex;
    justify-content:center;
    gap:20px;
}

/* =========================
   TABLET
========================= */

@media (max-width:992px){

    section{
        padding:90px 30px;
    }

    .navbar{
        padding:0 30px;
    }

    .hero h1{
        font-size:4rem;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width:768px){

    .navbar{
        height:75px;
        padding:0 20px;
    }

    .logo{
        left:20px;
        transform:none;
        position:relative;
    }

    .logo img{
        height:45px;
    }

    .menu-btn{
        display:block;
        margin-left:auto;
    }

    .nav-left,
    .nav-right{
        display:none;
    }

    section{
        padding:80px 20px;
    }

    .hero{
        padding-top:130px;
        min-height:auto;
    }

    .hero h1{
        font-size:2.7rem;
        line-height:1.2;
    }

    .hero h2{
        font-size:1.1rem;
    }

    .hero p{
        font-size:.95rem;
    }

    .hero-buttons{
        flex-direction:column;
        width:100%;
    }

    .btn,
    .btn-outline{
        width:100%;
        max-width:320px;
    }

    .stats-grid,
    .project-grid,
    .certificate-grid{
        grid-template-columns:1fr;
    }

    .filter-buttons{
        gap:10px;
    }

    .filter-buttons button{
        flex:1 1 45%;
        min-width:130px;
    }

    .glass-card,
    .stat-card,
    .project-card,
    .certificate-card{
        padding:25px;
    }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width:480px){

    .hero h1{
        font-size:2.2rem;
    }

    .hero h2{
        font-size:1rem;
    }

    .section-title{
        font-size:2rem;
    }

    .navbar{
        width:92%;
    }

    .filter-buttons button{
        width:100%;
    }
}