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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f7f7f7;
    color:#222;
}

#bg-wallpaper{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:-1;
    display:block;
}

/* NAVBAR */

.navbar{
    width:100%;
    padding:20px 8%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:white;
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

.logo{
    font-size:28px;
    font-weight:700;
    color:#111;
}

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

.nav-links a{
    text-decoration:none;
    color:#444;
    font-weight:500;
    transition:0.3s;
}

.nav-links a:hover{
    color:#0077ff;
}

.resume-btn{
    text-decoration:none;
    background:#0077ff;
    color:white;
    padding:10px 20px;
    border-radius:8px;
}

/* HERO */

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

.hero-text{
    flex:1;
}

.small-title{
    color:#0077ff;
    font-weight:600;
    margin-bottom:10px;
}

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

.hero h1 span{
    color:#0077ff;
}

.hero-description{
    font-size:18px;
    line-height:1.8;
    color:#555;
    margin-bottom:30px;
}

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

.btn-primary{
    padding:14px 28px;
    background:#0077ff;
    color:white;
    text-decoration:none;
    border-radius:10px;
}

.btn-secondary{
    padding:14px 28px;
    border:2px solid #0077ff;
    color:#0077ff;
    text-decoration:none;
    border-radius:10px;
}

.hero-image img{
    width:360px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,0.1);
}

/* SECTION */

.section{
    padding:100px 8%;
}

.section-title{
    font-size:40px;
    margin-bottom:50px;
    text-align:center;
}

/* ABOUT */

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

.about-card{
    background:white;
    padding:30px;
    border-radius:20px;
}

.edu-box{
    margin-top:20px;
}

.edu-box h4{
    margin-bottom:8px;
}

.about-text p{
    margin-bottom:20px;
    line-height:1.8;
}

/* SKILLS */

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

.skill-card{
    background:white;
    padding:20px;
    border-radius:15px;
    text-align:center;
    font-weight:600;
    box-shadow:0 5px 15px rgba(0,0,0,0.05);
}

/* PROJECTS */

.project-container{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
}

.project-card{
    background:white;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,0.05);
    transition:0.4s ease;
    cursor:pointer;
    position:relative;
}


/* PROJECT HOVER EFFECT */

.project-card:hover{
    transform:translateY(-10px) scale(1.02);
    box-shadow:0 15px 40px rgba(0,0,0,0.12);
}

.project-card video,
.project-card img{
    transition:0.5s ease;
}

.project-card:hover video,
.project-card:hover img{
    transform:scale(1.08);
}

/* PROJECT CONTENT ANIMATION */

.project-content{
    transition:0.4s ease;
}

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

.project-card::before{
    content:'';
    position:absolute;
    inset:0;
    border-radius:20px;
    padding:2px;
    background:linear-gradient(135deg,#0077ff,#00c3ff);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite:xor;
    opacity:0;
    transition:0.4s;
}

.project-card:hover::before{
    opacity:1;
}

.project-card video{
    width:100%;
}

.project-content{
    padding:25px;
}

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

.project-content p{
    line-height:1.7;
    margin-bottom:20px;
}

.project-content a{
    text-decoration:none;
    color:#0077ff;
    font-weight:600;
}

/* CONTACT */

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

.contact-box{
    background:white;
    padding:30px;
    border-radius:20px;
    text-align:center;
}

/* FOOTER */

footer{
    padding:30px;
    text-align:center;
    background:white;
    margin-top:50px;
}

-------

/* DARK MODE BUTTON */

/* THEME BUTTON */

#theme-toggle{
    position:fixed;
    top:20px;
    right:20px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:#111;
    color:white;
    font-size:22px;
    cursor:pointer;
    z-index:9999;
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
    transition:0.3s;
}

#theme-toggle:hover{
    transform:scale(1.1);
}

/* DARK MODE */

.dark-mode{
    background:#111;
    color:#f5f5f5;
}

.dark-mode .navbar{
    background:#1a1a1a;
}

.dark-mode .logo{
    color:white;
}

.dark-mode .nav-links a{
    color:#ddd;
}

