
/*=================================
Google Font
=================================*/

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


/*=================================
Global
=================================*/

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#050505;
    color:#F5F5F5;
    overflow-x:hidden;
}

a{
    text-decoration:none;
    color:inherit;
}

ul{
    list-style:none;
}

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

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}


/*=================================
Color Variables
=================================*/

:root{
    --bg:#050505;
    --card:#111111;
    --primary:#D4AF37;
    --light-gold:#F5D76E;
    --text:#F5F5F5;
    --muted:#B8B8B8;
    --border:rgba(212,175,55,.18);
    --gold-glow:rgba(212,175,55,.25);
}


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

.header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    backdrop-filter:blur(12px);
    background:rgba(5,5,5,.82);
    border-bottom:1px solid var(--border);
    z-index:1000;
}

.nav-container{
    height:80px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo{
    font-size:30px;
    font-weight:700;
    color:var(--text);
}

.logo span{
    color:var(--primary);
}

.navbar{
    display:flex;
    align-items:center;
    gap:35px;
}

.nav-links{
    display:flex;
    gap:30px;
}

.nav-links a{
    font-size:16px;
    font-weight:500;
    transition:.3s;
}

.nav-links a:hover{
    color:var(--primary);
}


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

.btn{
    padding:14px 32px;
    background:var(--primary);
    color:#050505;
    border-radius:50px;
    transition:.3s;
    display:inline-block;
    font-weight:600;
}

.btn:hover{
    transform:translateY(-5px);
    background:var(--light-gold);
    box-shadow:0 10px 30px rgba(212,175,55,.4);
}

.btn-outline:hover{
    background:var(--primary);
    color:#050505;
    box-shadow:0 10px 30px rgba(212,175,55,.4);
}


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

.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    padding-top:80px;
}

.hero-container{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:60px;
    align-items:center;
}

.hero-subtitle{
    color:var(--primary);
    font-size:18px;
    margin-bottom:10px;
}

.hero h1{
    font-size:60px;
    line-height:1.2;
    margin-bottom:10px;
    color:var(--text);
}

.hero h1 span{
    color:var(--primary);
}

.hero h2{
    font-size:28px;
    color:#d4d4d4;
    margin-bottom:20px;
}

.hero-description{
    color:var(--muted);
    line-height:1.8;
    margin-bottom:30px;
    max-width:550px;
}

.hero-buttons{
    display:flex;
    gap:20px;
}

.btn-outline{
    padding:12px 28px;
    border:2px solid var(--primary);
    border-radius:50px;
    transition:.3s;
    color:var(--primary);
}

.btn-outline:hover{
    background:var(--primary);
}

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

.hero-image img{
    width:380px;
    border-radius:50%;
    border:5px solid rgba(212,175,55,.3);
}


/*=================================
Gold Background Glow
=================================*/

body{
    position:relative;
}

body::before{
    content:"";
    position:fixed;
    top:-200px;
    right:-200px;
    width:500px;
    height:500px;
    background:#D4AF37;
    filter:blur(180px);
    opacity:.15;
    z-index:-2;
}

body::after{
    content:"";
    position:fixed;
    bottom:-200px;
    left:-200px;
    width:500px;
    height:500px;
    background:#F5D76E;
    filter:blur(180px);
    opacity:.10;
    z-index:-2;
}


/*=================================
Hero Image Animation
=================================*/

.hero-image img{
    width:380px;
    border-radius:50%;
    border:5px solid rgba(212,175,55,.3);
    animation:float 4s ease-in-out infinite;
}

@keyframes float{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-20px);
    }

    100%{
        transform:translateY(0);
    }

}


/*=================================
Menu Toggle
=================================*/

.menu-toggle{
    display:none;
    font-size:30px;
    cursor:pointer;
    color:var(--primary);
}


/*=================================
Tablet
=================================*/

