* {
    margin: 0;
    padding: 0;
    
}

body {
    background: linear-gradient(
        135deg,
        #FCE7F3,
        #E9D5FF,
        #BFDBFE
    ); 
    font-family: 'Times New Roman', Times, serif;
    padding-top:100px;
    background-size: cover;
    min-height: 100vh;

}
html{
    scroll-behavior: smooth;
}

.navbar {
    width: 100%;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    margin-left: 200px;
    font-size: 30px;
}

.nav-links a {
    text-decoration: none;
    color: gray;
    border: 2px solid transparent;
    border-radius: 17px;
    padding: 8px 8px;
    transition: 0.3s;
}

#mode {
    margin-left: 30px;
}

.nav-links a:hover {
    border: 2px solid rgb(177, 61, 177);
    border-style: groove;
    color: black;
}

#code {
    font-size: 25px;
    margin-right: 4px;
}

.profile h2 {
    font-size: 30px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    text-align: center;
    margin-top: 10px;
}

.profile {
    position: fixed !important;
    top:60px;
    height: 510px;
    width: 300px;
    border: 2px solid purple;
    border-radius: 10px;
    left: 40px;
    background-color:lavenderblush;
     box-shadow:
        0 0 8px rgba(192,132,252,0.5),
        0 0 18px rgba(192,132,252,0.4),
        0 0 30px rgba(96,165,250,0.25);
    margin:0;
}
.image img {
    height: 350px;
    width: 280px;
    padding: 10px;
    border-radius: 40px;
    object-fit: cover;
    transform: scale(1.0);


}
.profile-info h4 {
    margin-left: 5px;
}
.profile-info h3{
    margin-left: 5px;
    font-family: 'Times New Roman', Times, serif;
    
}
.social-icons{
    display:flex;
    justify-content: center;
    gap:20px;
    margin-top:5px;
}
.social-icons a{
    width:40px;
    height:40px;
    font-size:25px;
    color:black;
    margin-bottom: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    border:1px solid black ;
    border-radius: 50%;
    text-decoration: none;
}
.social-icons a:hover{
    background-color: #8B5CF6;
    color: white;
    transform: translateY(-5px);
    box-shadow:
        0 0 10px #8B5CF6,
        0 0 20px #8B5CF6;
}

.hero{
    display: flex;
    
}

.hero-text {
    color: #601fc1;
    font-weight: lighter;
    line-height: 1.2;
}
.hero-text h1{
    font-size: 60px;
    font-weight: 600;
    margin-right: 50px;
    margin-left:400px;
}

.hero-text h2{
    font-size: 60px;
    font-weight: 400;
    color:rgba(0, 0, 0, 0.283)lack;
    margin-left: 400px;
    margin-right:50px;

}
.hero-text p{
    color:black;
    font-size:25px;
    line-height:1.7;
    margin-top:20px;
    margin-left:400px;
    width:650px;
    border:1px solid transparent;
    border-radius: 20px;
    padding:10px;
    font-family: Georgia, 'Times New Roman', Times, serif;
} 

.about-container {
    max-width: 800px;
    margin-left: 400px;
    margin-bottom: 70px;
}

.about-container h2 {
    text-align: left;
    font-size: 2.3rem;
    margin-bottom: 30px;
    color:#6D28D9
}

.about-content {
    display: flex;
    flex-direction: column;   
    gap: 25px;
}

.about-card {
    background-color: rgba(255, 255, 255, 0.35);
    border: 2px solid rgba(192,132,252,0.45);
    padding: 30px;
    border-radius: 20px;
    box-shadow:
        0 10px 30px rgba(139, 92, 246, 0.15),
        0 4px 12px rgba(59, 130, 246, 0.08);
}
.about-card h3{
    color:#6D28D9;
    margin-bottom:6px;
    font-size:1.6rem;
    font-family: 'Times New Roman', Times, serif;
}
.about-card p {
    color: black;
    line-height: 1.8;
    font-size: 20px;
}
.ed-item {
    border-left: 3px solid #A855F7;
    padding-left: 20px;
    margin-top: 25px;
    position: relative;
}

.ed-item::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8B5CF6;
    box-shadow: 0 0 10px rgba(168,85,247,.45);
}

