body{
    padding:0;
margin:0;
background:#050A14;
font-family:"Poppins",sans-serif;
overflow-x:hidden;

}
html {
    scroll-behavior: smooth;
}
#name{
margin:120px 50px;

}
#nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 11px;
    
}
#navbars-left{
    display: flex;
    flex-direction: row;
    gap: 25px;
    margin: 10px;
    float: right;
    position: relative;
    right: 50px;
    
    
}
#nav-right{
   display: flex;
    left: 30px;
    margin: 20px;
    justify-content: flex-start;
    position: relative;
   
}
a{
    text-decoration: none;
    font-size: 17px;
      font-family: 'Times New Roman', Times, serif;
    color: #FFFFFF;
}
#name{
    margin: 50px;
    color: white;
    width: auto;
    gap: 5px;

}
#hire{
   padding: 9px;
   margin: -10px;
   position: relative;
   left: 10px;
   border-radius: 10px;
}
#resume,#work{
    position: relative;
    top: 15px;
     padding:12px 28px;
    border-radius:30px;
    background: rgba(90,163,255,0.25); /* transparent blue */
    color:white;
    border:1px solid rgba(90,163,255,0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:0 0 15px rgba(90,163,255,0.6);
    cursor:pointer;
    font-size:16px;
    transition:0.3s;
}
#work{
   position: relative;
   left: 40px;
}

 #mouse{
    color: white;
     position: relative;
     left: 50px;
 }
 #resume:hover,#work:hover{
        background: rgba(90,163,255,0.4);
    box-shadow:0 0 25px rgba(90,163,255,0.9);
    transform:translateY(-3px);
 }
 #hero-img{
    position:absolute;
    right:120px;
    top:160px;
   
    width:420px;
    height:auto;
    filter: brightness(1.1) contrast(1.1);
    
    /* blue glow */
    box-shadow: 
    0 0 40px rgba(90,163,255,0.4),
    0 0 80px rgba(90,163,255,0.3),
    0 0 120px rgba(90,163,255,0.2);

    border-radius:90%;
    overflow: hidden;
}

#hero-img img{
    width:420px;
    height:auto;
    display:block;
    background:transparent;
    mix-blend-mode: lighten;
    animation: glow 3s ease-in-out infinite alternate;

    
}
#hero-img{
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 40px #578ef6);
    position: absolute;
    right: 150px;
    opacity: .7;
}

@keyframes float{
    0%{ transform: translateY(0px);opacity: .9;}
    50%{ transform: translateY(-10px);opacity: 1; }
    100%{ transform: translateY(0px); opacity: .9; }
}
@keyframes glow{

0%{
filter: drop-shadow(0 0 30px #578ef6);
}

100%{
filter: drop-shadow(0 0 60px #5AA3FF);
}
}
.webui{
   animation: blink 3s ease-in-out infinite;
}
@keyframes blink {
    0%{color: #A0AEC0;
    }
    50%{
        color: #ffffff;
    }
    100%{
        color: #A0AEC0;
    }
    
}
#hire{
    padding:10px 20px;
    border-radius:10px;
    border:none;
    color:white;
    background:#5AA3FF;
    box-shadow:0 0 12px #5AA3FF;
    cursor:pointer;
    transition:0.3s;
    animation: hireShake 4s infinite;
animation-delay:3s;

}
#hire:hover{
background:#3A86FF;
box-shadow:0 0 20px #5AA3FF;
}
@keyframes hireShake{
0%{ transform: translateX(0); }
5%{ transform: translateX(-4px); }
10%{ transform: translateX(4px); }
15%{ transform: translateX(-4px); }
20%{ transform: translateX(4px); }
25%{ transform: translateX(0); }
100%{ transform: translateX(0); }
}
#secondPage{
    padding:80px 60px;
    color:white;
   
}

/* Title */
.section-title{
    font-size:34px;
    color:#5AA3FF;
    margin-bottom:40px;
}

/* Layout */
.about-container{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:50px;
    flex-wrap:wrap;
}

/* Left side */
.about-text{
    flex:1;
    min-width:300px;
    padding:30px;
    line-height:1.7;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}
/* mouse glow */
.about-text::before{
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(90,163,255,0.6), transparent 70%);
    filter: blur(20px);
    pointer-events: none;

    top: var(--y);
    left: var(--x);

    transform: translate(-50%, -50%);
    transition: 0.05s;
}
.about-text::after{
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 3px;
    height: 100%;

    background: linear-gradient(
        to bottom,
        transparent,
        #5AA3FF,
        #00D4FF,
        #5AA3FF,
        transparent
    );

    box-shadow: 0 0 10px #5AA3FF,
                0 0 20px #00D4FF;

    transform: translateY(-100%);
    animation: moveLineSmooth 2.5s linear infinite;
}
/* glowing animated line */
.about-text::before{
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #5AA3FF,
        #00D4FF,
        #5AA3FF,
        transparent
    );

    box-shadow: 0 0 10px #5AA3FF,
                0 0 20px #00D4FF,
                0 0 30px #5AA3FF;

    animation: glowLine 3s linear infinite;
}
@keyframes glowLine{
    0%{
        left: -100%;
    }
    100%{
        left: 100%;
    }
}


/* Highlight */
.highlight{
    color:#5AA3FF;
    font-weight:600;
}

.open{
    margin-top:20px;
    color:#A0AEC0;
}

/* Right side skills */
.skills{
    flex:1;
    display:grid;
    grid-template-columns: repeat(3,1fr);
    gap:20px;
    min-width:300px;
}

/* Skill card */
.skill-card{
    text-align:center;
    padding:25px;
    transition:0.3s;
     animation: highlight 6s infinite;
}

.skill-card i{
    font-size:30px;
    color:#5AA3FF;
    margin-bottom:10px;
}

