@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: "Roboto", system-ui;
    text-decoration: none;
    box-sizing: border-box;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #000000;
    --second-bg-color: #112e42;
    --text-color: #ededed;
    --main-color: #898989;
}

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

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

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 10%;
    z-index: 100;
}

.logo {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: "Dancing Script", cursive;
    color: var(--text-color);
    text-shadow: 3px 3px 4px var(--main-color);
}

.navbar a {
    font-size: 1.8rem;
    font-weight: 600;
    margin-left: 3.7rem;
    color: var(--text-color);
    transition: .3s;
}

.navbar a:hover,
.navbar a.Active {
    color: var(--main-color);
}

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

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.home {
    display: flex;
    align-items: center;
    padding: 0 9%;
}

.home-img {
    margin: 5rem 0rem 0rem 5rem;
    height: 500px;
    width: 500px;
    border-radius: 50%;
    border: .3rem solid var(--main-color);
    position: relative;
}

/* We have make the css variable using property function */
@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.home-img::after,
.home-img::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    /* background: red; */
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    z-index: -1;
    border-radius: 50%;
    /* this is deciding our border around the image */
    padding: .8rem;
    background-image: conic-gradient(from var(--angle), transparent 25%, #fcfb62, #91f9e5, #fcfb62);
    /* Now we are going to make the animation for the round effect in the image */
    animation: spin 3s linear infinite;
}

@keyframes spin {
    form {
        --angle: 0deg;
    }

    to {
        --angle: 360deg;
    }
}

/* This is used for glow effect to background of the image */
.home-img::before {
    filter: blur(1.5rem);
    opacity: .9;
}

.home-img img {
    height: 100%;
    width: 100%;
    border-radius: 50%;
    filter: grayscale(100%);
    cursor: pointer;
    transition: .5s ease-in-out;
}

.home-img img:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.home-content {
    max-width: 65rem;
}

.home-content h1 {
    font-size: 6rem;
    font-weight: 800px;
    line-height: 1.5;
}

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


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

.home-content p {
    font-size: 1.7rem;
    margin: 2rem 0 4rem;
}

.btn-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 34.5rem;
    height: 5rem;
}

.btn-box .btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 15rem;
    height: 100%;
    background-color: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: .1rem;
    color: var(--bg-color);
    /* Initial color */
    z-index: 1;
    overflow: hidden;
    transition: .4s ease-in-out;
}

.btn-box .btn::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--bg-color);
    z-index: -1;
    transition: .4s ease-in-out;
}

.btn-box .btn:hover::before {
    width: 100%;
    top: 0;
}

.btn-box .btn:hover {
    color: var(--main-color);
    /* Changes the font color on hover */
}

.home-li {
    position: relative;
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    width: auto;
    justify-content: center;
    float: left;
}

.home-li a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 30px;
    color: var(--main-color);
    margin-left: 1.5rem;
    z-index: 1;
    overflow: hidden;
    transition: .4s ease-in-out;
}

.home-li a::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--main-color);
    /* Inverse the hover background */
    z-index: -1;
    transition: .4s ease-in-out;
}

.home-li a:hover::before {
    width: 100%;
    top: 0;
}

.home-li a:hover {
    color: var(--bg-color);
    /* Inverse the text color on hover */
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    background-color: var(--bg-color);
    padding-bottom: 5rem;
}