.ed-item h4 {
    color: #5B21B6;
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.ed-item p {
    color:black;
    font-size: 20px;
}
#skills{
    margin-left: 400px;
    margin-top: 80px;
    margin-bottom: 80px;
}

.skills-container{
    max-width: 800px;
}

.skills-container h2{
    font-size: 2.3rem;
    color:#6D28D9;
    margin-bottom:40px;
}

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

.skill-card{
    background:rgba(255,255,255,.35);
    border:2px solid rgba(192,132,252,.45);
    border-radius:20px;

    padding:25px 15px;

    text-align:center;

    box-shadow:
        0 10px 30px rgba(139,92,246,.12);

    transition:0.3s ease;
}

.skill-card:hover{
    transform:translateY(-8px) scale(1.03);

    box-shadow:
        0 15px 35px rgba(139,92,246,.25);
}

.skill-card img{
    width:65px;
    height:65px;
    margin-bottom:18px;
}

.skill-card p{
    font-size:18px;
    color:#5B21B6;
    font-weight:600;
}
#projects{
    margin-left: 400px;
    margin-top: 80px;
    margin-bottom: 80px;
}

.projects-container{
    max-width: 800px;
}

.projects-container h2{
    font-size: 2.3rem;
    color: #6D28D9;
    margin-bottom: 30px;
}

.section-text{
    color: black;
    font-size: 20px;
    margin-bottom: 40px;
}

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

.project-card{
    background: rgba(255,255,255,.35);
    border: 2px solid rgba(192,132,252,.45);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(139,92,246,.12);
    transition: .3s ease;
}

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

.project-info{
    padding: 20px;
}

.project-info h3{
    color: #5B21B6;
    font-size: 24px;
    margin-bottom: 15px;
}

.project-info p{
    color: black;
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.tech-stack span{
    background: #ECE8FF;
    color: #6C4CFF;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

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

.project-btns a{
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: .3s;
}

.project-btns a:first-child{
    background: #7B4DFF;
    color: white;
}

.project-btns a:last-child{
    border: 2px solid #7B4DFF;
    color: white;
}

.project-btns a:hover{
    transform: scale(1.05);
}


#contact{
    margin-left:400px;
    margin-top:80px;
    margin-bottom:80px;
}

.contact-container{
    max-width:800px;
}

.contact-container h2{
    font-size:2.3rem;
    color:#6D28D9;
    margin-bottom:15px;
}

.contact-text{
    font-size:20px;
    color:black;
    margin-bottom:35px;
}

#contact-form{
    background:rgba(255,255,255,.35);
    border:2px solid rgba(192,132,252,.45);
    border-radius:20px;
    padding:35px;

    box-shadow:
        0 10px 30px rgba(139,92,246,.12);
}

.input-group{
    display:flex;
    flex-direction:column;
    margin-bottom:25px;
}

.input-group label{
    font-size:20px;
    color:#5B21B6;
    margin-bottom:8px;
    font-weight:600;
}

.input-group input,
.input-group textarea{

    padding:15px;
    border:2px solid #d8b4fe;
    border-radius:10px;
    outline:none;
    font-size:17px;
    font-family:'Times New Roman', Times, serif;
    background:white;

    transition:.3s;
}

.input-group input:focus,
.input-group textarea:focus{

    border-color:#8B5CF6;

    box-shadow:
        0 0 10px rgba(139,92,246,.25);
}

textarea{
    resize:none;
}

button{

    padding:14px 30px;
    background:#7B4DFF;
    color:white;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-size:18px;
    font-weight:600;

    transition:.3s;
}

button:hover{

    background:#6D28D9;

    transform:translateY(-3px);

    box-shadow:
        0 10px 20px rgba(139,92,246,.3);
}


