/* =========================
   RESET
========================= */

/* =========================
    RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Poppins,sans-serif;
    background:#f8fafc;
    color:#0f172a;
    overflow-x:hidden;
}

/* =========================
   VARIABLES
========================= */

:root{
    --primary:#2563eb;
    --secondary:#7c3aed;
    --accent:#06b6d4;
    --dark:#0f172a;
    --gray:#64748b;
    --white:#fff;
    --shadow:
    0 15px 35px rgb(0 0 0 / 8%);

}

/* =========================
   LOADER
========================= */

#loader{
    position:fixed;
    inset:0;
    background:white;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:99999;

}

.loader-content{
    text-align:center;
}

.loader-logo{
    width:100px;
    height:100px;
    border-radius:50%;
    background:
    linear-gradient(
    135deg,
    var(--primary),
    var(--secondary)
    );
    display:flex;
    justify-content:center;
    align-items:center;
    color:white;
    font-size:2rem;
    font-weight:700;
    margin:auto;
}

.loader-content p{
    margin-top:20px;
    color:var(--gray);

}

/* =========================
   SCROLL BAR
========================= */

#progressBar{
    position:fixed;
    top:0;
    left:0;
    width:0%;
    height:5px;
    background:
    linear-gradient(
    90deg,
    var(--primary),
    var(--secondary)
    );
    z-index:9999;

}

/* =========================
   HEADER
========================= */

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    padding:20px 8%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:
    rgb(255 255 255 / 85%);
    backdrop-filter:blur(15px);
    border-bottom:
    1px solid rgb(0 0 0 / 5%);
    z-index:999;

}

.logo{
    font-size:1.8rem;
    font-weight:700;
    color:var(--dark);

}

.logo span{
    color:var(--primary);

}

nav{
    display:flex;
    gap:30px;

}

nav a{
    text-decoration:none;
    color:var(--dark);
    font-weight:500;
    transition:.3s;

}

nav a:hover{
    color:var(--primary);

}

#menuBtn{
    display:none;
    background:none;
    border:none;
    font-size:1.8rem;
    cursor:pointer;

}

/* =========================
   MOBILE MENU
========================= */

.mobile-menu{
    position:fixed;
    top:80px;
    right:-100%;
    width:280px;
    background:white;
    box-shadow:var(--shadow);
    padding:25px;
    border-radius:15px;
    transition:.4s;
    z-index:999;

}

.mobile-menu.active{
    right:20px;

}

.mobile-menu a{
    display:block;
    padding:15px 0;
    text-decoration:none;
    color:var(--dark);

}

/* =========================
   HERO
========================= */

.hero{
    min-height:100vh;
    display:grid;
    grid-template-columns:
    450px
    1fr;
    align-items:center;
    gap:80px;
    padding:
    150px 8%
    80px;

}

.hero-left{
    display:flex;
    justify-content:center;

}

.profile-card{
    width:380px;
    height:480px;
    border-radius:30px;
    overflow:hidden;
    background:white;
    box-shadow:var(--shadow);

}

.profile-card img{
    width:100%;
    height:100%;
    object-fit:cover;

}

.badge{
    display:inline-block;
    padding:10px 18px;
    border-radius:50px;
    background:
    rgb(37 99 235 / 10%);
    color:var(--primary);
    font-size:.9rem;
    font-weight:600;

}

.hero-right h1{
    font-size:4rem;
    margin-top:20px;
    line-height:1.1;

}

.hero-right h2{
    margin-top:15px;
    color:var(--primary);
    font-weight:600;

}

.hero-right p{
    margin-top:25px;
    color:var(--gray);
    line-height:1.8;
    max-width:700px;

}

.hero-buttons{
    margin-top:35px;
    display:flex;
    gap:15px;

}

/* =========================
   BUTTONS
========================= */

.btn-primary,
.btn-secondary{
    padding:14px 28px;
    border-radius:12px;
    text-decoration:none;
    font-weight:600;
    transition:.3s;

}

.btn-primary{
    background:
    linear-gradient(
    135deg,
    var(--primary),
    var(--secondary)
    );
    color:white;
    box-shadow:
    0 10px 25px rgb(37 99 235 / 25%);

}

