@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    border: 0;
    outline: 0;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --first-bg: #1f242d;
    --bg-color: #081b29;
    --secondbg-color: #112e42;
    --text-color: #ededed;
    --main-color: #00abf0;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--first-bg);
    color: var(--text-color);
}

.arrow-cnt {
    cursor: pointer;
    background: #081b29;
    height: 50px;
    width: 50px;
    position: fixed;
    right: 2%;
    bottom: 3%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    z-index: 10;
    transform: translateY(200%);
    transition: all 0.3s;
}

.bxs-chevron-up{
    font-size: 30px;
    color: #00abf0;
}


.show-arr {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.pressed {
    transform: scale(0.9);
}


.arrow-up {
    color: red;
    font-size: 50px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 32px 9%;
    display: flex;
    align-items: center;
    background: transparent;
    justify-content: space-between;
    z-index: 100;
}

.sticky-nav{
    background: #112e42 ;
}
.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 3.5rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    color: red;
    cursor: pointer;
    display: none;
}

.bx-menu {
    font-size: 4rem;
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.home-main {
    display: flex;
    align-items: center;
    gap: 100px;
    /* justify-content: space-between; */
}

.home {
    display: flex;
    align-items: center;
    padding: 0 0 0 9%;
}



.home-content h1 {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content .text-animate {
    position: relative;
    width: 35.8rem;
}

.home-content .text-animate h3 span{
    font-size: 3rem;
    font-weight: 700;
    color: transparent;
}

#animated-text, #animated-text-2 {
    display: flex; 
}

#animated-text span, #animated-text-2 span {
    display: inline-block; 
    opacity: 0; 
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#animated-text span:empty, #animated-text-2 span:empty {
    width: 0.5em;
}

#animated-text span.show, #animated-text-2 span.show {
    opacity: 1; 
    transform: translateY(0);
    color: #00abf0;
}

.home-content p {
    font-size: 1.6rem;
    margin: 2rem 0 4rem;
}

.button-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 34.5rem;
    height: 5rem;
}

.button-box .btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 15rem;
    height: 100%;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: .1rem;
    color: var(--bg-color);
    z-index: 2;
    overflow: hidden;
    transition: .5s;
}

.button-box .btn:nth-child(2) {
    background-color: var(--bg-color);
    color: var(--main-color);
}

.button-box .btn:nth-child(2)::before {
    background: var(--main-color);
}

.button-box .btn:nth-child(2):hover {
    color: var(--bg-color);
}

.button-box .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    z-index: -1;
    transition: .5s;
    background: var(--bg-color);
    color: var(--text-color);

}

.button-box .btn:hover::before {
    width: 100%;
}

.button-box .btn:hover {
    color: var(--main-color);
}

.home-img {
    padding: 0 9% 0 0;
}

.home-img .img-box {
    position: relative;
    margin-top: 20%;
    width: 32vw;
    height: 32vw;
    border-radius: 50%;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-img .img-box::before,
.home-img .img-box::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: conic-gradient(transparent, transparent, transparent, #00abf0);
    transform: rotate(0deg);
    animation: rotate-border 15s linear infinite;
}

.home-img .img-box::after {
    animation-delay: 7.5s;
}

@keyframes rotate-border {
    100% {
        transform: rotate(360deg);
    }
}

.home-img .img-box .img-item {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--first-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    border: .1px solid #1f242d;
}

.home-img .img-box .img-item img {
    position: absolute;
    top: -10%;
    display: block;
    width: 85%;
    object-fit: cover;
    mix-blend-mode: lighten;
}

@media only screen and (max-width:768px) {
    header {
        background: #112e42;
        padding: 20px 9%;
    }

    #menu-icon {
        display: block;
        font-size: 2.5rem;
        z-index: 10;
    }

    .arrow-cnt{
        bottom: 2%;
        right: 6%;
    }

    .navbar {
        right: 5%;
        top: -400%;
        height: auto;
        width: 220px;
        position: absolute;
        background: #fff;
        border-radius: 10px;
        transition: top 0.5s ease-in-out;
    }

    .show {
        /* display: block; */
        top: 30%;
    }

    .navbar a {
        padding-top: 5%;
        display: block;
        margin-bottom: 10px;
        font-size: 2rem;
        color: #081b29;
    }

    .home-content h1 {
        font-size: 4rem;
        margin-bottom: 4rem;
    }

    .home-content .text-animate{
        width: 100%;
    }

    .home-img .img-box {
        display: none;
    }
}