@media (max-width:992px){

    .hero-container{
        grid-template-columns:1fr;
        text-align:center;
    }

    .hero-description{
        margin:auto;
        margin-bottom:30px;
    }

    .hero-buttons{
        justify-content:center;
    }

    .hero-image{
        margin-top:40px;
    }

}


/*=================================
Mobile
=================================*/

@media (max-width:768px){

    .menu-toggle{
        display:block;
    }

    .navbar{
        position:absolute;
        top:80px;
        left:-100%;
        width:100%;
        background:#111111;
        flex-direction:column;
        padding:30px;
        transition:.4s;
        border-bottom:1px solid var(--border);
    }

    .navbar.active{
        left:0;
    }

    .nav-links{
        flex-direction:column;
        text-align:center;
    }

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

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

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

    .about-container{
        grid-template-columns:1fr;
        text-align:center;
    }

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

    .footer-container{
        grid-template-columns:1fr;
        text-align:center;
    }

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

}


/*=================================
About Section
=================================*/

.about{
    padding:100px 0;
}

.about-container{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:70px;
    align-items:center;
}

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

.about-image img{
    width:380px;
    border-radius:20px;
    border:3px solid rgba(212,175,55,.3);
}

.about-content h5{
    color:var(--primary);
    letter-spacing:2px;
    margin-bottom:10px;
}

.about-content h2{
    font-size:42px;
    margin-bottom:20px;
}

.about-content h2 span{
    color:var(--primary);
}

.about-content p{
    color:var(--muted);
    line-height:1.8;
    margin-bottom:35px;
}

.about-info{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin-bottom:35px;
}

.info-card{
    background:var(--card);
    padding:25px;
    text-align:center;
    border-radius:15px;
    transition:.3s;
    border:1px solid var(--border);
}

.info-card:hover{
    transform:translateY(-8px);
    border-color:var(--primary);
    box-shadow:0 10px 30px rgba(212,175,55,.15);
}

.info-card h3{
    color:var(--primary);
    font-size:28px;
    margin-bottom:8px;
}

.info-card p{
    margin:0;
    color:#d4d4d4;
}


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

.skills{
    padding:100px 0;
}

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

.section-title h5{
    color:var(--primary);
    letter-spacing:2px;
    margin-bottom:10px;
}

.section-title h2{
    font-size:42px;
    margin-bottom:15px;
}

.section-title p{
    color:var(--muted);
    max-width:700px;
    margin:auto;
    line-height:1.8;
}

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

.skill-card{
    background:var(--card);
    padding:35px 20px;
    border-radius:20px;
    text-align:center;
    border:1px solid var(--border);
    transition:.3s;
}

.skill-card:hover{
    transform:translateY(-10px);
    border-color:var(--primary);
    box-shadow:0 15px 40px rgba(212,175,55,.25);
}

.skill-card i{
    font-size:55px;
    color:var(--primary);
    margin-bottom:20px;
}

.skill-card h3{
    margin-bottom:10px;
}

.skill-card span{
    color:var(--muted);
}


/*=================================
Projects
=================================*/

.projects{
    padding:100px 0;
}

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

.project-card{
    background:var(--card);
    border-radius:20px;
    overflow:hidden;
    transition:.4s;
    border:1px solid var(--border);
}

.project-card:hover{
    transform:translateY(-10px);
    border-color:var(--primary);
    box-shadow:0 15px 40px rgba(212,175,55,.25);
}

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

.project-content{
    padding:25px;
}

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

.project-content p{
    color:var(--muted);
    line-height:1.7;
}

.tech-stack{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin:20px 0;
}

.tech-stack span{
    background:#050505;
    color:var(--primary);
    border:1px solid rgba(212,175,55,.25);
    padding:8px 14px;
    border-radius:30px;
    font-size:14px;
}

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


/*=================================
Hero Duplicate Styling
=================================*/

.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    padding:120px 0 80px;
}

.hero-container{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    align-items:center;
    gap:60px;
}