.btn-primary:hover{
    transform:translateY(-4px);

}

.btn-secondary{
    border:
    2px solid
    rgb(37 99 235 / 15%);
    color:var(--primary);
    background:white;

}

.btn-secondary:hover{
    background:#eff6ff;

}

/* =========================
   GENERAL SECTION
========================= */

.section{
    padding:
    110px 8%;

}

.section-header{
    text-align:center;
    margin-bottom:60px;

}

.section-header span{
    color:var(--primary);
    font-weight:600;

}

.section-header h2{
    margin-top:10px;
    font-size:2.8rem;

}

/* =========================
   GLASS CARD
========================= */

.glass-card{
    max-width:1000px;
    margin:auto;
    background:
    rgb(255 255 255 / 80%);
    backdrop-filter:blur(15px);
    border:
    1px solid rgb(255 255 255 / 70%);
    border-radius:24px;
    padding:50px;
    box-shadow:var(--shadow);

}

.glass-card p{
    line-height:1.9;
    color:var(--gray);
    text-align:center;
    font-size:1.05rem;

}

/* =========================
   EDUCATION
========================= */

.education-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));
    gap:30px;

}

.edu-card{
    background:white;
    padding:35px;
    border-radius:24px;
    box-shadow:var(--shadow);
    transition:.4s;
    border-top:
    5px solid var(--primary);

}

.edu-card:hover{
    transform:
    translateY(-8px);

}

.edu-card h3{
    margin-bottom:15px;

}

.edu-card span{
    color:var(--primary);
    font-weight:600;

}

.edu-card p{
    margin-top:15px;
    color:var(--gray);

}

/* =========================
   EXPERIENCE
========================= */

.experience-wrapper{
    display:flex;
    flex-direction:column;
    gap:30px;

}

.job-card{
    background:white;
    padding:35px;
    border-radius:24px;
    box-shadow:var(--shadow);
    position:relative;
    overflow:hidden;

}

.job-card::before{
    content:'';
    position:absolute;
    left:0;
    top:0;
    width:6px;
    height:100%;
    background:
    linear-gradient(
    180deg,
    var(--primary),
    var(--secondary)
    );

}

.job-card h3{
    margin-bottom:10px;

}

.job-card span{
    color:var(--primary);
    font-weight:600;

}

.job-card ul{
    margin-top:20px;
    padding-left:20px;

}

.job-card li{
    margin-bottom:12px;
    color:var(--gray);
    line-height:1.7;

}

/* =========================
   ORGANIZATION
========================= */

.organization-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(300px,1fr));
    gap:25px;

}

.org-card{
    background:white;
    padding:35px;
    border-radius:24px;
    box-shadow:var(--shadow);
    transition:.4s;

}

.org-card:hover{
    transform:
    translateY(-8px);

}

.org-card h3{
    margin-bottom:15px;

}

.org-card p{
    color:var(--gray);
    line-height:1.8;

}

/* =========================
   PROJECT
========================= */

.project-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));
    gap:30px;

}

.project-card{
    background:white;
    border-radius:24px;
    padding:35px;
    box-shadow:var(--shadow);
    transition:.4s;
    position:relative;
    overflow:hidden;

}

.project-card::after{
    content:'';
    position:absolute;
    top:-100px;
    right:-100px;
    width:220px;
    height:220px;
    border-radius:50%;
    background:
    rgb(37 99 235 / 8%);

}

.project-card:hover{
    transform:
    translateY(-10px);

}

.project-card h3{
    margin-bottom:15px;

}

.project-card p{
    color:var(--gray);
    line-height:1.8;

}

/* =========================
   SKILLS
========================= */

.skills-wrapper{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));
    gap:30px;

}

.skill-box{
    background:white;
    border-radius:24px;
    padding:35px;
    box-shadow:var(--shadow);

}

.skill-box h3{
    margin-bottom:20px;
    color:var(--primary);

}

.skill-box ul{
    list-style:none;

}

