* {
    font-family: "Quantico", sans-serif;
    font-weight: 400;
    font-style: normal;
    caret-color: yellow;
    scroll-behavior: smooth;
}

html {
    font-size: 60%;
    overflow-x: hidden;
}

body {
    background: rgb(0, 0, 0);
    color: rgb(233, 237, 21);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: black;
    overflow: top;
    z-index: 1000;
    height: 75px;
}

#menu-icon-list {
    height: fit-content;
    position: absolute;
    top: 45px;
    /* left: 0; */
    right: 30px;
    width: 100%;
    background-color: black;
    z-index: 1000;
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4rem 4rem;
    background: black;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.logo {
    font-size: 3rem;
    color: rgb(233, 237, 21);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
    border: 3px solid rgb(233, 237, 21);
}

.logo span {
    text-shadow: 0 0 25px rgb(233, 237, 21);
}

.navbar a {
    font-size: 1.8rem;
    color: rgb(233, 237, 21);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active {
    color: rgb(233, 237, 21);
    border-bottom: 3px solid rgb(233, 237, 21);
}

#menu-icon {
    font-size: 3.6rem;
    color: rgb(233, 237, 21);
    display: none;
    cursor: pointer;
}

.section {
    min-height: 100vh;
    padding: 10rem 12% 10rem;
}

.home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
}

.home-content {
    height: 80vh;
    width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    justify-content: center;
    margin-top: 3rem;
}

span {
    color: rgb(233, 237, 21);
}

.logo span {
    color: rgb(233, 237, 21);
}

.home-content h3 {
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 3.5rem;
}

.home-content h1 {
    font-size: 6rem;
    font-weight: 600;
    margin-top: 1.5rem;
    line-height: 1;
}

#img {
    border: 3px solid black;
    float: right;
    width: 100px;
    height: 100px;
    position: absolute;
    right: 50%;
    transform: translatex(40%);
    margin-top: 0px;
    ;
}

.home-img {
    border-radius: 7px;
    box-shadow: 0 0 25px rgb(233, 237, 21);
}

.home-img img {
    position: relative;
    top: 3rem;
    width: 32vw;
    border-radius: 7px;
    box-shadow: 0 0 25px rgb(233, 237, 21);
    cursor: pointer;
    transition: 0.4s ease-in-out;
}

.home-img img:hover {
    box-shadow: 0 0 25px rgb(233, 237, 21),
        0 0 50px rgb(233, 237, 21);

}

.home-content p {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
}

.details {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    font-size: 1.8rem;
    line-height: 150%;
}

.social-icons {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 4.5rem;
    width: 4.5rem;
    background: transparent;
    border: 3px double rgb(233, 237, 21);
    font-size: 2.5rem;
    border-radius: 7px;
    color: rgb(233, 237, 21);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease-in-out;
    /* position: relative;
    top: 60px; 
    right: 0px;  */
}

.social-icons a:hover {
    color: rgb(233, 237, 21);
    transform: scale(1.3)translateY(-5px);
    box-shadow: 0 0 25px rgb(233, 237, 21);
    background-color: rgb(233, 237, 21);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: rgb(233, 237, 21);
    box-shadow: 0 0 25px rgb(233, 237, 21);
    border-radius: 7px;
    font-size: 1.6rem;
    color: black;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    /* top: 60px;
    left: -40px; */
    left: 5%;
    justify-content: start;
    margin-top: 10rem;
}

.btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgb(233, 237, 21);
}

.btn-group a:nth-of-type(2) {
    background-color: black;
    color: rgb(233, 237, 21);
    border: 2px solid rgb(233, 237, 21);
    box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover {
    box-shadow: 0 0 25px rgb(233, 237, 21);
    background-color: rgb(233, 237, 21);
    color: black;
}

#hire {
    color: black;
}

.i {
    color: rgb(233, 237, 21);
}