.hero-subtitle{
    color:var(--primary);
    font-size:18px;
    margin-bottom:15px;
    font-weight:600;
}

.hero h1{
    font-size:64px;
    line-height:1.2;
    margin-bottom:10px;
}

.hero h1 span{
    color:var(--primary);
}

.hero h2{
    font-size:30px;
    color:#d4d4d4;
    margin-bottom:20px;
}

.hero-description{
    color:var(--muted);
    line-height:1.8;
    margin-bottom:35px;
    max-width:550px;
}

.hero-buttons{
    display:flex;
    gap:20px;
    margin-bottom:45px;
}

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

.hero-image img{
    width:400px;
    border-radius:50%;
    border:5px solid rgba(212,175,55,.3);
    animation:float 4s ease-in-out infinite;
}

.hero-stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.stat-box{
    background:var(--card);
    padding:20px;
    border-radius:15px;
    text-align:center;
    border:1px solid var(--border);
    transition:.3s;
}

.stat-box:hover{
    transform:translateY(-8px);
    border-color:var(--primary);
    box-shadow:0 10px 30px rgba(212,175,55,.25);
}

.stat-box h3{
    color:var(--primary);
    font-size:28px;
    margin-bottom:8px;
}

.stat-box p{
    color:var(--muted);
    font-size:14px;
}


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

@media (max-width:992px){

    .hero-container{
        grid-template-columns:1fr;
        text-align:center;
    }

    .hero-description{
        margin:0 auto 35px;
    }

    .hero-buttons{
        justify-content:center;
    }

    .hero-stats{
        grid-template-columns:repeat(2,1fr);
    }

    .hero-image{
        margin-top:40px;
    }

}

@media (max-width:768px){

    .hero h1{
        font-size:44px;
    }

    .hero h2{
        font-size:24px;
    }

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

    .hero-stats{
        grid-template-columns:1fr 1fr;
    }

}


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

.services{
    padding:100px 0;
}

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

.service-card{
    background:var(--card);
    padding:35px;
    text-align:center;
    border-radius:20px;
    border:1px solid var(--border);
    transition:.3s;
}

.service-card:hover{
    transform:translateY(-10px);
    border-color:var(--primary);
    box-shadow:0 15px 40px rgba(212,175,55,.25);
}

.service-card i{
    font-size:55px;
    color:var(--primary);
    margin-bottom:20px;
}

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

.service-card p{
    color:var(--muted);
    line-height:1.8;
}


/*=================================
Education
=================================*/

.education{
    padding:100px 0;
}

.education-card{
    background:var(--card);
    padding:40px;
    border-radius:20px;
    display:flex;
    gap:30px;
    align-items:center;
    border:1px solid var(--border);
}

.education-icon i{
    font-size:60px;
    color:var(--primary);
}

.education-content h3{
    margin-bottom:10px;
}

.education-content h4{
    color:var(--primary);
    margin-bottom:15px;
}

.education-content p{
    color:var(--muted);
    line-height:1.8;
    margin-bottom:15px;
}

.education-content span{
    font-weight:600;
}


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

.contact{
    padding:100px 0;
}

.contact-container{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
}

.contact-info p{
    margin:20px 0;
    color:var(--muted);
}

.contact-info i{
    color:var(--primary);
    margin-right:10px;
}

form{
    display:flex;
    flex-direction:column;
    gap:20px;
}

input,
textarea{
    padding:16px;
    background:var(--card);
    border:1px solid var(--border);
    border-radius:10px;
    color:var(--text);
    outline:none;
}

input:focus,
textarea:focus{
    border-color:var(--primary);
    box-shadow:0 0 15px rgba(212,175,55,.12);
}

textarea{
    height:180px;
    resize:none;
}


/*=================================
Education Timeline
=================================*/

.education-timeline{
    display:flex;
    flex-direction:column;
    gap:30px;
}

