
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: "Poppins", sans-serif;
}

:root {
    --bg-color: #080808;
    --second-bg-color: #131313;
    --text-color: white;
    --main-color: #00ffee;
}

html {
    font-size: 60%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

.image-gradient{
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0.5;
    z-index: -1;
}

.layer-blur{
    height: 0;
    width: 30rem;
    position: absolute;
    top: 20%;
    right: 0;
    box-shadow: 0 0 700px 15px white;
    rotate: -30deg;
    z-index: -1;


}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4rem 12%;
    background: transparent;
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.logo {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.logo span {
    text-shadow: 0 0 25px var(--main-color);
}

.navbar a {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

#menu-icon {  
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
}

section {
    min-height: 100vh;
    padding: 10rem 12% 10rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 3rem;
}

span {
    color: var(--main-color);
}

.logo span {
    color: var(--main-color);
}

.home-content h3 {
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 3.5rem;  
}

.home-content h1 {
    font-size: 7rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

.home-img {
    flex: 1;
    display: flex;
    justify-content: center;
}



.home-img img {
    width: 25vw; 
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
}

.home-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color),
                0 0 100px var(--main-color);
}


.home-content p {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 10000px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size: 2.5rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease-in-out;
}

.social-icons a:hover {
    color: var(--text-color);
    transform: scale(1.3) translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: black;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--main-color);
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-group a:nth-last-of-type(2) {
    background-color: black;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-last-of-type(1) {
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: black;
}

.text-animation{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.text-animation span{
    position: relative;
}

.text-animation span::before{
    content: "Web Developer";
    color: var(--main-color);
    animation: words 20s infinite;
}

.text-animation span::after{
    content: "";
    background-color: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--bg-color);
    right: -8px;
    animation: cursor 0.6s infinite, typing 20s steps(14)infinite;
}

@keyframes cursor{
    to{
        border-left: 2px solid var(--main-color);
    }
}

@keyframes words{
    0%,
    20%{
        content: 'Frontend Designer'
    }

    21%,
    40%{
        content: "Web Designer";
    }
    41%,
    60%{
        content: "UI / UX Designer";
    }
    61%,

    80%{
        content: "Web Developer";
    }

    81%,

    100%{
        content: "Mobile App Developer";
    }
}

@keyframes typing{
    10%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95%{
        width: 0;
    }

    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    65%,
    80%,
    85%{
        width: calc(100% + 8px);
    }


}


#ed_title {
    text-align: center;
    font-size: 6rem;
    padding-bottom: 6rem;
    
}

.education {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; 
    padding: 20px;
    background-color: #000000;
   
}

#ed_con {
    text-align: center; 
    max-width: 100%; 
    width: 100%; 
}




.timeline-items {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column; 
    position: relative;
}

.timeline-items::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: var(--main-color);
    left: calc(50% - 1px);
    
}

.timeline-item {
    margin-bottom: 40px;
    width: 100%;
    position: relative;
   
   
}

.timeline-item:last-child {
   margin-bottom: 0;
}

.timeline-item:nth-child(odd){
    padding-right: calc(50% + 30px);
    text-align: right;
}

.timeline-item:nth-child(even){
    padding-left: calc(50% + 30px);
    
}

.timeline-dot {
    height: 21px;
    width: 21px;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color), 
                0 0 50px var(--main-color);
    position: absolute;
    left: calc(50% - 8px);
    border-radius: 50%;
    top: 10px;
}

.timeline-date {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin: 6px 0 15px;
}

.timeline-content {
    background-color: var(--bg-color);
    border: 3px solid var(--main-color);
    padding: 30px 50px;
    border-radius: 4rem;
    box-shadow: 0 0 10px var(--main-color);
    cursor: pointer;
    transition:  0.3s ease-in-out;
     
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
}

.timeline-content h3 {
    font-size: 20px;
    color: white;
    margin: 0 0 10px;
    font-weight: 500;
}

.timeline-content p {
    color: white;
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
}

::-webkit-scrollbar{
   width: 15px;
}


::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color);
    width: 50px;
}

