@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    outline: none;
    text-decoration: none;
    border: none;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #FFFFFF;
    --text-color: #1A1A1A;
    --main-color: #FFA500;
    --deep-purple: #380A5D;
    --light-gray: #F5F5F5;
    --white-color: #fdfdfd;
    --shadow-color: rgba(0, 0, 0, .2);
}

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

/* Fluid Typography */
:root {
    --h1-size: clamp(4rem, 8vw, 6rem);
    --h3-size: clamp(2rem, 4vw, 3.2rem);
    --p-size: clamp(1.4rem, 2vw, 1.6rem);
    --section-padding: clamp(5rem, 10vh, 10rem);
}

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 7%;
    /* background-color: yellowgreen; */
    display: flex;
    align-items: center;
    z-index: 100;
    transition: .5s;
}

.header.sticky {
    background: var(--bg-color);
    box-shadow: 0 .1rem 1rem var(--shadow-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

.logo {
    font-size: 2.5rem;
    color: var(--main-color);
    font-weight: 600;
    cursor: default;
    margin-right: auto;
}

.navbar a {
    position: relative;
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 500;
    margin-right: 3.5rem;
}

.header.sticky .navbar a {
    color: var(--text-color);
}

.header.sticky .navbar a::after {
    content: '';
    width: 0;
    height: 3px;
    background: var(--main-color);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

.header.sticky .navbar a:hover::after {
    width: 100%;
}

.navbar a::after {
    content: '';
    width: 0;
    height: 3px;
    background: var(--main-color);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

.navbar a:hover::after {
    width: 80%;
}


.header.sticky .navbar a.active::before {
    background: var(--main-color);
    opacity: .7;
}

section {
    min-height: 100vh;
    padding: var(--section-padding) 7% 2rem;
}

.home {
    display: flex;
    align-items: center;
}

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

.home-content h3 {
    font-size: var(--h3-size);
    font-weight: 700;
    line-height: .3;
}

.home-content h1 {
    font-size: var(--h1-size);
    font-weight: 700;
    margin-bottom: 2rem;
    margin-top: .6rem;
    margin-left: -1rem;
}

.home-content p {
    font-size: var(--p-size);
}

.home-content .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%;
    box-shadow: 0 .2rem .5rem var(--shadow-color);
    font-size: 2rem;
    color: var(--main-color);
    margin: 2.5rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.home-content .social-media a:hover {
    background: var(--main-color);
    color: var(--white-color);
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--main-color);
    border-radius: .6rem;
    box-shadow: 0 .2rem .5rem var(--shadow-color);
    font-size: 1.6rem;
    color: var(--white-color);
    letter-spacing: .1rem;
    font-weight: 600;
    border: .2rem solid transparent;
    transition: .5s ease;
}

.btn:hover {
    background: transparent;
    color: var(--main-color);
    border-color: var(--main-color);
}


#button123 {
    display: block;
    margin: 50px auto;
    background: var(--main-color);
    color: var(--white-color);
}

#button123:hover {
    background: var(--deep-purple);
    border-color: var(--deep-purple);
    color: var(--white-color);
}


.home .professional-container {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: min(768px, 80vw);
    height: min(768px, 80vw);
    /* background: red; */
    overflow: hidden;
    pointer-events: none;
}

.home .professional-container .professional-box {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    /* background: purple; */
    border-radius: 50%;
    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(-90deg);
    }

    50%,
    70% {
        transform: rotate(-180deg);
    }

    75%,
    95% {
        transform: rotate(-270deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

.home .professional-box .profession {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: var(--main-color);
    transform: rotate(calc(360deg / 4 * var(--i)));
    transform-origin: 384px;
    background: var(--bg-color);
    padding: 13px 0;
}

.home .professional-box .profession:nth-child(1) i {
    margin-right: 20px;
}

.home .professional-box .profession:nth-child(2),
.professional-box .profession:nth-child(4) {
    padding-bottom: 20px;
}

#explorer {
    /* margin-right: 5px; */
    margin-left: -50px;
    margin-bottom: 10px;
}

#embedded {
    margin-right: 50px;
}

#photo {
    margin-right: 60px;
}