.education-card{
    display:flex;
    gap:25px;
    align-items:flex-start;
    background:var(--card);
    padding:30px;
    border-radius:20px;
    border:1px solid var(--border);
    transition:.3s;
}

.education-card:hover{
    transform:translateY(-8px);
    border-color:var(--primary);
    box-shadow:0 10px 30px rgba(212,175,55,.15);
}

.education-card i{
    font-size:40px;
    color:var(--primary);
}

.education-card h3{
    margin-bottom:8px;
}

.education-card h4{
    color:var(--primary);
    margin-bottom:10px;
}

.education-card p{
    color:var(--muted);
    line-height:1.7;
    margin-bottom:10px;
}


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

.footer{
    background:#020202;
    padding:70px 0 0;
    margin-top:100px;
    border-top:1px solid var(--border);
}

.footer-container{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:50px;
}

.footer-about p{
    color:var(--muted);
    margin-top:20px;
    line-height:1.8;
}

.footer-links h3,
.footer-contact h3{
    margin-bottom:20px;
}

.footer-links ul{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.footer-links a{
    color:var(--muted);
    transition:.3s;
}

.footer-links a:hover{
    color:var(--primary);
}

.footer-contact p{
    color:var(--muted);
    margin-bottom:15px;
}

.footer-contact i{
    color:var(--primary);
    margin-right:8px;
}

.social-icons{
    display:flex;
    gap:15px;
    margin-top:20px;
}

.social-icons a{
    width:45px;
    height:45px;
    background:var(--card);
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    transition:.3s;
    font-size:20px;
    border:1px solid var(--border);
}

.social-icons a:hover{
    background:var(--primary);
    color:#050505;
    transform:translateY(-5px);
}

.footer-bottom{
    margin-top:50px;
    padding:20px 0;
    border-top:1px solid rgba(212,175,55,.12);
    text-align:center;
}

.footer-bottom p{
    color:#777;
}


/*=================================
Scroll Top
=================================*/

#scrollTop{
    position:fixed;
    bottom:30px;
    right:30px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:var(--primary);
    color:#050505;
    font-size:22px;
    cursor:pointer;
    display:none;
    z-index:999;
    transition:.3s;
}

#scrollTop:hover{
    transform:translateY(-5px);
    background:var(--light-gold);
    box-shadow:0 10px 30px rgba(212,175,55,.3);
}


/*=================================
Active Nav
=================================*/

.nav-links a.active{
    color:var(--primary);
}


/*=================================
Overflow Fix
=================================*/

html,
body{
    overflow-x:hidden;
    width:100%;
}

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

img{
    max-width:100%;
    height:auto;
}

.container{
    width:min(1200px,90%);
    margin:auto;
}


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

@media (max-width:768px){

    .hero-container,
    .about-container,
    .contact-container,
    .footer-container{
        display:grid;
        grid-template-columns:1fr;
        gap:30px;
        text-align:center;
    }

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

    .education-card{
        flex-direction:column;
        text-align:center;
    }

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

    input,
    textarea{
        width:100%;
    }

    .footer-about,
    .footer-links,
    .footer-contact{
        width:100%;
    }

}


/*=================================
Menu Toggle
=================================*/

.menu-toggle{
    display:none;
    font-size:30px;
    cursor:pointer;
    color:var(--primary);
}

@media (max-width:768px){

    .menu-toggle{
        display:block;
    }

    .navbar{
        position:absolute;
        top:80px;
        left:-100%;
        width:100%;
        background:#0b0b0b;
        padding:20px;
        transition:.3s;
        border-bottom:1px solid var(--border);
    }

    .navbar.active{
        left:0;
    }

    .nav-links{
        flex-direction:column;
        gap:20px;
    }

    .navbar .btn{
        margin-top:20px;
        display:inline-block;
    }

}


/*=================================
Final Mobile Fix
=================================*/

