@import url('https://fonts.googleapis.com/css2?family=Alumni+Sans:ital,wght@0,100..900;1,100..900&family=Anek+Bangla:wght@100..800&family=IBM+Plex+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

@font-face {
    font-family: 'Satoshi';
    src: url('./font_manager/Satoshi_Complete/Fonts/WEB/fonts/Satoshi-Black.woff2') format('woff2'),
        url('./font_manager/Satoshi_Complete/Fonts/WEB/fonts/Satoshi-Black.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: 'Lufga';
    src: url('./font_manager/lufga-webfont/LufgaBlack.woff') format('woff');
    font-weight: 900;
    /* Black */
    font-style: normal;
}

@font-face {
    font-family: 'Lufga';
    src: url('./font_manager/lufga-webfont/LufgaExtraBold.woff') format('woff');
    font-weight: 800;
    /* Extra Bold */
    font-style: normal;
}

@font-face {
    font-family: 'Lufga';
    src: url('./font_manager/lufga-webfont/LufgaBold.woff') format('woff');
    font-weight: 700;
    /* Bold */
    font-style: normal;
}

@font-face {
    font-family: 'Lufga';
    src: url('./font_manager/lufga-webfont/LufgaSemiBold.woff') format('woff');
    font-weight: 600;
    /* Semi Bold */
    font-style: normal;
}

@font-face {
    font-family: 'Lufga';
    src: url('./font_manager/lufga-webfont/LufgaMedium.woff') format('woff');
    font-weight: 300;
    /* Semi Bold */
    font-style: normal;
}

@font-face {
    font-family: 'Lufga';
    src: url('./font_manager/lufga-webfont/LufgaRegular.woff') format('woff');
    font-weight: 200;
    /* Semi Bold */
    font-style: normal;
}

/* Global Variables */
:root {
    --color-primary: #161616;
    --color-secondary: #ECF0F3;
    --color-accent: #383fff;
    --color-accent-alt: #f65786;
    --color-shadow-light: #D1D9E6;
    --color-shadow-dark: #ffffff;
    --font-body: 'IBM Plex Sans', sans-serif;
    --font-header: 'Lufga', sans-serif;
    --font-special: 'Lufga', sans-serif;
    --color-darktheme-gradient: linear-gradient(to right, #2A2A2A 0%, #121212 100%);
    --color-darktheme-gradient2: linear-gradient(to right, #1c1c1c 0%, #171717 100%);
}

.darkmode {
    --color-primary: #EFE9D5;
    --color-secondary: #161616;
    --color-sand-dune: #EFE9D5;
    --color-deep-ocean-blue: #0B2537;
    --color-darktheme-gradient: linear-gradient(to right, #2A2A2A 0%, #121212 100%);
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

/* Body Styling */
body {
    line-height: 1.6;
    color: var(--color-primary);
    background-color: var(--color-secondary);
}

body,
.myresume-tabs ul li a {
    color: var(--color-primary);
}

#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    box-shadow: 5px 5px 15px var(--color-shadow-light), -5px -5px 15px var(--color-shadow-dark);
    background: linear-gradient(200deg, #e2e8ec, #ffffff);
    color: black;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    font-size: 23px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
    transition: opacity 0.3s ease;

}

#scrollToTopBtn:hover {
    background: linear-gradient(to right, #6f86ff, #b372ce 49%, #ff7586);
    color: white;
}

.top-nav {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    gap: 3rem;
    align-items: center;
    padding: 1rem 3rem;
    background: linear-gradient(145deg, #e2e8ec, #ffffff);

    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;

    opacity: 0.95;
    height: 5rem;
}

.mylogo {
    max-width: 150px;
    max-height: 150px;

}

.main-nav-bar {
    flex: 1;
    justify-self: right;
    padding-right: 3rem;
}

.top-nav ul {
    list-style: none;
    display: flex;
    flex-flow: row;
    gap: 2rem;
    justify-content: end;
    align-items: center;
}

.top-nav ul li .nav-link,
#safemilo .top-nav ul li .nav-link {
    color: black;
    text-decoration: none;
    font-family: 'Lufga';
    font-weight: 200;
    font-size: 1.1rem;
}

.main-nav-bar ul li .nav-link::after,
#safemilo .top-nav ul li .nav-link::after {
    content: '';
    width: 0%;
    height: 2px;
    background: linear-gradient(to left, var(--color-accent), var(--color-accent-alt));
    display: block;
    transition: 1s;
}

.main-nav-bar ul li .nav-link:hover::after,
.main-nav-bar ul li .nav-link.active::after,
#safemilo .top-nav ul li .nav-link:hover::after,
#safemilo .top-nav ul li .nav-link.active::after {
    width: 100%;
}

/* .resume-download-btn,
.project-desc a {
    background: linear-gradient(to right, #2A2A2A 0%, #121212 100%);
    border-radius: 3rem
} */

.project-desc-btn a {
    font-size: 1.2rem;
    text-decoration: none;
    font-family: var(--font-header);
    letter-spacing: 0.5px;
    font-weight: 200;
    padding: 0.7rem 1.2rem;
}


/* .project-desc-btn {
    padding: 0.5rem 1.3rem;
} */

.top-nav ul .project-desc-btn a {
    padding: 0.5rem 1.4rem;
}

.project-desc a {
    padding: 0.8rem 1.3rem;
}

.fa-solid.fa-download {
    padding-right: 10px;
}

.about-me {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    gap: 3rem;
}

.about-me .card-1,
.about-me .card-2,
.about-me .card-3 {
    /* background: var(--color-darktheme-gradient); */
    box-shadow: 5px 5px 15px var(--color-shadow-light), -5px -5px 15px var(--color-shadow-dark);
    background: linear-gradient(200deg, #e2e8ec, #ffffff);
    border-radius: 2rem;
    color: var(--color-primary);
    padding: 4rem 2rem;
    display: flex;
    flex-flow: column;
    gap: 1rem;
    flex-basis: 50%;
}


.about-me .header-1 {
    font-size: 2rem;
    font-family: 'Lufga';
    font-weight: 300;
}

.hero .my-name,
#text,
#about-me h2,
.my-resume h2,
.myresume-tabs ul li a,
.edu-heading h3,
.exp-info h3,
.all-skill-wrapper h3,
.soft-prof-wrapper h3,
#contact-section h2,
#skills h2,
#project h2,
.togathr h2 {
    font-family: var(--font-header);
}

.redeisgn-intro h3,
.para-1 h3 {
    font-family: var(--font-special);
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
}

.redeisgn-intro {
    margin-bottom: 1rem;
}

.hero .welcome-text,
.hero .my-info,
.hero .btn,
.all-skill-wrapper p,
.ux-research-content h3,
.ux-research-title h2 {
    font-family: var(--font-body);
}

.text-container p {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.text-container .hi-text {
    font-size: clamp(1rem, 5vw, 2rem);
    font-family: var(--font-header);
}

.my-resume h2,
#contact-section h2,
#skills h2,
#project h2,
#about-me h2,
.togathr h2,
.ux-research-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 550;
}

.myresume-tabs ul,
.myresume-tabs ul li:hover,
.myresume-tabs ul li a.active,
.education-1,
.education-2,
.education-3,
.experience-1,
.experience-2,
.experience-3,
.experience-4,
.design-soft-prof div,
.dev-soft-prof div,
.contact-wrapper,
.img-wrapper img,
.project-wrapper .project-0,
.project-wrapper .project-1,
.project-wrapper .project-2,
.project-wrapper .project-3,
.project-wrapper .project-4,
.social-media-links div,
.close-btn {
    box-shadow: 5px 5px 15px var(--color-shadow-light), -5px -5px 15px var(--color-shadow-dark);
    background: linear-gradient(145deg, #e2e8ec, #ffffff);
}


.close-btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 3rem;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.close-btn a {
    font-size: 1.5rem;
    text-align: center;
    display: block;
    color: black;
}


.social-media-links div {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.social-media-links div a {
    font-size: 1.5rem;
    text-align: center;
    display: block;
    color: var(--color-primary);
}

header .img-card {
    box-shadow: 5px 5px 15px var(--color-shadow-light), -5px -5px 15px var(--color-shadow-dark);
    background: linear-gradient(200deg, #e2e8ec, #ffffff);
}

.myresume-tabs ul li:hover,
.myresume-tabs ul li a:hover,
.myresume-tabs ul li a.active {
    border-radius: 10px;
    background: linear-gradient(to left, var(--color-accent), var(--color-accent-alt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    font-weight: 500;
}

.hero h1,
.text-container,
.hero .btn,
.experience,
.contact-header a,
.contact-header p {
    font-weight: 500;
}

.contact-header a,
.contact-header p {
    font-size: 1.3rem;
}

.myresume-tabs ul li a,
.hero .btn {
    text-decoration: none;
}

.hero .welcome-text,
.experience {
    letter-spacing: 1.7px;
}


header .content {
    text-align: left;
    margin-right: 3rem;
    padding-right: 3rem;
}

.education-1,
header .content .welcome-text,
.design-soft-prof {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInScroll 0.5s ease-out forwards;
    animation-delay: 0s;
}

.education-2,
header .content .text-container,
.dev-soft-prof {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInScroll 0.5s ease-out forwards;
    animation-delay: 0.4s;
}

.education-3,
header .content .my-info {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInScroll 0.5s ease-out forwards;
    animation-delay: 0.8s;
}



header .content .top-buttons {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInScroll 0.5s ease-out forwards;
    animation-delay: 1.2s;
}

/* .intro-wrapper {
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 1.3s ease-out forwards;
    animation-delay: 1.2s;
} */

@keyframes slideIn {
    0% {
        transform: translateY(20%);
        opacity: 0;
    }

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

.element {
    animation: slideIn 1s ease-in-out forwards;
}


@keyframes fadeInScroll {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

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

.img-card {
    display: grid;
    justify-items: center;
    border-radius: 50%;
    height: auto;
    z-index: 100;
    margin: 2rem auto;
    overflow: hidden;
}

.profile-image {
    justify-items: center;
    border-radius: 50%;
    max-width: 628px;
    max-height: 628px;
}

/* #loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loader-gif {
    max-width: 350px;
    max-height: 350px;
} */

.text-container {
    color: var(--color-primary);
}

#text {
    font-size: clamp(1.5rem, 5vw, 2.6rem);
}

.cursor {
    display: inline-block;
    animation: blink 1s step-start infinite;
}

.my-name span {
    font-family: var(--font-header);
}

.my-name span,
.experience,
/* .contact-header p, */
.contact-header a {
    background: linear-gradient(to left, var(--color-accent), var(--color-accent-alt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

header .container {
    display: grid;
    grid-template-columns: 700px 1fr;
    align-items: center;
    gap: 2rem;
}

.hero .container {
    margin-top: 3rem;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Header / Hero Section */
.hero {
    color: var(--color-primary);
    text-align: center;
}

/* ----------------------------- */
.hero h1 {
    font-size: 2rem;
    margin: 0;
    padding: 0.5rem 1.6rem;
}



.hero .welcome-text {
    font-size: 1.5rem;
    margin-top: 3rem;
    font-weight: 400;
    font-size: 0.9rem;
}

.hero .my-info {
    font-size: 1.2rem;
    margin: 1rem 0 2rem 0;
}

.hero .my-name {
    font-weight: 600;
}


.hero .btn,
.form-wrapper .btn,
.project-wrapper .project-1 a,
.project-wrapper .project-2 a,
.response-close-btn,
.contact-wrapper button,
.resume-download-btn,
.project-desc-btn a {
    border-radius: 3rem;
    position: relative;
    /* padding: 10px 20px; */
    font-size: 1rem;
    color: #fff;
    background-color: #000;
    /* Button background */
    border: none;
    cursor: pointer;
    outline: none;
    z-index: 1;
    overflow: hidden;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero .btn::before,
.form-wrapper .btn::before,
.response-close-btn::before,
.contact-wrapper button::before,
.resume-download-btn::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(to right, #6f86ff, #b372ce 49%, #ff7586);
    z-index: -1;
    border-radius: 3rem;
}

.project-desc-btn a::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(to right, #6f86ff, #b372ce 49%, #ff7586);
    z-index: -1;
    border-radius: 3rem;
}

.hero .btn::after,
.form-wrapper .btn::after,
.response-close-btn::after,
.contact-wrapper button::after,
.resume-download-btn::after,
.project-desc-btn a::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background-color: #191919;
    /* Same as the button's background */
    z-index: -1;
    border-radius: 3rem;
}

.hero .btn:hover,
.form-wrapper .btn:hover,
.project-desc-btn a:hover {
    /* background-color: white; */
    color: white;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #6f86ff, #b372ce 49%, #ff7586);
    /* backdrop-filter: blur(100px); */
    font-weight: 600;
}

.top-buttons {
    display: flex;
    justify-content: left;
    gap: 1rem;
}

.top-buttons a {
    flex-basis: 25%;
    text-align: center;
}


/* ------------------------------------ */

main {
    margin: 0 6rem;
    /* border-top: 1px solid #d9dee2; */
}

.experience {
    padding-top: 2rem;
}

.myresume-tabs ul {
    display: flex;
    justify-content: space-around;
    margin-top: 3rem;
    border-radius: 10px;
    flex-wrap: wrap;
}

.myresume-tabs ul li {
    list-style: none;
    flex-basis: 25%;
    box-sizing: border-box;
}

.myresume-tabs ul li a {
    display: block;
    padding: 2rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    word-wrap: break-word;
    white-space: normal;
}

.my-resume {
    text-align: center;
}

#tab-content {
    margin-top: 2rem;
    font-size: 1.2rem;
}

/* Hide all tab content by default */
.tab-content {
    display: none;
}

/* Show active tab content */
.tab-content.active {
    display: block;
}

.education-wrapper {
    display: flex;
    margin-top: 3rem;
    gap: 1.5rem;
}

.education-wrapper div {
    flex-basis: 33%;
}

.duration {
    display: flex;
    justify-content: space-between;
    margin: 0 0 1rem 0;
    color: #000000;
    font-weight: 600;
}

.edu-description {
    font-weight: 400;
    border-top: 2.5px solid #d9dee2;
    padding-top: 1rem;
}

.edu-heading h3 {
    font-weight: 600;
    font-size: 1.6rem;
    padding-bottom: 0.5rem;
}

.education-1,
.education-2,
.education-3,
.experience-1,
.experience-2,
.experience-3,
.experience-4,
.project-wrapper .project-0,
.project-wrapper .project-1,
.project-wrapper .project-2,
.project-wrapper .project-3,
.project-wrapper .project-4 {
    border-radius: 10px;
}

.education-1>div:first-of-type,
.education-2>div:first-of-type,
.education-3>div:first-of-type {
    padding: 1rem;
}

.education-3 .edu-description {
    margin-top: 2.5rem;
}

.all-experience-wrapper {
    display: grid;
}

.experience-wrapper {
    position: relative;
    display: flex;
    flex-flow: column;
    gap: 3rem;
    margin-top: 3rem;
}

.experience-1,
.experience-2,
.experience-3,
.experience-4 {
    padding: 1rem;
    margin-left: 2rem;
}

.experience-wrapper {
    border-left: 0.3rem solid #d9dee2;
}

.exp-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exp-info h3,
.all-skill-wrapper h3,
.soft-prof-wrapper h3 {
    font-weight: 600;
}


.experience-wrapper title {
    display: flex;
    flex-flow: column;
}

.experience-descr-wrapper {
    padding-top: 1.5rem;
    border-top: 2.5px solid #d9dee2;
}

.experience-description {
    padding-bottom: 0.5rem;
}

.experience-descr-wrapper ul {
    padding-left: 1rem;
}

.experience-4 ul {
    padding-bottom: 3.2rem;
}

.exp-info h3,
.edu-heading h3,
.all-skill-wrapper h3,
.soft-prof-wrapper h3,
.para-1 h3 {
    font-size: 1.5rem;
}

.skill-wrapper {
    margin-bottom: 20px;
}

.skill-wrapper p {
    font-size: 16px;
    margin-bottom: 8px;
    color: #555;
}

.skill-profficiency {
    position: relative;
    height: 10px;
    background-color: #d8d8d8;
    border-radius: 10px;
    overflow: hidden;
}

.skill-profficiency-bar {
    height: 100%;
    width: 0;
    border-radius: 10px;
    background: linear-gradient(to right, #e3d2ff, #6533bc);
    transition: width 2s ease-in-out;
}

.percentage {
    position: absolute;
    top: -25px;
    right: 0;
    font-size: 10px;
    font-weight: bold;
    color: #2e007d;
    opacity: 0;
    transition: opacity 0.5s ease, top 0.5s ease;
}

.designskills-wrapper-div h3,
.devskills-wrapper-div h3 {
    margin: 2rem 0 2rem 0;
    font-weight: 600;
}

.skill-wrapper p {
    letter-spacing: 1px;
    font-weight: 500;
}

.all-skill-wrapper {
    display: flex;
    gap: 3rem;
}

.designskills-wrapper-div,
.devskills-wrapper-div {
    flex-basis: 50%;
}

hr {
    border: 0;
    border-top: 0.3rem solid #d9dee2;
    /* Customize the color and thickness */
    width: 2rem;
    position: absolute;
    top: 8rem;
    left: 0;
}

.circle {
    width: 25px;
    height: 25px;
    border: 0.3rem solid #d9dee2;
    border-radius: 50%;
    position: absolute;
    background-color: rgb(239, 239, 239);
    z-index: 1;
    top: 7.4rem;
    left: -15px;
}

.circle:hover {
    background-color: #6533bc;
}

.experience-2 hr,
.experience-4 hr {
    top: 30rem;
}

.experience-2 .circle,
.experience-4 .circle {
    top: 29.4rem;
    left: -15px;
}

.design-soft-prof,
.dev-soft-prof {
    margin-top: 2rem;
}

.design-soft-prof h3,
.dev-soft-prof h3 {
    text-align: center;
    padding-bottom: 1rem;
}

.design-soft-prof div,
.dev-soft-prof div {
    border-radius: 10px;
    padding: 1rem;
}

.design-soft-prof .wrapper,
.dev-soft-prof .wrapper {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
}

.design-soft-prof .wrapper div,
.dev-soft-prof .wrapper div {
    display: flex;
    flex-flow: column;
    /* justify-content: center; */
    align-items: center;
    flex-basis: 15%;
    flex-grow: 1;
    margin: 1rem;
}

/* .design-soft-prof .wrapper img,
.dev-soft-prof .wrapper img {
    height: 80%;
} */

.soft-prof-wrapper {
    display: flex;
    gap: 3rem;
}

.soft-prof-wrapper .design-soft-prof,
.soft-prof-wrapper .dev-soft-prof {
    flex-basis: 50%;
}

.wrapper h4 {
    font-weight: 400;
    padding-bottom: 0.3rem;
}

.dev-soft-prof .wrapper>div:last-of-type img {
    height: 50px;
    width: 50px;
}

.contact-wrapper form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact-wrapper form input,
.contact-wrapper form textarea {
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 0.7rem;
    font-size: 1rem;
    width: 100%;
}

#contactForm {
    padding-top: 2rem;
}

.contact-wrapper button {
    margin-top: 0.8rem;
    padding: 12px;
    cursor: pointer;
}

#thankYouModal {
    display: none;
    position: fixed;
    top: 43%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* background: white; */
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 1px 1px 5px var(--color-shadow-light), -1px -1px 5px var(--color-shadow-dark);
    background: linear-gradient(145deg, #f8fcff, #ffffff);
    z-index: 1000;
    text-align: center;
}

.mail-icon {
    font-size: 3rem;
    text-align: center;
    color: #3e54c3;
}

.response-close-btn {
    margin-top: 1rem;
    padding: 4px;
    font-size: 1rem;

}

.response-close-btn {
    padding: 10px 20px;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.response-close-btn:hover,
.btn:hover {
    transform: scale(1.05);
}

.response-close-btn:active,
.btn:active {
    transform: scale(0.95);
}

.social-media-links {
    display: flex;
    gap: 1.5rem;
    justify-content: left;
    margin-bottom: 1rem;
}

.social-media-links .fa-brands,
.social-media-links .fa-solid,
.social-media-links .fa-regular {
    font-size: 1.4rem;
    color: rgb(40, 40, 40);
    background-color: unset;
    font-weight: 400;
}

.contact-header {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #d9dee2;

    justify-content: center;
    align-self: center;
    margin: 2rem 0 2rem 0;
    padding: 0.5rem;
}

.contact-wrapper {
    display: flex;
    flex-flow: column;
    flex-basis: 20%;
    width: 50%;
    margin: 2rem auto;
    border-radius: 10px;
}

#contact-section {
    display: flex;
    flex-flow: column;
}

#contact-section h2,
#skills h2,
.project h2,
.my-resume .experience {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
    border-top: 1px solid #d9dee2;
    padding-top: 1rem;
}

.project-desc .tags {
    list-style: none;
    display: flex;
    flex-flow: row wrap;
    gap: 0.6rem;
    padding-top: 0.4rem;
}

.project-desc li {
    border-radius: 25px;
    padding: 0.2rem 0.7rem;
    font-weight: 400;
}



.tags li:nth-child(1) {

    background-color: #e5d9f9cb;
    color: #2c0073;
}

.tags li:nth-child(2) {
    background-color: #dce3c3d0;
    color: #364602;
}

.tags li:nth-child(3) {

    background-color: #d5dff2c7;
    color: #052664;
}

.tags li:nth-child(4) {
    background-color: #f3d9f1aa;
    color: #51074a;
}

.tags li:nth-child(5) {
    background-color: #e0def7c0;
    color: #0d0872;
}

.my-resume .experience {
    margin-bottom: 0;
}

#contact-section .social-media-links {
    align-self: center;
}

#contact-section p {
    text-align: center;
}

#contact-section h2 {
    margin-bottom: 0;
}

textarea {
    height: 120px;
    resize: vertical;
}

.form-wrapper {
    margin-bottom: 2rem;
}

.form-wrapper form {
    padding-left: 1rem;
    padding-right: 1rem;
}


#skills .container {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    row-gap: 3rem;
}

#skills .card {
    flex-grow: 1;
    flex-basis: 20%;
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.3s ease;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 0.8rem;
    margin: 0 10px;
    text-align: center;
}

#skills .card img {
    width: auto;
    height: auto;
    object-fit: fill;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-align: center;
}

#skills .card:hover img {
    transform: scale(1.1);
    opacity: 0;
}

#skills .card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1F0812;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
    text-align: center;
}

#skills .card:hover .card-content {
    opacity: 1;
}

#skills .card-content h3 {
    margin: 0;
    font-size: 1.3rem;
    color: white;
}

#skills .card-content p {
    margin: 0.5em 0;
    color: white;
    padding: 0 1rem 1rem 1rem;
    font-size: 0.9rem;
}

#skills .card-content .button-wrapper button {
    padding: 0.5rem 1rem 0.5rem 1rem;
    border: none;
    background-color: #0056b3;
    color: white;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#skills .card-content .button-wrapper:hover {
    background-color: #0056b3;
}

.button-wrapper {
    display: flex;
    flex-flow: row;
    background-color: #0056b3;
    align-content: center;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
}

.button-wrapper div {
    color: white;
    padding-right: 1rem;
}


.card h3 {
    color: #333333;
    margin-bottom: 10px;
}

.card p {
    color: #666666;
    margin-bottom: 15px;
    line-height: 1.4em;
    font-size: 1.1rem;
}


#popup,
#popup-red,
#popup-aftereff,
#popup-compAna,
#popup-usrint,
#popup-design-thinking,
#popup-illus {
    display: none;
    position: fixed;
    top: 3%;
    left: 10%;
    width: 80%;
    height: 95%;
    /* background: linear-gradient(145deg, #d8e4eb, #ffffff); */
    background: linear-gradient(145deg, #e1e9ee, #ffffff);
    box-shadow: 5px 5px 15px #D1D9E6, -5px -5px 15px #ffffff;
    border-radius: 10px;
    z-index: 1000;
    overflow: hidden;
    padding: 1.5rem;
}

#popup button,
#popup-red button,
#popup-aftereff button,
#popup-illus button {
    position: absolute;
    top: 3px;
    right: 3px;
    padding: 0 0.3rem;
    border: none;
    cursor: pointer;
    font-size: 1.7rem;
    border-radius: 50%;
    color: #454545;
}

#popup iframe {
    width: 100%;
    height: 100%;
    border: none;

    overflow-y: auto;
    overflow-x: hidden;
}

