/* ===== General Settings ===== */
html{
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}


body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: #1f2937;
    line-height: 1.6;
}


h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
}


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


/* ===== Navigation ===== */

header {
    background: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
}


.logo {
    color: #2563eb;
}


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


.nav-links a {
    font-weight: 500;
    transition: 0.3s;
}


.nav-links a:hover {
    color: #2563eb;
}




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

.hero {

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

    padding: 100px 10% 50px;

}


.hero-content {

    width: 50%;

}


.hero-content h1 {

    font-size: 55px;
    color: #2563eb;

}


.hero-content h2 {

    font-size: 30px;
    margin: 15px 0;

}


.hero-content p {

    margin-bottom: 30px;
    font-size: 18px;

}



.hero-buttons {

    display: flex;
    gap: 15px;

}


.btn{
    display:inline-block;
    padding:12px 28px;
    background:#2563eb;
    color:white;
    border-radius:8px;
    text-decoration:none;
    transition:.3s;
}

.btn:hover{
    background:#1d4ed8;
    transform:translateY(-3px);
}



.secondary {

    background: #06b6d4;

}



.hero-image img {

    width: 320px;
    height: 320px;

    object-fit: cover;

    border-radius: 50%;

    border: 5px solid #2563eb;

}




/* ===== General Sections ===== */

section {

    padding: 80px 10%;

}


section h2 {

    text-align: center;

    font-size: 35px;

    margin-bottom: 40px;

}





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

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

.skills{
    background:#f8fafc;
}

.skills-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:30px;

    margin-top:50px;

}


.skill-card{

    background:white;

    border-radius:15px;

    padding:35px;

    text-align:center;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    transition:.4s;

}


.skill-card:hover{

    transform:translateY(-10px);

    box-shadow:0 20px 35px rgba(37,99,235,.2);

}


.skill-card i{

    font-size:50px;

    color:#2563eb;

    margin-bottom:20px;

}


.skill-card h3{

    margin-bottom:20px;

    color:#1f2937;

}


.skill-card ul{

    list-style:none;

}


.skill-card ul li{

    padding:10px 0;

    border-bottom:1px solid #e5e7eb;

    color:#555;

}


.skill-card ul li:last-child{

    border-bottom:none;

}




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


.project-card {

    background: white;

    padding: 25px;

    border-radius: 10px;

    box-shadow: 0 5px 15px rgba(0,0,0,0.08);

}





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


#contact {

    text-align: center;

}




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


footer {

    background: #111827;

    color: white;

    text-align: center;

    padding: 25px;

}


.social-icons {

    margin-top: 15px;

}


.social-icons a {

    margin: 10px;

    font-size: 25px;

}



/* ===== Responsive Design ===== */


@media(max-width:768px){


    nav {

        flex-direction: column;

    }


    .nav-links {

        flex-direction: column;

        text-align:center;

        margin-top:20px;

    }


    .hero {

        flex-direction: column;

        text-align:center;

    }


    .hero-content {

        width:100%;

    }


    .hero-content h1 {

        font-size:40px;

    }


}
/* ===== Hero Animation ===== */


.welcome {

    color: #2563eb;
    font-weight: 600;
    margin-bottom: 10px;

}


.hero-content {

    animation: slideLeft 1s ease;

}



.hero-image {

    animation: slideRight 1s ease;

}



.hero-content h2 span {

    color: #06b6d4;

}



@keyframes slideLeft {

    from {

        opacity: 0;
        transform: translateX(-50px);

    }


    to {

        opacity: 1;
        transform: translateX(0);

    }

}




@keyframes slideRight {

    from {

        opacity: 0;
        transform: translateX(50px);

    }


    to {

        opacity: 1;
        transform: translateX(0);

    }

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

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

.section-title p{
    color:#6b7280;
}

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

.about-image img{
    width:320px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
}

.about-content{
    flex:1;
}

.about-content h3{
    font-size:30px;
    color:#2563eb;
    margin-bottom:20px;
}

.about-content p{
    margin-bottom:20px;
}

.about-cards{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin-top:30px;
}

.about-card{
    background:white;
    padding:20px;
    border-radius:12px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    transition:.3s;
}

.about-card:hover{
    transform:translateY(-8px);
}

.about-card i{
    font-size:35px;
    color:#2563eb;
    margin-bottom:15px;
}

@media(max-width:768px){

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

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

}
/* ================= PROJECTS SECTION ================= */

.projects{
    background:#ffffff;
}

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

.project-card{
    background:white;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.4s;
}

.project-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 35px rgba(37,99,235,.2);
}

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

.project-content{
    padding:25px;
}

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

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

.tech-stack{
    margin-bottom:20px;
}

.tech-stack span{
    display:inline-block;
    background:#2563eb;
    color:white;
    padding:6px 12px;
    border-radius:20px;
    margin:5px;
    font-size:14px;
}

.project-buttons{
    display:flex;
    gap:10px;
}
/* ================= EDUCATION SECTION ================= */

.education{
    background:#f8fafc;
}

.timeline{
    position:relative;
    max-width:900px;
    margin:50px auto;
    padding-left:40px;
    border-left:4px solid #2563eb;
}

.timeline-item{
    position:relative;
    margin-bottom:50px;
}

.timeline-dot{
    position:absolute;
    left:-52px;
    top:5px;
    width:20px;
    height:20px;
    background:#2563eb;
    border-radius:50%;
    border:4px solid white;
}