.home .profession i {
    font-size: 3.8rem;
}

.home .profession h3 {
    font-size: 3.2rem;
    line-height: 1;
    font-weight: 600;
}

.home .professional-box .circle {
    width: 560px;
    height: 560px;
    border: 3px solid var(--main-color);
    border-radius: 50%;
}

.home .professional-container .overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 384px solid var(--main-color);
    border-right: 384px solid var(--main-color);
    border-bottom: 384px solid var(--main-color);
    border-left: 384px solid transparent;
}

.home-img img {
    position: absolute;
    bottom: -13px;
    /* right: 0; */
    margin-left: -250px;
    width: 100%;
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}


/* Particle Canvas Background */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Social Media Sidebar - Left Side */
.social-sidebar {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 50;
}

.social-sidebar a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: .2rem solid var(--deep-purple);
    border-radius: 50%;
    box-shadow: 0 .2rem .5rem var(--shadow-color);
    font-size: 2.2rem;
    color: var(--deep-purple);
    transition: all .3s ease;
}

.social-sidebar a:hover {
    background: var(--main-color);
    color: var(--white-color);
    border-color: var(--main-color);
    transform: translateX(5px);
}

/* Avatar Container - Right Side */
.avatar-container {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: clamp(250px, 30vw, 400px);
    height: clamp(250px, 30vw, 400px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--main-color), #FFC300);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(255, 165, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Highlighted text in hero */
.highlight {
    color: var(--main-color);
    font-weight: 600;
}


/*----------about----------------*/

#about {
    background: var(--bg-color);
    padding: 80px 0;
    color: var(--text-color);
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap
}

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

.about-col-1 {
    flex-basis: 35%;
}

.about-col-1 img {
    width: 80%;
    border-radius: 15px;
    margin-left: 10rem;
}

.about-col-2 {
    flex-basis: 60%;
    max-width: 80rem;
    margin-right: 16rem;
    font-size: 15px;
}

.subtitle {
    font-size: 50px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2.7rem;
}

/* About Me Tabs Styling */
.tab-title {
    display: flex;
    margin: 20px 0 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.tab-links {
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
}

.tab-links i {
    color: var(--main-color);
    font-size: 18px;
}

.tab-links:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tab-links.active-link {
    background: var(--main-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.3);
}

.tab-links.active-link i {
    color: #fff;
}

/* Remove old underline effect */
.tab-links::after {
    display: none;
}

/* Tab Contents */
.tab-contents {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-contents.active-tab {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-contents ul li {
    list-style: none;
    font-size: 15px;
    margin: 12px 0;
    line-height: 1.6;
}

.tab-contents ul li span {
    color: var(--main-color);
    font-size: 17px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

/* Specific Tab Styling */

/* Education Timeline */
.education-list {
    border-left: 2px solid var(--main-color);
    padding-left: 20px;
    margin-left: 10px;
}

.education-list li {
    position: relative;
    margin-bottom: 25px;
}

.education-list li::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--main-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--main-color);
}

/* Qualities & Achievements Cards */
.qualities-list,
.achievements-list,
.hobbies-list,
.languages-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.qualities-list li,
.achievements-list li,
.hobbies-list li,
.languages-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.qualities-list li:hover,
.achievements-list li:hover,
.hobbies-list li:hover,
.languages-list li:hover,
.qualities-list li:active,
.achievements-list li:active,
.hobbies-list li:active,
.languages-list li:active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    border-color: var(--main-color);
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
}

.qualities-list li span,
.achievements-list li span,
.hobbies-list li span,
.languages-list li span {
    display: block;
    margin-bottom: 5px;
}

/*---------services----------------*/

/* skills section starts */
.skills {
    min-height: 90vh;
    background: linear-gradient(to bottom, #57059e, #4a00e0);
}

.skills .heading {
    display: flex;
    justify-content: center;
    /* padding: 2rem 0; */
    gap: 1.5rem;
}

.skills h2 {
    color: #fff;
    font-size: 50px;
    font-weight: 600;
}

.skills .heading span {
    color: var(--main-color);
    font-size: 50px;
    font-weight: 600;
}

.skills .container {
    background: rgba(0, 0, 22, 0.4);
    color: #fff;
    border-radius: 1rem;
    padding: 2rem;
    width: 90%;
    margin: auto;
    margin-top: 2rem;
}

.skills .container .row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    flex-wrap: wrap;
    gap: 1.8rem;
}

.skills .container .bar {
    /* margin-bottom: 15px; Removed to fix gap issue */
    padding: 10px;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 22, 0.9);
    transition: 0.2s;
}

