@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;
}

:root {
    --bg-color: #fdfdfd;
    --text-color: #333;
    --main-color: black;
    --white-color: #fdfdfd;
    --shadow-color: rgba(0, 0, 0, .2);
}

*::selection {
    background: var(--main-color);
    color: var(--bg-color);
}

/* Dark mode variables removed */

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background-image: url('images/header_bg.jpg');
    background-size: cover;
    background-position: center;
    background-color: #000;
    display: flex;
    align-items: center;
    z-index: 100;
    transition: .5s;
}

.header.sticky {
    background: var(--main-color);
    box-shadow: 0 .1rem 1rem var(--shadow-color);
}

.logo {
    font-size: 2.5rem;
    color: var(--white-color);
    font-weight: 600;
    margin-right: auto;
}

.navbar a {
    position: relative;
    font-size: 1.7rem;
    color: var(--white-color);
    font-weight: 500;
    margin-right: 2.5rem;
}

.header.sticky .navbar a {
    color: var(--white-color);
}

.header.sticky .navbar a.active {
    color: var(--white-color);
}

.navbar a.active::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: .2rem;
    background: var(--white-color);
}

.header.sticky .navbar a::before {
    background: var(--white-color);
    opacity: .7;
}

/* Dark mode icon styles removed */

#menu-icon {
    font-size: 3.6rem;
    color: var(--white-color);
    display: none;
}

section {
    min-height: 100vh;
    padding: 10rem 7% 2rem;
    position: relative;
    z-index: 1;
    background: var(--bg-color);
}

.home {
    display: flex;
    align-items: center;
}

.home .home-content {
    max-width: 44rem;
    position: relative;
    z-index: 2;
    /* Ensure text is above image */
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: .3;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    margin-bottom: .3rem;
    line-height: 1.2;
}

.home-content p {
    font-size: 1.6rem;
}

.home-content .social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid #fff;
    border-radius: 50%;
    box-shadow: 0 .2rem .5rem rgba(255, 255, 255, 0.3);
    font-size: 2rem;
    color: #fff;
    margin: 2.5rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.home-content .social-media a:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 1rem #fff;
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: #fff;
    border-radius: .6rem;
    box-shadow: 0 .2rem .5rem rgba(255, 255, 255, 0.3);
    font-size: 1.6rem;
    color: #000;
    letter-spacing: .1rem;
    font-weight: 600;
    border: .2rem solid #fff;
    transition: .5s ease;
}

.btn:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.home .profession-container {
    position: fixed;
    top: 80px;
    right: 0;
    width: 50vw;
    height: calc(100vh - 80px);
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.home .profession-container .profession-box {
    position: absolute;
    top: 0;
    right: 0;
    width: 768px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: professionRotate 13s ease-out infinite;
}

@keyframes professionRotate {

    0%,
    20% {
        transform: rotate(0deg);
    }

    25%,
    45% {
        transform: rotate(-120deg);
    }

    50%,
    70% {
        transform: rotate(-240deg);
    }

    75%,
    100% {
        transform: rotate(-360deg);
    }
}

.home .profession-box .profession {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: #000;
    transform: rotate(calc(360deg / 3 * var(--i)));
    transform-origin: 384px;
    background: #fff;
    padding: 13px 0;
    border-radius: 8px;
}

.home .profession-box .profession:nth-child(1) i {
    margin-right: 15px;
}

.home .profession-box .profession:nth-child(2),
.home .profession-box .profession:nth-child(4) {
    padding-bottom: 20px;
}

.home .profession i {
    font-size: 3.8rem;
}

.home .profession h3 {
    font-size: 3.2rem;
    line-height: 1;
    font-weight: 600;
}

.home .profession-box .circle {
    width: 560px;
    height: 560px;
    border: 3px solid #fff;
    border-radius: 50%;
    z-index: -1;
}

.home .profession-container .overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 50vh solid var(--main-color);
    border-right: 384px solid var(--main-color);
    border-bottom: 50vh solid var(--main-color);
    border-left: 384px solid transparent;
}