.heading-abt {
    font-size: 4.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.about-img-div {
    position: relative;
    width: 350px;
    height: 350px;
    background-color: var(--bg-color);
    border-radius: 50%;
    overflow: hidden;
}

.about-img-div::before {
    content: '';
    position: absolute;
    inset: -10px 120px;
    /* We use linear gradient for animation and if we want to use conical gradient we can use it and we need to define variable  */
    background: linear-gradient(360deg, #fcfb62, #91f9e5);
    transition: 0.5s;
    animation: animate 4s linear infinite;
}

.about-img-div:hover::before {
    inset: -20px 0px;
}

@keyframes animate {
    0% {
        transform: rotate(0deg);
    }

    0% {
        transform: rotate(360deg);
    }
}

.about-img-div::after {
    content: '';
    position: absolute;
    inset: 6px;
    background: black;
    border-radius: 50%;
    z-index: 1;
}

.about-img-content {
    position: absolute;
    inset: 30px;
    border: 6px solid white;
    z-index: 3;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.about-img-content img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
    pointer-events: none;
}

.about-img-div:hover .about-img-content img {
    opacity: 0;
}

.about-img-content h2 {
    font-size: 3rem;
}

.about-img-content a {
    color: var(--main-color);
    margin-top: 1rem;
    font-size: 2.5rem;
    text-decoration: underline;
}

.about-content {
    display: flex;
    margin: 0rem 0rem 1rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-content h3 {
    font-size: 3rem;
}

.about-content p {
    font-size: 1.5rem;
}

.education {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: auto;
    padding-bottom: 5rem;
}

.education .education-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;

}

.education .education-row .education-column {
    flex: 1 1 40rem;
}

.education .education-row .education-column .title-edu {
    font-size: 2.5rem;
    margin: 0 0 1.5rem 2rem;
}

.education-column .eduction-box {
    border-left: .2rem solid var(--main-color);
}

.eduction-box .eduction-content {
    position: relative;
    padding-left: 2rem;
}

.eduction-box .eduction-content::before {
    content: '';
    position: absolute;
    top: 0;
    width: 2rem;
    height: 2rem;
    background-color: var(--main-color);
    border-radius: 50%;
    left: -1.1rem;
}

.eduction-content .edu-content {
    position: relative;
    padding: 1.5em;
    border: .2rem solid var(--main-color);
    border-radius: .5rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.eduction-content .edu-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--main-color);
    z-index: -1;
    transition: 0.5s;
}

.eduction-content .edu-content:hover::before {
    width: 100%;
}

.eduction-content .edu-content:hover {
    color: var(--bg-color);
}

.edu-content .edu-year {
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
}

.edu-content .edu-year i {
    padding-right: 0.5rem;

}

.edu-content h3 {
    font-size: 2rem;
}

.edu-content p {
    font-size: 1.5rem;
    padding-top: .4rem;
}

.heading-edu {
    font-size: 4.5rem;
    padding-bottom: 2rem;
    margin: 0rem 3rem 0rem 0rem;
}

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

.heading-skills {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

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

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

.skills {
    min-height: auto;
    padding-bottom: 7rem;
}

.skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.skills-column {
    flex: 1 1 40rem;
}

.skills-column .title {
    font-size: 2.5rem;
    margin: 0 0 1.5rem;
}

.skills-box .skills-content {
    position: relative;
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    padding: .5rem 1.5rem;
    z-index: 1;
    overflow: hidden;
}

.skills-box .skills-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #232323;
    z-index: -1;
    transition: .5s;
}

.skills-box .skills-content:hover::before {
    width: 100%;
}

.skills-content .progress {
    padding: 1rem 0;
}

.progress h3 {
    font-size: 1.7rem;
    display: flex;
    justify-content: space-between;
}

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

.progress .bar {
    height: 2.5rem;
    border-radius: .6rem;
    border: .2rem solid var(--main-color);
    padding: .5rem;
    margin: 1rem 0;
}

.bar span {
    display: block;
    height: 100%;
    border-radius: .3rem;
    background: var(--main-color);
}

.skills-column:nth-child(1) .skills-content .progress:nth-child(1) .bar span {
    width: 90%;
}

.skills-column:nth-child(1) .skills-content .progress:nth-child(2) .bar span {
    width: 70%;
}

.skills-column:nth-child(1) .skills-content .progress:nth-child(3) .bar span {
    width: 50%;
}

.skills-column:nth-child(1) .skills-content .progress:nth-child(4) .bar span {
    width: 80%;
}

.skills-column:nth-child(2) .skills-content .progress:nth-child(1) .bar span {
    width: 60%;
}

.skills-column:nth-child(2) .skills-content .progress:nth-child(2) .bar span {
    width: 80%;
}

.skills-column:nth-child(2) .skills-content .progress:nth-child(3) .bar span {
    width: 70%;
}

.skills-column:nth-child(2) .skills-content .progress:nth-child(4) .bar span {
    width: 90%;
}

.heading-project {
    font-size: 4.5rem;
    margin-bottom: 10px;
    text-align: center;
    margin-bottom: 3rem;
}

.project {
    background-color: var(--bg-color);
}

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

.project-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-container .project-box {
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem gray;
    overflow: hidden;
    display: flex;
    aspect-ratio: 16 / 9;
}

.project-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease-in-out;
}

.project-box img:hover {
    transform: scale(1.1);
}

.project-box .project-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, .1), var(--main-color));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0rem 4rem;
    transform: translateY(100%);
    transition: 0.5s ease-in-out;
}

.project-box:hover .project-layer {
    transform: translateY(0%);
}

.project-layer h4 {
    font-size: 3rem;
}

.project-layer p {
    font-size: 1.4rem;
    margin: 0.3rem 0 1rem;
}

.project-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--bg-color);
    border-radius: 50%;
}

.project-layer a i {
    font-size: 3rem;
    color: var(--main-color);
}

.heading-contact {
    font-size: 4.5rem;
    padding-bottom: 2rem;
    margin: 0rem 3rem 0rem 0rem;
    text-align: center;
}

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

.contact {
    min-height: auto;
    padding-bottom: 6rem;
}

.contact form {
    max-width: 70rem;
    margin: 0 auto;
    text-align: center;
}

/* This isfor animation of the input fields */
.contact form .Focus {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    border-radius: .6rem;
    background-color: #232323;
    z-index: -1;
    transition: .5s;
}

.contact form .input-box .input-field:hover .Focus,
.contact form .textarea-field:hover .Focus {
    width: 100%;
}