/* Show popup when active */
#popup.active {
    display: block;
}

/* Prevent horizontal scroll inside the popup */
.popup-content {
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    display: flex;
    flex-flow: column;
    gap: 1rem;
}

#popup-illus .content-1 {
    display: flex;
    flex-flow: column;
    gap: 3rem;
    align-items: center;
}

#popup-illus img {
    max-width: 70%;
}

.content-container.blur-active {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

/* Image styling */
.redesign-content img {
    width: 40%;
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.img-wrapper {
    display: flex;
    gap: 2rem;
}

.img-wrapper img {
    border-radius: 10px;
}

video {
    width: 100%;
    height: 70vh;
}

.copyrights {
    text-align: center;
    padding: 3rem 0 1rem 0;
    font-weight: 300;
}

.project-wrapper {
    display: flex;
    flex-flow: column;
    gap: 5rem;
}

.inner-wrapper-0,
.inner-wrapper-1,
.inner-wrapper-2,
.inner-wrapper-3,
.inner-wrapper-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.project-0,
.project-2,
.project-4 {
    grid-row: 1;
    grid-column: 1;
}

.project-1,
.project-3 {
    grid-column: 2;
}

.inner-wrapper-0 .project-desc,
.inner-wrapper-2 .project-desc,
.inner-wrapper-4 .project-desc {
    grid-column: 2;
    grid-row: 1;
}

.inner-wrapper-1 .project-desc,
.inner-wrapper-3 .project-desc {
    grid-column: 1;
    grid-row: 1;
}


.project-0,
.project-1,
.project-2,
.project-3,
.project-4 {
    opacity: 0;
    transform: translateX(70px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.project-0.visible,
.project-1.visible,
.project-2.visible,
.project-3.visible,
.project-4.visible {
    opacity: 1;
    transform: translateX(0);
}

.project-0,
.project-2,
.project-4 {
    transform: translateX(-70px);
}

.contact-section-wrapper,
.about-me .card-1,
.about-me .card-2,
.about-me .card-3 {
    opacity: 0;
    transform: translateY(90px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.contact-section-wrapper.visible,
.about-me .card-1.visible,
.about-me .card-2.visible,
.about-me .card-3.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-wrapper .project-0,
.project-wrapper .project-1,
.project-wrapper .project-2,
.project-wrapper .project-3,
.project-wrapper .project-4 {
    display: flex;
    flex-flow: row;
    gap: 1rem;
    padding: 1rem;
}

.project-wrapper .project-0 a,
.project-wrapper .project-1 a,
.project-wrapper .project-2 a,
.project-wrapper .project-3 a,
.project-wrapper .project-4 a {
    text-decoration: none;
    text-align: center;
}

.project-feature-img img {
    min-height: auto;
}

.project-desc {
    align-self: center;
    display: flex;
    flex-flow: column;
    gap: 1rem;
}

.project-desc h3 {
    font-family: var(--font-header);
    font-size: 1.9rem;
    font-weight: 500;
}

.project-desc-btn {
    margin: 1rem 0;
    display: flex;
}

#project .read-more-link {
    display: inline;
    color: #5e11c9;
    /* Customize link color */
    text-decoration: none;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
    background-color: unset;
    padding: 0 0 0 0.5rem;
    font-weight: 500;
}

#project .read-more-link:hover {
    color: #04ed98;
    background-color: unset;
}

#project .read-more-link::before {
    background: unset;
}

#project .read-more-link::after {
    background: unset;
}

.read-more-content {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    /* Show only 1 line */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

.read-more-content.expanded,
.read-more-content:has(.open) {
    -webkit-line-clamp: unset;
    overflow: visible;
}

.auto-scroll-wrapper {
    display: flex;
    gap: 20px;
    overflow: hidden;
    height: 500px;
    /* adjust height as needed */
}

.auto-scroll-column {
    display: flex;
    flex-direction: column;
    animation: scrollUp 20s linear infinite;
}

.auto-scroll-column.auto-scroll-down {
    display: flex;
    flex-direction: column;
    animation: scrollDown 20s linear infinite;
}

.auto-scroll-column:hover {
    animation-play-state: paused;
    /* optional: pause on hover */
}

.highlight {
    transform: translateY(20px);
    /* Slight downward movement */
    background: #ffffffa3;
    background-repeat: no-repeat;
    background-size: 0% 0%;
    /* Fully hidden initially */
    background-position: 0 60%;
    transition: opacity 0.6s ease, transform 0.6s ease, background-size 1.5s ease, background 0.7s ease;
}

.highlight.reveal {
    background-size: 100% 100%;
}

.project-1-logo .img-1 {
    max-width: 200px;
    padding-right: 1rem;
}

.project-1-logo .img-2 {
    max-width: 20px;
}

.project-1-logo .img-3 {
    max-width: 30px;
}

.project-1-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.highlight.reveal {
    opacity: 1;
    transform: translateY(0);
    /* Move upwards */
    background-size: 100% 70%;
    /* Reveal background */
    background: #d6b9ffa3;
}

.safemilo.highlight.reveal {
    background: #ffe9da;
}

.irctc.highlight.reveal {
    background-color: #ffeae7;
    font-weight: 400;
}


.bounce-container {
    margin-bottom: 20px;
}

.bounce-image {
    width: 100%;
    /* or a fixed width like 200px */
    display: block;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0%);
    }

    100% {
        transform: translateY(-100%);
    }
}

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }

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

