@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;1,500&display=swap');

* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    box-sizing: border-box;
    font-family: "poppins";
    outline: none;
    border: none;
    color: #fff;
}

body {
    background: radial-gradient(rgb(6, 6, 78), black);
    height: 100vh;
    opacity: 100%;
}

/* 3D Floating Shapes Background */
.three-d-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape-1,
.shape-2,
.shape-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    transform-style: preserve-3d;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #3a86ff;
    top: 20%;
    left: 10%;
    animation: float-3d-1 25s infinite ease-in-out;
}

.shape-2 {
    width: 600px;
    height: 600px;
    background: #8338ec;
    bottom: 15%;
    right: 10%;
    animation: float-3d-2 30s infinite ease-in-out;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #ff006e;
    top: 50%;
    left: 50%;
    animation: float-3d-3 20s infinite ease-in-out;
}

@keyframes float-3d-1 {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotateX(0) rotateY(0);
    }

    25% {
        transform: translate3d(50px, 50px, 50px) rotateX(45deg) rotateY(15deg);
    }

    50% {
        transform: translate3d(0, 100px, -50px) rotateX(0) rotateY(90deg);
    }

    75% {
        transform: translate3d(-50px, 50px, 50px) rotateX(-45deg) rotateY(180deg);
    }
}

@keyframes float-3d-2 {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotateX(0) rotateY(0);
    }

    25% {
        transform: translate3d(-30px, -30px, 30px) rotateX(60deg) rotateY(-15deg);
    }

    50% {
        transform: translate3d(0, -60px, -30px) rotateX(0) rotateY(-90deg);
    }

    75% {
        transform: translate3d(30px, -30px, 30px) rotateX(-60deg) rotateY(-180deg);
    }
}

@keyframes float-3d-3 {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotateX(0) rotateY(0);
    }

    25% {
        transform: translate3d(20px, 20px, 20px) rotateX(30deg) rotateY(30deg);
    }

    50% {
        transform: translate3d(0, 40px, -20px) rotateX(0) rotateY(60deg);
    }

    75% {
        transform: translate3d(-20px, 20px, 20px) rotateX(-30deg) rotateY(90deg);
    }
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

.header {
    position: fixed;
    left: 0;
    top: 0;
    padding: 2rem 10%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.sticky {
    border-bottom: 2px solid rgba(255, 255, 255, .1);
    background: #0f0a0a;
}

.logo {
    font-size: 2.9rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transform: translateX(-100%);
    opacity: 0;
    animation: RightSlide 1s ease forwards;
}

@keyframes RightSlide {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0%);
        opacity: 1;
    }
}

#menu {
    color: #fff;
    font-size: 2.5rem;
    display: none;
}

.navbar a {
    display: inline-block;
    font-size: 1.7rem;
    text-decoration: none;
    margin: 0 2.5rem;
    font-weight: 500;
    letter-spacing: .02;
    transition: .5s ease;
    transform: translateY(-100px);
    opacity: 0;
    animation: TopSlide 1s ease forwards;
    animation-delay: calc(.2s * var(--vlr));
}