.home-img img {
    position: fixed;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    pointer-events: none;
    max-width: 400px;
    max-height: 85vh;
    z-index: 1;
}

span {
    color: var(--main-color);
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.about-img img {
    width: 40vw;
}

.heading {
    font-size: 4.5rem;
    text-align: center;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

.services {
    min-height: auto;
    padding-bottom: 10rem;
}

.services h2 {
    margin-bottom: 5rem;
}

.services .services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.services-container .services-box {
    flex: 1 1 30rem;
    background: var(--bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    box-shadow: 0 .1rem .5rem var(--shadow-color);
    text-align: center;
    border-top: .6rem solid var(--main-color);
    border-bottom: .6rem solid var(--main-color);
    transition: .5s ease;
}

.services-container .services-box:hover {
    box-shadow: 0 .1rem 2rem var(--shadow-color);
    transform: scale(1.02);
}

.services-box i {
    font-size: 7rem;
    color: var(--main-color);
}

.services-box h3 {
    font-size: 2.6rem;
    transition: .5s ease;
}

.services-box:hover h3 {
    color: var(--main-color);
}

.services-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}

.portfolio {
    min-height: auto;
    padding-bottom: 10rem;
}

.portfolio h2 {
    margin-bottom: 4rem;
}

.portfolio .portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.portfolio-container .portfolio-box {
    position: relative;
    display: flex;
    border-radius: 2rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, .1);
    overflow: hidden;
}

.portfolio-box img {
    width: 100%;
    transition: .5s ease;
}

.portfolio-box:hover img {
    transform: scale(1.1);
}

.portfolio-box .portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, .1), var(--main-color));
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    opacity: 0;
    transition: .5s ease;
}

.portfolio-box:hover .portfolio-layer {
    opacity: 1;
}

.portfolio-layer h4 {
    font-size: 3rem;
}

.portfolio-layer p {
    font-size: 1.6rem;
    margin: .3rem 0 1rem;
}

.portfolio-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--white-color);
    border-radius: 50%;
}

.portfolio-layer a i {
    font-size: 2rem;
    color: #333;
}

.testimonial-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 5rem 1rem;
}

.testimonial-container .testimonial-wrapper {
    position: relative;
    max-width: 90rem;
    width: 100%;
    padding: 5rem;
}

.testimonial-wrapper .testimonial-box {
    padding: 1rem;
    border-radius: 2rem;
    overflow: hidden;
}

.testimonial-content .testimonial-slide {
    display: flex;
    align-items: center;
    flex-direction: column;
    background: var(--bg-color);
    border-radius: 2rem;
    box-shadow: 0 .1rem .5rem var(--shadow-color);
    padding: 3rem 5rem;
    border-top: .8rem solid var(--main-color);
    border-bottom: .8rem solid var(--main-color);
}

.testimonial-slide img {
    width: 14rem;
    height: 14rem;
    object-fit: cover;
    border-radius: 50%;
    border: .5rem solid var(--bg-color);
    outline: .5rem solid var(--main-color);
}

.testimonial-slide h3 {
    font-size: 2.5rem;
    margin: 2rem 0;
}

.testimonial-slide p {
    font-size: 1.4rem;
    text-align: center;
}

.testimonial-box .swiper-button-next,
.testimonial-box .swiper-button-prev {
    color: var(--main-color);
}

.testimonial-box .swiper-button-next {
    right: 0;
}

.testimonial-box .swiper-button-prev {
    left: 0;
}

.testimonial-box .swiper-pagination-bullet {
    background: rgba(0, 0, 0, .8);
}

.testimonial-box .swiper-pagination-bullet-active {
    background: var(--main-color);
}

.contact {
    min-height: auto;
    padding-bottom: 7rem;
}

.contact h2 {
    margin-bottom: 3rem;
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
    box-shadow: 0 .1rem .5rem var(--shadow-color);
}

.contact form .input-box input {
    width: 49%;
}

.contact form textarea {
    resize: none;
}