.skills .container .bar:hover {
    box-shadow: 0 8px 10px rgba(0, 2, 68, 0.8) !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
}

.skills .container .bar .info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.skills .container .bar .info img {
    height: 48px;
    width: auto;
}

.skills .container .bar .info i {
    font-size: 4rem;
}

.skills .container .bar .info span {
    font-size: 2rem;
    font-weight: 500;
    font-family: "Poppins";
    margin-left: 0.5rem;
}

/* skills media queries starts*/
@media screen and (max-width: 600px) {
    .skills .container {
        padding: 0;
        margin: 0;
    }

    .skills .container .row {
        grid-template-columns: repeat(2, 1fr);
        margin: 1rem;
        padding: 2rem 0.2rem 2rem 0.2rem;
        gap: 1rem;
    }

    .skills .container {
        margin-top: 5px;
        width: 100%;
    }
}

/* skills media queries ends*/
/* skills section ends */


/*----------------------portfolio----------------------------------------*/
/*----------------------portfolio----------------------------------------*/
#portfolio {
    padding: 50px 0;
    /* Margins handled by container usually, but keeping some padding/margin if needed */
    margin: 0 auto;
    max-width: 1400px;
}

.work-list {
    color: antiquewhite;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 30px;
    margin-top: 30px;
    padding: 0 20px;
    /* Add padding to prevent edge touching on small screens */
}

/* Enhanced Project Cards - Sci-Fi Theme */
.work {
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    aspect-ratio: 3 / 4;
    width: 100%;
}

.work:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 20px var(--main-color), 0 0 40px rgba(255, 165, 0, 0.4);
    border-color: var(--main-color);
}

.work img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    display: block;
    transition: transform 0.5s ease;
    opacity: 0.9;
}

.work:hover img {
    transform: scale(1.1);
    opacity: 0.4;
    /* Dim image to make text readable */
}

.layer {
    width: 100%;
    height: 100%;
    /* Cover full card */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 100%);
    border-radius: 15px;
    position: absolute;
    left: 0;
    bottom: -100%;
    /* Start hidden below */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 30px;
    text-align: center;
    font-size: 14px;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy effect */
    backdrop-filter: blur(3px);
}

.work:hover .layer {
    bottom: 0;
    /* Slide up */
}

.layer h3 {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 2rem;
    color: var(--main-color);
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s delay 0.1s;
}

.work:hover .layer h3 {
    transform: translateY(0);
    opacity: 1;
}

.layer p {
    color: #ddd;
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s delay 0.2s;
}

.work:hover .layer p {
    transform: translateY(0);
    opacity: 1;
}

.layer a {
    margin-top: 10px;
    color: var(--main-color);
    text-decoration: none;
    font-size: 18px;
    line-height: 45px;
    background: rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-align: center;
    border: 1px solid var(--main-color);
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s delay 0.3s;
}

.work:hover .layer a {
    transform: translateY(0);
    opacity: 1;
}

.layer a:hover {
    background: var(--main-color);
    color: #fff;
    box-shadow: 0 0 15px var(--main-color);
}

/* .btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #ff004f;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: solid;
    color: aliceblue;
    transition: background 0.5s;
}

.btn:hover{
    background: #ff004f;
} */