h3 {
    display: inline;
    font-size: small;
}

#id {
    color: white;
    display: inline;
    left: 25px;
}

#sur {
    color: white;
}

.text-animation {
    display: inline;
}

#name {
    display: inline;
}

.logo {
    position: absolute;
    top: 38px;
    left: 10px;
    font-size: 19px;
}

#img {
    height: 300px;
    width: 300px;
    top: 200px;
    right: 300px;
}

#info {
    height: 100px;
    width: 50%;
}

.text-animation {
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.text-animation span {
    position: relative;
}

.text-animation span::before {
    content: "Web Developer";
    color: rgb(233, 237, 21);
    animation: words 20s infinite;
}

.text-animation span::after {
    content: "";
    background-color: rgb(0, 0, 0);
    position: absolute;
    width: calc(100%+10px);
    height: 100%;
    border-left: 3px solid rgb(0, 0, 0);
    right: -10px;
    animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

#menu-icon-list {
    height: fit-content;
    width: fit-content;
    font-size: 2.5rem;
    text-decoration: underline;
    border: 2px solid yellow;
    border-radius: 5px;
    padding: 5px 5px 5px 5px;
    text-align: center;
    overflow: auto;
    width: min-content;
    box-shadow: yellow 0 0 25px;
}

#menu-icon-list a {
    color: white;
    padding: 7px 7px 7px 7px;
    line-height: 3px;

}

#menu-icon-list:hover {
    transform: scale(1.1);
    transition: 0.3s ease-in-out;
    text-decoration: underline;


}

@keyframes cursor {
    to {
        border-left: 2px solid rgb(0, 0, 0);
    }
}

@keyframes words {

    0%,
    20% {
        content: "Frontend Designer";
    }

    21%,
    40% {
        content: "Web Designer";
    }

    41%,
    60% {
        content: "UI Designer";
    }

    61%,
    80% {
        content: "UX Developer";
    }

    81%,
    100% {
        content: "React Developer";
    }
}

@keyframes typing {

    10%,
    15%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95% {
        width: 0;
    }

    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    65%,
    80%,
    90% {
        width: calc(100% + 8px);
    }
}

#navbar {
    position: relative;
    text-align: right;
    padding-top: 3rem;
}

a.logo {
    border: 2px solid white;
    border-right: 2px solid yellow;
    padding: 2px 2px 2px;
}

#sur {
    border: 2px solid yellow;
    padding: 2px 2px 2px 2px;
    padding-right: 6px;
    border-left: 0;
    border-right: yellow;
}

#id {
    position: absolute;
    top: 250px;
    left: 100px;
}

.name {
    position: absolute;
    top: 250px;
    left: 275px;
}

.heading {
    font-size: 8rem;
    text-align: center;
    margin: 5rem 0;
}

/* EDUCATION */

/* Education Section Styles */
.education {
    background-color: black;
    padding: 8rem 0;
    overflow: hidden;
}

.education .heading {
    font-size: 8rem;
    text-align: center;
    margin: 5rem 0;
    color: rgb(233, 237, 21);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.education .heading:hover {
    color: white;
}

/* Education Timeline */
.education-timeline {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 2rem;
}

.education-timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: rgb(233, 237, 21);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Education Items */
.education-item {
    width: 100%;
    margin-bottom: 6rem;
    position: relative;
}

.education-item:last-child {
    margin-bottom: 0;
}

.education-year {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgb(233, 237, 21);
    color: black;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 2rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 0 15px rgba(233, 237, 21, 0.5);
    margin-bottom : 2rem;
}

.education-card {
    position: relative;
    width: 45%;
    margin-top: 4rem;
    background-color: black;
    border: 3px solid rgb(233, 237, 21);
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 0 20px rgba(233, 237, 21, 0.3);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(233, 237, 21, 0.6);
}

/* Alternate left-right layout */
.education-item:nth-child(odd) .education-card {
    left: 5%;
}

.education-item:nth-child(even) .education-card {
    left: 50%;
}

/* Education Card Content */
.education-card h3 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 1.5rem;
    display: inline-block;
    position: relative;
}