.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 7%;
    background-image: url('https://placehold.co/1920x400/000000/333333?text=Footer+Background');
    background-size: cover;
    background-position: center;
    background-color: #000;
}

.footer-text p {
    font-size: 1.6rem;
    color: var(--white-color);
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--white-color);
    border-radius: .8rem;
    border: .2rem solid var(--main-color);
    outline: .2rem solid transparent;
    transition: .5s ease;
}

.footer-iconTop a:hover {
    outline-color: var(--white-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: #333;
}


/* BREAKPOINTS */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }

    .home .profession-container .profession-box {
        right: -10%;
    }

    .home .profession-container .overlay {
        right: -6%;
    }

    .home-img img {
        right: 0;
    }
}

@media (max-width: 1100px) {
    .home .profession-container .profession-box {
        right: -15%;
    }

    .home-img img {
        max-width: 420px;
    }
}

@media (max-width: 1024px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .home .profession-container .profession-box {
        right: -20%;
    }

    .home .profession-container .overlay {
        right: -12%;
    }

    .home-img img {
        max-width: 400px;
    }
}

@media (max-width: 991px) {

    .navbar a:nth-child(1) {
        color: var(--main-color);
    }

    .navbar a.active::before {
        background: var(--main-color);
        opacity: .7;
    }

    .home .home-content {
        max-width: 50rem;
    }

    .home .profession-container .profession-box {
        right: -35%;
    }

    .home .profession-container .overlay {
        right: -30%;
    }

    .home-img img {
        display: none;
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 896px) {
    .navbar a:nth-child(2) {
        color: var(--main-color);
    }

    .home .profession-container .profession-box {
        right: -50%;
    }

    .home .profession-container .overlay {
        right: -43%;
    }
}

@media (max-width: 879px) {
    .portfolio .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 780px) {
    .navbar a:nth-child(2) {
        color: var(--white-color);
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    #darkMode-icon {
        position: absolute;
        right: 7rem;
        font-size: 2.6rem;
        color: var(--text-color);
        margin-bottom: .1rem;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: var(--text-color);
    }

    .navbar a:nth-child(1),
    .navbar a:nth-child(2) {
        color: var(--text-color);
    }

    .navbar a.active {
        color: var(--main-color);
    }

    .navbar a::before {
        display: none;
    }

    .home {
        padding: 0 3% 23rem;
        justify-content: center;
        text-align: center;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-content .social-media a {
        margin: 2.5rem .75rem 3rem;
    }

    .home .profession-container {
        left: 0;
        width: 100%;
        height: 100%;
    }

    .home .profession-container .profession-box {
        position: fixed;
        top: 450px;
        left: 0;
        width: 100%;
    }

    .home .profession-box .profession {
        padding: 0 13px;
        left: auto;
        transform-origin: 0;
    }

    .home .profession-box .profession:nth-child(1) {
        transform: rotate(-90deg) translate(-120px, -210px);
    }

    .home .profession-box .profession:nth-child(1) i {
        margin-right: 0;
    }

    .home .profession-box .profession:nth-child(2) {
        transform: rotate(0deg) translate(0, -325px);
    }

    .home .profession-box .profession:nth-child(3) {
        transform: rotate(90deg) translate(-115px, -450px);
    }

    .home .profession-box .profession:nth-child(4) {
        transform: rotate(180deg) translate(-220px, -325px);
    }

    .home .profession-box .circle {
        position: fixed;
        width: 670px;
        height: 670px;
        z-index: -1;
    }

    .home .profession-container .overlay {
        position: fixed;
        top: 70rem;
        left: 50%;
        right: 0;
        transform: rotate(90deg) translate(-50%, 50%) scaleY(3);
        border-width: 23.9rem;
    }

    .about {
        flex-direction: column-reverse;
        text-align: center;
    }

    .about-content h2 {
        text-align: center;
    }

    .about-img img {
        width: 70vw;
        margin-top: -2rem;
    }

    .testimonial-container .testimonial-wrapper {
        padding: 5rem 0;
    }

    .testimonial-content .testimonial-slide {
        padding: 3rem 2rem;
    }

    .testimonial-box .swiper-button-next,
    .testimonial-box .swiper-button-prev {
        display: none;
    }
}

@media (max-width: 580px) {
    .portfolio .portfolio-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    #darkMode-icon {
        right: 6rem;
    }

    .home .profession-box .profession:nth-child(1) {
        transform: rotate(-90deg) translate(-110px, -220px);
    }

    .home .profession-box .profession:nth-child(2) {
        transform: rotate(0deg) translate(5px, -325px);
    }

    .home .profession-box .profession:nth-child(3) {
        transform: rotate(90deg) translate(-105px, -440px);
    }

    .home .profession-box .profession:nth-child(4) {
        transform: rotate(180deg) translate(-210px, -325px);
    }

    .home .profession-container .overlay {
        top: 80rem;
    }

    .contact form .input-box input {
        width: 100%;
    }

    .footer {
        flex-direction: column-reverse;
    }

    .footer p {
        text-align: center;
        margin-top: 2rem;
    }
}

@media (max-width: 365px) {
    .about-img img {
        width: 90vw;
    }
}

@media (max-width: 315px) {
    .home-content h1 {
        font-size: 4.5rem;
    }
}

img {
    border-radius: 20px;
}

/* Additional CSS for new portfolio sections */

/* Button Group */
.btn-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn-group .btn {
    flex: 1;
    text-align: center;
}

/* Section Description */
.section-desc {
    text-align: center;
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    opacity: 0.8;
}

/* Skills Section */
.skills {
    min-height: auto;
    padding-bottom: 10rem;
}

.skills h2 {
    margin-bottom: 5rem;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 3rem;
}

.skill-category {
    background: var(--bg-color);
    padding: 3rem 2.5rem;
    border-radius: 2rem;
    box-shadow: 0 .1rem .5rem var(--shadow-color);
    border-top: .6rem solid var(--main-color);
    transition: .5s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 2rem var(--shadow-color);
}

.category-icon {
    font-size: 5rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.skill-category h3 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    text-align: center;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-tag {
    display: inline-block;
    padding: .8rem 1.5rem;
    background: var(--main-color);
    color: var(--white-color);
    border-radius: .8rem;
    font-size: 1.4rem;
    font-weight: 500;
    transition: .3s ease;
}

.skill-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 .2rem .8rem var(--shadow-color);
}

/* Projects Section */
.projects {
    min-height: auto;
    padding-bottom: 10rem;
}

.projects h2 {
    margin-bottom: 2rem;
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 1rem 2.5rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
    font-size: 1.6rem;
    color: var(--main-color);
    font-weight: 600;
    cursor: pointer;
    transition: .3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--main-color);
    color: var(--white-color);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(35rem, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 2rem;
    box-shadow: 0 .1rem .5rem var(--shadow-color);
    border-top: .4rem solid var(--main-color);
    transition: .5s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 .5rem 2rem var(--shadow-color);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.project-header h3 {
    font-size: 2.2rem;
    color: var(--text-color);
    flex: 1;
}

.project-category {
    padding: .5rem 1rem;
    background: var(--main-color);
    color: var(--white-color);
    border-radius: .5rem;
    font-size: 1.2rem;
    font-weight: 600;
    white-space: nowrap;
}

.project-desc {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-bottom: 2rem;
}

.tech-tag {
    padding: .5rem 1.2rem;
    background: rgba(0, 0, 0, 0.05);
    border: .1rem solid var(--main-color);
    border-radius: .5rem;
    font-size: 1.3rem;
    color: var(--main-color);
    font-weight: 500;
}

.dark-mode .tech-tag {
    background: rgba(255, 255, 255, 0.05);
}

.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1rem 1.5rem;
    background: var(--main-color);
    color: var(--white-color);
    border-radius: .8rem;
    font-size: 1.4rem;
    font-weight: 600;
    transition: .3s ease;
}

.project-link:hover {
    background: transparent;
    color: var(--main-color);
    border: .2rem solid var(--main-color);
}

/* Education Section */
.education {
    min-height: auto;
    padding-bottom: 10rem;
}

.education h2 {
    margin-bottom: 5rem;
}

.education-container {
    max-width: 90rem;
    margin: 0 auto;
}

.education-box {
    display: flex;
    gap: 3rem;
    background: var(--bg-color);
    padding: 4rem 3rem;
    border-radius: 2rem;
    box-shadow: 0 .1rem .5rem var(--shadow-color);
    border-left: .6rem solid var(--main-color);
    transition: .5s ease;
}

.education-box:hover {
    transform: translateX(10px);
    box-shadow: 0 .5rem 2rem var(--shadow-color);
}

.education-icon {
    font-size: 6rem;
    color: var(--main-color);
}

.education-content h3 {
    font-size: 2.6rem;
    margin-bottom: .5rem;
}

.education-content h4 {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.education-location,
.education-date {
    font-size: 1.5rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: .5rem;
}

.education-location i,
.education-date i {
    margin-right: .5rem;
    color: var(--main-color);
}

.education-desc {
    font-size: 1.6rem;
    margin: 1.5rem 0;
    line-height: 1.6;
}

.education-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.highlight-tag {
    padding: .6rem 1.3rem;
    background: var(--main-color);
    color: var(--white-color);
    border-radius: .6rem;
    font-size: 1.3rem;
    font-weight: 500;
}

/* Experience Section */
.experience {
    min-height: auto;
    padding-bottom: 10rem;
    background: var(--bg-color);
}

.experience h2 {
    margin-bottom: 2rem;
}

.timeline {
    position: relative;
    max-width: 120rem;
    margin: 5rem auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: .4rem;
    background: var(--main-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -.2rem;
}

.timeline-item {
    padding: 2rem 4rem;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 2.5rem;
    height: 2.5rem;
    right: -1.3rem;
    background: var(--bg-color);
    border: .4rem solid var(--main-color);
    top: 2.5rem;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 2.8rem;
    width: 0;
    z-index: 1;
    right: 3rem;
    border: medium solid var(--main-color);
    border-width: 1rem 0 1rem 1rem;
    border-color: transparent transparent transparent var(--main-color);
}

.timeline-item.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 2.8rem;
    width: 0;
    z-index: 1;
    left: 3rem;
    border: medium solid var(--main-color);
    border-width: 1rem 1rem 1rem 0;
    border-color: transparent var(--main-color) transparent transparent;
}

.timeline-item.right::after {
    left: -1.3rem;
}

.timeline-content {
    padding: 3rem;
    background: var(--bg-color);
    position: relative;
    border-radius: 1.5rem;
    box-shadow: 0 .1rem .5rem var(--shadow-color);
    border-top: .4rem solid var(--main-color);
    transition: .5s ease;
}

.timeline-content:hover {
    box-shadow: 0 .5rem 2rem var(--shadow-color);
    transform: scale(1.02);
}

.timeline-date {
    display: inline-block;
    padding: .5rem 1.5rem;
    background: var(--main-color);
    color: var(--white-color);
    border-radius: .6rem;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.timeline-content h3 {
    font-size: 2.4rem;
    margin-bottom: .5rem;
}

.timeline-content h4 {
    font-size: 1.8rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.timeline-content p {
    font-size: 1.5rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.exp-tag {
    padding: .5rem 1.2rem;
    background: rgba(0, 0, 0, 0.05);
    border: .1rem solid var(--main-color);
    border-radius: .5rem;
    font-size: 1.3rem;
    color: var(--main-color);
    font-weight: 500;
}

.dark-mode .exp-tag {
    background: rgba(255, 255, 255, 0.05);
}

/* Certifications Section */
.certifications {
    min-height: auto;
    padding-bottom: 10rem;
}

.certifications h2 {
    margin-bottom: 5rem;
}

.certifications-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
    max-width: 120rem;
    margin: 0 auto;
}

.cert-card {
    background: var(--bg-color);
    padding: 3rem 2.5rem;
    border-radius: 2rem;
    box-shadow: 0 .1rem .5rem var(--shadow-color);
    border-top: .6rem solid var(--main-color);
    text-align: center;
    transition: .5s ease;
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 .5rem 2rem var(--shadow-color);
}

.cert-icon {
    font-size: 6rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.cert-card h3 {
    font-size: 2.2rem;
    margin-bottom: .5rem;
}

.cert-issuer {
    font-size: 1.6rem;
    color: var(--main-color);
    font-weight: 600;
    margin-bottom: .5rem;
}

.cert-date {
    font-size: 1.4rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.cert-desc {
    font-size: 1.5rem;
    line-height: 1.6;
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 2.5rem;
    max-width: 90rem;
    margin: 4rem auto 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-color);
    border-radius: 1.5rem;
    box-shadow: 0 .1rem .5rem var(--shadow-color);
    border-left: .4rem solid var(--main-color);
    transition: .3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: 0 .3rem 1rem var(--shadow-color);
}

.contact-item i {
    font-size: 3rem;
    color: var(--main-color);
}

.contact-item h4 {
    font-size: 1.8rem;
    margin-bottom: .3rem;
}

.contact-item p {
    font-size: 1.5rem;
}

.contact-item a {
    color: var(--main-color);
    font-weight: 600;
}

/* Footer Updates */
.footer {
    background: var(--main-color);
    padding: 4rem 7%;
    position: relative;
}

.footer-content {
    max-width: 120rem;
    margin: 0 auto 2rem;
}

.footer-section h3 {
    font-size: 2.5rem;
    color: var(--white-color);
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 1.6rem;
    color: var(--white-color);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: var(--white-color);
    border-radius: 50%;
    font-size: 2.2rem;
    color: var(--main-color);
    transition: .3s ease;
}

.social-links a:hover {
    background: var(--bg-color);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: .1rem solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    font-size: 1.5rem;
    color: var(--white-color);
}

.footer-iconTop {
    position: absolute;
    top: -2.5rem;
    right: 7%;
}

/* Responsive Design Updates */
@media (max-width: 991px) {
    .skills-container {
        grid-template-columns: 1fr;
    }

    .projects-container {
        grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    }

    .timeline::after {
        left: 3rem;
    }

    .timeline-item {
        width: 100%;
        padding-left: 7rem;
        padding-right: 2.5rem;
    }

    .timeline-item::before {
        left: 6rem;
        border: medium solid var(--main-color);
        border-width: 1rem 1rem 1rem 0;
        border-color: transparent var(--main-color) transparent transparent;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 1.8rem;
    }

    .timeline-item.right {
        left: 0%;
    }
}

@media (max-width: 768px) {
    .home .profession-container {
        display: none;
    }

    .home-content {
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .home-content h1 {
        font-size: 5rem;
    }
}

@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
    }

    .education-box {
        flex-direction: column;
        text-align: center;
    }

    .certifications-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }
}

@media (max-width: 450px) {
    .project-header {
        flex-direction: column;
        gap: 1rem;
    }

    .project-category {
        align-self: flex-start;
    }

    .project-links {
        flex-direction: column;
    }

    .timeline-item {
        padding-left: 6rem;
    }
}

/* Typing Animation Container */
.text-animation {
    font-size: 3.2rem;
    font-weight: 700;
    min-width: 280px;
    display: inline-block;
    /* Ensure it respects layout */
}

/* Typing Text Span */
.text-animation span {
    position: relative;
    display: inline-block;
    color: var(--main-color);
    line-height: 1.2;
    /* Ensure proper spacing */
}

/* Cursor Effect */
.text-animation span::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 5px;
    /* Adjust cursor vertical position */
    width: 2px;
    height: 80%;
    /* Adjust cursor height */
    background: var(--main-color);
    animation: blink 0.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Additional CSS for JavaScript Animations */

/* Ripple Effect */
.btn,
.project-link,
.filter-btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Button Transitions */
.btn,
.project-link,
.filter-btn,
.social-media a,
.social-links a {
    transition: all 0.3s ease;
}

/* Fade In Up Animation for Projects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade Out Animation */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Loading State */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

/* Animate In Class for Intersection Observer */
section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Dark Mode Icon Transition */
#darkMode-icon {
    transition: transform 0.5s ease;
}

/* Project Image Styles */
.project-image-container {
    position: relative;
    width: 100%;
    padding-top: 75%;
    /* 4:3 Aspect Ratio */
    overflow: hidden;
    border-radius: 1.5rem 1.5rem 0 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
}

.project-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image-container img {
    transform: scale(1.1);
}

/* Project Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    padding: 2rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h3 {
    color: var(--white-color);
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.overlay-content p {
    color: var(--white-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.overlay-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--white-color);
    color: var(--main-color);
    border-radius: 0.8rem;
    font-size: 1.4rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.overlay-btn:hover {
    background: var(--main-color);
    color: var(--white-color);
    transform: scale(1.05);
}

/* Project Content Padding Adjustment */
.project-card .project-content {
    padding: 0;
}

.project-card .project-header,
.project-card .project-desc,
.project-card .project-tech,
.project-card .project-links {
    padding: 0 2.5rem;
}

.project-card .project-header {
    padding-top: 2rem;
}

.project-card .project-links {
    padding-bottom: 2.5rem;
}

/* Image Loading Skeleton */
.project-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.05) 25%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.05) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.project-image-container img[src]+ ::before {
    display: none;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Skill Tag Pulse Animation */
.skill-tag:hover,
.tech-tag:hover,
.exp-tag:hover {
    animation: pulse 0.5s ease;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 var(--main-color);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }
}