.subtitle-patent {
    font-size: 40px;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 60px;
    margin-bottom: 2.7rem;
}

.services-list-patent {
    color: antiquewhite;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 30px;
    margin-top: 30px;
}

.services-list-patent div {
    background: #FFF8E1;
    padding: 30px;
    font-size: 14px;
    font-weight: 300;
    border-radius: 20px;
    transition: all 0.4s ease;
    box-shadow: 6px 6px 0px var(--main-color);
    border: 3px solid var(--main-color);
    position: relative;
    overflow: hidden;
}

.services-list-patent div:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 10px 10px 0px var(--main-color);
    border: 3px solid var(--main-color);
}

.services-list-patent div i {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--main-color);
    transition: 0.4s;
}

.services-list-patent div:hover i {
    color: var(--deep-purple);
}

.services-list-patent div h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
    transition: 0.4s;
}

.services-list-patent div:hover h2 {
    color: var(--main-color);
}

.services-list-patent div p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 25px;
    transition: 0.4s;
}

.services-list-patent div:hover p {
    color: #000;
}

.services-list-patent div a {
    text-decoration: none;
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #000;
    border-radius: 30px;
    transition: 0.3s;
    background: transparent;
}

.services-list-patent div a i {
    font-size: 14px;
    margin-bottom: 0;
    color: #000;
}

.services-list-patent div a:hover {
    background: var(--main-color);
    color: #fff;
    border-color: var(--main-color);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.4);
}

.services-list-patent div:hover a {
    color: var(--main-color);
    border-color: var(--main-color);
}

.services-list-patent div:hover a i {
    color: var(--main-color);
}

.services-list-patent div:hover a:hover {
    background: var(--main-color);
    color: #fff;
}

.services-list-patent div:hover a:hover i {
    color: #fff;
}

/* testimonial */
.subtitle-contact {
    margin-left: 300px;
    font-size: 50px;
    font-weight: 600;
    color: var(--text-color);
    /* align-content: center; */
}

.testimonial-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 5rem 1rem;
}

.testimonial-heading {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 3rem;
}

/* Grid Layout for Responsibilities */
.responsibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    width: 80%;
    max-width: 1000px;
}

/* Expanded Grid Specifics */
.responsibility-grid.expanded-grid {
    grid-template-columns: repeat(3, 1fr);
}

.responsibility-card.full-width-card {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .responsibility-grid.expanded-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Card Styling */
.responsibility-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
    border-radius: 2rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    padding: 3rem 4rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 5px solid var(--main-color);
    height: 100%;
    /* Equal height cards in grid */
}

.responsibility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.responsibility-card h3 {
    font-size: 2.5rem;
    margin: 1rem 0 2rem;
    text-align: center;
    line-height: 1.3;
}

.responsibility-card h3 span {
    color: var(--main-color);
    display: inline;
    margin-bottom: 0;
}

.responsibility-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.responsibility-card li {
    font-size: 1.6rem;
    text-align: left;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 30px;
    line-height: 1.6;
}

.responsibility-card li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--main-color);
    font-size: 1.4rem;
}

/* Ensure secondary grid items are same width/behavior */
.responsibility-grid>div {
    width: 100%;
}

/*------------Contact------------*/


/* Contact Section - Complete Styling */
/* Contact Section Redesign */
#contact {
    background: var(--deep-purple);
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

#contact .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-title {
    text-align: center;
    font-size: 4rem;
    font-weight: 700;
    color: var(--white-color);
    margin-bottom: 60px;
}

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