.education-card:hover h3::after {
    width: 100%;
}

.education-details {
    color: white;
}

.education-details p {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.education-links {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.education-links a {
    display: inline-flex;
    align-items: center;
    color: rgb(233, 237, 21);
    font-size: 1.6rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgb(233, 237, 21);
    border-radius: 5px;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.education-links a:hover {
    background-color: rgb(233, 237, 21);
    color: black;
}

/* Responsive Design */
@media (max-width: 991px) {
    .education-timeline::before {
        left: 30px;
    }

    .education-year {
        left: 30px;
        transform: translateX(-50%);
    }

    .education-card {
        width: calc(100% - 90px);
        margin-left: 60px;
    }

    .education-item:nth-child(odd) .education-card,
    .education-item:nth-child(even) .education-card {
        left: 15%;
    }
}

@media (max-width: 768px) {
    .education .heading {
        font-size: 5rem;
        margin: 3rem 0;
    }

    .education-timeline {
        padding: 0 1rem;
    }

    .education-card {
        padding: 2rem;
    }

    .education-card h3 {
        font-size: 2.4rem;
    }

    .education-details p {
        font-size: 1.5rem;
    }

    .education-links {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .education-card {
        width: calc(100% - 60px);
        margin-left: 45px;
        padding: 1.5rem;
    }

    .education-year {
        font-size: 1.6rem;
        padding: 0.8rem 1.5rem;
    }

    .education-timeline::before {
        left: 20px;
    }

    .education-year {
        left: 20px;
    }
}

.timeline-content a {
    color: yellow;
    margin: 5px;
}



.timeline-items::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: black;
    left: calc(50% -1px);
}

.timeline-date {
    position: inherit;
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin: 6px 0 15px;
    position: absolute;
}

.timeline-date {
    display: flex;
    padding-right: 50px;
    ;
}



#yhsc {
    float: left;
}

.timeline-content #y2022 {
    float: left;
    left: 5px;
    margin-left: 15px;
}

.timeline-content {
    background-color: black;
    border: 3px solid yellow;
    padding: 30px 50px;
    border-radius: 1.5rem;
    box-shadow: 0 0 10px yellow;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    text-transform: uppercase;
    display: block;
    max-width: 50%;
    float: left;
    margin: 20px;
    clear: both;
    position: relative;
    margin: 5rem;
    width: 38.5%;
}

.timeline-content:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px yellow;
}

.timeline-content h3 {
    font-size: 20px;
    color: white;
    margin: 0 0 10px;
    font-weight: 500;
}

.timeline-content p {
    color: white;
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
}


.div {
    overflow: scroll;
    max-height: 100px;
}

.card {
    display: flex;
    justify-content: end;
    width: 100%;
}

#yhsc {
    text-align: right;
}

#y2022 {
    position: absolute;
    justify-content: right;
}

.section-container {
    display: flex;
    flex-direction: column;

}

.section {
    width: 100vw;
    display: flex;
    justify-content: end;
}

.education-card {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.card {
    display: flex;
}

#hsc {
    margin-left: 4.5%;
    text-align: right;
}

/* SERVICES SECTION */

.services {
    background-color: black;
    padding: 5rem 0;
}

.services h2 {
    color: rgb(233, 237, 21);
    text-align: center;
    margin-bottom: 3rem;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    height: 600px;
    gap: 2rem;
    padding: 0 2rem;
}

.service-box {

    background-color: yellow;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
}

.service-info {
    text-align: left;
}

.service-icon {
    font-size: 3rem;
    color: black;
    margin-bottom: 1rem;
    margin-right: 3rem;
}

.service-info h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: black;
    margin-bottom: 1rem;
    font-size: 3rem;
    position: relative;
}