.certifications{
    background-color: #000000;
    /* border: 1px solid white; */
    display: flex;
    flex-direction:column;
    gap: 10%;
    align-items: center;
    position: relative;
    /* width: 80%;
    height: 100vh;
    margin-top: 200px;
    margin-bottom: 700px; */

}

.certificate-card{
    display: flex;
    width: 100%;
    height: 40%;
    align-items: center;
    gap: 10%;
    justify-content: center;
    /* border: 1px solid white; */
    margin-top: 30px;
}

.cer-img{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    position: relative;
    cursor: pointer;
    min-width: 400px;
    transition: 0.5s;
    mix-blend-mode: difference;

}

.cer-img img{
    object-fit:cover;
    width: 100%;
    box-shadow: 0 0 10px lightgray;
    border-radius: 20px;
    transition: 0.5s;
}

.cer-img img:hover{
    box-shadow: 0 0 20px lightgray;
}

.cer-info{
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    width: 50%;
    padding-left: 10%;
}

.cer-info h1{
    width: 90%;
    font-size: 25px;
    font-weight: bold;
    text-wrap: nowrap;
    margin-bottom: 10px;
    margin-top: 0;
    max-width: 450px;
}

.cer-info p{
    width:90%;
    max-width: 400px;
    min-width: 300px;
    margin-bottom: 50px;
    margin-top: 0;
    font-size: 12px;
}

.cer_read{
    display: inline-block;
    padding: 1rem 2rem;
    background: #00ffee;
    border-radius: 4rem;
    font-size: 1rem;
    color: #080808;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 2s ease forwards;
    cursor: pointer;
}

.cer_read:hover{
    background: #00ffee;
    color: #080808;
    box-shadow: 0 0 5px cyan, 0 0 5px cyan, 0 0 10px cyan, 0 0 20px cyan, 0 0 40px cyan;
}

/* .hover-sign{
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30%;
    height: 100px;
}

.hover-sign::before,
.hover-sign::after{
    content:"👆";
    text-align: center;
    position: absolute;
    font-size: 50px;
    top: 20%;
    left: 40%;
    animation: hoverAnimation 3s ease-in-out infinite;
}

@keyframes hoverAnimation{
    0%{
        box-shadow: 0 0 5px lightgray;
        transform: translate(100%, 50%) rotate(30deg);
    }

    100%{
        box-shadow: 0 0 15px lightgray;
        transform: translateX(80%, 50%) rotate(0deg);
    }
}

.hover-sign.active{
    display: none;
} */



.cer-title{
    /* text-align: center; */
    font-size: 6rem;
    
    /* padding-bottom: 7rem; */
    /* margin-left: 280px; */
}

/* Skills section */
.skills-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background-color: #000000;
}

.skill-title{
    font-size: 6rem;
}

.skills-box{
    width: 100%;
    height: 90vh;
    position: relative;
    display: flex;
    align-items: start;
    justify-content: center;
    mix-blend-mode:lighten;
    opacity: 0.7;
}

.skills-image{
    width: 70%;
    mix-blend-mode:difference;
}

.Designer{
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: start;
    top: 25%;
    left: 5%;
    max-width: 300px;
}

.Designer h1{
    font-size: 50px;
    display: flex;
    align-items: center;
}

.Designer p{
    line-height: 23px;
    font-size: 12px;
}


.coder{
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: start;
    top: 25%;
    right: 5%;
    max-width: 300px;
}

.coder h1{
    font-size: 50px;
    display: flex;
    align-items: center;
}

.coder p{
    line-height: 23px;
     font-size: 12px;
}



.coder-text{

    font-size: 50px;
}

/* SLIDER  */