/* @media not all and (min-resolution: 0.001dpcm) {
    body {
        color: green;
    }
} */

@media screen and (max-width:1300px) {
    .education-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .education-2 .title h3 {
        padding-bottom: 2.5rem;
    }

    header .top-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }


    .experience-2 hr,
    .experience-4 hr {
        top: 36rem;
    }

    .experience-2 .circle,
    .experience-4 .circle {
        top: 35.4rem;
        left: -15px;
    }

    .contact-wrapper {
        width: 80%;
        margin-top: 1.5rem;
    }

    .form-wrapper {
        padding: 1rem 2rem;
    }

    header .content {
        padding-right: 0;
    }

}

@media screen and (max-width:1150px) {
    .education-2 .title h3 {
        padding-bottom: 0;
    }

    .contact-wrapper {
        width: 90%;
    }

    #skills .card {
        flex-basis: 40%;
    }

    #skills .card-content h3 {
        font-size: 1.5rem;
    }

    #skills .card-content p {
        font-size: 1rem;
    }

    .profile-image {
        max-width: 350px;
        max-height: 350px;
    }

}


/* Hide Menu Icon on Desktop */
.menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}



@media screen and (max-width:1000px) {
    .img-card {
        margin: 1rem auto 0 auto;
    }

    .hero {
        margin: 3rem 3rem 0 3rem;
    }

    .menu-icon {
        display: block;
        /* Show menu icon */
    }

    .main-nav-bar {
        display: none;
        position: absolute;
        top: 5rem;
        right: 0;
        width: 100%;
        background: white;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;

    }

    .top-nav {
        padding: 1rem 3rem 1rem 0;
    }

    .main-nav-bar ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .main-nav-bar.active {
        display: flex;
        justify-content: center;
    }


    main {
        margin: 0 3rem;
    }

    .about-me {
        flex-flow: column;
        justify-content: space-between;
        gap: 3rem;
    }

    #about-me h2 {
        margin-top: 1rem;
    }

    .inner-wrapper-0,
    .inner-wrapper-1,
    .inner-wrapper-2,
    .inner-wrapper-3,
    .inner-wrapper-4 {
        display: flex;
        flex-flow: column;
    }

    .all-experience-wrapper img {
        max-width: 100%;
        max-height: 100%;
    }

    .education-wrapper {
        grid-template-columns: repeat(1, 1fr);

    }

    .myresume-tabs ul li {
        flex-basis: 100%;
    }

    .myresume-tabs ul li a {
        padding: 0.8rem;
    }

    .hero .container {
        display: flex;
        flex-flow: column;
        margin-top: 1rem;
        gap: 0;
    }

    .img-card {
        height: auto;
        width: auto;
    }

    header .content {
        margin-right: 0;
    }

    body {
        display: flex;
        flex-flow: column;
        gap: 2rem;
    }

    header .top-buttons {
        display: flex;
        flex-flow: column;
    }

    header .container {
        text-align: center;
    }



    .top-buttons a {
        text-align: center;
    }


    .all-skill-wrapper {
        flex-flow: column;
        gap: 1rem;
    }

    .designskills-wrapper-div,
    .devskills-wrapper-div {
        flex-basis: 100%;
    }

    .all-experience-wrapper {
        display: block;
    }

    .contact-wrapper {
        width: 100%;
    }

    .soft-prof-wrapper {
        flex-flow: column;
    }

    #skills .card {
        flex-basis: 100%;
        margin: 0;
    }

    .project-wrapper {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }
}

@media screen and (max-width:600px) {
    .project-desc-btn {
        flex-flow: column;
    }
}