.service-info h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: black;
    transition: width 0.7s ease-in-out;
}

.service-info h4:hover:after {
    width: 50%;
}

.service-info p {
    color: black;
    font-size: 1.8rem;
}

/* PROJECTS */

/* Projects Section Styles */
.projects {
    background-color: black;
    padding: 5rem 0;
}

.projects .heading {
    font-size: 8rem;
    text-align: center;
    margin: 5rem 0;
    color: rgb(233, 237, 21);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.projects .heading:hover {
    color: white;
}

/* Swiper container */
.swiper {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 60px;
    /* Space for pagination */
}

.swiper-slide {
    padding: 10px;
}

/* Project cards */
.project-card {
    background-color: #111;
    border: 3px solid rgb(233, 237, 21);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(233, 237, 21, 0.3);
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    height: 500px;
    width: 1000px;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(233, 237, 21, 0.6);
}

/* Project header */
.project-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(233, 237, 21, 0.3);
}

.project-header h3 {
    font-size: 3rem;
    color: rgb(233, 237, 21);
    margin: 0;
    position: relative;
    display: inline-block;
}

.project-header h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    height: 2px;
    width: 0;
    background-color: rgb(233, 237, 21);
    transition: width 0.4s ease-in-out;
}

.project-card:hover .project-header h3::after {
    width: 100%;
}

/* Project links */
.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-link {
    color: white;
    font-size: 1.6rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgb(233, 237, 21);
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link:hover {
    background-color: rgb(233, 237, 21);
    color: black;
}

/* Swiper slides */
.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 400px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Project content */
.project-content {
    padding: 2rem;
    flex-grow: 1;
}

.project-content p {
    font-size: 1.8rem;
    color: white;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-content ul {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.project-content li {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 0.8rem;
    position: relative;
}

.project-content li::before {
    content: '•';
    color: rgb(233, 237, 21);
    font-size: 2rem;
    position: absolute;
    left: -1.5rem;
}

/* Project technologies */
.project-tech {
    padding: 1.5rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid rgba(233, 237, 21, 0.3);
}

.tech-tag {
    padding: 0.5rem 1rem;
    background-color: rgba(233, 237, 21, 0.2);
    border: 1px solid rgb(233, 237, 21);
    border-radius: 5px;
    color: rgb(233, 237, 21);
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background-color: rgb(233, 237, 21);
    color: black;
}

/* Swiper navigation buttons */
.swiper-button-next,
.swiper-button-prev {
    color: rgb(233, 237, 21);
    transition: transform 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.2);
}

/* Swiper pagination */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: white;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background-color: rgb(233, 237, 21);
}

/* Responsive fixes */
@media (max-width: 768px) {
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .project-links {
        width: 100%;
        justify-content: space-between;
    }

    .project-image {
        height: 200px;
    }
}

.contact {
    background-color: black;
}

.contact h2 {
    margin-bottom: 3rem;
    color: white;
    cursor: pointer;
}

.contact form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 5rem auto;
    text-align: center;
}

.contact form .input-box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 2.5rem;
    font-size: 1.8rem;
    color: white;
    background: black;
    border-radius: 2rem;
    border: 2px solid yellow;
    margin: 1.5rem 0;
    resize: none;
}

.contact form .btn {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .input-group-2 {
        width: 80%;
    }
}

.projects-box {
    background-color: black;
    border: 5px solid yellow;
    border-radius: 1rem;
    cursor: pointer;
    margin: 3rem 3rem;
    transition: 0.4s ease-in-out;
}

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: black;
}

.footer .social {
    text-align: center;
    padding-bottom: 25px;
    color: yellow;
}

.footer .social a {
    font-size: 25px;
    color: yellow;
    border: 2px solid yellow;
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 10%;
    margin: 0 10px;
    transition: 0.3s ease-in-out;
}

