/* ===========================
   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;
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#0f172a;
    color:#ffffff;
    line-height:1.7;
}

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

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

section{
    padding:90px 8%;
}

/* ===========================
   Scroll Bar
=========================== */

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

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

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

/* ===========================
   Loader
=========================== */

#loader{
    position:fixed;
    inset:0;
    background:#0f172a;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.spinner{
    width:60px;
    height:60px;
    border:6px solid #ffffff30;
    border-top:6px solid #3b82f6;
    border-radius:50%;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    100%{
        transform:rotate(360deg);
    }
}

/* ===========================
   Header
=========================== */

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 8%;
    background:#111827;
    z-index:1000;
}

.logo h2{
    color:#3b82f6;
    font-size:32px;
}

nav ul{
    display:flex;
    gap:30px;
}

nav ul li a{
    color:#fff;
    font-weight:500;
    transition:.3s;
}

nav ul li a:hover{
    color:#3b82f6;
}

.menu-btn{
    display:none;
    color:white;
    font-size:28px;
    cursor:pointer;
}

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

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

.hero-text{
    flex:1;
}

.hero-text span{
    color:#3b82f6;
    font-size:22px;
}

.hero-text h1{
    font-size:60px;
    margin:15px 0;
}

.hero-text h2{
    color:#94a3b8;
    margin-bottom:20px;
}

.hero-text p{
    color:#cbd5e1;
    max-width:650px;
}

.hero-image{
    flex:1;
    display:flex;
    justify-content:center;
}

.hero-image img{
    width:380px;
    border-radius:25px;
    box-shadow:0 20px 40px rgba(0,0,0,.4);
}

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

.btn{
    display:inline-block;
    background:#2563eb;
    color:#fff;
    padding:14px 30px;
    border-radius:10px;
    margin-top:30px;
    transition:.3s;
}

.btn:hover{
    background:#1d4ed8;
}

.btn-outline{
    display:inline-block;
    margin-left:15px;
    border:2px solid #2563eb;
    color:#fff;
    padding:14px 30px;
    border-radius:10px;
    transition:.3s;
}

.btn-outline:hover{
    background:#2563eb;
}

/* ===========================
   Social Icons
=========================== */

.social-icons{
    display:flex;
    gap:18px;
    margin-top:35px;
}

.social-icons a{
    width:45px;
    height:45px;
    border-radius:50%;
    background:#1e293b;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#fff;
    font-size:20px;
    transition:.3s;
}

.social-icons a:hover{
    background:#2563eb;
    transform:translateY(-5px);
}
/*==================================
 ABOUT SECTION
==================================*/

#about{
    background:#111827;
}

.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title h2{
    font-size:42px;
    color:#3b82f6;
}

.section-title p{
    color:#cbd5e1;
    margin-top:10px;
}

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

.about-image{
    flex:1;
    text-align:center;
}

.about-image img{
    width:350px;
    border-radius:20px;
    box-shadow:0 15px 35px rgba(0,0,0,.4);
}

.about-content{
    flex:1;
}

.about-content h3{
    font-size:36px;
    margin-bottom:20px;
}

.about-content p{
    color:#d1d5db;
    margin-bottom:15px;
}

.about-info{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    margin:30px 0;
}

.about-info div{
    background:#1e293b;
    padding:18px;
    border-radius:12px;
}

.about-info h4{
    color:#3b82f6;
    margin-bottom:8px;
}

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

#skills{
    background:#0f172a;
}

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

.skill-box{
    background:#1e293b;
    text-align:center;
    padding:35px;
    border-radius:18px;
    transition:.4s;
}

.skill-box:hover{
    transform:translateY(-10px);
    background:#2563eb;
}

.skill-box i{
    font-size:55px;
    margin-bottom:20px;
    color:#3b82f6;
}

.skill-box:hover i{
    color:white;
}

.skill-box h3{
    font-size:22px;
}

/*==================================
 EXPERIENCE
==================================*/

#experience{
    background:#111827;
}

.timeline{
    position:relative;
    max-width:900px;
    margin:auto;
}

.timeline::before{
    content:"";
    position:absolute;
    left:20px;
    top:0;
    width:4px;
    height:100%;
    background:#3b82f6;
}

.timeline-item{
    margin-left:60px;
    margin-bottom:40px;
    background:#1e293b;
    padding:25px;
    border-radius:15px;
}

