/*======================================
        GOOGLE FONT & RESET
=======================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
}

:root{

    --primary:#2563eb;
    --secondary:#1e40af;
    --bg:#0f172a;
    --card:#1e293b;
    --text:#cbd5e1;
    --heading:#ffffff;
    --border:rgba(255,255,255,.08);
    --shadow:0 10px 30px rgba(0,0,0,.25);

}

body.light{

    --bg:#f5f7fb;
    --card:#ffffff;
    --heading:#111827;
    --text:#4b5563;
    --border:#e5e7eb;
    --shadow:0 15px 35px rgba(0,0,0,.08);

}

body{

    font-family:'Poppins',sans-serif;
    background:var(--bg);
    color:var(--text);
    transition:.4s;
    overflow-x:hidden;

}

img{

    max-width:100%;
    display:block;

}

a{

    text-decoration:none;

}

ul{

    list-style:none;

}

.container{

    width:90%;
    max-width:1200px;
    margin:auto;

}

section{

    padding:100px 0;

}

.section-title{

    text-align:center;
    font-size:40px;
    color:var(--heading);
    margin-bottom:60px;
    position:relative;

}

.section-title::after{

    content:'';
    width:80px;
    height:4px;
    background:var(--primary);
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    bottom:-15px;
    border-radius:50px;

}

/*======================================
            HEADER
=======================================*/

header{

    width:100%;
    position:fixed;
    top:0;
    left:0;
    padding:20px 8%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    backdrop-filter:blur(20px);
    background:rgba(15,23,42,.75);
    border-bottom:1px solid var(--border);
    z-index:999;

}

.logo{

    font-size:28px;
    color:var(--white);
    font-weight:700;

}

.logo span{

    color:var(--primary);

}

nav ul{

    display:flex;
    gap:35px;

}

nav ul li a{

    color:var(--white);
    font-weight:500;
    transition:.3s;

}

nav ul li a:hover{

    color:var(--primary);

}

.header-icons{

    display:flex;
    align-items:center;
    gap:20px;
    color:var(--white);
    cursor:pointer;
    font-size:22px;

}

#menuBtn{

    display:none;

}

/*======================================
            HERO
=======================================*/

.hero{

    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:150px 8% 100px;
    gap:80px;

}

.hero-content{

    flex:1;

}

.hero-content h3{

    font-size:28px;
    color:var(--primary);
    margin-bottom:10px;

}

.hero-content h1{

    font-size:70px;
    color:var(--heading);
    margin-bottom:15px;
    line-height:1.1;

}

.hero-content h2{

    font-size:35px;
    color:#38bdf8;
    margin-bottom:25px;
    min-height:45px;

}

.hero-content p{

    font-size:18px;
    line-height:1.8;
    max-width:650px;
    margin-bottom:35px;

}

/*======================================
        BUTTONS
=======================================*/

.hero-btns{

    display:flex;
    gap:20px;
    margin-bottom:40px;
    flex-wrap:wrap;

}

.btn{

    background:var(--primary);
    color:#fff;
    padding:15px 30px;
    border-radius:8px;
    font-weight:600;
    transition:.3s;
    box-shadow:var(--shadow);

}

.btn:hover{

    transform:translateY(-5px);
    background:var(--secondary);

}

.btn-outline{

    border:2px solid var(--primary);
    color:var(--primary);
    padding:15px 30px;
    border-radius:8px;
    transition:.3s;
    font-weight:600;

}

.btn-outline:hover{

    background:var(--primary);
    color:#fff;

}

/*======================================
        SOCIAL ICONS
=======================================*/

.social{

    display:flex;
    gap:20px;

}

.social a{

    width:50px;
    height:50px;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    background:var(--card);
    color:#fff;
    font-size:20px;
    transition:.3s;
    box-shadow:var(--shadow);

}

.social a:hover{

    transform:translateY(-8px);
    background:var(--primary);

}

/*======================================
        HERO IMAGE
=======================================*/

.hero-image{

    flex:1;
    display:flex;
    justify-content:center;

}

.hero-image img{

   width: 420px;
  border-radius: 256px;
    border:5px solid rgba(37,99,235,.35);
    box-shadow:0 30px 80px rgba(37,99,235,.35);
    animation:floatImage 5s ease-in-out infinite;

}

@keyframes floatImage{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-18px);

    }

    100%{

        transform:translateY(0);

    }

}

/*======================================
        COMMON CARDS
=======================================*/

.about-card,
.timeline-card,
.project-card,
.skill-card,
.cert-card,
.contact-card{

    background:var(--card);
    border:1px solid var(--border);
    border-radius:18px;
    box-shadow:var(--shadow);
    transition:.35s;

}

.about-card:hover,
.timeline-card:hover,
.project-card:hover,
.skill-card:hover,
.cert-card:hover,
.contact-card:hover{

    transform:translateY(-10px);

}
/*======================================
            ABOUT
=======================================*/