/* Timeline Item Highlight */
.timeline-content {
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(to right, var(--main-color), transparent);
    opacity: 0.1;
    transition: width 0.5s ease;
}

.timeline-content:hover::before {
    width: 100%;
}

/* Certification Card Tilt Effect */
.cert-card {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.cert-card:hover {
    transform: perspective(1000px) rotateY(5deg);
}

/* Contact Item Slide Effect */
.contact-item {
    position: relative;
}

.contact-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 0.3rem;
    background: var(--main-color);
    transition: width 0.4s ease;
}

.contact-item:hover::after {
    width: 100%;
}

/* Smooth Transitions for All Interactive Elements */
a,
button,
input,
textarea {
    transition: all 0.3s ease;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--main-color);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .logo {
        font-size: 1.8rem;
        /* Smaller font for long title on mobile */
    }

    .project-image-container {
        padding-top: 60%;
        /* Shorter aspect ratio on mobile */
    }

    .overlay-content h3 {
        font-size: 2rem;
    }

    .overlay-content p {
        font-size: 1.3rem;
    }
}

/* Project Image Container Styles */
.project-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-image-container:hover .project-img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s ease;
}

.project-image-container:hover .project-overlay {
    opacity: 1;
    visibility: visible;
}

.overlay-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--white-color);
    color: var(--main-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: .1rem;
    transition: .5s ease;
}

.overlay-btn:hover {
    background: var(--main-color);
    color: var(--white-color);
    box-shadow: 0 0 1rem var(--main-color);
}

/* Animations for Project Filtering */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* ========== SIMPLIFIED BACKGROUND: HOME SECTION ONLY ========== */

/* Header/Home section with dramatic tech background */
/* Header/Home section with light dark theme */
.home {
    position: relative;
    background-image: none;
    background-color: #1f242d;
    /* Light dark theme color */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Overlay removed for solid background */
.home::before {
    content: '';
    display: none;
}

/* Ensure home content appears above overlay */
.home-content,
.profession-container,
.home-img {
    position: relative;
    z-index: 1;
}

/* Update text colors for home section (on dark background) */
.home .home-content h3,
.home .home-content h1,
.home .home-content p {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.home .text-animation span {
    color: #00ff88;
    /* Bright cyan for animated text */
}