/* Hover */
.skill-card:hover{
    transform:translateY(-8px);
    box-shadow:0 0 20px rgba(90,163,255,0.6);
}
@keyframes highlight{

0%, 100%{
transform: translateY(0) scale(1);
box-shadow: none;
}

/* active hover moment */
10%{
transform: translateY(-10px) scale(1.05);
box-shadow:0 0 25px rgba(90,163,255,0.8);
}

20%{
transform: translateY(0);
box-shadow:none;
}

}
.skill-card:nth-child(1){ animation-delay: 0s; }
.skill-card:nth-child(2){ animation-delay: 1s; }
.skill-card:nth-child(3){ animation-delay: 2s; }
.skill-card:nth-child(4){ animation-delay: 3s; }
.skill-card:nth-child(5){ animation-delay: 4s; }
.skill-card:nth-child(6){ animation-delay: 5s; }
.skills-section{
   position: relative;
   bottom: 120px;
   align-items: center;
   right: 30px;
}

.skills{
    display:grid;
    grid-template-columns: repeat(3,1fr);
    gap:20px;
    margin-top:30px;
}
/* INITIAL STATE (hidden) */
.fade-up{
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

/* WHEN VISIBLE */
.fade-up.show{
    opacity: 1;
    transform: translateY(0);
}
@keyframes moveLineSmooth{
    0%{
        transform: translateY(-100%);
    }
    100%{
        transform: translateY(100%);
    }
}
/* 
third page */
#projects-section{
    padding:80px 50px;
    background:#050A14;
    text-align:center;
    position: relative;
    bottom: 200px;
    
}

.section-title{
    font-size:40px;
    color:#ffffff;
    margin-bottom:10px;
}

.section-subtitle{
    color:#6B7A90;
    margin-bottom:50px;
}

/* Layout */
.projects-container{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:30px;
    margin: auto;
}

/* Glass Card */
.project-card{
    background: rgba(15,32,60,0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border:1px solid rgba(90,163,255,0.3);
    border-radius:20px;
    padding:25px;
    width:260px;
    color:white;
    box-shadow:0 0 20px rgba(90,163,255,0.2);
    transition:0.4s;
}

/* Hover Effect */
.project-card:hover{
    transform: translateY(-10px) scale(1.03);
    box-shadow:0 0 40px rgba(90,163,255,0.6);
}

/* Text */
.project-card h2{
    color:#5AA3FF;
    margin-bottom:10px;
}

.project-card p{
    color:#A0AEC0;
    font-size:14px;
    margin-bottom:10px;
}

.tech{
    font-size:13px;
    color:#6B7A90;
}

/* Button */
.project-card button{
    margin-top:10px;
    padding:10px 20px;
    border-radius:25px;
    border:none;
    background:#5AA3FF;
    color:white;
    cursor:pointer;
    box-shadow:0 0 10px #5AA3FF;
    transition:0.3s;
}

.project-card button:hover{
    background:#3A86FF;
    box-shadow:0 0 20px #5AA3FF;
}
#contact{
    padding:50px 50px;
    background:#050A14;
    text-align:center;
}

/* Container */
.contact-container{
    display:flex;
    justify-content:center;
    margin-top:40px;
    
}

/* Contact Boxes */
.contact-info{
    display:flex;
    gap:30px;
    flex-wrap:wrap;
    justify-content:center;
   
}

.contact-box{
    text-decoration:none;
    color:white;
    width:250px;
    padding:25px;

    background: rgba(15,32,60,0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border:1px solid rgba(90,163,255,0.3);
    border-radius:20px;

    box-shadow:0 0 20px rgba(90,163,255,0.2);

    transition:0.4s;
     background-color: transparent;
}

/* Icons */
.contact-box i{
    font-size:30px;
    color:#5AA3FF;
    margin-bottom:10px;
}

/* Text */
.contact-box span{
    display:block;
    font-size:18px;
    margin-bottom:5px;
}

.contact-box p{
    font-size:14px;
    color:#A0AEC0;
}

/* Hover */
.contact-box:hover{
    transform: translateY(-10px) scale(1.05);
    box-shadow:0 0 40px rgba(90,163,255,0.6);
}

/* =========================
   RESPONSIVE MEDIA QUERIES
   ========================= */

/* Large Tablets / Small Laptops */
@media (max-width: 1024px){

    #hero-img{
        position: static;
        margin: auto;
        display: flex;
        justify-content: center;
        margin-top: 40px;
        opacity: 1;
    }

    #name{
        text-align: center;
        margin: 50px 20px;
    }

    #nav{
        flex-direction: column;
        gap: 10px;
    }

    #navbars-left{
        position: static;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

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

    .skills-section{
        position: static;
        margin-top: 40px;
    }

    #projects-section{
        bottom: 0;
    }
}

/* Tablets */
@media (max-width: 768px){

    h1{
        font-size: 40px !important;
    }

    h2{
        font-size: 24px !important;
    }

    #hero-img img{
        width: 280px;
    }

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

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

    .project-card{
        width: 90%;
    }

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

    .contact-box{
        width: 90%;
    }
}

/* Mobile Devices */
@media (max-width: 480px){

    #name{
        margin: 30px 15px;
    }

    #nav-right a{
        font-size: 18px !important;
    }

    #navbars-left{
        gap: 10px;
    }

    #resume, #work{
        display: block;
        width: 100%;
        margin-top: 10px;
        text-align: center;
    }

    #work{
        left: 0;
    }

    #hero-img img{
        width: 220px;
    }

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

    .about-text{
        padding: 20px;
    }

    .section-title{
        font-size: 28px;
        text-align: center;
        left: 0 !important;
    }

    #mouse{
        display: none;
    }
}