*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
    scroll-behavior: smooth;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#090909;
    color:#fff;
    overflow-x:hidden;
}

.background{
    position:fixed;
    inset:0;
    background:
    radial-gradient(circle at top left,#2f8fff33,transparent 35%),
    radial-gradient(circle at bottom right,#00c8ff22,transparent 35%),
    #090909;
    z-index:-2;
}

.background::after{
    content:"";
    position:absolute;
    width:700px;
    height:700px;
    border-radius:50%;
    background:#2f8fff15;
    filter:blur(180px);
    left:-150px;
    top:-150px;
}
header{
    width:100%;
    position:fixed;
    top:0;
    left:0;
    z-index:999;
    backdrop-filter:blur(15px);
    background:rgba(0,0,0,.25);
}

nav{

    max-width:1300px;
    margin:auto;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:22px;
}

nav h2{

    font-size:32px;
    color:#4cc9f0;
    font-weight:800;
}

nav ul{

    display:flex;
    list-style:none;
    gap:40px;
}

nav a{

    color:white;
    text-decoration:none;
    transition:.3s;
}

nav a:hover{

    color:#4cc9f0;
}

.hero{

    margin:auto;


    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:80px;
    width:min(1300px,100%);
    padding:140px 24px 80px;
}

.left{

    flex:1;
    display:flex;
    justify-content:center;
    position: relative;
}
.left::before{

content:"";

position:absolute;

width:350px;

height:350px;

background:#4cc9f0;

filter:blur(120px);

opacity:.35;

z-index:-1;

animation:glow 4s infinite alternate;

}
.hidden{

opacity:0;

transform:translateY(70px);

transition:1s;

}

.show{

opacity:1;

transform:translateY(0);

}

.left img{

    width:430px;
    border-radius:20px;

    transition:.5s;

    filter:
    drop-shadow(0 0 40px rgba(76,201,240,.35));
}

.left img:hover{

    transform:translateY(-12px) scale(1.02);
}

.right{

    flex:1;
}

.right h3{

    color:#4cc9f0;

    margin-bottom:10px;

    font-size:24px;
}

.right h1{
    font-size:clamp(2.5rem,7vw,4.5rem);
    line-height:1.1;
}
.right h2{

    margin-top:20px;

    color:#ddd;

    font-size:32px;
}

.right p{

    margin:35px 0;

    color:#bdbdbd;

    line-height:35px;

    max-width:600px;
}
.buttons{

    display:flex;
    gap:20px;
}

.buttons a{

    padding:16px 35px;

    text-decoration:none;

    border-radius:50px;

    font-weight:bold;

    transition:.35s;
}

.buttons a:first-child{

    background:#4cc9f0;
    color:black;
}

.buttons a:last-child{

    border:2px solid #4cc9f0;
    color:white;
}

.buttons a:hover{

    transform:translateY(-6px);

    box-shadow:0 10px 35px rgba(76,201,240,.4);
}

.typing {
    color: #ddd;
    font-size: 32px;
    font-weight: 600;
    min-height: 40px;
}

.typing::after {
    content: "|";
    animation: blink 0.7s infinite;
    color: #4cc9f0;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, #4cc9f0, #00c8ff);
    z-index: 10000;
    transition: width 0.1s;
}
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.reveal {
    opacity: 0;
    transform: translateY(80px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.skills {
    max-width: 1100px;
    margin: 120px auto;
    padding: 40px;
}

.section-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
    color: #4cc9f0;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.skill span {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.bar {
    width: 100%;
    height: 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 50px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4cc9f0, #00c8ff);
    border-radius: 50px;
    transition: width 1.5s ease;
}
.projects {
    max-width: 1200px;
    margin: 120px auto;
    padding: 40px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.project-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 20px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.project-image {
    height: 160px;
    border-radius: 15px;
    margin-bottom: 15px;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(76,201,240,0.25);
    border-color: #4cc9f0;
}

.project-card h3 {
    margin-bottom: 8px;
}

.project-card p {
    color: #aaa;
    font-size: 14px;
}
.contact {
    max-width: 1200px;
    margin: 120px auto;
    padding: 40px;
}

.contact-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: white;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #4cc9f0;
}
html {
    scroll-behavior: smooth;
}

.contact-form button {
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: #4cc9f0;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(76,201,240,0.3);
}

.contact-info {
    flex: 1;
    padding: 20px;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
    color: #aaa;
}

.socials {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.socials a {
    color: #4cc9f0;
    text-decoration: none;
}
nav a.active {
    color: #4cc9f0;
    position: relative;
}

nav a.active::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4cc9f0;
}
/* emailjs */
.form-status{

    margin-top:20px;
    padding:14px 18px;

    border-radius:12px;

    text-align:center;

    font-weight:600;

    opacity:0;

    transform:translateY(10px);

    transition:.35s;

    backdrop-filter:blur(10px);

    border:1px solid rgba(255,255,255,.15);

    pointer-events:none;

}

.form-status.show{

    opacity:1;

    transform:translateY(0);

}

.form-status.success{

    background:rgba(34,197,94,.15);

    color:#4ade80;

    border-color:#4ade80;

}

.form-status.error{

    background:rgba(239,68,68,.15);

    color:#ff6b6b;

    border-color:#ff6b6b;

}
/* 
==================================================================
   Responsive
==================================================================
*/

/* Laptop */
@media (max-width: 1200px){

    nav,
    .hero,
    .skills,
    .projects,
    .contact{
        padding-left:30px;
        padding-right:30px;
    }

    .right h1{
        font-size:60px;
        line-height:1.1;
    }

    .left img{
        width:380px;
    }

}


/* Tablet */
@media (max-width:992px){

    .hero{
        flex-direction:column;
        text-align:center;
        gap:60px;
        padding-top:160px;
    }

    .right{
        display:flex;
        flex-direction:column;
        align-items:center;
    }

    .right p{
        max-width:700px;
    }

    .buttons{
        justify-content:center;
        flex-wrap:wrap;
    }

    .left img{
        width:320px;
    }

    .right h1{
        font-size:52px;
    }

    .right h2{
        font-size:28px;
    }

    .contact-container{
        flex-direction:column;
    }

}


/* Mobile */
@media (max-width:768px){

    header{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;

        background: rgba(9,9,9,.45);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);

        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    nav{

        padding: 16px 20px;

        display:flex;
        flex-direction:column;

        align-items:center;

        gap:15px;
    }

    nav ul{

        display:flex;

        justify-content:center;

        flex-wrap:wrap;

        gap:18px;
    }

    .hero{

        padding-top:170px;

    }

    .left::before{
        width:250px;
        height:250px;
        filter:blur(90px);
    }

    .left img{
        width:260px;
    }

    .right h3{
        font-size:18px;
    }

    .right h1{
        font-size:42px;
        line-height:1.15;
    }

    .typing{
        font-size:22px;
    }

    .right p{
        font-size:15px;
        line-height:30px;
    }

    .buttons{
        width:100%;
        flex-direction:column;
        align-items:center;
    }

    .buttons a{
        width:100%;
        max-width:320px;
        text-align:center;
    }

    .section-title{
        font-size:32px;
    }

    .projects{
        padding:20px;
    }

    .projects-container{
        grid-template-columns:1fr;
    }

    .contact{
        padding:20px;
    }

    .contact-form,
    .contact-info{
        width:100%;
    }

}


/* Mini Mobile */
@media (max-width:480px){

    nav h2{
        font-size:26px;
    }

    .hero{
        padding-top:120px;
    }

    .left img{
        width:210px;
    }

    .right h1{
        font-size:34px;
    }

    .typing{
        font-size:18px;
    }

    .right p{
        font-size:14px;
        line-height:26px;
    }

    .buttons a{
        padding:14px;
    }

    .section-title{
        font-size:28px;
    }

    .project-card{
        padding:16px;
    }

    .project-image{
        height:140px;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form button{
        font-size:14px;
    }

    .scroll{
        display:none;
    }

}
section {
    padding-top: 100px;
    padding-bottom: 100px;
}
.hero h1 {
    background: linear-gradient(90deg, #fff, #4cc9f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-fill{
    font:700 4em/1 Arial,sans-serif;
    text-transform:uppercase;
    background-image:url("pic/Portfolio/images3.webp");
    background-repeat:repeat-x;
    background-size:auto 100%;
    color:transparent;
    -webkit-background-clip:text;
    background-clip:text;
    animation:textMove 30s linear infinite;
}

@keyframes textMove{

    from{
        background-position:0 0;
    }

    to{
        background-position:450px 0;
    }

}