.contact-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    background: rgba(255, 255, 255, 0.05);
    /* Glassmorphism effect */
    backdrop-filter: blur(10px);
    padding: clamp(20px, 5%, 50px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.contact-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-illustration i {
    filter: drop-shadow(0 0 20px rgba(255, 165, 0, 0.3));
    animation: float 3s ease-in-out infinite;
    color: var(--main-color) !important;
    /* Override inline style */
}

.contact-right {
    flex: 1.2;
}

.contact-right form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group i {
    position: absolute;
    left: 20px;
    top: 18px;
    color: var(--main-color);
    font-size: 1.8rem;
    pointer-events: none;
    transition: 0.3s;
    z-index: 10;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px 20px 15px 50px;
    /* Space for icon */
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--white-color);
    font-size: 1.6rem;
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--main-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.2);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.submit-btn {
    background: var(--main-color);
    color: var(--white-color);
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    margin-top: 10px;
    width: 100%;
}

.submit-btn:hover {
    background: var(--white-color);
    color: var(--main-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#msg {
    display: block;
    margin-top: 15px;
    color: var(--main-color);
    font-size: 1.6rem;
    text-align: center;
    font-weight: 500;
}


/* Footer - Modern Dark Design */
footer {
    background: #0a0a2e;
    color: white;
    padding: 60px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h3 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-section p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.4rem;
    font-style: italic;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.6rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--main-color);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 1.2rem;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact i {
    color: var(--main-color);
    font-size: 1.8rem;
    width: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--main-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.4rem;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--main-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--deep-purple);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(56, 10, 93, 0.4);
}

/*---------css for smalll screen---------*/

nav .fa-solid {
    display: none;
}

@media only screen and (max-width: 768px) {

    #menu-icon {
        display: block;
        cursor: pointer;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, 0.2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.1);
        display: none;
        text-align: center;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 2rem 0;
        color: var(--text-color);
    }

    .home {
        flex-direction: column;
        padding: 10rem 3% 2rem;
        gap: 2rem;
        text-align: center;
        overflow: hidden;
        /* Prevent horizontal scroll */
    }

    .home-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }

    .home-content h3 {
        font-size: 2.2rem;
    }

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

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

    .home-content .social-media a {
        margin: 2rem 1rem;
    }

    /* Adjust Professional Container (Rotating Circle) for Mobile */
    .home .professional-container {
        position: relative;
        width: 100%;
        min-height: 40vh;
        /* Fluid height */
        height: auto;
        top: auto;
        right: auto;
        transform: none;
        margin-top: 2rem;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: visible;
        /* Allow content to be seen */
    }

    .home .professional-container .professional-box {
        position: relative;
        width: 100%;
        height: 100%;
        top: auto;
        right: auto;
        border-radius: 0;
        animation: none;
        /* Disable rotation on mobile for better usability */
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .home .professional-container .overlay {
        display: none;
        /* Hide overlay on mobile */
    }

    .home .professional-container .circle {
        display: none;
        /* Hide circle on mobile */
    }

    /* Repurpose profession items as static grid/flex items */
    .home .professional-box .profession {
        position: relative;
        transform: none !important;
        /* Reset transforms */
        left: auto;
        top: auto;
        width: auto;
        height: auto;
        padding: 10px;
        background: transparent;
        flex-direction: column;
        border: 1px solid var(--main-color);
        border-radius: 10px;
        margin: 5px;
    }

    .home-img img {
        display: none;
        /* Hide large image on mobile if it overlaps too much, or adjust */
    }

    /* Avatar Container Adjustment */
    .avatar-container {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }

    /* About Section */
    .about-col-1 {
        flex-basis: 100%;
        margin: 0 0 2rem 0;
        text-align: center;
    }

    .about-col-1 img {
        width: 80%;
        margin: 0 auto;
    }

    .about-col-2 {
        flex-basis: 100%;
        margin: 0;
        text-align: center;
        padding: 0 20px;
    }

    .tab-title {
        justify-content: center;
        flex-wrap: wrap;
    }

    .tab-links {
        margin: 0 15px 10px 0;
    }

    /* Force 2 columns for card lists on mobile */
    .qualities-list,
    .achievements-list,
    .hobbies-list,
    .languages-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Services/Skills Section */
    #services {
        padding: 50px 3%;
    }

    .skills-hud-container {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .hud-core {
        width: 120px;
        height: 120px;
    }

    .hud-core h3 {
        font-size: 1.2rem;
    }

    .skill-item {
        width: 40px;
        height: 40px;
        margin: -20px;
    }

    .skill-item i {
        font-size: 20px;
    }

    /* Portfolio Section */
    .work-list {
        grid-template-columns: 1fr;
        justify-items: center;
        margin: 20px 0;
        padding: 0 20px;
        gap: 20px;
    }

    .work {
        margin-bottom: 20px;
        aspect-ratio: 3/4;
        width: 80%;
    }

    .services-list-patent {
        /* grid-template-columns: 1fr; */
        justify-items: center;
        /* margin: 20px 0; */
        margin-left: auto;
        margin-right: auto;
        aspect-ratio: auto;
        height: auto;
        width: 90%;
        margin-bottom: 20px;
    }

    .work img {
        object-fit: cover;
    }

    /* Contact Section */
    .contact-wrapper {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
    }

    .contact-left,
    .contact-right {
        margin: 0;
        width: 100%;
        flex: 1;
    }

    .contact-illustration i {
        font-size: 10rem !important;
    }

    .subtitle-contact {
        margin: 0;
        text-align: center;
        font-size: 3rem;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-links a,
    .footer-contact li {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    /* Testimonials */
    .testimonial-wrapper {
        width: 100%;
        padding: 2rem 0;
    }

    .testimonial-slide {
        padding: 2rem;
    }

    .testimonial-slide h3 {
        font-size: 2rem;
    }

    .testimonial-slide p,
    .testimonial-slide li {
        font-size: 1.4rem;
    }
}

#msg {
    color: var(--main-color);
    margin-top: 20px;
    display: block;
    font-size: 40px;
}



@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/*-------------keyyframe----*/
@keyframes slideTop {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--main-color);
    color: var(--white-color);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    background: var(--deep-purple);
}