.footer .social a:hover {
    transform: scale(1.2)translateY(-10px);
    background-color: yellow;
    color: black;
    box-shadow: 0 0 25px yellow;
}

.soc img {
    height: 30px;
    width: 30px;
    background-color: yellow;
    margin-top: 5px;
    border-radius: 20%;
}

.social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}


.footer ul {
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
}

.footer ul li a {
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}

.footer ul li a:hover {
    display: inline-block;
    padding: 0 15px;
}

.footer .copyright {
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: white;
}

h2.heading {
    color: yellow;
}

@media(max-width:1285px) {
    html {
        font-size: 55%;
    }

    .services-container {
        padding-bottom: 7rem;
        grid-template-columns: repeat(2, 1fr);
        margin: 0 5rem;
    }
}

@media(max-width:991px) {
    header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .timeline-items::before {
        left: 7px;
    }

    .timeline-item:nth-child(odd) {
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 37px;
    }

    .timeline-dot {
        left: 0;
    }

    .services {
        padding-bottom: 7rem;
    }

    .testimonials .wrapper {
        grid-template-columns: repeat(1, fr);
    }

    .contact form {
        flex-direction: column;
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media(max-width:895px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        padding: 1rem 3%;
        background: black;
        backdrop-filter: blur(20px);
        border-bottom-left-radius: 2rem;
        border-left: 2px solid yellow;
        border-bottom: 2px solid yellow;
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navabar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: white;
    }

    .home {
        flex-direction: column-reverse;
        margin: 5rem 4rem;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 8rem;
    }

    .home-content p {
        max-width: 600px;
        margin: 0 auto;
    }

    .home-img img {
        width: 56vw;
    }

    .services h2 {
        margin-bottom: 3rem;
    }

    .services-container {
        grid-template-columns: repeat(1, 1fr);
    }
}



/* Update the Swiper container */
.swiper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 60px;
}

/* Update the Swiper slides */
.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.project-card {
    display: flex;
    flex-direction: column;
    height: auto;
    margin: 1rem;
}

@media (max-width: 768px) {

    .swiper-slide {
        height: auto;
        padding: 1rem;
    }

    .project-card {
        margin: 0;
        width: 100%;
    }

    .project-content {
        padding: 1rem;
    }
}

@media (max-width: 768px) {

    .projects,
    .services {
        margin-top: 100%;
        padding: 2rem;
    }

    .project-card {
        justify-content: center;
        width: 70%;
        margin: 0;
    }
}

@media (max-width: 768px) {

    .bx-menu {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        font-size: 2.5rem;
        color: yellow;
        margin: 1rem;
        cursor: pointer;
    }

    #menu-icon-list {
        display: block;
        right: 20px;
    }

    .home-img {
        margin-top: 0%;
    }

    .desc {
        margin-top: 10%;
        width: 400px;
    }

    .text-animation {
        font-size: 24px;
        font-weight: 600;
        min-width: 280px;
    }

}


/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: black;
    z-index: 1000;
    height: 75px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

/* Menu Icon */
#menu-icon {
    font-size: 3rem;
    color: rgb(233, 237, 21);
    cursor: pointer;
}

/* Mobile Menu List */
#menu-icon-list {
    display: none;
    /* Hidden by default */
    flex-direction: column;
    position: absolute;
    top: 75px;
    /* Below the navbar */
    left: 0;
    right: 0;
    background-color: black;
    z-index: 999;
    transition: transform 0.3s ease;
    transform: translateX(-100%);
    /* Start off-screen */
}

/* Show menu when active */
.navbar.active #menu-icon-list {
    display: flex;
    /* Show when navbar is active */
    transform: translateX(0);
    /* Slide in */
}

/* Navbar Links */
#menu-icon-list a {
    padding: 1rem;
    text-align: center;
    color: rgb(233, 237, 21);
    border-bottom: 1px solid rgb(233, 237, 21);
    transition: background-color 0.3s ease;
}