.timeline-item h3{
    color:#3b82f6;
    margin-bottom:10px;
}

.timeline-item p{
    color:#d1d5db;
}

/*==================================
 SERVICES
==================================*/

#services{
    background:#0f172a;
}

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

.service-card{
    background:#1e293b;
    padding:35px;
    border-radius:20px;
    text-align:center;
    transition:.4s;
}

.service-card:hover{
    transform:translateY(-12px);
    background:#2563eb;
}

.service-card i{
    font-size:55px;
    color:#3b82f6;
    margin-bottom:20px;
}

.service-card:hover i{
    color:white;
}

.service-card h3{
    margin-bottom:15px;
}

.service-card p{
    color:#d1d5db;
}

/*==================================
 STATISTICS
==================================*/

#statistics{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
    background:#111827;
}

.counter-box{
    text-align:center;
    padding:35px;
    background:#1e293b;
    border-radius:20px;
}

.counter-box h2{
    color:#3b82f6;
    font-size:50px;
}

.counter-box p{
    margin-top:10px;
    color:#d1d5db;
}
/*==================================
 PROJECTS
==================================*/

#projects{
    background:#0f172a;
}

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

.project-filter button{
    padding:12px 25px;
    border:none;
    border-radius:30px;
    background:#1e293b;
    color:#fff;
    cursor:pointer;
    transition:.3s;
}

.project-filter button.active,
.project-filter button:hover{
    background:#2563eb;
}

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

.project-card{
    background:#1e293b;
    border-radius:20px;
    overflow:hidden;
    transition:.4s;
}

.project-card:hover{
    transform:translateY(-12px);
    box-shadow:0 15px 35px rgba(37,99,235,.4);
}

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

.project-content{
    padding:25px;
}

.project-content h3{
    margin-bottom:15px;
}

.project-content p{
    color:#cbd5e1;
    margin-bottom:20px;
}

.project-buttons{
    display:flex;
    gap:15px;
}

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

#contact{
    background:#111827;
}

.contact-container{
    display:flex;
    gap:50px;
    justify-content:space-between;
    flex-wrap:wrap;
}

.contact-info{
    flex:1;
}

.contact-info h3{
    font-size:32px;
    margin-bottom:20px;
}

.contact-info p{
    margin-bottom:18px;
    color:#d1d5db;
}

.contact-form{
    flex:1;
    display:flex;
    flex-direction:column;
}

.contact-form input,
.contact-form textarea{
    width:100%;
    padding:15px;
    margin-bottom:20px;
    border:none;
    outline:none;
    border-radius:10px;
    background:#1e293b;
    color:white;
}

.contact-form textarea{
    resize:none;
}

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

footer{
    background:#020617;
    text-align:center;
    padding:50px 20px;
}

.footer-links{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:20px;
    margin:25px 0;
}

.footer-links a{
    color:white;
    transition:.3s;
}

.footer-links a:hover{
    color:#3b82f6;
}

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

.footer-social a{
    color:white;
    font-size:24px;
    transition:.3s;
}

.footer-social a:hover{
    color:#3b82f6;
}

copyright{
    color:#94a3b8;
}

/*==================================
 SCROLL TO TOP
==================================*/

#scrollTop{
    position:fixed;
    right:25px;
    bottom:25px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:#2563eb;
    color:white;
    cursor:pointer;
    display:none;
    transition:.3s;
}

#scrollTop:hover{
    background:#1d4ed8;
}

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

@media(max-width:992px){

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

.about-container{
    flex-direction:column;
}

.contact-container{
    flex-direction:column;
}

}

@media(max-width:768px){

header{
    padding:15px 6%;
}

nav{
    display:none;
}

.menu-btn{
    display:block;
}

.hero-text h1{
    font-size:42px;
}

.section-title h2{
    font-size:34px;
}

.about-info{
    grid-template-columns:1fr;
}

.skills-container,
.projects-grid,
.services-grid{
    grid-template-columns:1fr;
}

}

@media(max-width:480px){

.hero-image img{
    width:260px;
}

.hero-text h1{
    font-size:34px;
}

.hero-text h2{
    font-size:22px;
}

.btn,btn-outline{
    width:100%;
    text-align:center;
    margin-bottom:15px;
}

.social-icons{
    justify-content:center;
}

}