.timeline-content{
    background:white;
    padding:30px;
    border-radius:15px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.timeline-content h3{
    color:#2563eb;
    margin-bottom:10px;
}

.timeline-content h4{
    margin-bottom:8px;
}

.timeline-content span{
    color:#6b7280;
    font-size:14px;
}

.timeline-content p{
    margin-top:20px;
    color:#555;
}
/* ================= RESUME SECTION ================= */

.resume{
    background:#ffffff;
    text-align:center;
}

.resume-container{

    max-width:700px;
    margin:auto;

    background:white;

    padding:50px;

    border-radius:20px;

    box-shadow:0 15px 35px rgba(0,0,0,.08);

}

.resume-icon{

    font-size:70px;

    color:#2563eb;

    margin-bottom:25px;

}

.resume-container h3{

    font-size:30px;

    margin-bottom:20px;

}

.resume-container p{

    color:#555;

    margin-bottom:35px;

    line-height:1.8;

}
/* ================= CONTACT SECTION ================= */

.contact{
    background:#f8fafc;
}

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

.contact-info h3{
    color:#2563eb;
    margin-bottom:20px;
}

.contact-info p{
    margin-bottom:30px;
    color:#555;
}

.contact-item{
    display:flex;
    align-items:center;
    margin-bottom:20px;
}

.contact-item i{
    font-size:20px;
    color:#2563eb;
    width:40px;
}

.contact-form{
    background:white;
    padding:30px;
    border-radius:15px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.contact-form input,
.contact-form textarea{
    width:100%;
    padding:15px;
    margin-bottom:20px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:16px;
    outline:none;
}

.contact-form input:focus,
.contact-form textarea:focus{
    border-color:#2563eb;
}

.contact-form button{
    border:none;
    cursor:pointer;
}

@media(max-width:768px){

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

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

.footer{
    background:#111827;
    color:white;
    padding:60px 10% 20px;
}

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

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

.footer p{
    color:#d1d5db;
    line-height:1.8;
}

.footer-links ul{
    list-style:none;
}

.footer-links li{
    margin-bottom:12px;
}

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

.footer-links a:hover{
    color:#60a5fa;
}

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

.social-icons a{
    width:45px;
    height:45px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#2563eb;
    border-radius:50%;
    color:white;
    transition:.3s;
}

.social-icons a:hover{
    transform:translateY(-5px);
    background:#06b6d4;
}

.footer hr{
    margin:40px 0 20px;
    border:0;
    border-top:1px solid rgba(255,255,255,.2);
}

.copyright{
    text-align:center;
    color:#9ca3af;
}

@media(max-width:768px){

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

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

}
/* ================= DARK MODE ================= */

#theme-toggle{

    width:45px;
    height:45px;

    border:none;

    border-radius:50%;

    background:#2563eb;

    color:white;

    cursor:pointer;

    font-size:18px;

    transition:.3s;

}

#theme-toggle:hover{

    transform:rotate(180deg);

}

body.dark{

    background:#0f172a;

    color:white;

}

body.dark header{

    background:#1e293b;

}

body.dark section{

    background:#0f172a;

}

body.dark .skill-card,
body.dark .project-card,
body.dark .timeline-content,
body.dark .contact-form,
body.dark .resume-container,
body.dark .about-card{

    background:#1e293b;

    color:white;

}

body.dark footer{

    background:#020617;

}
/* ================= SCROLL ANIMATION ================= */

.hidden{

    opacity:0;

    transform:translateY(60px);

    transition:all .8s ease;

}

.show{

    opacity:1;

    transform:translateY(0);

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

#topBtn{

    position:fixed;

    bottom:30px;

    right:30px;

    width:50px;

    height:50px;

    border:none;

    border-radius:50%;

    background:#2563eb;

    color:white;

    font-size:20px;

    cursor:pointer;

    display:none;

    z-index:999;

}

#topBtn:hover{

    background:#1d4ed8;

}
/* ================= MOBILE NAVIGATION ================= */

.nav-buttons{

    display:flex;

    align-items:center;

    gap:15px;

}

.menu-toggle{

    display:none;

    font-size:28px;

    cursor:pointer;

}

@media(max-width:768px){

    .menu-toggle{

        display:block;

    }

    .nav-links{

        position:absolute;

        top:80px;

        left:0;

        width:100%;

        background:white;

        flex-direction:column;

        align-items:center;

        max-height:0;

        overflow:hidden;

        transition:.4s;

        box-shadow:0 10px 25px rgba(0,0,0,.08);

    }

    .nav-links.active{

        max-height:400px;

        padding:20px 0;

    }

    body.dark .nav-links{

        background:#1e293b;

    }

}
/* ================= IMPROVED RESPONSIVE DESIGN ================= */

@media (max-width: 768px) {

    nav {
        padding: 15px 5%;
        flex-direction: row;
    }

    .hero {
        padding: 120px 5% 60px;
        gap: 40px;
    }

    .hero-content {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 40px;
    }

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

    .hero-content p {
        font-size: 16px;
    }

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

    .hero-image img {
        width: 250px;
        height: 250px;
    }

    section {
        padding: 60px 5%;
    }

    section h2 {
        font-size: 30px;
    }

    .about-image img {
        width: 100%;
        max-width: 320px;
    }

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

    .project-buttons {
        flex-wrap: wrap;
    }

    .resume-container {
        padding: 30px 20px;
    }

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

    .footer {
        padding: 50px 5% 20px;
    }

}


/* ================= SMALL PHONES ================= */

@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content h2 {
        font-size: 20px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .hero-image img {
        width: 200px;
        height: 200px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

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

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

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

    .timeline {
        padding-left: 25px;
    }

    .timeline-dot {
        left: -37px;
    }

    .contact-form {
        padding: 20px;
    }

    #topBtn {
        width: 45px;
        height: 45px;
        right: 15px;
        bottom: 15px;
    }

}