#menu-icon-list a:hover {
    background-color: rgba(233, 237, 21, 0.2);
    /* Highlight on hover */
}

/* Responsive Styles */
@media (max-width: 768px) {
    #navbar {
        display: none;
    }
}

.card {
    background-color: black;
}

.navbar {
    height: fit-content;
    object-fit: cover;
}


#timeline {
    padding: 50px 20px;
    background-color: black;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: auto;
    padding: 0 20px;
}

.timeline-item {
    margin: 20px 0;
    position: relative;
    padding-left: 40px;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 10px;
    background: #007BFF;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.timeline-content {
    background: black;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h3 {
    margin: 0;
    font-size: 1.2em;
    color: #007BFF;
}

.timeline-content h4 {
    margin: 5px 0;
    font-size: 1em;
    color: #555;
}

.timeline-content p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .timeline-container {
        padding: 0 10px;
    }

    .timeline-marker {
        left: -10px;
    }

    .timeline-content {
        padding: 10px;
    }
}


.input-group {
    display: flex;
    flex-direction: column;
    width: fit-content;
}

/* Enhanced Media Queries */
@media (max-width: 1285px) {
    html {
        font-size: 55%;
    }

    .services-container {
        padding-bottom: 7rem;
        grid-template-columns: repeat(2, 1fr);
        margin: 0 5rem;
    }

    .home-content {
        width: 80vw;
    }
}

@media (max-width: 991px) {
    header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .timeline-items::before {
        left: 7px;
    }

    .timeline-item:nth-child(odd) {
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 37px;
    }

    .timeline-dot {
        left: 0;
    }

    .services {
        padding-bottom: 7rem;
    }

    .services-container {
        gap: 3rem;
    }

    .contact form {
        flex-direction: column;
    }

    .footer {
        padding: 2rem 3%;
    }

    .home-img img {
        width: 40vw;
    }
}