@media (max-width: 768px){

    body{
        padding-top:80px;
    }

    /* NAVBAR */

    .navbar{
        height:auto;
        padding:15px;
        flex-direction:column;
        gap:15px;
    }

    .nav-links{
        margin-left:0;
        gap:15px;
        flex-wrap:wrap;
        justify-content:center;
        font-size:18px;
    }

    #mode{
        margin-left:0;
        font-size:22px;
    }

    

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


    .profile{
        position:static;
        width:90%;
        max-width:320px;
        height:auto;
        margin:20px auto;
    }

    .image img{
        width:92%;
        height:auto;
    }


    .hero-text{
        text-align:center;
        margin:40px 20px;
    }

    .hero-text h1{
        font-size:40px;
        margin-left:0;
    }

    .hero-text h2{
        font-size:32px;
        margin-left:0;
    }

    .hero-text p{
        width:100%;
        margin:20px auto;
        font-size:20px;
        padding:15px;
        box-sizing:border-box;
    }


    .about-container,
    #skills,
    #projects,
    #contact{
        margin-left:20px;
        margin-right:20px;
    }

    .skills-container,
    .projects-container,
    .contact-container,
    .about-container{
        max-width:100%;
    }


    .about-container h2,
    .skills-container h2,
    .projects-container h2,
    .contact-container h2{
        font-size:2rem;
    }

    .about-card{
        padding:20px;
    }

    .about-card p,
    .ed-item p{
        font-size:18px;
    }


    .skills-grid{
        grid-template-columns:repeat(2,1fr);
        gap:20px;
    }


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

    .project-card img{
        height:220px;
    }

    .project-btns{
        justify-content:center;
    }


    #contact-form{
        padding:20px;
    }

    .input-group label{
        font-size:18px;
    }

    .input-group input,
    .input-group textarea{
        font-size:16px;
    }

    button{
        width:100%;
    }

}


.dark-mode{
    background: linear-gradient(
        135deg,
        #0F172A,
        #1E1B4B,
        #111827
    );
    color:#F8FAFC;
    transition:.4s ease;
}



.dark-mode .navbar{
    background:rgba(15,23,42,.85);
    backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(192,132,252,.25);
}

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

.dark-mode .nav-links a:hover{
    color:#D8B4FE;
    border:2px solid #A855F7;
}

.dark-mode #mode{
    color:#FACC15;
    cursor:pointer;
}



.dark-mode .profile{

    background:#1E293B;
    border:2px solid #A855F7;

    box-shadow:
        0 0 12px rgba(168,85,247,.45),
        0 0 30px rgba(96,165,250,.25);

}

.dark-mode .profile h2,
.dark-mode .profile h3,
.dark-mode .profile h4{
    color:white;
}

.dark-mode .social-icons a{

    color:white;
    border:1px solid #A855F7;

}

.dark-mode .social-icons a:hover{

    background:#8B5CF6;
    color:white;

}



.dark-mode .hero-text h1{
    color:#C084FC;
}

.dark-mode .hero-text h2{
    color:#CBD5E1;
}

.dark-mode .hero-text p{

    color:#E2E8F0;
    background:rgba(255,255,255,.05);

}



.dark-mode .about-container h2,
.dark-mode .skills-container h2,
.dark-mode .projects-container h2,
.dark-mode .contact-container h2{

    color:#C084FC;

}


.dark-mode .about-card,
.dark-mode .skill-card,
.dark-mode .project-card,
.dark-mode #contact-form{

    background:rgba(30,41,59,.85);

    border:2px solid rgba(168,85,247,.45);

    box-shadow:
        0 10px 30px rgba(0,0,0,.35);

}



.dark-mode p,
.dark-mode .ed-item p{

    color:#E2E8F0;

}

.dark-mode h3,
.dark-mode h4{

    color:#E9D5FF;

}


.dark-mode .ed-item{

    border-left:3px solid #A855F7;

}

.dark-mode .ed-item::before{

    background:#C084FC;

}


.dark-mode .skill-card p{

    color:#E9D5FF;

}


.dark-mode .tech-stack span{

    background:#312E81;
    color:#E9D5FF;

}


.dark-mode .project-btns a:first-child{

    background:#8B5CF6;

}

.dark-mode .project-btns a:last-child{

    border:2px solid #A855F7;
    color:#E2E8F0;

}

.dark-mode .project-btns a:last-child:hover{

    background:#8B5CF6;

}


.dark-mode .input-group label{

    color:#E9D5FF;

}

.dark-mode .input-group input,
.dark-mode .input-group textarea{

    background:#0F172A;
    color:white;
    border:2px solid #A855F7;

}

.dark-mode .input-group input::placeholder,
.dark-mode .input-group textarea::placeholder{

    color:#94A3B8;

}

.dark-mode button{

    background:#8B5CF6;

}

.dark-mode button:hover{

    background:#7C3AED;

}