.about-grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:35px;

}

.about-card{

    padding:35px;

}

.about-card h3{

    color:var(--heading);
    margin-bottom:20px;
    font-size:28px;

}

.about-card p{

    line-height:1.8;
    font-size:16px;

}

.about-card ul{

    margin-top:20px;

}

.about-card ul li{

    padding:12px 0;
    border-bottom:1px solid var(--border);
    font-size:16px;

}

.about-card ul li strong{

    color:var(--primary);

}

/*======================================
        EXPERIENCE
=======================================*/

.timeline{

    position:relative;
    max-width:900px;
    margin:auto;

}

.timeline::before{

    content:'';
    position:absolute;
    left:30px;
    top:0;
    width:4px;
    height:100%;
    background:var(--primary);

}

.timeline-card{

    margin-left:80px;
    padding:30px;
    position:relative;

}

.timeline-card::before{

    content:'';
    position:absolute;
    left:-63px;
    top:35px;
    width:22px;
    height:22px;
    background:var(--primary);
    border-radius:50%;
    border:5px solid var(--bg);

}

.timeline-card h3{

    color:var(--heading);
    font-size:28px;

}

.timeline-card h4{

    color:var(--primary);
    margin:10px 0;

}

.timeline-card span{

    display:inline-block;
    margin-bottom:20px;
    color:#38bdf8;
    font-weight:600;

}

.timeline-card p{

    line-height:1.8;

}

/*======================================
            PROJECTS
=======================================*/

.project-grid{

    display:grid;
    gap:45px;

}

.project-card{

    overflow:hidden;

}

.project-card img{

    width:120%;
    height:700px;
    transition:.5s;
    display: block;

}



.project-content{

    padding:35px;

}

.project-content h3{

    color:var(--heading);
    font-size:30px;
    margin-bottom:18px;

}

.project-content p{

    line-height:1.8;
    margin-bottom:25px;

}

.project-content h4{

    color:var(--primary);
    margin:25px 0 15px;

}

.project-content ul{

    padding-left:20px;
    list-style:disc;

}

.project-content ul li{

    margin-bottom:12px;
    line-height:1.6;

}

/*======================================
        TAGS
=======================================*/

.tags{

    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:20px;

}

.tags span{

    background:rgba(37,99,235,.12);
    color:var(--primary);
    padding:10px 18px;
    border-radius:30px;
    font-size:14px;
    transition:.3s;
    cursor:pointer;

}

.tags span:hover{

    background:var(--primary);
    color:#fff;

}

/*======================================
        API & AUTOMATION
=======================================*/

.skills-grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:30px;

}

.skill-card{

    text-align:center;
    padding:35px;

}

.skill-card i{

    font-size:55px;
    color:var(--primary);
    margin-bottom:20px;

}

.skill-card h3{

    color:var(--heading);
    margin-bottom:15px;
    font-size:24px;

}

.skill-card p{

    line-height:1.8;

}

.skill-card:hover{

    transform:translateY(-12px);

}

/*======================================
            BADGES
=======================================*/

.badge-container{

    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:18px;

}

.badge-container span{

    background:var(--card);
    color:var(--heading);
    padding:14px 24px;
    border-radius:40px;
    border:1px solid var(--border);
    transition:.35s;
    cursor:pointer;
    font-weight:500;
    box-shadow:var(--shadow);

}

.badge-container span:hover{

    background:var(--primary);
    color:#fff;
    transform:translateY(-8px);

}
/*======================================
        CERTIFICATIONS
=======================================*/

.cert-grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:10px;

}

.cert-card{

    text-align:center;
    padding:40px 30px;

}

.cert-card i{

    font-size:55px;
    color:#facc15;
    margin-bottom:20px;

}

.cert-card h3{

    color:var(--heading);
    line-height:1.6;

}

/*======================================
        CONTACT
=======================================*/

.contact-grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
  word-break: break-word;
  overflow-wrap: break-word;

}

.contact-card{

    text-align:center;
    padding:35px;

}

.contact-card i{

    font-size:40px;
    color:var(--primary);
    margin-bottom:20px;

}

.contact-card h3{

    color:var(--heading);
    margin-bottom:10px;

}

.contact-card p{

    line-height:1.8;
    word-break:break-word;

}

/*======================================
        FOOTER
=======================================*/

footer{

    text-align:center;
    padding:30px;
    background:var(--card);
    border-top:1px solid var(--border);

}

footer p{

    color:var(--text);
    font-size:15px;

}

/*======================================
        SCROLL TOP
=======================================*/