@keyframes TopSlide {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

.navbar a:hover,
.navbar a.active {
    color: #666699;
}

section {
    padding: 10rem 9% 2rem;
    min-height: 100vh;
}

.about,
.education,
.contact,
.skills {
    overflow: hidden;
}

.home {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-content {
    max-width: 70rem;
}

.text-content h1 {
    font-size: 5rem;
    color: #fff;
    text-transform: capitalize;
    letter-spacing: .05rem;
    font-weight: 600;
    transform: translateY(-100px);
    opacity: 0;
    animation: RightSlide 1s ease forwards;
    animation-delay: 1s;
}

.text-animation {
    position: relative;
    width: 32.8rem;
}

.text-animation h2 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #bcbcd264;
    -webkit-text-stroke: .7px #bcbcd251;
    background: linear-gradient(#bcbcd2, #5b5b65);
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-position: -33rem 0;
    transform: translateY(-100px);
    opacity: 0;
    animation: textSlide 6s linear infinite,
        TopSlide 1s ease forwards;
    animation-delay: 2s, 1.2s;
}

@keyframes textSlide {

    0%,
    10%,
    100% {
        background-position: -33rem 0;
    }

    65%,
    85% {
        background-position: 0 0;
    }
}

.text-animation::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    border-right: 2px solid #3e3e3e;
    transform: translateY(-100px);
    opacity: 0;
    animation: CursorSlide 6s linear infinite,
        TopSlide 1s ease forwards;
    animation-delay: 2s, 1.2s;
}

@keyframes CursorSlide {

    0%,
    10%,
    100% {
        width: 0;
    }

    65%,
    78%,
    85% {
        opacity: 1;
        width: 100%;
    }

    75%,
    81% {
        opacity: 0;
    }

}

.text-content p {
    font-size: 1.7rem;
    margin: 1rem 0;
    transform: translateX(100px);
    opacity: 0;
    animation: leftSlide 1s ease forwards;
    animation-delay: 1.4s;
}

@keyframes leftSlide {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

.btn-section {
    width: 32.5rem;
    height: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    position: relative;
}

.btn-section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    background: #0f0a0a;
    height: 100%;
    width: 100%;
    z-index: 2;
    animation: Slide 1s ease forwards;
    animation-delay: 1.6s;
}

@keyframes Slide {
    0% {
        width: 100%;
    }

    100% {
        width: 0;
    }
}

.btn {
    height: 100%;
    width: 15rem;
    color: #fff;
    background: rgb(6, 6, 78);
    border: .2rem solid rgba(255, 255, 255, 0.646);
    backdrop-filter: blur(5rem);
    border-radius: .8rem;
    font-size: 1.5rem;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: "";
    position: absolute;
    left: 0;
    top: -100%;
    height: 300%;
    width: 100%;
    background: linear-gradient(rgb(6, 6, 78), black, rgb(6, 6, 78), black);
    z-index: -1;
    transition: .5s ease;
}

.btn:hover::before {
    top: 0;
}

.social-media {
    margin: 2rem 0;
}

.social-media i {
    display: inline-block;
    font-size: 2.5rem;
    background: rgba(6, 6, 78, 0.1);
    border: .2rem solid rgba(255, 255, 255, 0.646);
    padding: .8rem;
    margin: 0 .5rem;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: Bottom 1s ease forwards;
    animation-delay: calc(.2s * var(--vlr));
    transform: translateY(100px);
    opacity: 0;

}

@keyframes Bottom {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

.social-media i::after {
    content: "";
    position: absolute;
    left: 0;
    top: -100%;
    height: 300%;
    width: 100%;
    background: linear-gradient(rgb(6, 6, 78), black, rgb(6, 6, 78), black);
    z-index: -1;
    transition: .5s ease;
}

i:hover::after {
    top: 0;
}

.home img {
    width: 30vw;
    background: rgba(255, 255, 255, .1);
    border: .2rem solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    filter: drop-shadow(0 0 8rem #3e3e3e);
    animation: Scale 1s ease forwards;
    scale: 0;
    animation-delay: 2s;
}

@keyframes Scale {
    0% {
        scale: 0;
    }

    100% {
        scale: 1;
    }
}

/* about section */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-bottom: 6rem;
    gap: 2rem;
}

.btn-section {
    width: 32.5rem;
    height: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    position: relative;
}

.btn-section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    background: #0f0a0a;
    height: 100%;
    width: 100%;
    z-index: 2;
    animation: Slide 1s ease forwards;
    animation-delay: 1.6s;
}

@keyframes Slide {
    0% {
        width: 100%;
    }

    100% {
        width: 0;
    }
}

/* Button base styles */
.read-more-btn {
    background: transparent;
    color: #3a86ff;
    /* Text color */
    border: none;
    padding: 1rem 2rem;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.5rem auto 0;
}

/* Arrow icon specific styles */
.arrow-icon {
    color: #3a86ff;
    /* Explicitly set the icon color */
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* Expanded state */
.bio-wrapper.expanded .arrow-icon {
    transform: rotate(180deg);
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .read-more-btn {
        padding: 1.2rem 2.5rem;
        font-size: 1.8rem;
    }

    .arrow-icon {
        font-size: 1.4rem;
    }
}

.title {
    font-size: 5rem;
    margin-bottom: 3rem;
    font-weight: 600;
    text-align: center;
    transform: translateY(-100px);
    opacity: 0;
}

section.start-animation .title {
    animation: top 1s ease forwards;
}

@keyframes top {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

.title span {
    color: #bcbcd2;
}

.about img {
    width: 30rem;
    background: rgba(255, 255, 255, .1);
    border: .2rem solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    filter: drop-shadow(0 0 8rem #3e3e3e);
    scale: 0;
}

section.start-animation .aboutImg {
    animation: scaleout 1s ease forwards;
}

@keyframes scaleout {
    0% {
        scale: 0;
    }

    100% {
        scale: 1;
    }
}

.text-content2 {
    text-align: center;
}

.text-content2 h2 {
    font-size: 2.6rem;
    transform: translatex(-100px);
    opacity: 0;
}

section.start-animation .text-content2 h2 {
    animation: Right 1s ease forwards;
}

@keyframes Right {
    0% {
        transform: translatex(-100px);
        opacity: 0;
    }

    100% {
        transform: translatex(0px);
        opacity: 1;
    }
}

.text-content2 p {
    font-size: 1.7rem;
    margin: 2rem 0 3rem;
    transform: translatex(100px);
    opacity: 0;
}

section.start-animation .text-content2 p {
    animation: Left 1s ease forwards;
}

@keyframes Left {
    0% {
        transform: translatex(100px);
        opacity: 0;
    }

    100% {
        transform: translatex(0px);
        opacity: 1;
    }
}

.text-content2 .btn {
    padding: .9rem .5rem;
    transform: translateY(100px);
    opacity: 0;
}

section.start-animation .text-content2 .btn {
    animation: Bottoms 1s ease forwards;
}

@keyframes Bottoms {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translatey(0px);
        opacity: 1;
    }
}

/* Bio Content */
.bio-wrapper {
    text-align: center;
}

.bio-title {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.bio-subtitle {
    font-size: 1.1rem;
    color: #bcbcd2;
    margin-bottom: 1.5rem;
}

.bio-text {
    text-align: left;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 1.05rem;
}

.short-bio {
    margin-bottom: 1.5rem;
}

.full-bio {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.highlight-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.8rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #3a86ff;
}

.highlight-box h4 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center the heading */
    gap: 0.5rem;
}

.expertise-list {
    list-style: none;
    padding-left: 0;
    margin: 0 auto;
    /* Center the list */
    display: inline-block;
    /* Make list only as wide as content */
    text-align: center;
    /* Left-align list items */
}

.expertise-list li {
    margin-bottom: 0.8rem;
    display: flex;
    text-align: center;
    gap: 0.8rem;
    font-size: 1.3rem;
    color: rgb(255, 255, 255);
}

.read-more-btn:hover {
    background: rgba(58, 134, 255, 0.1);
    transform: translateY(-2px);
}

/* Expanded State */
.bio-wrapper.expanded .full-bio {
    max-height: 1000px;
    margin-top: 1.5rem;
}

.bio-wrapper.expanded .read-more-btn i {
    transform: rotate(180deg);
}

.bio-wrapper.expanded .btn-text {
    content: "Read Less";
}

/* Animations */
.profile-img,
.bio-wrapper>* {
    opacity: 0;
    transition: all 0.6s ease;
}

.profile-img {
    transform: translateX(-30px);
}

.bio-wrapper>* {
    transform: translateY(20px);
}

section.start-animation .profile-img,
section.start-animation .bio-wrapper>* {
    opacity: 1;
    transform: translate(0);
}

section.start-animation .bio-title {
    transition-delay: 0.2s;
}

section.start-animation .bio-subtitle {
    transition-delay: 0.3s;
}

section.start-animation .bio-text {
    transition-delay: 0.4s;
}

section.start-animation .read-more-btn {
    transition-delay: 0.5s;
}

/* education section */
.row {
    display: flex;
    column-gap: 4rem;
    flex-wrap: wrap;
}

.column {
    flex: 1 1 30rem;
}

.column:nth-child(1) {
    opacity: 0;
    transform: translateX(-100px);
}

section.start-animation .column:nth-child(1) {
    animation: Right 1s ease forwards;
    animation-delay: 1.2s;
}

.column:nth-child(2) {
    opacity: 0;
    transform: translateX(100px);
}

section.start-animation .column:nth-child(2) {
    animation: Left 1s ease forwards;
    animation-delay: 1.2s;
}

.column h2 {
    font-size: 2.5rem;
    margin: 2rem 0 1rem 1.96rem;
    transform: translateY(-100px);
    opacity: 0;
}

section.start-animation .column h2 {
    animation: top 1s ease forwards;
    animation-delay: 1.2s;
}

.box {
    border-left: .2rem solid #bcbcd2;
}

.education-content {
    padding-left: 1.9rem;
}

.education-content .content {
    padding: 1.5rem;
    border: .2rem solid #3e3e3e;
    background: rgba(255, 255, 255, .1);
    border-radius: .5rem;
    margin-bottom: 2rem;
    position: relative;
}

.content::before {
    content: "";
    position: absolute;
    left: -2.8rem;
    top: -1.5rem;
    height: 1.4rem;
    width: 1.4rem;
    border-radius: 50%;
    background: #3e3e3e;
}

.content .year {
    font-size: 1.5rem;
    color: #bcbcd2;
}

.content .year i {
    color: #bcbcd2;
    font-size: 1.5rem;
    margin-left: .5rem;
}

.content h3 {
    font-size: 1.7rem;
    letter-spacing: .05rem;
    margin: .5rem 0;
}

.content p {
    font-size: 1.5rem;
}


/* Skills Section */
.skills {
    padding: 80px 50px;
    background-color: rgba(255, 255, 255, 0);
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skills-container-title {
    font-size: 42px;
    margin-bottom: 40px;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transform: translateX(-50px);
    width: 100%;
}

.skills-container-title span {
    color: #bcbcd2;
    font-weight: 700;
}

.skill-category-title {
    font-size: 28px;
    color: #bcbcd2;
    margin: 40px 0 20px;
    width: 100%;
    text-align: left;
    padding-left: 20px;
    position: relative;
}

.skill-category-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #bcbcd2, transparent);
}

.skills-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
}

.skills-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scroll 30s linear infinite;
    padding: 20px 0;
}

.skill-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.skill-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.skill-item:hover .skill-icon {
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Title Animation */
section.start-animation .skills-container-title,
section.start-animation .skill-category-title {
    animation: slideInRight 0.8s ease forwards;
}

section.start-animation .skill-category-title:nth-child(2) {
    animation-delay: 0.2s;
}

section.start-animation .skill-category-title:nth-child(4) {
    animation-delay: 0.3s;
}

section.start-animation .skill-category-title:nth-child(6) {
    animation-delay: 0.4s;
}

section.start-animation .skill-category-title:nth-child(8) {
    animation-delay: 0.5s;
}

section.start-animation .skill-category-title:nth-child(10) {
    animation-delay: 0.6s;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .skills {
        padding: 60px 20px;
    }

    .skills-track {
        gap: 25px;
    }

    .skill-item {
        width: 80px;
        height: 80px;
    }

    .skill-icon {
        width: 50px;
        height: 50px;
    }

    .skill-category-title {
        font-size: 24px;
        margin: 30px 0 15px;
    }
}

@media (max-width: 480px) {
    .skills-track {
        gap: 15px;
        animation-duration: 20s;
    }

    .skill-item {
        width: 70px;
        height: 70px;
        border-radius: 12px;
    }

    .skill-icon {
        width: 40px;
        height: 40px;
    }

    .skills-container-title {
        font-size: 36px;
    }

    .skill-category-title {
        font-size: 20px;
    }
}

.skill-text {
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
    padding: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skill-text {
        font-size: 14px;
    }

    .skill-item {
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .skill-text {
        font-size: 12px;
    }

    .skill-item {
        min-width: 80px;
        height: 60px;
    }
}

/* Projects Section */
.projects {
    padding: 8rem 5%;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
}

.section-header .title {
    font-size: 4.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-header .title span {
    color: #3a86ff;
    position: relative;
}

.section-header .title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3a86ff, transparent);
    border-radius: 2px;
}

.section-header .section-subtitle {
    font-size: 1.8rem;
    color: #bcbcd2;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(58, 134, 255, 0.3);
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(20, 30, 48, 0.1), rgba(36, 59, 85, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(58, 134, 255, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-tech-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.project-tech-tags span {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}

.project-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.project-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-link {
    color: #bcbcd2;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #3a86ff;
    transform: translateY(-2px);
}

.project-description {
    font-size: 1.5rem;
    color: #bcbcd2;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.project-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
}

.stat i {
    font-size: 1.4rem;
    color: #3a86ff;
}

.project-footer {
    margin-top: auto;
}

.project-details-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(58, 134, 255, 0.1);
    color: #3a86ff;
    border: 1px solid rgba(58, 134, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.project-details-btn:hover {
    background: rgba(58, 134, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.2);
}

.view-more {
    text-align: center;
    margin-top: 5rem;
}

.github-btn {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: auto;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.6rem;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.github-btn:hover {
    background: rgba(58, 134, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(58, 134, 255, 0.2);
}

/* Animations */
.projects.start-animation .project-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.projects.start-animation .project-card:nth-child(1) {
    transition-delay: 0.2s;
}

.projects.start-animation .project-card:nth-child(2) {
    transition-delay: 0.4s;
}

.projects.start-animation .project-card:nth-child(3) {
    transition-delay: 0.6s;
}

.projects.start-animation .project-card {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .section-header .title {
        font-size: 3.5rem;
    }

    .project-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .projects {
        padding: 6rem 3%;
    }

    .section-header .title {
        font-size: 3rem;
    }

    .section-header .section-subtitle {
        font-size: 1.5rem;
    }

    .project-image {
        height: 180px;
    }
}

/* Resume Section */
#resume {
    padding: 80px 50px;
    background-color: rgba(255, 255, 255, 0);
    backdrop-filter: blur(5px);
    margin-top: 10px;
}

.resume-container {
    max-width: 1200px;
    margin: 0 auto;
}

.resume-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.resume-info {
    flex: 1;
    text-align: left;
    animation: fadeInLeft 1s ease forwards;
}

.title-resume {
    font-size: 42px;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: left;
    width: 100%;
    animation: fadeInLeft 1s ease forwards;
}

.title-resume span {
    color: #bcbcd2;
}

.resume-description {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.resume-preview {
    flex: 1;
    position: relative;
    animation: fadeInRight 1s ease forwards;
}

.resume-preview img {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.resume-preview:hover img {
    transform: translateY(-5px);
}

.resume-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    pointer-events: none;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: rgb(6, 6, 78), black, rgb(6, 6, 78), black;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgb(56, 75, 104);
}

.download-btn:hover {
    background-color: #34495e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.3);
}

.download-btn svg {
    transition: transform 0.3s ease;
}

.download-btn:hover svg {
    transform: translateY(3px);
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .resume-content {
        flex-direction: column;
        gap: 30px;
    }

    .resume-info {
        text-align: center;
    }

    .resume-preview {
        width: 100%;
    }
}


/* contact section */
section form {
    max-width: 70rem;
    text-align: center;
    margin: 1rem auto;
    margin-bottom: 3rem;
}

.input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

input:nth-child(1) {
    opacity: 0;
    transform: translateX(-100px);
}

section.start-animation input:nth-child(1) {
    animation: Right 1s ease forwards;
    animation-delay: 1.2s;
}

input:nth-child(2) {
    opacity: 0;
    transform: translateX(100px);
}

section.start-animation input:nth-child(2) {
    animation: Left 1s ease forwards;
    animation-delay: 1.2s;
}

input,
textarea {
    width: 100%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, .1);
    border: .2rem solid rgba(255, 255, 255, .3);
    outline: none;
    backdrop-filter: blur(10px);
    filter: drop-shadow(0 0 100px #3e3e3e);
    border-radius: .8rem;
    gap: 2.5rem;
    margin: .7rem 0;
    transition: .3s ease;
    opacity: 0;
    transform: translateY(100px);
}

section.start-animation textarea {
    animation: Bottom 1s ease forwards;
    animation-delay: 1.2s;
}

input::placeholder {
    font-size: 1.5rem;
    letter-spacing: .02rem;
}

.input-box input {
    width: 49%;
}

input:focus,
input:valid {
    border: .2rem solid #3e3e3e;
}

textarea:focus,
textarea:valid {
    border: .2rem solid #3e3e3e;
}

textarea {
    resize: none;
}

.contact .btn {
    margin-top: 2rem;
    cursor: pointer;
    filter: none;
    border: .2rem solid rgba(255, 255, 255, .3);
}

section.start-animation .btn {
    animation: Bottom 1s ease forwards;
    animation-delay: 1.4s;
}

.contact .btn:hover {
    background: #3e3e3e;
    box-shadow: 0 0 .3rem #3e3e3e,
        0 0 .7rem #3e3e3e;
}

/* footer */

footer {
    background: #080707;
    padding: 2rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

footer p {
    font-size: 1.6rem;
}

footer i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: #2b2a2a;
    color: #0f0a0a;
    border-radius: 50%;
    font-size: 2.4rem;
}

/* RESPONSIVE */
@media(max-width:1200px) {
    html {
        font-size: 55;
    }
}

@media(max-width:991px) {
    .header {
        padding: 2rem 9%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .contact {
        min-height: auto;
    }

    footer {
        padding: 2rem 3%;
    }
}

@media(max-width:768px) {
    #menu {
        display: block;
    }

    .navbar {
        position: absolute;
        left: 0;
        top: 100%;
        width: 100%;
        padding: 1rem 3%;
        background: #0a0a0f;
        border-top: 1px solid rgba(255, 255, 255, .1);
        border-bottom: .2rem solid rgba(255, 255, 255, .1);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        margin: 3rem 0;
        font-size: 2rem;
    }

    .home {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 12rem;
    }

    .home .text-content {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .home .text-content h1 {
        font-size: 4rem;
    }

    .home img {
        width: 70vw;
    }

    .home .text-content p {
        text-align: center;
        margin: 1.5rem auto;
        max-width: 90%;
    }

    .about {
        flex-direction: column;
    }

    .about img {
        width: 20rem;
        height: 20rem;
    }

    .title-resume span {
        color: #bcbcd2;
    }

    /* Add this mobile media query */
    @media (max-width: 768px) {
        .title-resume span {
            color: #bcbcd2;
            /* Same color as desktop */
        }

        /* While we're at it, let's ensure proper mobile centering */
        .title-resume {
            text-align: center;
        }
    }
}

@media(max-width:450px) {
    html {
        font-size: 50%;
    }

    .input-box input {
        width: 100%;
    }
}

/* About Section - Mobile Styles */
@media (max-width: 768px) {
    .about {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 8rem 5%;
    }

    .about .title {
        text-align: center;
        margin-bottom: 3rem;
    }

    .aboutImg {
        width: 25rem;
        height: 25rem;
        margin-bottom: 3rem;
    }

    .text-content2 {
        text-align: center;
        max-width: 90%;
    }

    .text-content2 h2 {
        text-align: center;
        margin: 0 auto 1.5rem;
    }

    .bio-wrapper {
        text-align: center;
    }

    .bio-subtitle {
        text-align: center;
        margin: 0 auto 2rem;
    }

    .bio-text {
        text-align: center;
    }

    .expertise-list {
        text-align: left;
        display: inline-block;
    }

    .read-more-btn {
        margin: 2rem auto 0;
    }

    /* Center-align all highlight boxes */
    .highlight-box {
        text-align: center;
    }

    /* Center-align list items while keeping bullets aligned */
    .expertise-list {
        text-align: left;
        padding-left: 2rem;
    }

    .expertise-list li {
        justify-content: flex-start;
        text-align: left;
    }
}

/* Project Modal - Mobile First Approach */
.project-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

.modal-content {
    background: radial-gradient(rgb(6, 6, 78), black);
    margin: 0 auto;
    padding: 20px;
    width: 95%;
    max-width: 100%;
    min-height: 100vh;
    border: none;
    animation: modalFadeIn 0.3s ease;
}

/* Header styles remain the same */

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Image Carousel - Mobile Optimized */
.modal-image-carousel {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    height: auto;
    touch-action: pan-y;
    /* Enable touch scrolling */
}

.carousel-container img {
    min-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    pointer-events: none;
    /* Prevent image drag on mobile */
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dot.active {
    background-color: #3a86ff;
}

/* Description Content */
.modal-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
}

.modal-description h3 {
    font-size: 1.4rem;
    margin: 20px 0 10px;
    color: #fff;
}

.project-features li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
    font-size: 0.95rem;
}

/* Project Links - Stacked on mobile */
.project-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}

.live-demo-btn,
.source-code-btn {
    text-align: center;
    padding: 12px;
    font-size: 1rem;
}

/* Tablet and Desktop Styles */
@media (min-width: 768px) {
    .modal-content {
        margin: 5% auto;
        padding: 30px;
        width: 85%;
        max-width: 800px;
        min-height: auto;
        border-radius: 10px;
    }

    .modal-body {
        flex-direction: row;
    }

    .modal-image-carousel {
        flex: 1;
        min-width: 300px;
    }

    .modal-description {
        flex: 1;
        font-size: 1.05rem;
    }

    .project-links {
        flex-direction: row;
        gap: 15px;
    }

    .live-demo-btn,
    .source-code-btn {
        padding: 12px 25px;
        font-size: 1.1rem;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .modal-content {
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 2rem;
        margin: 2rem auto;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-image-carousel {
        min-width: 100%;
        margin-bottom: 2rem;
    }

    .project-links {
        flex-direction: column;
    }

    .live-demo-btn,
    .source-code-btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Add these to improve touch targets */
.btn,
.project-details-btn,
.navbar a {
    min-height: 4.4rem;
    /* Minimum recommended touch target size */
}

input,
textarea,
select,
button {
    font-size: 1.6rem;
    /* Prevent iOS zoom on focus */
}

/* Disable hover effects on touch devices */
@media (hover: none) {

    .btn:hover::before,
    .social-media i:hover::after {
        top: -100%;
    }

    .project-card:hover {
        transform: none;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }
}
