@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Roboto:wght@300;400&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    background: black;
    overflow-x: hidden;
    /* overflow-y: auto; */
    height: auto;
}

@media (max-width:768px) {
    body {
        overflow-y: auto;
    }

    .main-container {
        width: 100%;
        height: auto;
        transform: none !important;
    }

    .section {
        width: 100%;
        height: auto;
        /* min-height: auto; */
        padding: 60px 20px;
    }
}

.section {
    width: 100%;
    height: auto;
    flex-shrink: 0;
}

.main-container {
    /* display: flex; */
    width: 100vw;
    height: auto;
    transition: transform 0.8s ease-in-out;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    color: aqua;
    margin-left: 200px;
}

.nav-links {
    display: flex;
    gap: 80px;
    list-style: none;
    margin-right: 300px;
    
}

.nav-links a {
    color: white;
    text-decoration: none;
    position: relative;
    transition: 0.3s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: #00f5d4;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #00f5d4;
}

.home {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100vh; 
    gap: 40px;
    padding: 0 8%;
    position: relative;
    overflow: hidden;
}

.floating-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-bg img {
    position: absolute;
    width: 40px;
    opacity: 0.15;
    will-change: transform;
    animation: floatMove 20s linear infinite;
}

.floating-bg img:nth-child(1) {
    top: 10%;
    left: 15%;
}

.floating-bg img:nth-child(2) {
    top: 60%;
    left: 5%;
}

.floating-bg img:nth-child(3) {
    top: 10%;
    left: 70%;
}

.floating-bg img:nth-child(4) {
    top: 80%;
    left: 60%;
}

.floating-bg img:nth-child(5) {
    top: 20%;
    left: 40%;
}

.floating-bg img:nth-child(6) {
    top: 70%;
    left: 80%;
}

.floating-bg img:nth-child(7) {
    top: 30%;
    left: 90%;
}

.floating-bg img:nth-child(odd) {
    animation-duration: 18s;
}

.floating-bg img:nth-child(even) {
    animation-duration: 25s;
}

@keyframes floatMove {
    0% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-50px) translateX(50px);
    }
    50% {
        transform: translateY(50px) translateX(-50px);
    }
    75% {
        transform: translateY(-30px) translateX(30px);
    }
    100% {
        transform: translateY(0px) translateX(0px);
    }
}

.icon {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.icon img {
    width: 20px;
    margin-left: 30px;
    border-radius: 3px;
}

.icon img:hover {
    transform: scale(1.2);
    transition: 0.3s;
}

.icon a:nth-child(1) {
    animation: slideLeft 2s ease forwards;
}

.icon a:nth-child(2) {
    animation: slideLeft 2.5s ease forwards;
}

.icon a:nth-child(3) {
    animation: slideLeft 3s ease forwards;
}

.profile-image {
    margin-top: 5px;
    animation: slideTop 3s ease forwards;
}

.profile-image img {
    border-radius: 50%;
    width: 420px;
    border: 8px solid #00f5d4;
    box-shadow: 0 0 10px #00f5d4, 0 0 40px #00f5d4, 0 0 30px #00f5d4;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 10px #00f5d4, 0 0 40px #00f5d4,0 0 30px #00f5d4;
    }
    100% {
        box-shadow: 0 0 20px #00f5d4, 0 0 60px #00f5d4, 0 0 50px #00f5d4;
    }
}


.home-content {
    margin-left: 40px;
    /* height: 50vh; */
    margin-top: 100px;
    text-align: left;
    animation: slideRight 2s ease forwards;
}

.intro {
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    animation: slideRight 1.2s ease forwards;
}

.skill {
    color: #00f5d4;
    font-size: 20px;
    border-right: 3px solid #00f5d4;
    white-space: nowrap;
    overflow: hidden;
    display: inline;
    margin-left: 5px;
    width: 19ch;
    animation: typing 3s steps(18) infinite alternate,
    blink 0.7s infinite,
    slideRight 1.3s ease forwards;
}