#scrollTop{

    position:fixed;
    bottom:30px;
    right:30px;

    width:50px;
    height:50px;

    border:none;
    border-radius:50%;

    background:var(--primary);

    color:#fff;

    font-size:18px;

    cursor:pointer;

    display:none;

    box-shadow:var(--shadow);

    transition:.3s;

    z-index:999;

}

#scrollTop:hover{

    transform:translateY(-6px);

    background:var(--secondary);

}

/*======================================
        SCROLL ANIMATION
=======================================*/

.project-card,
.about-card,
.timeline-card,
.skill-card,
.cert-card,
.contact-card{

    opacity:0;
    transform:translateY(50px);

    animation:fadeUp .8s ease forwards;

}

@keyframes fadeUp{

    to{

        opacity:1;
        transform:translateY(0);

    }

}

/*======================================
        MOBILE MENU
=======================================*/

@media(max-width:991px){

    #menuBtn{

        display:block;

    }

    nav{

        position:absolute;

        top:80px;

        left:0;

        width:100%;

        background:var(--card);

        display:none;

        border-top:1px solid var(--border);

        box-shadow:var(--shadow);

    }

    nav.active{

        display:block;

    }

    nav ul{

        flex-direction:column;

        padding:30px;

        gap:25px;

    }

}

/*======================================
        RESPONSIVE
=======================================*/

@media(max-width:991px){

.hero{

    flex-direction:column-reverse;

    text-align:center;

    padding-top:150px;

}

.hero-content{

    display:flex;

    flex-direction:column;

    align-items:center;

}

.hero-content h1{

    font-size:52px;

}

.hero-content h2{

    font-size:28px;

}

.hero-image img{

    width:320px;

}

.timeline::before{

    display:none;

}

.timeline-card{

    margin-left:0;

}

.timeline-card::before{

    display:none;

}

}

@media(max-width:768px){

.section-title{

    font-size:34px;

}

.project-content h3{

    font-size:24px;

}

.hero-content h1{

    font-size:42px;

}

.hero-content p{

    font-size:16px;

}

.hero-btns{

    flex-direction:column;

    width:100%;

}

.btn,

.btn-outline{

    width:100%;

    text-align:center;

}

}

@media(max-width:480px){

.hero-image img{

    width:260px;

}

.logo{

    font-size:22px;

}

.section-title{

    font-size:28px;

}

.about-card,

.timeline-card,

.project-content,

.skill-card,

.cert-card,

.contact-card{

    padding:25px;

}

.badge-container{

    justify-content:flex-start;

}

.badge-container span{

    font-size:13px;

    padding:10px 15px;

}

}

/*======================================
        DARK MODE IMPROVEMENTS
=======================================*/

body.light header{

    background:rgba(255,255,255,.85);

}

body.light nav ul li a{

    color:#111827;

}

body.light .logo{

    color:#111827;

}

body.light .social a{

    color:#111827;

}

body.light .social a:hover{

    color:#fff;

}

body.light footer{

    background:#ffffff;

}

/*======================================
        CUSTOM SCROLLBAR
=======================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:var(--bg);

}

::-webkit-scrollbar-thumb{

    background:var(--primary);

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--secondary);

} 
/* ================= LET'S CONNECT ================= */

.connect{
    padding:80px 10%;
    text-align:center;
   
}

.connect-container{
    max-width:850px;
    margin:auto;
}

.connect h2{
    text-align: center;
  font-size: 40px;
  color: var(--heading);
  margin-bottom: 60px;
  position: relative;
  
}

.connect p{
    font-size:1.1rem;
    line-height:1.8;
    color:hsl(216, 17%, 94%);
    margin-bottom:35px;
}

.connect-btn{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

/* Primary Button */

.btn-primary{
    padding:14px 35px;
    background:#2563eb;
    color:#fff;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.btn-primary:hover{
    background:#1d4ed8;
    transform:translateY(-3px);
}

/* Secondary Button */

.btn-secondary{
    padding:14px 35px;
    border:2px solid #2563eb;
    color:#2563eb;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.btn-secondary:hover{
    background:#2563eb;
    color:#fff;
    transform:translateY(-3px);
}

/* Mobile */

@media(max-width:768px){

.connect{
    padding:60px 20px;
}

.connect h2{
    font-size:2rem;
}

.connect p{
    font-size:1rem;
     --bg: #f5f7fb;
  --card: #ffffff;
  --heading: #111827;
  --text: #4b5563;
  --border: #e5e7eb;
  --shadow: 0 15px 35px rgba(0,0,0,.08);
  color: var(--heading);
    
}

.connect-btn{
    flex-direction:column;
    align-items:center;
}

.btn-primary,
.btn-secondary{
    width:220px;
}

}
.availability{
    display:inline-block;
    margin:18px 0;
    padding:10px 18px;
    background:#dcfce7;
    color:#15803d;
    border:1px solid #22c55e;
    border-radius:30px;
    font-size:15px;
    font-weight:600;
}