.chat-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--bg-color);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
    border: 1px solid var(--light-gray);
}

.chat-container.open {
    transform: scale(1);
}

.chat-header {
    background: var(--main-color);
    color: var(--white-color);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: var(--white-color);
    cursor: pointer;
    font-size: 18px;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: var(--light-gray);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.bot-message {
    background: var(--white-color);
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.user-message {
    background: var(--main-color);
    color: var(--white-color);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chat-input-area {
    padding: 15px;
    background: var(--white-color);
    border-top: 1px solid var(--light-gray);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    min-width: 0;
    /* Prevents input from overflowing */
}

.chat-input-area input:focus {
    border-color: var(--main-color);
}

.chat-input-area button {
    background: var(--main-color);
    color: var(--white-color);
    border: none;
    width: 45px;
    /* Reduced from 5rem to fit better */
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
    font-size: 20px;
    flex-shrink: 0;
    /* Prevents button from squishing */
}

.chat-input-area button:hover {
    background: var(--deep-purple);
}

/* Chat Cards */
.chat-card {
    background: var(--white-color);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    margin-top: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.chat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 165, 0, 0.3);
    /* Orange blur */
}

.chat-card h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: var(--main-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.chat-card p {
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.chat-card-link {
    text-decoration: none;
    display: block;
}

/* Skill Cards */
.skill-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.skill-card {
    width: 40px;
    height: 40px;
    background: var(--white-color);
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: var(--main-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, background 0.2s, color 0.2s;
    cursor: help;
    /* To indicate tooltip */
}

.skill-card img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.skill-card:hover {
    transform: translateY(-2px);
    background: var(--main-color);
    color: var(--white-color);
}

/* Experience Roadmap */
.experience-roadmap {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--light-gray);
    margin-top: 10px;
    margin-left: 10px;
}

.roadmap-item {
    position: relative;
    margin-bottom: 20px;
}

.roadmap-item:last-child {
    margin-bottom: 0;
}

.roadmap-dot {
    position: absolute;
    left: -26px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--main-color);
    border: 2px solid var(--white-color);
    box-shadow: 0 0 0 2px var(--main-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.roadmap-content {
    background: var(--white-color);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.roadmap-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.roadmap-item:hover .roadmap-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 165, 0, 0.3);
    /* Orange blur */
}

.roadmap-item:hover .roadmap-dot {
    transform: translateY(-5px);
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    /* White bg behind */
}

.roadmap-date {
    font-size: 11px;
    color: #888;
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}

.roadmap-content h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: var(--main-color);
    font-weight: 600;
}

.roadmap-content p {
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

/* Scrollbar for chat messages */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

/* Contact Section Cards */
.contact-card-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.contact-row,
.social-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.contact-link,
.social-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.contact-link.full-width {
    width: 100%;
}

.contact-card,
.social-icon-card {
    background: var(--white-color);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: var(--main-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 50px;
    height: 50px;
}

.contact-card.form-card {
    width: 100%;
    height: auto;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}

.contact-link:hover .contact-card,
.social-link:hover .social-icon-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 165, 0, 0.3);
    /* Orange blur */
}

/* ------------------------------------------------
   Experience Roadmap Section
   ------------------------------------------------ */

#experience .subtitle {
    text-align: center;
}

.roadmap {
    position: relative;
    max-width: 1200px;
    margin: 50px auto;
}

/* The central vertical line */
.roadmap::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--main-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    box-shadow: 0 0 15px var(--main-color);
    z-index: 1;
}

/* Container around content */
.roadmap-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

/* The circles on the timeline */
.roadmap-dot {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: var(--bg-color);
    border: 3px solid var(--main-color);
    top: 20px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px var(--main-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    /* Centers the dot on the specified left position */
}

.roadmap-item:hover .roadmap-dot {
    background-color: var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
    transform: translateX(-50%) translateY(-5px);
}

/* Place items */
.left {
    left: 0;
}

.right {
    left: 50%;
}

/* Dot positioning */
.left .roadmap-dot {
    left: 100%;
    /* Places dot at the right edge of the left item (center of roadmap) */
}

.right .roadmap-dot {
    left: 0;
    /* Places dot at the left edge of the right item (center of roadmap) */
}

/* Content Box */
.roadmap-content {
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.roadmap-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--main-color);
}

.roadmap-content h3 {
    color: var(--main-color);
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.roadmap-content h4 {
    color: var(--main-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 500;
}

.roadmap-content .date {
    color: #00e5ff;
    /* Cyan accent */
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.roadmap-content p {
    color: #ccc;
    font-size: 1.5rem;
    line-height: 1.6;
}

/* Curved Connectors (Circuit Traces) - REMOVED per user request */
.left .roadmap-content::before {
    display: none;
}

.right .roadmap-content::before {
    display: none;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .roadmap::after {
        left: 50%;
    }

    .roadmap-item {
        width: 50%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .roadmap-item.right {
        left: 50%;
    }

    .roadmap-item.left {
        left: 0;
        text-align: right;
    }

    /* Reset dots for alternating layout */
    .left .roadmap-dot {
        left: 100%;
        right: auto;
    }

    .right .roadmap-dot {
        left: 0;
        right: auto;
    }

    /* Adjust arrows for alternating layout */
    .left .roadmap-content::before {
        left: auto;
        right: -10px;
        border-width: 10px 0 10px 10px;
        border-color: transparent transparent transparent rgba(255, 255, 255, 0.03);
    }

    .right .roadmap-content::before {
        left: -10px;
        right: auto;
        border-width: 10px 10px 10px 0;
        border-color: transparent rgba(255, 255, 255, 0.03) transparent transparent;
    }

    /* Center and resize headings on mobile */
    #experience .subtitle,
    .subtitle-patent,
    .testimonial-heading {
        text-align: center;
        font-size: 3.5rem;
        padding: 5px 5px;
    }

    #portfolio .subtitle {
        text-align: center
    }

    /* .testimonial-heading, */
    .subtitle-patent {
        margin-left: 0;
        /* Reset margin for centering */
        font-size: 32px;
        /* 80% of 40px */
    }

    /* Adjust arrows for mobile (all pointing left) */
    .left .roadmap-content::before,
    .right .roadmap-content::before {
        left: -10px;
        right: auto;
        border-width: 10px 10px 10px 0;
        border-color: transparent rgba(255, 255, 255, 0.1) transparent transparent;
    }
}

/* Chat Widget Specific Cards */
.chat-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 10px;
}

.chat-project-card,
.chat-experience-card,
.chat-responsibility-card {
    background: var(--white-color);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    margin-bottom: 8px;
    width: 100%;
    /* Ensure it fits in chat */
    text-align: left;
}

.chat-project-card:hover,
.chat-experience-card:hover,
.chat-responsibility-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--main-color);
}

.chat-project-card h4,
.chat-experience-card h4,
.chat-responsibility-card h4 {
    margin: 0 0 4px 0;
    color: var(--main-color);
    font-size: 1.4rem;
    font-weight: 600;
}

.chat-project-card p,
.chat-experience-card p,
.chat-responsibility-card p {
    margin: 0;
    font-size: 1.2rem;
    color: #555;
    line-height: 1.4;
}

.chat-experience-card .date {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 4px;
    display: block;
    font-weight: 500;
}

/* Chatbot Specific Overrides for Lists and Cards */
.chat-messages .education-list {
    margin-left: 5px;
    padding-left: 15px;
    border-left: 2px solid var(--main-color);
    list-style: none;
    /* Remove default bullets */
}

.chat-messages .education-list li {
    margin-bottom: 15px;
}

.chat-messages .education-list li::before {
    left: -20px;
    width: 8px;
    height: 8px;
    top: 6px;
}

.chat-messages .qualities-list,
.chat-messages .achievements-list,
.chat-messages .hobbies-list,
.chat-messages .languages-list {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column for chat */
    gap: 10px;
    list-style: none;
    /* Remove default bullets */
}

.chat-messages .qualities-list li,
.chat-messages .achievements-list li,
.chat-messages .hobbies-list li,
.chat-messages .languages-list li {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: 0.3s;
    /* Smooth transition */
}

.chat-messages .qualities-list li:hover,
.chat-messages .achievements-list li:hover,
.chat-messages .hobbies-list li:hover,
.chat-messages .languages-list li:hover {
    transform: translateY(-3px);
    /* Subtle hover effect */
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--main-color);
}

