/* =====================================
   Personal Website
   محمد امینی
===================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:"Vazirmatn",sans-serif;
    background:#08111f;
    color:#fff;
    overflow-x:hidden;
    line-height:2;
}

/* ================= Background ================= */

.background{
    position:fixed;
    inset:0;
    z-index:-1;

    background:
    linear-gradient(-45deg,
    #0f172a,
    #1e293b,
    #0ea5e9,
    #2563eb);

    background-size:400% 400%;
    animation:bgMove 12s ease infinite;
}

@keyframes bgMove{

    0%{background-position:0 50%;}

    50%{background-position:100% 50%;}

    100%{background-position:0 50%;}

}

/* ================= Layout ================= */

.container{

    width:92%;
    max-width:1200px;
    margin:auto;

}

section{

    padding:90px 0;

}

.section-title{

    text-align:center;
    font-size:38px;
    margin-bottom:45px;
    font-weight:700;

}

/* ================= Hero ================= */

header{

    min-height:100vh;
    display:flex;
    align-items:center;

}

.hero{

    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:70px;
    flex-wrap:wrap;

}

.profile{

    flex:0 0 300px;

}

.profile img{

    width:300px;
    height:300px;

    border-radius:50%;

    object-fit:cover;

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

    box-shadow:
    0 20px 60px rgba(0,0,0,.35);

}

.hero-text{

    flex:1;

}

.hero-text h1{

    font-size:58px;
    margin-bottom:15px;

}

.hero-text h2{

    color:#38bdf8;
    font-size:26px;
    font-weight:500;
    margin-bottom:20px;

}

.hero-text p{

    color:#d9d9d9;
    max-width:650px;

}

/* ================= Buttons ================= */

.buttons{

    display:flex;
    gap:18px;
    margin-top:35px;
    flex-wrap:wrap;

}

.btn,
.btn2{

    text-decoration:none;
    padding:14px 35px;
    border-radius:12px;
    transition:.3s;
    font-weight:bold;

}

.btn{

    background:#0ea5e9;
    color:white;

}

.btn:hover{

    transform:translateY(-5px);
    box-shadow:0 15px 35px rgba(14,165,233,.4);

}

.btn2{

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

    backdrop-filter:blur(15px);

    color:white;

}

.btn2:hover{

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

}

/* ================= Cards ================= */

.card{

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

    backdrop-filter:blur(20px);

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

    border-radius:25px;

    padding:45px;

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

}

/* ================= Skills ================= */

.skills{

    display:flex;

    flex-wrap:wrap;

    justify-content:center;

    gap:18px;

    margin-top:35px;

}

.skill{

    display:flex;

    align-items:center;

    gap:10px;

    padding:15px 24px;

    border-radius:50px;

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

    backdrop-filter:blur(20px);

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

    transition:.35s;

    cursor:default;

}

.skill:hover{

    background:#0ea5e9;

    transform:translateY(-6px) scale(1.05);

    box-shadow:0 15px 35px rgba(14,165,233,.35);

}

.skill i{

    color:#38bdf8;

    font-size:20px;

    transition:.3s;

}

.skill:hover i{

    color:white;

}

.skill span{

    font-weight:600;

}
/* ================= Statistics ================= */

.stats{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
}

.stat{
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(20px);
    border:1px solid rgba(255,255,255,.08);
    border-radius:22px;
    padding:35px;
    text-align:center;
    transition:.35s;
}

.stat:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(0,0,0,.25);
}

.stat h3{
    font-size:42px;
    color:#38bdf8;
    margin-bottom:10px;
}

.stat p{
    color:#ddd;
}

/* ================= Services ================= */

.services{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.service{
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(20px);
    border:1px solid rgba(255,255,255,.08);
    border-radius:22px;
    padding:35px;
    transition:.35s;
}

.service:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(0,0,0,.25);
}

.service h3{
    color:#38bdf8;
    margin-bottom:18px;
}

.service p{
    color:#ddd;
}

/* ================= Contact ================= */

.contact{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.contact a{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color:white;
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(15px);
    border:1px solid rgba(255,255,255,.08);
    padding:16px 28px;
    border-radius:14px;
    transition:.3s;
}

.contact a:hover{
    background:#0ea5e9;
    transform:translateY(-5px);
}

/* ================= Footer ================= */

footer{
    margin-top:70px;
    border-top:1px solid rgba(255,255,255,.08);
    text-align:center;
    padding:35px;
    color:#bfbfbf;
}

/* ================= Scroll Animation ================= */

.hidden{
    opacity:0;
    transform:translateY(60px);
    transition:1s;
}

.show{
    opacity:1;
    transform:translateY(0);
}

/* ================= Scrollbar ================= */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#0b1324;
}

::-webkit-scrollbar-thumb{
    background:#1d4ed8;
    border-radius:50px;
}

::-webkit-scrollbar-thumb:hover{
    background:#38bdf8;
}

/* ================= Selection ================= */

::selection{
    background:#0ea5e9;
    color:white;
}

/* ================= Responsive ================= */

@media(max-width:992px){

.hero{

    justify-content:center;
    text-align:center;

}

.hero-text{

    display:flex;
    flex-direction:column;
    align-items:center;

}

.profile img{

    width:220px;
    height:220px;

}

.hero-text h1{

    font-size:42px;

}

.hero-text h2{

    font-size:22px;

}

.section-title{

    font-size:30px;

}

.buttons{

    justify-content:center;

}

.card{

    padding:30px;

}

}

@media(max-width:576px){

.container{

    width:94%;

}

.hero-text h1{

    font-size:34px;

}

.hero-text h2{

    font-size:20px;

}

.btn,
.btn2{

    width:100%;
    text-align:center;

}

.contact{

    flex-direction:column;

}

.contact a{

    justify-content:center;

}

.skill{

    width:100%;
    justify-content:center;

}

.stat h3{

    font-size:34px;

}

}