.contact form .input-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact form .input-field {
    position: relative;
    width: 49%;
    margin: .8rem 0;
}

.contact .btn {
    margin-top: .5rem;
}

.contact form .input-box .input-field input,
.contact form .textarea-field textarea {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
    background: transparent;
    border-radius: .6rem;
    border: .2rem solid var(--main-color);
}

.contact form .input-box .input-field input::placeholder,
.contact form .textarea-field textarea::placeholder {
    color: var(--main-color);
}

.contact form .textarea-field {
    position: relative;
    margin: .8rem 0 2.7rem;
    display: flex;
}

.contact form .textarea-field textarea {
    resize: none;
}

.contact form .btn-box .btn {
    cursor: pointer;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 10%;
    background-color: #232323;
}

.footer .footer-text p {
    font-size: 1.8rem;
}

.footer .footer-icontop a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background-color: var(--bg-color);
    border: .2rem solid var(--bg-color);
    border-radius: .6rem;
    z-index: 1;
    overflow: hidden;
}

.footer .footer-icontop a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--main-color);
    z-index: -11;
    transition: .5s;
}

.footer .footer-icontop a:hover::before {
    width: 100%;
}

.footer .footer-icontop a i:hover {
    background-color: var(--bg-color);
    z-index: 2;
}

.footer .footer-icontop a i {
    font-size: 2.5rem;
    color: var(--main-color);
}

/* Responsiveness of the website using claude ai */
/* Add these media queries at the end of your style.css file */

/* Tablets (768px and up) */
@media (max-width: 1024px) {
    html {
        font-size: 55%;
    }

    .header {
        padding: 2rem 4%;
    }

    section {
        padding: 10rem 4% 2rem;
    }

    .home {
        padding: 0 4%;
    }

    .footer {
        padding: 2rem 4%;
    }

    .project-container {
        grid-template-columns: 1fr;
        padding: 0 4%;
    }

    .home {
        flex-direction: column-reverse;
        text-align: center;
    }

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

    .home-img {
        margin: 5rem auto 0;
        width: 400px;
        height: 400px;
    }

    .btn-box {
        margin: 0 auto;
    }

    .home-li {
        justify-content: center;
        width: 100%;
    }
}

/* Mobile devices (767px and down) */
@media (max-width: 767px) {
    html {
        font-size: 50%;
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 4%;
        background: var(--bg-color);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        transition: .25s ease;
        transition-delay: .25s;
        z-index: 1;
    }

    .navbar.active {
        left: 0;
        transition-delay: 0s;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        transform: translateX(-20rem);
        transition: .25s ease;
        transition-delay: 0s;
    }

    .navbar.active a {
        transform: translateX(0);
        transition-delay: .25s;
    }

    .home-img {
        width: 300px;
        height: 300px;
    }

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

    .education {
        padding: 10rem 4% 5rem 7%;
    }

    .contact form .input-box .input-field {
        width: 100%;
        margin: .5rem 0;
    }

    .footer {
        flex-direction: column-reverse;
        text-align: center;
    }

    .footer p {
        margin-top: 2rem;
    }

    .heading-project,
    .heading-skills,
    .heading-edu,
    .heading-contact,
    .heading-abt {
        font-size: 3.5rem;
    }

    .about-img-div {
        width: 250px;
        height: 250px;
    }

    .education .education-row {
        gap: 2rem;
    }
}

/* Small mobile devices */
@media (max-width: 365px) {
    html {
        font-size: 45%;
    }

    .home-img {
        width: 250px;
        height: 250px;
    }

    .footer p {
        font-size: 1.5rem;
    }
}
/* Add these to the end of your CSS file */

/* Improved mobile navigation */
@media (max-width: 767px) {
    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 4%;
        background: var(--bg-color);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        z-index: 99;
        transition: 0.3s ease;
    }
    
    .navbar.active {
        left: 0;
    }
    
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 2rem 0;
        text-align: center;
    }
    
    /* Make menu icon more visible */
    #menu-icon {
        display: block;
        color: var(--main-color);
        font-size: 3.6rem;
        z-index: 100;
    }
    
    /* Better touch targets for mobile */
    .btn-box .btn {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    /* Improved form layout */
    .contact form .input-field {
        width: 100%;
    }
    
    /* Projects better spacing */
    .project-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Fix for medium sized devices */
@media (max-width: 991px) and (min-width: 768px) {
    .home {
        padding-top: 10rem;
    }
    
    .education-row, .skills-row {
        gap: 3rem;
    }
}

/* Improved touch experience for all devices */
.btn, .home-li a, .navbar a, .footer .footer-icontop a {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Better image handling on various screen sizes */
.home-img img, .about-img-content img, .project-box img {
    max-width: 100%;
    height: auto;
}

/* Adding a smooth transition to menu icon */
#menu-icon {
    transition: transform 0.3s ease;
}

#menu-icon.bx-x {
    transform: rotate(90deg);
}