/* Contact Form Success Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-content i {
    font-size: 60px;
    color: #4CAF50;
    margin-bottom: 20px;
    display: block;
    animation: popupIcon 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popupIcon {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-content h2 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.popup-content p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.popup-content button {
    background: var(--main-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
}

.popup-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.4);
}

/* Contact Form UX Enhancements */
.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    color: #666;
}

@keyframes pulse-color {
    0% {
        color: var(--deep-purple);
        transform: scale(1);
        opacity: 1;
    }

    50% {
        color: var(--main-color);
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        color: var(--deep-purple);
        transform: scale(1);
        opacity: 1;
    }
}


.contact-illustration i.sending {
    animation: pulse-color 1s infinite;
}

/* Loading Spinner Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

#download-icon.fa-spin {
    animation: spin 1s linear infinite !important;
    transform-origin: center;
    display: inline-block;
    /* Ensure reliable rotation */
}

.chat-action-btn {
    font-size: 1.2rem;
    padding: 2px 8px;
    margin-top: 5px;
    display: inline-block;
    background: var(--main-color);
    color: #fff;
    border: 1px solid var(--main-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
    font-weight: 500;
    font-family: var(--main-font);
}

.chat-action-btn:hover {
    background: #fff;
    color: var(--main-color);
    text-decoration: none;
}

/* Scrollbar Style */
/* Scrollbar Style */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--main-color) var(--bg-color);
}

::-webkit-scrollbar {
    width: 1.2rem;
    background: var(--bg-color);
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 2rem;
    border: 3px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--deep-purple);
}