.slider{
    position: absolute;
    bottom: 5%;
    right: 20%;
    width: 60%;
    height: var(--height);
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 10% 90%,
        transparent
    );
    mix-blend-mode:difference;
    opacity: 0.7;
}
.slider .list{
    display: flex;
    width: 100%;
    min-width: calc(var(--width) * var(--quantity));
    position: relative;
}
.slider .list .item{
    width: var(--width);
    height: var(--height);
    position: absolute;
    left: 100%;
    animation: autoRun 10s linear infinite;
    transition: filter 0.5s;
    animation-delay: calc( (10s / var(--quantity)) * (var(--position) - 1) - 10s)!important;
}
.slider .list .item img{
    width: 100%;
}
@keyframes autoRun{
    from{
        left: 100%;
    }to{
        left: calc(var(--width) * -1);
    }
}
.slider:hover .item{
    animation-play-state: paused!important;
    filter: grayscale(1);
}
.slider .item:hover{
    filter: grayscale(0);
}

#services {
    color: aliceblue;
    font-size: 20px;
    line-height: 1.4;
    /* margin-bottom: 5rem; */
    background-color: #000000;
    /* padding: 4rem; */
}

.sub-title {
    text-align: center;
    font-size: 6rem;
    padding-bottom: 7rem;
}

.sub-title span {
    color: #00ffee;
}

.container {
    padding: 9rem;
    /* border: 1px solid white; */
    
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(259px, 1fr));
    grid-gap: 4rem;
    margin-top: 5rem;
}

.services-list div {
    background-color: transparent;
    padding: 4rem;
    font-size: 1.3rem;
    font-weight: 500;
    border-radius: 2rem;
    transition: background 0.5s, transform 0.5s;
    box-shadow: 1px 1px 20px #012290f7, 1px 1px 40px #0053b8f7;
}

.services-list div i {
    font-size: 5rem;
    margin-bottom: 3rem;
}

.services-list div h2 {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.services-list div a {
    text-decoration: none;
    color: black;
    font-size: 1.2rem;
    margin-top: 2rem;
    display: inline-block;
}

.read {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: #00ffee;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #080808;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 2s ease forwards;
    box-shadow: 0 0 5px #00ffee, 0 0 25px #00ffee;
}

.read:hover {
    background: #00ffee;
    color: #080808;
    box-shadow: 0 0 5px cyan, 0 0 25px cyan, 0 0 50px cyan, 0 0 100px cyan, 0 0 200px cyan;
}

.services-list div:hover {
    transform: translateY(-10px);
}

@keyframes slideTop {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 


.projects {
    padding: 50px 300px;
    background: black;
}

 .main-text {
   
    text-align: center;
} 

.main-text h2 {
   
    font-size: 60px;
    line-height: 1;
}

.main-text h2 span {
    color: #00ffee;
}

.portfolio-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(359px, 1fr));
    grid-gap: 20px;
    margin-top: 50px;
}

.row {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.5s;
}

.row img {
    width: 100%;
    display: block;
    border-radius: 8px;
    transition: transform 0.5s;
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.1), #00ffee);
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: height 0.5s ease;
    overflow: hidden;
}