@keyframes typing {
    from {
        width:0;
    }
    to {
        width:19ch;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.home-content h1 {
    color: #00f5d4;
    margin-top: 20px;
    animation: slideRight 1.8s ease forwards;
}

.home-content p {
    color: white;
    width: 70%;
    line-height: 1.6;
    font-family: "Georgia", serif;
    margin-top: 20px;
    animation: slideRight 1.3s ease forwards;
}

.btn {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    width: 300px;
    animation: slideBottom 1.8s ease forwards;
}

.btn button {
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bolder;
    transition: all 0.3s ease;
}

.cv-btn {
    background-color: #00f5d4;
    color: black;
    border: none;
}

.cv-btn:hover {
    box-shadow: 0 0 10px #00f5d4, 0 0 5px #00f5d4, 0 0 20px #00f5d4;
}

.projects-btn {
    color: white;
    border: 2px solid #00f5d4;
    background: transparent; 
}

.projects-btn:hover {
    background: #00f5d4;
    color: black;
    box-shadow: 0 0 10px #00f5d4, 0 0 5px #00f5d4, 0 0 20px #00f5d4;
}


@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@media (max-width:768px){
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }

    .nav-links {
        margin-right: 0;
        gap: 20px;
    }

    .logo {
        margin-left: 0;
    }

    .home {
        flex-direction: column;
        justify-content: center;
        margin-left: 0;
        text-align: center;
        height: auto;
        padding: 40px 20px;
    }

    .icon {
        flex-direction: row;
        justify-content: center;
        margin-bottom: 20px;
    }

    .icon img {
        margin-left: 0;
    }

    .profile-image img {
        width: 220px;
    }

    .home-content {
        margin-left: 0;
        margin-top: 20px;
    }

    .home-content p {
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
        gap: 20px;
    }
}

@media (min-width:769px) and (max-width:1024px) {
    .logo {
        margin-left: 50px;
    }

    .nav-links {
        margin-right: 50px;
        gap: 40px;
    }

    .home {
        flex-direction: row;
        justify-content: space-around;
        padding: 0 5%;
        gap: 20px;
    }

    .profile-image img {
        width: 300px;
    }

    .home-content {
        margin-left: 20px;
        margin-top: 10px;
        text-align: left;
        width: 50%;
    }

    .home-content p {
        width: 100%;
    }

    .btn {
        width: 80%;
        justify-content: space-between;
        margin-top: 20px;
    }

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

    .profile-image {
        margin-top: 20px;
    }

    .about-image img {
        width: 300px;
    }
}

@media (min-width:1025px) and (max-width:1440px) {
    .logo {
        margin-left: 150px;
    }

    .nav-links {
        margin-right: 200px;
        gap: 50px;
    }

    .profile-image img {
        width: 350px;
    }

    .home-content {
        width: 50%;
        margin-left: 30px;
    }

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

@media (min-width:1441px) {
    .logo {
        margin-left: 200px;
    }

    .nav-links {
        margin-right: 300px;
        gap: 60px;
    }

    .profile-image img {
        width: 420px;
    }

    .home-content {
        width: 50%;
        margin-left: 40px;
    }

    .about-image img {
        width: 350px;
    }
}

.about {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 80px 8%;
    gap: 50px;
    flex-wrap: wrap;
}

.about-content {
    flex: 1;
    order: 1;
}

.head-about {
    color: #00f5d4;
    margin-bottom: 20px;
    animation: slideTop 1.8s ease forwards;

}

.para {
    color: white;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: "Georgia", serif;
    animation: slideLeft 1.8s ease forwards;
}

.contact-btn {
    padding: 10px 20px;
    width: auto;
    background: transparent;
    color: white;
    border: 2px solid #00f5d4;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: bolder;
    text-align: center;
    transition: 0.3s ease;
    animation: slideLeft 1.8s ease forwards;
}

.contact-btn:hover {
    background: #00f5d4;
    color:#0a0a0a;
    box-shadow: 0 0 10px #00f5d4, 0 0 5px #00f5d4, 0 0 20px #00f5d4;
}

.skill-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.bookmark {
    display: flex;
}

.bookmark img {
    width: 30px;
}

.skill-text {
    color: #00f5d4;
    font-size: 30px;
    
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 15px;
}

.skill-box {
    padding: 5px 12px;
    background: #00f5d4;
    color: black;
    font-weight: 500;
    border-radius: 10px;
    transition: 0.3s;
    animation: slideBottom 1.8s ease forwards;
    box-shadow: 0 0 10px #00f5d4, 0 0 5px #00f5d4, 0 0 10px #00f5d4;
}

.skill-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px #00f5d4;
}


.about-image {
    flex: 1;
    order: 2;
    display: flex;
    justify-content: flex-end;
    animation: slideRight 1.2s ease forwards;
}

.about-image img {
    width: 350px;
    max-width: 100%;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 20px #00f5d4, 0 0 10px #00f5d4, 0 0 30px #00f5d4;
}

@media (max-width:768px){

.about{
    flex-direction:column;
    padding:60px 20px;
}

.about-image{
    width: 100%;
    display: flex;
    justify-content:center;
    align-items: center;
    margin-top:30px;

    
}

.about-image img{
    width:250px;
}

}

.projects {
    padding: 80px 8%;
    text-align: center;
}

.text {
    color: #00f5d4;
    font-size: 35px;
    margin-bottom: 40px;
    font-family: verdana, Segoe UI, Sans-serif;
}

.all-project {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.project-content {
    width: 300px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 0 10px #dafffa, 0 0 5px #00f5d4, 0 0 10px #00f5d4;
    animation: slideRight 1.3s ease forwards;
}

.project-content img {
    width: 100%;
    border-radius: 10px;
    transition: 0.4s;
}

.project-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.project-img-container img {
    width: 100%;
    display: block;
    transition: 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #a3e2da;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    padding: 20px;
    transition: 0.5s ease;
}

.project-img-container:hover img {
    filter: blur(3px);
    transform: scale(1.05);
}

.project-img-container:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3,
.project-overlay p {
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.project-img-container:hover .project-overlay h3,
.project-img-container:hover .project-overlay p {
    transform: translateY(0);
}

@media (max-width:768px) {
    .projects {
        padding-bottom: 40px;
    }
}

.resume {
    padding: 80px 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* height: 100vh; */
    color: white;
}

.resume-box {
    width: 50%;
    gap: 50px;
    display: flex;
    justify-content: space-between;

}

.experience-box {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 20px;
    font-family: "Segoe UI", sans-serif;
}

.experience-text {
    color: #00f5d4;
    font-weight: bolder;
}

.experience-head h3 {
   font-family: "Poppins", "Segoe UI", sans-serif;
   color: aliceblue;
   font-weight: 600;
   margin-bottom: 5px;
   letter-spacing: 0.5px;
   line-height: 1.3;
   animation: slideLeft 2s ease forwards;
}

.experience-count {
    color: rgb(145, 151, 156);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    line-height: 1.4;
    font-size: 14px;
    text-align: center;
}
/* .para {
    color: #9ee5dc;
    font-family: "Roboto", "Segoe UI", sans-serif;
    line-height: 1.6;
    font-size: 14px;
} */

@media (max-width:768px) {

    .resume {
        padding: 60px 20px;
        height: auto;
    }
    .resume-box {
        width: 100%;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .experience-box {
        align-items: center;
        text-align: center;
    }

    .experience-head {
        text-align: center;
    }

    .experience-count {
        justify-content: center;
        text-align: center;
        gap: 10px;
    }
}

.contact {
    display: flex;
    min-height: 100vh;
    padding: 80px 8%;
    align-items: center;
    flex-direction: column;
}

.contact-box {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

.all-detail {
    width: 45%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slideLeft 1.3s ease forwards;
}

.detail a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
    padding: 12px;
    border: 1px solid #00f5d4;
    border-radius: 8px;
    transition: 0.3s;
}

.detail a:hover {
    background: #00f5d4;
    color: black;
    box-shadow: 0 0 10px #00f5d4;
}

.detail img {
    width: 25px;
    border-radius: 5px;
}

.no-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    padding: 12px;
    border: 1px solid #00f5d4;
    border-radius: 8px;
}

.contact-form {
    width: 45%;
    display: flex;
    flex-direction: column;
    animation: slideRight 1.3s ease forwards;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form label {
    color: #00f5d4;
    font-weight: 500;
    font-size: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #00f5d4;
    background: transparent;
    color: white;
    outline: none;
    font-size: 14px;
    transition: 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #00f5d4;
    box-shadow: 0 0 10px #00f5d4;
}

.contact-form textarea {
    resize: none;
}

.contact-form button {
    margin-top: 10px;
    padding: 12px;
    border: none;
    background: #00f5d4;
    color: black;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background: #00f5d4;
    box-shadow: 0 0 10px #00f5d4, 0 0 20px #00f5d4;
    transform: translateY(-2px);
}

@media (max-width:768px) {
    .contact-box {
        flex-direction: column;
        gap: 30px;
    }

    .all-detail,
    .contact-form {
        width: 100%;
    }

    .contact-form {
        margin-top: 20px;
    }
}

.footer {
    margin-top: 0px;
    padding: 40px 8%;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 245, 212, 0.3);
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.2);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    color: #00f5d4;
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #00f5d4;
}

.footer-left p {
    color: #ccc;
    max-width: 250px;
    font-size: 14px;
}

.footer-center h3,
.footer-right h3 {
    color: #00f5d4;
    margin-bottom: 10px;
}

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

.footer-center ul li {
    margin-bottom: 8px;
}

.footer-center ul li a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.footer-center ul li a:hover {
    color: #00f5d4;
    text-shadow: 0 0 5px #00f5d4;
}

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

.footer-icons img {
    width: 30px;
    border-radius: 8px;
    transition: 0.3s;
}

.footer-icons img:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px #00f5d4, 0 0 20px #00f5d4;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid rgba(0, 245, 212, 0.2);
    padding-top: 15px;
}

.footer-bottom p {
    color: #aaa;
    font-size: 14px;
}

@media (max-width:768px) {

    .footer {
        margin-top: 0;
    }
    body {
        display: block;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-left p {
        margin: auto;
    }

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

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #00f5d4;
    border-radius: 5px;
    transition: 0.4s;
    box-shadow: 0 0 5px #00f5d4;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width:768px) {

    .menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 20%;
        height: 350px;
        background: rgba(0, 0, 0, 0.9);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: 0.4s;
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateX(0);
        right: 0;
    }

    body.no-scroll {
        overflow: hidden;
    }
}