@media (max-width:768px){

    .hero-container,
    .about-container,
    .contact-container,
    .footer-container{
        display:grid;
        grid-template-columns:1fr !important;
        gap:30px;
        text-align:center;
    }

    .about-image,
    .hero-image{
        justify-content:center;
    }

    .about-image img,
    .hero-image img{
        width:250px;
        max-width:100%;
    }

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

    .hero-stats{
        grid-template-columns:1fr 1fr;
    }

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

    .education-card{
        flex-direction:column;
        text-align:center;
    }

    .contact-info,
    .footer-about,
    .footer-links,
    .footer-contact{
        overflow-wrap:anywhere;
        word-break:break-word;
    }

}


/*=================================
Mobile Hero Image
=================================*/

@media (max-width:768px){

    .hero img{
        margin-top:60px;
    }

}


/*=================================
More Projects Button
=================================*/

.more-projects{
    margin-top:60px;
    display:flex;
    justify-content:center;
}

.explore-btn{
    display:inline-flex;
    align-items:center;
    gap:12px;
    padding:18px 40px;
    border-radius:60px;
    font-size:18px;
    font-weight:600;
    color:#050505;
    background:linear-gradient(
        135deg,
        #D4AF37,
        #F5D76E
    );
    transition:.35s;
    box-shadow:0 15px 35px rgba(212,175,55,.35);
}

.explore-btn i{
    font-size:22px;
    transition:.35s;
}

.explore-btn:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 45px rgba(212,175,55,.45);
}

.explore-btn:hover i{
    transform:translateX(8px);
}


/*=================================
Mobile Hero - Image First
=================================*/

@media (max-width:768px){

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

    /* Hero image sab se upr */
    .hero-image{
        order:-1;
        width:100%;
        margin-top:0;
        margin-bottom:30px;
        justify-content:center;
    }

    .hero-image img{
        width:280px;
        max-width:80%;
        margin:0 auto;
    }

    .hero-content{
        order:1;
    }

    .hero-buttons{
        justify-content:center;
    }

}


/*=================================
Floating WhatsApp
=================================*/

.whatsapp-float{
    position:fixed;
    right:30px;
    bottom:90px;

    width:55px;
    height:55px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#25D366;
    color:#fff;

    border-radius:50%;
    font-size:28px;

    z-index:998;

    box-shadow:0 8px 25px rgba(37,211,102,.35);

    transition:.3s;

    animation:whatsappPulse 2.5s ease-in-out infinite;
}

.whatsapp-float:hover{
    transform:translateY(-6px) scale(1.08);
    box-shadow:0 12px 35px rgba(37,211,102,.55);
}

@keyframes whatsappPulse{

    0%,100%{
        box-shadow:0 8px 25px rgba(37,211,102,.3);
    }

    50%{
        box-shadow:
            0 8px 25px rgba(37,211,102,.3),
            0 0 0 10px rgba(37,211,102,.08);
    }

}


/*=================================
Scroll To Top
=================================*/

#scrollTop{
    position:fixed;
    right:30px;
    bottom:25px;

    width:55px;
    height:55px;

    display:none;
    align-items:center;
    justify-content:center;

    border:none;
    border-radius:50%;

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

    font-size:24px;
    cursor:pointer;

    z-index:999;

    opacity:0;
    transform:translateY(20px) scale(.8);

    transition:.35s;
}

#scrollTop.show{
    display:flex;
    opacity:1;
    transform:translateY(0) scale(1);
}

#scrollTop:hover{
    transform:translateY(-6px) scale(1.05);

    background:var(--light-gold);

    box-shadow:0 10px 30px rgba(212,175,55,.4);
}


/*=================================
Floating Buttons Mobile
=================================*/

@media(max-width:768px){

    .whatsapp-float{
        right:20px;
        bottom:85px;
        width:50px;
        height:50px;
        font-size:25px;
    }

    #scrollTop{
        right:20px;
        bottom:20px;
        width:50px;
        height:50px;
        font-size:22px;
    }

}