.layer h5 {
    color: black;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.layer p {
    color: black;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.layer i {
    font-size: 20px;
    background: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.row:hover img {
    transform: scale(1.1);
}

.row:hover .layer {
    height: 100%;
}

.contact {
         
    display: flex;
    justify-content: center; 
    align-items: center; 
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box; 
    background-color: #000000;
    }

    
    .contact h2 {
        
        color: white;
        font-size:40px;
        
        text-align: center;
    }
    
    .contact form {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        margin: 5rem auto;
        max-width: 800px;
        text-align: center;
    }
    
    .contact form .input-group {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
        width: 100%;
    }
    
    .contact form .input-box {
        flex: 1;
        min-width: 200px;
    }
    
    .contact form .input-box input,
    .contact form textarea {
        width: 100%;
        padding: 1.5rem;
        font-size: 1.8rem;
        color: var(--text-color);
        background: var(--second-bg-color);
        border-radius: 2rem;
        border: 2px solid var(--main-color);
        margin: 1.5rem 0;
        resize: none;
        outline: none;
        box-sizing: border-box;
    }
    
    .contact form .input-group-2 {
        width: 100%;
    }
    
    .contact form .btn {
        margin-top: 2rem;
        padding: 1.5rem 3rem;
        background-color: var(--main-color);
        color: black;
        border: none;
        border-radius: 2rem;
        font-size: 1.5rem;
        cursor: pointer;
        transition: 0.3s ease-in-out;
    }
    
    .contact form .btn:hover {
        background-color: var(--main-color);
        color: black;
        box-shadow: 0 0 15px var(--main-color);
        transform: translateY(-5px);
    }
    
    .footer {
        width: 100%;
        padding: 40px 0;
        background-color: black;
    }
    
    .footer .social-icons {
        text-align: center;
        margin-bottom: 25px;
        color: var(--main-color);
    }
    
    .footer .social-icons a {
        font-size: 25px;
        color: var(--main-color);
        border: 2px solid var(--main-color);
        width: 42px;
        height: 42px;
         line-height: 42px; 
        text-align: center;
        border-radius: 50%;
        margin: 0 10px;
        transition: 0.3s ease-in-out;
    }
    
    .footer .social-icons a:hover {
        transform: scale(1.2) translateY(-10px);
        background-color: var(--main-color);
        color: black;
        box-shadow: 0 0 25px var(--main-color);
    }
    
    .footer ul {
        margin-top: 0;
        padding: 0;
        font-size: 18px;
        line-height: 1.6;
        margin-bottom: 0;
        text-align: center;
    }
    
    .footer ul li {
        display: inline-block;
        padding: 0 15px;
    }
    
    .footer ul li a {
        color: white;
        border-bottom: 3px solid transparent;
        transition: 0.3s ease-in-out;
        text-decoration: none;
    }
    
    .footer ul li a:hover {
        border-bottom: 3px solid var(--main-color);
    }
    
    .footer .copyright {
        margin-top: 50px;
        text-align: center;
        font-size: 16px;
        color: white;
    }

    /* BLUR EFFECT ANIMAION */

.autoBlur {
  opacity: 0;
  filter: blur(40px);
  transform: scale(0.9);
  transition: 
    opacity 1s ease,
    filter 1s ease,
    transform 1s ease;
}

/* When element comes into view */
.autoBlur.in-view {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

/* AUTO DISPLAY ANIMAION */
/* .autoDisplay{
    animation: autoDisplayAnimation both;
    animation-timeline: view();

}

@keyframes autoDisplayAnimation{
    from{
        filter: blur(10px);
        transform: translateY(-200px) scale(0);
    } 50%{
        opacity: 1;
        filter: blur(0px);
        transform: translateX(0) scale(1);
    }
} */

.autoDisplay {
  opacity: 0;
  filter: blur(10px);
  /* convert -200px to -50px */
  transform: translateY(-50px) scale(0.7);
  transition:
    opacity 0.8s ease,
    filter 0.8s ease,
    transform 0.8s ease;
}

.autoDisplay.in-view {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}


/* FADEIN_LEFT */

/* .fadein-left{
    animation: fadeInLeftAnimation both;
    animation-timeline: view();
}

@keyframes fadeInLeftAnimation{
    0%{
        opacity: 0;
        transform: translateX(-500px) scale(0.2);
        filter: blur(10px);
    } 35%,65%{
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0px);
    }100%{
        filter: blur(10px);
    }
} */

.fadein-left {
  opacity: 0;
  transform: translateX(-100px) scale(0.8);
  filter: blur(10px);
  transition:
    opacity 1s ease,
    transform 1s ease,
    filter 1s ease;
}

.fadein-left.in-view {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0);
}


/* Gradient Animation */
.gradient{
    background: linear-gradient(to right,#00aaa7, #7e42a7, #6600c5, #6070fd,#2a46ff, #0099ff, #008ead);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
}
@keyframes animate-gradient {
    to{
        background-position: 200%;
    }
}


    /* @media (max-width: 1285px) {
        html {
            font-size: 55%;
        }
    
        .services-container {
            padding-bottom: 7rem;
            grid-template-columns: repeat(2, 1fr);
            margin: 0 5rem;
        }
    }
    
    @media (max-width: 991px) {
        .header {
           padding: 2rem 3%;
        }
    
        .section {
            padding: 10rem 3% 2rem;
        }
    
        .timeline-items::before {
            left: 7px;
        }
    
        .timeline-item:nth-child(odd) {
            padding-right: 0;
            text-align: left;
        }
    
        .timeline-item:nth-child(odd),
        .timeline-item:nth-child(even) {
            padding-left: 37px;
        }
    
        .timeline-dot {
            left: 0%;
        }
    
        .services {
            padding-bottom: 7rem;
        }
    
        .contact form {
            flex-direction: column;
        }
    
        .footer {
            padding: 2rem 3%;
        }
    }
    
    @media (max-width: 895px) {
        #menu-icon {
            display: block;
        }
    
        .navbar {
            position: absolute;
            top: 100%;
            right: 0;
            width: 50%;
            padding: 1rem 3%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(20px);
            border-bottom-left-radius: 2rem;
            border-left: 2px solid var(--main-color);
            border-bottom: 2px solid var(--main-color);
            display: none;
        }
    
        .navbar.active {
            display: block;
        }
    
        .navbar a {
            display: block;
            font-size: 2rem;
            margin: 3rem 0;
            color: white;
        }
    
        .home {
            flex-direction: column-reverse;
            margin: 5rem 4rem;
        }
    
        .home-content h3 {
            font-size: 2.6rem;
        }
    
        .home-content h1 {
            font-size: 8rem;
            margin-top: 3rem;
        }
    
        .home-content p {
            max-width: 600px;
            margin: 0 auto;
        }
    
        .home-img img {
            width: 56vw;
        }
    
        .services h2 {
            margin-bottom: 3rem;
        }
    
        .services-container {
            grid-template-columns: repeat(1, 1fr);
        }

        #ser_title{
            font-size: 40px;
            margin-top: -120px;
        }
    }

@media (max-width: 768px) {

    .main-text h2 {
      
     
        font-size: 40px;
        line-height: 1;
        margin-left: -261px;

    
    }
    .portfolio-content {
       
        flex-direction: column; 
        gap: 20px; 
        margin-left: -220px;
        justify-content: center;
        align-items: center;
    }

    .row {
        max-width: 90%; 
        margin: 0 auto; 
    }

   
    .layer p {
        margin-top: 10px; 
    }

    .row img {
        width: 100%; 
        height: auto; 
        border-radius: 8px;
    }
}


@media (max-width: 991px) {
  

    .education .timeline-content h3 {
        font-size: 1.2rem; 
    }

    .education .timeline-content p {
        font-size: 0.9rem; 
    }
}



@media (max-width: 768px) {
    .footer ul {
        gap: 10px;
        display: flex;
        font-size: 16px;
        justify-content: center;
    }

    .footer ul li {
        display: block;
        padding: 10px 0;
    }

    .footer .social-icons a {
        margin: 0 5px;
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 22px;
    }

    .footer .copyright {
        margin-top: 30px;
        font-size: 10px;
    }
}


@media (max-width: 480px) {
    .footer ul {
        font-size: 14px;
    }

    .footer .social-icons {
        margin-bottom: 20px;
    }

    .footer .social-icons a {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 20px;
    }

    .footer .copyright {
        margin-top: 20px;
        font-size: 12px;
    }
}

    .container2{
        max-width: 600px; 
        width: 100%; 
       
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
   
        
    } */

    /* ===== MOBILE RESPONSIVENESS ===== */
@media screen and (max-width: 768px) {
  html {
    font-size: 52%;
  }

  .header {
    padding: 2rem 5%;
  }

  #menu-icon {
    display: block;
    cursor: pointer;
    z-index: 101;

  }

  .navbar {
     position: absolute;
     top: 100%;
     right: 0;
     width: 50%;
     padding: 1rem 3%;
     background: rgba(0, 0, 0, 0.8);
     backdrop-filter: blur(20px);
     border-bottom-left-radius: 2rem;
     border-left: 2px solid var(--main-color);
     border-bottom: 2px solid var(--main-color);
     display: none;
    
           
  }

  .navbar a {
      display: block;
      font-size: 2rem;
      margin: 3rem 0;
      color: white;
  
  }

  .navbar.open {
    display: flex;
  }

  .navbar.active {
   display: block;

}

  section {
    flex-direction: column;
    padding: 6rem 5%;
    text-align: center;
  }

  .home {
    flex-direction: column-reverse;
    gap: 2rem;
  }

  .home-content {
    align-items: center;
  }

  .home-content h1 {
    font-size: 4.5rem;
  }

  .home-content h3 {
    font-size: 2.5rem;
  }

  .home-content p {
    font-size: 1.4rem;
  }

  .home-img img {
    width: 40vw;
    margin-top: 4.5rem;
  }

  .btn-group {
    flex-direction: column-reverse;
    gap: 1rem;
  }

  .text-animation {
    font-size: 2.2rem;
  }

  .education {
    padding: 4rem 5%;
  }

  #ed_title,
  .sub-title {
    font-size: 5rem;
  }

  .timeline-items::before {
    left: 8px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding: 0 1.5rem 0 2.5rem;
    text-align: left;
  }

  .timeline-dot {
    left: 0;
  }

  .timeline-content {
    padding: 2rem;
  }

  .container {
    padding: 4rem 5%;
  }
  
    .cer-img img{
        width: 250px;
        margin-left: -100px;
    }

    .cer-info{
        overflow: hidden;
        padding-left: 0;
        margin-left: -50px;
    }

    .cer-info h1{
        font-size: 20px;
        max-width: 200px;
        text-wrap: wrap;
    }

    .cer-info p{
        font-size: 10px;
        text-wrap: wrap;
        max-width: 200px;
        min-width: 0;
    }

    .cer-info button{
        padding: 5px 10px;
        margin-left: 5%;
        margin-bottom: 5%;
    }

   

    .certificate-card{
        flex-direction: column;
        margin-left: 25%;
        gap: 30px;
        
    }

    .cer-title{
        font-size: 5rem;
    }
    
    .cer-img {
        min-width: 200px;
    }

    .cer-info{
        width: 85%;
    }


    .cer-info h1{
        text-align: left;
        text-wrap: nowrap;
        font-size: 16px;
    }

    .cer-info p{
        max-width: 300px;
        text-align: left;
    }

    .skill-title{
        font-size: 5rem;
    }

    .skills-image{
        height: 100%;
        width: 100%;
    }

     .Designer{
        top: 15%;
        left: 18%;
    }

    .Designer h1{
        margin-bottom: 0;
        margin-top: 70px;
        font-size: 4rem;
    }

      .Designer p{
        font-size: 12px;
        line-height: 20px;
        text-align: left;
    }

    .coder{
        top: 55%;
        left: 18%;
    }

    .coder h1{
        margin-bottom: 0;
        font-size: 4rem;
    }

    .coder p{
        font-size: 12px;
        line-height: 20px;
        text-align: left;
    }

    .slider{
        top: 90%;
    }

    .slider .list .item img{
        width: 70%;
    }


  .services-list {
    grid-template-columns: 1fr;
  }

  .projects {
    padding: 4rem 5%;
  }

  .main-text h2 {
    font-size: 4rem;
  }

  .portfolio-content {
    grid-template-columns: 1fr;
  }

  .layer p {
    font-size: 1.2rem;
  }

  .contact {
    flex-direction: column;
    padding: 4rem 5%;
  }

  .contact form {
    margin: 2rem 0;
  }

  .contact form .input-group {
    flex-direction: column;
  }

  .footer {
    padding: 2rem 5%;
  }

  .footer ul li {
    display: block;
    padding: 1rem 0;
  }
}

#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
}

@media screen and (max-width: 1024px) {
 
  .skills-box {
    height: auto;
    flex-direction: column;
    align-items: center;
  }
  .Designer, .coder {
    position: static;
    max-width: 100%;
    margin-bottom: 2rem;
  }
  .slider {
    position: static;
    width: 100%;
    margin: 2rem 0;
  }

}

body, html {
  max-width: 100vw;
  overflow-x: hidden;
}
