@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;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

.favicon-position {
    position: absolute;
    /* Position it absolutely within the header */
    top: 25px;
    /* Adjust top position as needed */
    left: 20px;
    /* Adjust left position as needed */
    width: 30px;
    /* Set a fixed width */
    height: 30px;
    /* Set a fixed height */
    z-index: 1000;
    /* Ensure it stays above other elements */
}

/* Make the favicon responsive for smaller screens */
@media (max-width: 768px) {
    .favicon-position {
        width: 25px;
        /* Smaller size for mobile */
        height: 25px;
        /* Smaller size for mobile */
        top: 25px;
        /* Adjust top position for mobile */
        left: 20px;
        /* Adjust left position for mobile */
    }
}

:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color: #fff;
    --main-color: #0ef;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

section {
    padding: 10rem 9% 2rem;
    min-height: 100vh;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 9%;
    background-color: var(--bg-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.logo {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: default;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    display: none;
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img {
    width: 35vw;
    height: fit-content;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

span {
    color: var(--main-color);
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p {
    font-size: 1.6rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    color: var(--second-bg-color);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: .1rem;
}

.btn:hover {
    background: var(--second-bg-color);
    color: var(--main-color);
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--second-bg-color);

}

.about-img img {
    width: 35vw;
    height: fit-content;
}

.heading {
    font-size: 4.5rem;
    text-align: center;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2.5rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}





/* ---------------skills left section----------  */
.main {
    text-align: center;
    margin-bottom: 20px;
    font-size: 15px;
}

.info {
    font-size: 15px;
}

.skills {
    background: var(--second-bg-colorbg-color);
}

.skill-main {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
    column-gap: 50px;
}

.skill-bar {
    margin-bottom: 2.3rem;
}

.skill-main h3 {
    font-size: large;
    text-align: center;
    margin-bottom: 2rem;
}

.skill-left .skill-bar .info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.skill-left .skill-bar .bar {

    width: 100%;
    height: 1rem;
    background: var(--second-bg-color);
    border-radius: 1rem;
    position: relative;
    margin-top: 10px;
}

.skill-bar .bar span {
    width: 50%;
    height: 100%;
    position: absolute;
    left: 0;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 5px var(--main-color);

}

.skill-bar .bar .html {
    width: 85%;

    animation: html 6s ease-in-out;
}

.skill-bar .bar .css {
    width: 60%;
    animation: css 6s ease-in-out;
}

.skill-bar .bar .javascript {
    width: 62%;
    animation: javascript 6s ease-in-out;
}

.skill-bar .bar .bootstrap {
    width: 75%;
    animation: bootstrap 6s ease-in-out;
}

/* ---------------skills right section----------  */
.professional {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.box {
    position: relative;
    margin: 10px 0;
    flex: 1 1 15rem;
}

.box .text {
    text-align: center;
    color: #fff;
    font-size: 1rem;
}

.box .text big {
    font: 400;
    letter-spacing: 1px;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.box .text small {
    display: block;
    font-weight: 600;
}

.circle {
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;

}

.circle .points {
    width: 2px;
    height: 10px;
    background-color: var(--second-bg-color);

    position: absolute;
    border-radius: 3px;
    transform: rotate(calc(var(--i)*var(--rot))) translateY(-45px);

}

small {
    font-size: 1.3rem;
    color: #fff;
    display: block;
    margin-top: 10px;

}

.points.marked {
    animation: glow 0.04s linear forwards;
    animation-delay: calc(var(--i)*0.05s);
}

/* porjects section       */

.container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}

.card img {
    width: 100%;
    height: auto;
    max-width: 200px;
    -webkit-box-shadow: 10px 10px 22px -5px rgba(33, 224, 224, 0.49);
    -moz-box-shadow: 10px 10px 22px -5px rgba(33, 224, 224, 0.49);
    box-shadow: 10px 10px 22px -5px rgba(33, 224, 224, 0.49);
    border-radius: 20px;
}

.card {
    transition: 0.5s ease;
    cursor: pointer;
}

.container:hover> :not(:hover) {
    opacity: 0.3;
}

.card:hover {
    transform: scale(1.1);
}


/* contact section----------------- */


.contact-section {
    background-color: #262626;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    animation: neon-border 1.5s infinite alternate;
    max-width: 400px;
    width: 100%;

    margin: 10px auto;
}

@keyframes neon-border {
    0% {
        box-shadow: 0 0 2px rgba(0, 255, 255, 0.5);
    }

    100% {
        box-shadow: 0 0 5px rgba(0, 255, 255, 1), 0 0 60px rgba(0, 255, 255, 0.7);
    }
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.7);
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #00ffff;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form button {
    padding: 0.75rem;
    background-color: #00ffff;
    color: #1a1a1a;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #164a4a;
    color: #fff;
}

/* footer--------- */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer-text {
    font-size: 1.6rem;
}

.footer-iconTop {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    margin: 0 20px;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5sec ease;


}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--bg-color);

}

.footer-iconTop a i {
    font-size: 2rem;
    color: var(--second-bg-color);
    transition: .3s;

}



/* ----------------------projects----------- */

/* Base styles */
:root {
    --primary-color: #4f46e5;
    --primary-light: #eef2ff;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-slow: 500ms;
    --transition-medium: 300ms;
    --transition-fast: 150ms;
}


.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header styles */
header {
    text-align: center;
    padding: 3rem 1rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem 0 3rem;
}

/* Project card */
.project-card {
    background-color: var(--white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-image-container {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 1.5rem;
    display: flex;
    align-items: center;
}

.project-icon {
    background-color: var(--primary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.project-title {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
}

.project-content {
    padding: 1.5rem;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tag {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.project-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    color: var(--text-light);
    transition: color var(--transition-medium);
}

.social-link:hover {
    color: var(--primary-color);
}

.view-project {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: transform var(--transition-medium);
}

.project-card:hover .view-project {
    transform: translateX(4px);
}

.view-project svg {
    margin-left: 0.25rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-light);
}

/* Media queries */
@media (min-width: 768px) {
    header h1 {
        font-size: 3rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .project-image-container {
        height: 200px;
    }
}















@keyframes html {
    0% {
        width: 0%;
    }

    100% {
        width: 85%;
    }
}

@keyframes css {
    0% {
        width: 0%;
    }

    100% {
        width: 60%;
    }
}

@keyframes javascript {
    0% {
        width: 0%;
    }

    100% {
        width: 62%;
    }
}

@keyframes bootstrap {
    0% {
        width: 0%;
    }

    100% {
        width: 75%;
    }
}

/* keyframes for right-skills */

@keyframes glow {
    0% {
        background: var(--second-bg-color);
        box-shadow: none;
    }

    100% {
        background: var(--main-color);
        box-shadow: none;
    }
}







/* ai ---------------------------------------------------------------------------------- */

/* Add this at the end of your existing CSS */

/* Responsive Design for Mobile Devices */
@media (max-width: 768px) {

    /* Header and Navbar */
    #menu-icon {
        display: block;
        /* Show the menu icon */
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        display: none;
        /* Hide navbar by default */
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
    }

    .navbar.active {
        display: flex;
        /* Show navbar when active */
    }

    .navbar a {
        margin: 1rem 0;
    }

    /* Home Section */
    .home {
        flex-direction: column;
        text-align: center;
    }

    .home-img {
        width: 150vw;
        margin-top: 2rem;
    }

    .home-content h1 {
        font-size: 4rem;
    }

    .home-content h3 {
        font-size: 2.5rem;
    }

    /* About Section */
    .about {
        flex-direction: column;
        text-align: center;
    }

    .about-img img {
        width: 70vw;
    }

    /* Skills Section */
    .skill-main {
        grid-template-columns: 1fr;
        /* Stack skills in one column */
    }

    .skill-right {
        margin-top: 2rem;
    }








    /* New Projects Section CSS */


    /* Responsive Design for Mobile Devices */
    @media (max-width: 768px) {
        .container {
            grid-template-columns: repeat(2, 1fr);
            /* 2 columns for mobile */
        }

        .card img {
            max-width: 100%;
            /* Ensure images fit within the grid */
        }

        /* Center the 5th card */
        .card:nth-child(5) {
            grid-column: span 2;
            /* Make the 5th card span 2 columns */
            justify-self: center;
            /* Center the card */
        }
    }


    /* Footer */
    .footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-iconTop {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {

    /* Adjustments for very small screens */
    .home-content h1 {
        font-size: 3rem;
    }

    .home-content h3 {
        font-size: 2rem;
    }

    .heading {
        font-size: 3.5rem;
    }

    .about-content h2 {
        font-size: 3rem;
    }

    .about-content h3 {
        font-size: 2rem;
    }

    .skill-bar .bar span {
        width: 100%;
        /* Full width for skill bars */
    }
}