.dark-mode .section-title{
    color:white;
}

.dark-mode .hero-description{
    color:#ccc;
}

.dark-mode .about-card,
.dark-mode .skill-card,
.dark-mode .project-card,
.dark-mode .contact-box,
.dark-mode footer{
    background:#1e1e1e;
    color:white;
}

.dark-mode .project-content p,
.dark-mode .about-text p{
    color:#ccc;
}

/* RESPONSIVE */


/* NAME TYPING EFFECT */

.main-title{
    font-size:60px;
    line-height:1.2;
    margin-bottom:20px;
}

.name-typing{
    
    color:#0077ff;

}




/* TYPING EFFECT */

.typing{
    color:#0077ff;
    font-weight:700;
    border-right:3px solid #0077ff;
    padding-right:5px;
    animation:blink 0.7s infinite;
}


/* SCROLL ANIMATION */

/* SCROLL ANIMATION */

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

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

/* EXPERIENCE SECTION */

.experience-container{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
}

.experience-card{
    background:white;
    padding:30px;
    border-radius:20px;
    box-shadow:0 5px 20px rgba(0,0,0,0.05);
    border-left:5px solid #0077ff;
    transition:0.4s ease;
}

.experience-card:hover{
    transform:translateY(-10px);
    box-shadow:0 15px 30px rgba(0,0,0,0.1);
}

.experience-card h3{
    font-size:24px;
    margin-bottom:10px;
}

.experience-card h4{
    color:#0077ff;
    margin-bottom:15px;
}

.experience-card p{
    color:#555;
    line-height:1.8;
    margin-bottom:20px;
}

.experience-card span{
    background:#0077ff;
    color:white;
    padding:8px 16px;
    border-radius:30px;
    font-size:14px;
    font-weight:600;
}



.dark-mode .experience-card{
    background:#1e1e1e;
    color:white;
}

.dark-mode .experience-card p{
    color:#ccc;
}



@keyframes blink{
    50%{
        border-color:transparent;
    }
}



@media(max-width:900px){

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

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

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

    .project-container{
        grid-template-columns:1fr;
    }

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


/* =========================
   MOBILE RESPONSIVE FIX
========================= */

@media screen and (max-width:768px){

    /* NAVBAR */

    .navbar{
        padding:15px 5%;
        flex-wrap:wrap;
        gap:15px;
    }

    .nav-links{
        gap:15px;
        flex-wrap:wrap;
        justify-content:center;
    }

    .nav-links a{
        font-size:14px;
    }

    .resume-btn{
        padding:8px 15px;
        font-size:14px;
    }

    /* HERO SECTION */

    .hero{
        flex-direction:column-reverse;
        text-align:center;
        padding:120px 5% 60px;
        gap:40px;
    }

    .hero-text{
        width:100%;
    }

    .hero h1,
    .main-title{
        font-size:38px;
        line-height:1.3;
    }

    .hero-description{
        font-size:16px;
    }

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

    .btn-primary,
    .btn-secondary{
        width:100%;
        text-align:center;
    }

    /* HERO IMAGE */

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

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

    /* SECTIONS */

    .section{
        padding:70px 5%;
    }

    .section-title{
        font-size:32px;
        margin-bottom:35px;
    }

    /* ABOUT */

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

    /* SKILLS */

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

    .skill-card{
        padding:16px;
        font-size:14px;
    }

    /* PROJECTS */

    .project-container{
        grid-template-columns:1fr;
    }

    .project-card{
        width:100%;
    }

    .project-content{
        padding:20px;
    }

    .project-content h3{
        font-size:20px;
    }

    /* CONTACT */

    .contact-container{
        grid-template-columns:1fr;
    }

    .contact-box{
        padding:20px;
    }

    /* FOOTER */

    footer{
        padding:20px;
        font-size:14px;
    }   

    /* THEME BUTTON */

    #theme-toggle{
        width:45px;
        height:45px;
        font-size:18px;
        top:15px;
        right:15px;
    }

    .experience-container{
     grid-template-columns:1fr;
    }

}
