* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: #112e42;
    color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    padding: 20px 10%;
    background: rgba(8, 27, 41, 0.72);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo {
    position: relative;
    flex-shrink: 0;
    font-size: clamp(22px, 3vw, 25px);
    color: #fffdfd;
    text-decoration: none;
    font-weight: 600;
    cursor: default;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 3vw, 35px);
    flex-wrap: wrap;
}

.navbar a {
    display: inline-block;
    font-size: clamp(15px, 2vw, 25px);
    color: #fffbfb;
    text-decoration: none;
    font-weight: 500;
    transition: .3s;
    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.navbar a:hover,
.navbar a.active {
    color: #0ef;
}

.home {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(rgba(8, 27, 41, 0.35), rgba(8, 27, 41, 0.72)),
        url(Purple\ Illustrated\ Mountain\ Desktop\ Wallpaper.png) no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 110px 10% 60px;
}

.home-content {
    width: min(100%, 680px);
}

.home-content h3 {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 700;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: .7s;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 30px;
    animation: slideTop 1s ease forwards;
    animation-delay: .7s;
}

.home-content h3 span {
    color: #0ef;
}

.home-content h1 {
    max-width: 100%;
    font-size: clamp(34px, 7vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    margin: 4px 0;
    word-break: break-word;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
}

.home-content p {
    max-width: 64ch;
    font-size: clamp(16px, 2.4vw, 20px);
    line-height: 1.7;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
}

.home-sci {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #0ef;
    border-radius: 50%;
    font-size: 20px;
    color: rgb(255, 255, 255);
    text-decoration: none;
    transition: .5s ease;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.home-sci a:hover {
    background: #0ef;
    color: #081b29;
    box-shadow: 0 0 20px #0ef;
}

.btn-box {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    padding: 12px 28px;
    background: #0ef;
    border: 0;
    border-radius: 40px;
    font-size: 16px;
    color: #081b29;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.3;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
    box-shadow: 0 0 5px #0ef,
        0 0 25px #0ef;
}

.btn-box:hover {
    box-shadow: 0 0 5px cyan,
        0 0 25px cyan, 0 0 50px cyan,
        0 0 100px cyan, 0 0 200px cyan;
}

@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

/* ================= ABOUT SECTION ================= */

.about {
    display: grid;
    grid-template-columns: minmax(240px, 400px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    padding: clamp(90px, 12vw, 120px) 10%;
    background: #fff;
}

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

.about-img img {
    width: min(100%, 400px);
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0, 238, 255, 0.4);
    opacity: 0;
    animation: slideRight 1s ease forwards;
}

.about-content h2,
.sub-title,
.main-text h2,
.contact-text h2 {
    font-size: clamp(40px, 7vw, 60px);
    line-height: 1.1;
}

.about-content h2 {
    margin-bottom: 20px;
    color: #081b29;
    opacity: 0;
    animation: slideTop 1s ease forwards;
}

.about-content h2 span,
.sub-title span,
.contact-text h2 span {
    color: #0ef;
}

.about-content h4 {
    font-size: clamp(22px, 3vw, 29px);
    font-weight: 600;
    color: #081b29;
    margin-bottom: 20px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
}

.about-content p {
    color: #333;
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
}

.about-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-box {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 15px;
    transition: .4s ease;
    border-left: 4px solid #0ef;
    opacity: 0;
    animation: slideTop 1s ease forwards;
}

.info-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 15px rgba(0, 238, 255, 0.3);
}

.info-box h5 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #081b29;
}

.info-box p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ================= SKILLS SECTION ================= */

.skills {
    padding: clamp(90px, 12vw, 120px) 10%;
    background: #f8f9fc;
}

.sub-title {
    text-align: center;
    padding-bottom: clamp(40px, 8vw, 70px);
    color: #081b29;
}

.container1 {
    width: 100%;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: clamp(22px, 4vw, 40px);
}

.skills-list div {
    background: #fff;
    padding: clamp(24px, 4vw, 40px);
    font-size: 15px;
    border-radius: 20px;
    transition: transform 0.5s, box-shadow 0.5s;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    animation: slideTop 1s ease forwards;
}

.skills-list div i {
    font-size: clamp(44px, 8vw, 55px);
    margin-bottom: 20px;
}

.skills-list div h2 {
    font-size: clamp(23px, 4vw, 28px);
    font-weight: 600;
    margin-bottom: 15px;
    color: #081b29;
}

.skills-list div p {
    color: #555;
    line-height: 1.7;
}

.skills-list div:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(0, 238, 255, 0.4);
}

.skills .btn-box,
.projects .btn-box,
.project .btn-box {
    margin-top: 36px;
}

/* ================= PROJECT SECTION ================= */

.project,
.projects {
    padding: clamp(90px, 12vw, 120px) 10%;
    background: #9d9999;
    min-height: 100vh;
}