.about {
    padding: 10rem 9% 5rem;
    background: var(--secondbg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: 3.2rem;
    color: var(--main-color);
    margin-bottom: 4rem;
    position: relative;
    text-transform: uppercase;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.about-img {
    flex: 1;
    max-width: 400px;
    border-radius: 50%;
    height: 400px;
    overflow: hidden;
}

.about-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    mix-blend-mode: lighten;
}

.about-content {
    flex: 2;
    color: var(--text-color);
}

.about-content h3 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.about-content .btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--main-color);
    color: var(--bg-color);
    border-radius: 8px;
    border: 2px solid transparent;
    font-size: 1.6rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: 0.3s;
    outline: none;
}

.about-content .btn:hover {
    background: var(--bg-color);
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

@media only screen and (max-width:768px) {
    .about-container {
        flex-direction: column;

    }

    .about-img img {
        height: 300px;
        width: auto;
    }
}

.education {
    padding: 10rem 9% 5rem;
    /* background: var(--first-bg); */
    color: var(--text-color);
    text-align: center;
}

.education .section-title {
    font-size: 3.2rem;
    color: var(--main-color);
    margin-bottom: 4rem;
    text-transform: uppercase;
    position: relative;
}

.education-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.education-item {
    background: var(--secondbg-color);
    border: 1px solid var(--main-color);
    border-radius: 8px;
    padding: 2rem 3rem;
    width: 80%;
    max-width: 600px;
    text-align: left;
    transition: 0.3s;
}

.education-item:hover {
    transform: translateY(-5px);
    border-color: var(--text-color);
    cursor: pointer;
}

.education-item h3 {
    font-size: 2.4rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.education-item p {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.education-item .education-year {
    font-size: 1.4rem;
    color: var(--main-color);
    font-weight: 500;
}

.education-item .education-marks {
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: 500;
    margin-top: 5px;
}

.skills {
    padding: 8rem 9% 5rem;
    background: var(--bg-color);
    color: var(--text-color);
    text-align: center;
}

.skills .section-title {
    font-size: 3.2rem;
    color: var(--main-color);
    margin-bottom: 4rem;
    text-transform: uppercase;
    position: relative;
}

.skills-container {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    align-items: flex-start;
}

.skills-left {
    margin-top: 5rem;
    width: 45%;
    text-align: left;
    max-height: 100%;
}

.skills-left h3 {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 4rem;
    margin-left: 2rem;
}

.skills-left ul {
    list-style-type: none;
    padding-left: 0;
}

.skills-left ul li {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.skills-left ul li strong {
    font-size: 2rem;
    color: #00abf0;
}

.skills-right {
    width: 50%;
}

.skill-item {
    background: var(--secondbg-color);
    border: 1px solid var(--main-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    height: 7rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    position: relative;
    transition: all 0.3s;
}

.skill-item:hover {
    cursor: pointer;
    transform: translateY(-5px);
    border-color: var(--text-color);
}

.skill-item h3 {
    font-size: 2.4rem;
    color: var(--main-color);
    margin-bottom: 0.5rem;
    /* Adjusted margin */
}

.skill-bar {
    background: var(--bg-color);
    border-radius: 5px;
    height: 8px;
    margin-bottom: 0.8rem;
    width: 100%;
}

.skill-progress {
    height: 100%;
    background: var(--text-color);
    border-radius: 5px;
}

.skill-percentage {
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: 500;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}
/* .html-skill-progress-line{
    width: 85%;
    height: 100%;
    border-top: 3px solid var(--text-color);
    border-bottom: 3px solid var(--text-color);
    border-radius: 5px;
    transition: all 0.3s;
}
.css-skill-progress-line{
    width: 80%;
    height: 100%;
    border-top: 3px solid var(--text-color);
    border-bottom: 3px solid var(--text-color);
    border-radius: 5px;
    transition: all 0.3s;
}
.js-skill-progress-line{
    width: 75%;
    height: 100%;
    border-top: 3px solid var(--text-color);
    border-bottom: 3px solid var(--text-color);
    border-radius: 5px;
    transition: all 0.3s;
}
.react-skill-progress-line{
    width:70%;
    height: 100%;
    border-top: 3px solid var(--text-color);
    border-bottom: 3px solid var(--text-color);
    border-radius: 5px;
    transition: all 0.3s;
}
.redux-skill-progress-line{
    width: 70%;
    height: 100%;
    border-top: 3px solid var(--text-color);
    border-bottom: 3px solid var(--text-color);
    border-radius: 5px;
    transition: all 0.3s;
} */


@media screen and (max-width: 768px) {
    .skills-container {
        flex-direction: column;
        align-items: center;
    }

    .skills-left,
    .skills-right {
        width: 100%;
        margin-bottom: 2rem;
    }

    .skill-item {
        height: auto;
        padding: 1rem;
    }

    .skill-bar {
        height: 6px;
    }

    .skills-left ul li {
        font-size: 1.4rem;
    }
}

.projects {
    padding: 50px 0;
    background-color: var(--bg-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--main-color);
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.project-item {
    width: 300px;
    margin: 15px;
    height: 300px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    background-color: var(--first-bg);
    cursor: pointer;
}

.project-item:hover {
    transform: scale(1.05);
}

.project-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-item:hover .project-info {
    opacity: 1;
}

.project-info h3 {
    font-size: 2rem;
    margin: 10px 0;
    color: var(--main-color);
}

.project-info p {
    font-size: 1.3rem;
    color: var(--text-color);
}

.contact {
    padding: 8rem 9% 5rem;
    background: var(--first-bg);
    color: var(--text-color);
    text-align: center;
}

.contact .section-title {
    font-size: 3.2rem;
    color: var(--main-color);
    margin-bottom: 4rem;
    text-transform: uppercase;
    position: relative;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

.contact-left {
    width: 45%;
    text-align: left;
}

.contact-left h3 {
    font-size: 2.4rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.contact-left p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-left ul {
    list-style: none;
    padding-left: 0;
}

.contact-left ul li {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.contact-left ul li::before {
    content: '•';
    font-size: 2rem;
    color: var(--main-color);
    margin-right: 1rem;
}

.contact-right {
    width: 50%;
}

.contact-right form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-right .form-group {
    position: relative;
    width: 100%;
}

.contact-right input,
.contact-right textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-color);
    border: 1px solid var(--main-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1.6rem;
}

.contact-right input::placeholder,
.contact-right textarea::placeholder {
    color: var(--text-color);
    opacity: 0.8;
}

.contact-right button {
    align-self: flex-start;
    background: var(--main-color);
    color: var(--bg-color);
    padding: 1rem 2rem;
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.3s;
}

.contact-right button:hover {
    background: var(--bg-color);
    color: var(--main-color);
    border: 1px solid var(--main-color);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-left,
    .contact-right {
        width: 100%;
    }

    .education-item {
        width: 100%;
    }
}



/* Tablet Screen Styles */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    header {
        padding: 20px 5%;
        background: #112e42;
    }

    .navbar {
        display: flex;
    }

    .navbar a {
        font-size: 1.5rem;
        margin-left: 1.5rem;
    }

    .home {
        padding: 5rem 5%;
    }

    .home-main {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }

    .home-content {
        text-align: left;
        margin-bottom: 1rem;
    }

    .home-content h1 {
        font-size: 5.5rem;
        margin-bottom: 1rem;
    }

    .home-content h3 {
        font-size: 4rem;
        margin-bottom: 1rem;
    }

    .home-content p {
        font-size: 1.4rem;
        margin: 2rem 0;
    }

    .home-content .button-box {
        margin-top: 4rem;
    }

    .home-img {
        display: none;
    }

    .home-links {
        margin-top: -1rem;
        display: flex;
        justify-content: center;
    }

    .home-links a {
        margin: 0 1rem;
        color: var(--main-color);
        font-size: 1.5rem;
    }

    .about-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
    }

    .about-img {
        max-width: 300px;
        margin-bottom: 2rem;
    }

    .education-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
    }

    .education-item {
        width: 90%;
        margin-bottom: 1.5rem;
    }

    .skills-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
    }

    .skills-left,
    .skills-right {
        width: 100%;
        margin-bottom: 2rem;
    }

    .contact-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
    }

    .contact-left,
    .contact-right {
        width: 100%;
        margin-bottom: 2rem;
    }

    .contact-right form {
        gap: 1rem;
    }

    .contact-right input,
    .contact-right textarea {
        font-size: 1.2rem;
    }

    .contact-right button {
        font-size: 1.2rem;
    }
}