.skill-box li{
    padding:12px 16px;
    margin-bottom:12px;
    border-radius:12px;
    background:#f8fafc;
    color:var(--gray);
    transition:.3s;

}

.skill-box li:hover{
    background:#eff6ff;
    color:var(--primary);
    transform:translateX(5px);

}

/* =========================
   LANGUAGE
========================= */

.language-box{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:20px;

}

.language-box div{
    background:white;
    padding:18px 28px;
    border-radius:16px;
    box-shadow:var(--shadow);
    font-weight:600;
    transition:.3s;

}

.language-box div:hover{
    transform:translateY(-5px);
    color:var(--primary);

}

/* =========================
   CONTACT
========================= */

.contact-card{
    max-width:700px;
    margin:auto;
    background:white;
    border-radius:24px;
    padding:50px;
    text-align:center;
    box-shadow:var(--shadow);

}

.contact-card p{
    margin:15px 0;
    font-size:1.1rem;
    color:var(--gray);

}

.contact-card p:hover{
    color:var(--primary);

}

/* =========================
   FOOTER
========================= */

footer{
    padding:40px;
    text-align:center;
    color:var(--gray);
    border-top:
    1px solid rgb(0 0 0 / 5%);
    margin-top:80px;

}

/* =========================
   REVEAL ANIMATION
========================= */

.reveal{
    opacity:0;
    transform:
    translateY(60px);
    transition:
    opacity .8s ease,
    transform .8s ease;

}

.reveal.active{
    opacity:1;
    transform:
    translateY(0);

}

/* =========================
   FLOATING BACKGROUND
========================= */

body::before{
    content:'';
    position:fixed;
    width:500px;
    height:500px;
    border-radius:50%;
    background:
    radial-gradient(
    circle,
    rgb(37 99 235 / 12%),
    transparent 70%
    );
    top:-200px;
    left:-200px;
    z-index:-1;

}

body::after{
    content:'';
    position:fixed;
    width:500px;
    height:500px;
    border-radius:50%;
    background:
    radial-gradient(
    circle,
    rgb(124 58 237 / 10%),
    transparent 70%
    );
    bottom:-200px;
    right:-200px;
    z-index:-1;

}

/* =========================
   CARD HOVER EFFECT
========================= */

.edu-card,
.org-card,
.project-card,
.skill-box,
.contact-card{
    transition:
    transform .35s ease,
    box-shadow .35s ease;

}

.edu-card:hover,
.org-card:hover,
.project-card:hover,
.skill-box:hover,
.contact-card:hover{
    transform:
    translateY(-8px);
    box-shadow:
    0 25px 50px rgb(0 0 0 / 10%);

}

/* =========================
   RESPONSIVE
========================= */

@media(width <=1100px){
    .hero{
        grid-template-columns:1fr;
        text-align:center;

    }

    .hero-left{
        order:1;

    }

    .hero-right{
        order:2;

    }

    .hero-buttons{
        justify-content:center;

    }

}

@media(width <=768px){
    nav{
        display:none;

    }

    #menuBtn{
        display:block;

    }

    .hero{
        padding-top:120px;

    }

    .hero-right h1{
        font-size:2.8rem;

    }

    .hero-right h2{
        font-size:1.2rem;

    }

    .section-header h2{
        font-size:2rem;

    }

    .profile-card{
        width:280px;
        height:360px;

    }

    .glass-card{
        padding:30px;

    }

    .contact-card{
        padding:35px;

    }

}

@media(width <=480px){
    .hero-right h1{
        font-size:2.2rem;

    }

    .hero-buttons{
        flex-direction:column;

    }

    .btn-primary,
    .btn-secondary{
        text-align:center;

    }

    .section{
        padding:90px 6%;

    }

}

/* =========================
   SMOOTH FADE HERO
========================= */

.hero-right{
    animation:
    fadeUp 1s ease;

}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:
        translateY(40px);

    }

    to{
        opacity:1;
        transform:
        translateY(0);

    }

}

nav a.active{
    color:#2563eb;
    font-weight:600;
}

.active{
    opacity:1 !important;
    transform:translateY(0) !important;
}