.main-text h2 {
    text-align: center;
    margin-bottom: clamp(40px, 8vw, 70px);
    color: #081b29;
}

.main-text h2 span {
    color: rgb(236, 236, 236);
}

.portfolio-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
}

.row {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    border-radius: 16px;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 14px 35px rgba(8, 27, 41, 0.14);
}

.row img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.layer {
    width: 100%;
    min-height: 100%;
    padding: clamp(24px, 5vw, 36px);
    background: linear-gradient(rgba(255, 255, 255, 0.96), rgba(0, 238, 255, 0.88));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    transition: height 0.5s;
}

.layer h5 {
    color: #081b29;
    font-size: clamp(22px, 3vw, 25px);
    font-weight: 600;
}

.layer p {
    color: #081b29;
    font-size: 16px;
    line-height: 1.6;
}

.layer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin-top: 8px;
    padding: 12px 16px;
    color: #081b29;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.3;
    background: #fff;
    border-radius: 999px;
    text-align: center;
    overflow-wrap: anywhere;
}

.layer a i {
    font-size: 16px;
    font-style: normal;
}

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

/* ================= CONTACT SECTION ================= */

.contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: clamp(2rem, 5vw, 3rem);
    min-height: 100vh;
    padding: clamp(90px, 12vw, 120px) 10%;
    background: #081b29;
    color: #fff;
}

.contact-text h2 {
    margin-bottom: 20px;
}

.contact-text h4 {
    font-size: clamp(22px, 3vw, 26px);
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-text p {
    color: #d6d6d6;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: clamp(16px, 2vw, 17px);
}

.contact-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-list li {
    list-style: none;
    min-width: 0;
    background: #112e42;
    padding: 18px 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-wrap: anywhere;
    transition: 0.4s ease;
}

.contact-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 238, 255, 0.4);
}

.contact-list li i {
    flex-shrink: 0;
    color: #0ef;
    font-size: 24px;
}

.contact-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.contact-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border: 2px solid #0ef;
    border-radius: 50%;
    color: #0ef;
    text-decoration: none;
    font-size: 22px;
    transition: 0.5s ease;
}

.contact-icons img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.contact-icons a:hover {
    background: #0ef;
    color: #081b29;
    box-shadow: 0 0 20px #0ef;
}

.contact-form form {
    display: grid;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px;
    border: none;
    outline: none;
    background: #cacaca;
    color: #081b29;
    border-radius: 12px;
    font-size: 16px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 180px;
}

.contact-form .send {
    width: fit-content;
    max-width: 100%;
    padding: 14px 35px;
    background: #0ef;
    color: #081b29;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.5s ease;
    box-shadow: 0 0 5px #0ef,
        0 0 25px #0ef;
}

.contact-form .send:hover {
    box-shadow: 0 0 5px cyan,
        0 0 25px cyan,
        0 0 50px cyan,
        0 0 100px cyan;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
    .header {
        padding: 18px 6%;
    }

    .home,
    .about,
    .skills,
    .project,
    .projects,
    .contact {
        padding-left: 6%;
        padding-right: 6%;
    }
}

@media (max-width: 900px) {
    .header {
        position: sticky;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .navbar {
        width: 100%;
        justify-content: flex-start;
        gap: 10px 18px;
    }

    .home {
        min-height: auto;
        padding-top: 80px;
    }

    .about {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-content .btn-box,
    .skills .btn-box,
    .projects .btn-box,
    .project .btn-box {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 16px 5%;
    }

    .navbar {
        gap: 8px 14px;
    }

    .navbar a {
        font-size: 14px;
    }

    .home,
    .about,
    .skills,
    .project,
    .projects,
    .contact {
        padding-left: 5%;
        padding-right: 5%;
    }

    .home {
        padding-top: 64px;
        text-align: center;
        background-position: 58% center;
    }

    .home-content {
        margin: 0 auto;
    }

    .home-content h3:nth-of-type(2) {
        margin-bottom: 20px;
    }

    .home-sci {
        justify-content: center;
        margin: 24px 0;
    }

    .btn-box {
        padding: 11px 22px;
        font-size: 14px;
        letter-spacing: 0;
    }

    .sub-title {
        padding-bottom: 36px;
    }

    .skills-list div,
    .info-box,
    .layer,
    .contact-list li {
        border-radius: 12px;
    }

    .portfolio-content {
        gap: 1.25rem;
    }

    .row {
        min-height: auto;
    }

    .layer {
        min-height: 260px;
    }

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

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

@media (max-width: 380px) {
    .navbar a {
        font-size: 13px;
    }

    .home-content h1 {
        font-size: 30px;
    }

    .contact-list li {
        padding: 16px;
        font-size: 14px;
    }
}
