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

/* ===============================
   RESET
=================================*/
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
    scroll-behavior:smooth;
}

body{
    background:#f8f9fa;
    color:#222;
    overflow-x:hidden;
}

/* ===============================
   VARIABLES
=================================*/
:root{

    --primary:#e63946;
    --secondary:#ffffff;
    --text:#555;
    --dark:#222;
    --shadow:0 10px 25px rgba(0,0,0,.12);

}

/* ===============================
   COMMON
=================================*/

section{
    padding:90px 10%;
}

.heading{
    font-size:42px;
    text-align:center;
    margin-bottom:60px;
    color:var(--dark);
}

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

a{
    text-decoration:none;
}

.btn{

    display:inline-block;
    padding:14px 34px;
    background:var(--primary);
    color:#fff;
    border-radius:8px;
    font-weight:600;
    transition:.35s;

}

.btn:hover{

    transform:translateY(-4px);
    box-shadow:0 8px 25px rgba(230,57,70,.35);

}

.btn-outline{

    background:transparent;
    border:2px solid var(--primary);
    color:var(--primary);
    margin-left:15px;

}

.btn-outline:hover{

    background:var(--primary);
    color:#fff;

}

/* ===============================
   HEADER
=================================*/

.header{

    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 10%;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
    z-index:1000;

}

.logo{

    font-size:28px;
    font-weight:700;
    color:#222;

}

.logo span{

    color:var(--primary);

}

.navbar{

    display:flex;
    gap:35px;

}

.navbar a{

    color:#222;
    font-weight:500;
    transition:.3s;

}

.navbar a:hover{

    color:var(--primary);

}

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

.home{

    min-height:100vh;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:60px;

}

.home-content{

    flex:1;

}

.home-content h4{

    color:var(--primary);
    font-size:22px;

}

.home-content h1{

    font-size:68px;
    font-weight:800;
    margin:15px 0;
    color:#222;

}

.home-content h3{

    font-size:34px;
    color:#444;
    margin-bottom:20px;

}

.home-content p{

    color:#666;
    line-height:1.8;
    max-width:550px;
    margin-bottom:35px;

}

.buttons{

    display:flex;
    align-items:center;
    margin-bottom:35px;

}

.social{

    display:flex;
    gap:18px;

}

.social a{

    width:55px;
    height:55px;
    background:#fff;
    color:var(--primary);
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:22px;
    box-shadow:var(--shadow);
    transition:.35s;

}

.social a:hover{

    background:var(--primary);
    color:#fff;
    transform:translateY(-5px);

}

.home-image{

    flex:1;
    display:flex;
    justify-content:center;

}

.home-image img{

    width:380px;
    height:380px;
    border-radius:50%;
    object-fit:cover;
    border:8px solid #fff;
    box-shadow:0 0 35px rgba(230,57,70,.25);
    animation:float 4s ease-in-out infinite;

}

@keyframes float{

    0%{transform:translateY(0);}
    50%{transform:translateY(-18px);}
    100%{transform:translateY(0);}

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

.about-container{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:60px;
    flex-wrap:wrap;
}

.about-image img{
    width:350px;
    border-radius:20px;
    border:6px solid #fff;
    box-shadow:var(--shadow);
}

.about-text{
    flex:1;
    min-width:320px;
}

.about-text p{
    color:#555;
    line-height:1.8;
    margin-bottom:25px;
}

.about-text ul{
    list-style:none;
}

.about-text ul li{
    background:#fff;
    margin-bottom:15px;
    padding:15px 20px;
    border-left:5px solid var(--primary);
    border-radius:10px;
    box-shadow:var(--shadow);
    transition:.3s;
}

.about-text ul li:hover{
    transform:translateX(10px);
}

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

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

.skill-card{
    background:#fff;
    padding:30px;
    text-align:center;
    border-radius:15px;
    font-size:18px;
    font-weight:600;
    color:#222;
    box-shadow:var(--shadow);
    transition:.35s;
    border-top:4px solid var(--primary);
}

.skill-card:hover{
    transform:translateY(-10px);
    background:var(--primary);
    color:#fff;
}

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

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

.project-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:.4s;
}

.project-card:hover{
    transform:translateY(-12px);
}

.project-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.project-card h3{
    margin:20px;
    color:#222;
    font-size:24px;
}

.project-card p{
    margin:0 20px 20px;
    color:#666;
    line-height:1.7;
}

.project-btn{
    display:inline-block;
    margin:0 20px 25px;
    padding:12px 28px;
    background:var(--primary);
    color:#fff;
    border-radius:8px;
    transition:.3s;
}

.project-btn:hover{
    background:#c1121f;
}

/* ===============================
   CERTIFICATES
=================================*/

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

.certificate-card{
    background:#fff;
    padding:30px;
    border-radius:15px;
    text-align:center;
    font-size:18px;
    font-weight:600;
    color:#222;
    border-top:4px solid var(--primary);
    box-shadow:var(--shadow);
    transition:.3s;
}

.certificate-card:hover{
    background:var(--primary);
    color:#fff;
    transform:translateY(-10px);
}

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

.contact form{
    max-width:700px;
    margin:auto;
    display:flex;
    flex-direction:column;
    gap:20px;
}

.contact input,
.contact textarea{
    width:100%;
    padding:16px;
    border:1px solid #ddd;
    border-radius:10px;
    outline:none;
    background:#fff;
    color:#222;
    font-size:16px;
    transition:.3s;
}

.contact input:focus,
.contact textarea:focus{
    border-color:var(--primary);
    box-shadow:0 0 10px rgba(230,57,70,.25);
}

.contact textarea{
    resize:none;
}

.contact button{
    width:220px;
    cursor:pointer;
}

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

footer{
    background:#e63946;
    color:#fff;
    text-align:center;
    padding:25px;
}

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

.navbar a.active{
    color:var(--primary);
    font-weight:700;
}

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

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

::-webkit-scrollbar-thumb{
    background:#e63946;
    border-radius:20px;
}

::-webkit-scrollbar-track{
    background:#f1f1f1;
}

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

@media(max-width:991px){

.header{
    padding:18px 6%;
}

section{
    padding:90px 6%;
}

.home{
    flex-direction:column-reverse;
    text-align:center;
}

.home-content p{
    margin:auto;
}

.buttons{
    justify-content:center;
}

.social{
    justify-content:center;
}

.home-image img{
    width:300px;
    height:300px;
}

.about-container{
    flex-direction:column;
    text-align:center;
}

}

@media(max-width:768px){

.navbar{
    flex-wrap:wrap;
    justify-content:center;
    gap:18px;
}

.heading{
    font-size:34px;
}

.home-content h1{
    font-size:45px;
}

.home-content h3{
    font-size:26px;
}

.project-container,
.skills-box,
.certificate-box{
    grid-template-columns:1fr;
}

}

@media(max-width:500px){

.header{
    flex-direction:column;
    gap:15px;
}

.logo{
    font-size:22px;
}

.home-content h1{
    font-size:36px;
}

.home-content h3{
    font-size:22px;
}

.home-image img{
    width:230px;
    height:230px;
}

.buttons{
    flex-direction:column;
    gap:15px;
}

.btn-outline{
    margin-left:0;
}

.contact button{
    width:100%;
}

}