@media (max-width: 895px) {
    #menu-icon {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .navbar {
        position: fixed;
        top: 0;
        padding: 1rem 3%;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home {
        flex-direction: column;
        margin: 10rem 2rem 5rem;
    }

    .home-content {
        width: 90vw;
        align-items: center;
        text-align: center;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-img img {
        width: 60vw;
        margin-top: 3rem;
    }

    .services-container {
        grid-template-columns: 1fr;
        margin: 0 2rem;
    }

    .project-card {
        width: 90%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 50%;
    }

    .home-content {
        height: auto;
        padding: 10rem 0 5rem;
    }

    .home-img img {
        width: 70vw;
    }

    .text-animation {
        font-size: 2.4rem;
    }

    .details {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .projects,
    .services,
    .education,
    .contact {
        padding: 8rem 2rem 4rem;
    }

    .heading {
        font-size: 5rem;
        margin: 2rem 0;
    }

    .timeline-content {
        width: 85%;
        margin: 2rem auto;
        float: none;
    }

    .card {
        justify-content: center;
    }

    .swiper-slide {
        padding: 0;
    }

    .project-card {
        width: 100%;
        margin: 0;
    }

    .input-group {
        width: 100%;
    }

    .input-box {
        flex-direction: column;
    }

    .footer .social {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {

    *{
        max-width: 100%;
    }

    .text-animation{
        display: none;
    }

  /* .desc {
    max-width: max-content;
    display: block;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
    font-size: 1.5rem;
    line-height: 1.5;
    margin-top: 2rem;
    margin-bottom: 2rem;
    } */

    .navbar-brand {
        font-size: 1.8rem;
    }

    .home-content h1 {
        font-size: 4rem;
    }

    .text-animation {
        font-size: 2rem;
        min-width: 200px;
    }

    .home-img img {
        width: 80vw;
    }

    .education-card{
        padding-top: 1.5rem; ;
        width: 100%;
    }

    .education-year{
        display: block;
        left: 20px;
        padding: 0.8rem 1.5rem;
        position: absolute;
        top: 0;
        z-index: 2;
    }


    .service-box {
       display: flex;
    }

    .service-info h4 {
        font-size: 2.2rem;
    }

    .project-header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .project-links {
        justify-content: center;
    }

    .contact form .input-box input,
    .contact form textarea {
        padding: 1.5rem;
    }
}

/* General styles for the home section */
.home-content {
    display: flex;
    flex-direction: column-reverse;
    margin: 5rem 4rem;
}

.home-content h3 {
    font-size: 2.6rem;
}

.home-content h1 {
    font-size: 8rem;
}

.home-content p {
    max-width: 600px;
    margin: 0 auto;
}

.home-img img {
    width: 56vw;
}

.services h2 {
    margin-bottom: 3rem;
}

/* .services-container {
    grid-template-columns: repeat(1, 1fr);
} */

/* Media query for mobile devices */
@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-item {
        margin: 0.5rem 0;
    }

    .home-content {
        flex-direction: column;
        align-items: center;
        margin: 2rem 1rem;
    }

    .home-img {
        order: 2;
        /* Ensure the image is placed after the content */
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    .home-img img {
        width: 50%;
        /* Adjust as needed */
    }

    .home-content h3,
    .home-content h1,
    .home-content p {
        order: 1;
        /* Ensure the text content is placed before the image */
        text-align: center;
    }

    .timeline-item {
        display: flex;
        flex-direction: row-reverse;
        /* Reverse the order of the items */
        align-items: center;
        justify-content: space-between;
    }

    .timeline-photo {
        order: 1;
        /* Ensure the photo is on the right side */
        margin-left: 20px;
        /* Adjust spacing as needed */
    }

    .timeline-description {
        order: 2;
        /* Ensure the description is on the left side */
        margin-right: 20px;
        /* Adjust spacing as needed */
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    #navbar {
        display: none;
    }

    .timeline-item {
        display: flex;
        flex-direction: row-reverse;
        /* Reverse the order of the items */
        align-items: center;
        justify-content: space-between;
    }

    .timeline-photo {
        order: 1;
        /* Ensure the photo is on the right side */
        margin-left: 20px;
        /* Adjust spacing as needed */
    }

    .timeline-description {
        order: 2;
        /* Ensure the description is on the left side */
        margin-right: 20px;
        /* Adjust spacing as needed */
    }
}

.card {
    background-color: black;
}

.navbar {
    height: fit-content;
    object-fit: cover;
}

#timeline {
    padding: 50px 20px;
    background-color: black;
}

@media (max-width: 768px) {

    /* *{
        max-width: 100%;
    } */

    .navbar {
        width: 100%;
        object-fit: cover;
    }

    .education .heading {
        text-align: left;
        left: 50px;
    }

    .education {
        margin-top: 100px;
        width: 80vh;
    }

    .education-card {
        width: 60%;
        margin: 0;
        padding: 1.5rem;
    }

    .service-info h4 {
        font-weight: 600;
    }

    #img {
        height: 150px;
        width: 150px;
        right: auto;
        margin-right: 50px;
        box-shadow: none;
    }

    .desc {
        display: flex;
        flex-direction: row-reverse;
        left: 0px;
        order: 1;
        /* Ensure the description is on the left side */
        margin-right: 20px;
        /* Adjust spacing as needed */
    }

    .details {
        padding-top: 100px;
        text-align: left;
        width: 100%;
    }

    .timeline-item {
        display: flex;
        flex-direction: row-reverse;
        /* Reverse the order of the items */
        align-items: center;
        justify-content: space-between;
    }

    .home-content {
        display: block;
    }

    .services {
        margin-top: 100px;
    }


}

.swiper {
    width: 100%;
    height: auto;
    min-height: 400px;
}

.swiper-slide {
    height: auto;
}

