body{
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text, lightgray);
    background-color: var(--bg, #0b1020);
}

/* Theme variables */
:root{
    --bg: #0b1020;
    --surface: #0f172a;
    --surface-2: #111a2e;
    --primary: #72a1de;
    --primary-rgb: 114, 161, 222;
    --accent: #a855f7;
    --accent-rgb: 168, 85, 247;
    --text: #e5eaf5;
    --muted: #a9b4c6;
    color-scheme: dark;
}

/* Light theme overrides */

html{
    scroll-behavior: smooth;
}

/* Prevent horizontal overflow issues */
html, body{
    max-width: 100vw;
    overflow-x: hidden;
}

/* Global responsive defaults */
*, *::before, *::after {
    box-sizing: border-box;
}

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

/* Fluid typography */
html {
    font-size: clamp(14px, 2.5vw, 18px);
}


/* Focus styles */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible{
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Hide native scrollbar completely */
::-webkit-scrollbar {
    display: none;
    width: 0 !important;
    height: 0 !important;
}

/* Hide scrollbar in other browsers */
body {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Project section styles */
.project-card {
    display: flex;
    width: 100%;
    height: 40%;
    align-items: center;
    gap: 10%;
    justify-content: center;
    position: relative;
    overflow: visible;
    min-height: 250px;
}

.project-vidbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;
    mix-blend-mode: exclusion;
    position: relative;
    cursor: pointer;
    transition: 0.5s;
    min-width: 400px;
    z-index: 1;
}

.project-vidbox video {
    object-fit: cover;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 0 10px lightgray;
    border-radius: 20px;
    transition: 0.5s;
    min-height: 250px;
    height: auto;
}

.project-card video:hover {
    box-shadow: 0 0 25px rgb(255, 255, 255);
}

.project-info {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    width: 35%;
    padding-left: 5%;
    position: relative;
    z-index: 1;
}

.project-info h1 {
    width: 90%;
    font-size: 25px;
    font-weight: bold;
    text-wrap: wrap;
    margin-top: 0;
    margin-bottom: 10px;
    max-width: 450px;
}

.project-info p {
    width: 90%;
    max-width: 400px;
    min-width: 300px;
    margin-bottom: 50px;
    margin-top: 0;
}

.project-info button {
    color: white;
    padding: 15px 35px;
    border-radius: 10px;
    border: 1px solid rgba(var(--primary-rgb), 0.5);
    background-color: #2200493d;
    box-shadow: 0 0 5px rgba(var(--primary-rgb), 0.5);
    cursor: pointer;
    transition: 0.3s;
}

.project-info button:hover {
    opacity: 0.8;
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.5);
}

/* Add scroll-responsive effects */
body.scrolling::-webkit-scrollbar-thumb {
    animation: 
        rainbowGlow 1.5s ease-in-out infinite, 
        colorShift 3s linear infinite,
        thumbPulse 1s ease-in-out infinite;
}


.container{
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px; /* Consistent spacing between all sections */
    padding-top: 70px; /* keep content visible below header */
    background-color: #001f7c38;
}


.back-vid{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure video covers entire area */
    z-index: -1;
    mix-blend-mode:overlay;
    min-width: 100%;
    min-height: 100%;
}


header{
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.121);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.64);
    z-index: 999;
}

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

.left img{
    width: 40px;
    margin: 0 15px;
}


header ul{
    display: flex;
    justify-content: space-between;
    width: 35%;
    padding: 15px 15px;
    border-radius: 50px;
    background-color: rgba(0, 0, 69, 0.326);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px #72a1de63;
}

header ul li{
    list-style: none;
}

header ul a{
    text-decoration: none;
    color: white;
    font-weight: 700;
    transition: 0.3s;
    margin: 0 10px;
}

header ul a:hover{
    text-shadow: 0 0 15px black;
}

.box-icons{
    display: flex;
    gap: 40px;
}

.box-icons p{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.5s;
}

.box-icons p:hover{
    background-color: var(--primary);
    color: black;
    box-shadow: 0 0 15px var(--primary);
}

.blackhole-box{
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: -1;
    mix-blend-mode: lighten;
  }
  
.blackhole-box video{
    width: 100%;
    margin-top: -23.5%;
}

.hero{
    position: relative;
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    flex-wrap: wrap;
}

.hero-info{
    position: relative;
    max-width: 600px;
    z-index: 1;
    flex: 1;
    min-width: 300px;
}

.hero-info .hero-info-title{
    color: var(--primary);
    padding: 8px 5px;
    border-radius: 50px;
    border: 1px solid rgba(var(--primary-rgb), 0.58);
    width: 240px;
    background-color: #2200493d;
    box-shadow: 0 0 5px rgba(var(--primary-rgb), 0.52);
}

.hero-info h1{
    font-size: 60px;
    max-width: 600px;
    font-weight: 700;
    line-height: 70px;
    margin-top: 40px;
    margin-bottom: 30px;
}

.hero-info p{
    max-width: 550px;
    line-height: 25px;
    margin-bottom: 40px;
    font-size: 20px;
}

.hero-info button{
    color: white;
    padding: 15px 35px;
    border-radius: 10px;
    border: 1px solid rgba(var(--primary-rgb), 0.5);
    background-color: #2200493d;
    box-shadow: 0 0 5px rgba(var(--primary-rgb), 0.5);
    cursor: pointer;
    transition: 0.3s;
}

.hero-info button:hover{
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.5);
}

/* Gradient Animation */
.gradient{
    background: linear-gradient(to right,#00aaa7, #7e42a7, #6600c5, #6070fd,#2a46ff, #0099ff, #008ead);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
}
@keyframes animate-gradient {
    to{
        background-position: 200%;
    }
}


.skills-video-box{
    position: relative;
    right: auto;
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.skills-video{
    max-height: 600px;
    width: 100%;
    mix-blend-mode:lighten;
    object-fit: cover;
}


.scroll-down {
    height: 50px;
    width: 30px;
    border: 2px solid lightgray;
    position: absolute;
    left: 49%;
    bottom: 8%;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.626);
  }
  .scroll-down::before,
  .scroll-down::after {
    content: "";
    position: absolute;
    top: 20%;
    left: 50%;
    height: 10px;
    width: 10px;
    transform: translate(-50%, -100%) rotate(45deg);
    border: 2px solid lightgray;
    border-top: transparent;
    border-left: transparent;
    animation: scroll-down 2s ease-in-out infinite;
  }
  .scroll-down::before {
    top: 30%;
    animation-delay: 0.5s;
    /* animation: scroll-down 1s ease-in-out infinite; */
  }
  
  @keyframes scroll-down {
    0% {
      /* top:20%; */
      opacity: 0;
    }
    30% {
      opacity: 1;
    }
    60% {
      opacity: 1;
    }
    100% {
      top: 90%;
      opacity: 0;
    }
  }




.info-section{
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 80%;
    /* Removed margin-top to use container gap for consistent spacing */
}

.section-title{
    font-size: 40px;
    font-weight: 700;
}

/* About section */
.about-section{
    width: 80%;
    /* Removed margin-top to use container gap for consistent spacing */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-content{
    max-width: 900px;
    width: 100%;
    margin-top: 20px;
    padding: 30px;
    background: rgba(114, 161, 222, 0.08);
    border: 1px solid rgba(114, 161, 222, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about-tagline{
    font-size: 20px;
    color: #e2e2e2;
    margin: 0 0 15px 0;
}

.about-highlights{
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

.about-highlights li{
    color: #cfcfcf;
    font-size: 14px;
    text-align: left;
}

.about-highlights i{
    color: #72a1de;
    margin-right: 8px;
}

@media screen and (max-width: 700px){
    .about-highlights{
        grid-template-columns: 1fr;
    }
}

.info-cards{
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 20px;
    width: 100%;
    height: 100%;
    margin-top: 30px;
}

.card{
    display: flex;
    align-items:flex-start;
    justify-content: center;
    position: relative;
    width: auto;
    height: 40vh;
    overflow: hidden;
    border: 1px solid gray;
    background-color: #080020b7;
    border-radius: 20px;
    transition: 0.5s;
}

.card h1{
    position: absolute;
    margin: 0;
    bottom: 30%;
    left: 5%;
    font-size: 20px;
    z-index: 2;
    color: lightgray;
    max-width: 90%;
    line-height: 1.1;
}

.card p{
    position: absolute;
    bottom: 3%;
    left: 5%;
    z-index: 2;
    max-width: 85%;
    color: gray;
    font-size: 12px;
    line-height: 16px;
}

.card img{
    width: 60%;
    height: 35%;
    object-fit: cover;
    margin-top: 5%;
}

.card video{
    margin-top: 10%;
    width: 70%;
    height: 50%;
    object-fit: cover;
    mix-blend-mode: lighten;
}

.card button{
    position: absolute;
    bottom: 5%;
    left: 5%;
    padding: 10px 25px;
    border: 1px solid gray;
    background-color: #0f1217;
    color: gray;
    border-radius: 20px;
    box-shadow: 0 0 5px lightgray;
    cursor: pointer;
    transition: 0.3s;
}

.card button:hover{
    box-shadow: 0 0 15px lightgray;
    opacity: 0.7;
}

.card:hover{
    box-shadow: 0 0 15px rgb(211, 211, 211);
}

.card:nth-child(3){
    grid-row: span 2;
    height: 83vh;
}

.card:nth-child(3) p{
    bottom: 12%;
}

.card:nth-child(3) h1{
    bottom: 21%;
}

.card:nth-child(4){
    grid-column: span 2;
}

.card:nth-child(4) p{
    max-width: 650px;
}

.card:nth-child(4) h1{
    bottom: 35%;
}



.my-project{
    display: flex;
    flex-direction: column;
    gap: 10%; /* Reverted gap to original value */
    align-items: center;
    position: relative;
    width: 80%;
    height: auto; /* Changed from 100vh to auto to prevent overflow */
    min-height: 100vh; /* Maintain minimum height but allow to grow */
    overflow: visible; /* Ensure content is visible */
    margin-bottom: 20px; /* Added specific bottom margin to control spacing */
}

/* Hide first project (Gaming Website) as requested */


.project-card {
    display: flex;
    width: 100%;
    height: 40%;
    align-items: center;
    gap: 10%;
    justify-content: center;
    position: relative; /* Add positioning context */
    overflow: visible; /* Allow visibility of elements during animation */
    min-height: 250px; /* Ensure minimum height to accommodate content */
}

.project-vidbox{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%; /* Increased width to make video wider */
    mix-blend-mode:exclusion;
    position: relative;
    cursor: pointer;
    transition: 0.5s;
    min-width: 400px; /* Increased minimum width */
    z-index: 1; /* Ensure video is above other elements */
}

.project-vidbox video{
    object-fit: cover; /* Changed back to cover */
    width: 100%;
    max-width: 100%; /* Ensure video doesn't exceed container */
    box-shadow: 0 0 10px lightgray;
    border-radius: 20px;
    transition: 0.5s;
    min-height: 250px; /* Decreased minimum height */
    height: auto; /* Allow height to adjust based on video aspect ratio */
}

.project-card video:hover{
    box-shadow: 0 0 25px rgb(255, 255, 255);
}

.project-info{
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    width: 35%; /* Decreased width to make room for increased video width */
    padding-left: 5%; /* Reduced padding to better balance the layout */
    position: relative; /* Add positioning context */
    z-index: 1; /* Ensure it stays in proper stacking order */
}

.project-info h1{
    width: 90%;
    font-size: 25px;
    font-weight: bold;
    text-wrap: wrap;
    margin-top: 0;
    margin-bottom: 10px;
    max-width: 450px;
}

.project-info p{
    width: 90%;
    max-width: 400px;
    min-width: 300px;
    margin-bottom: 50px;
    margin-top: 0;
}

.project-info button{
    color: white;
    padding: 15px 35px;
    border-radius: 10px;
    border: 1px solid rgba(var(--primary-rgb), 0.5);
    background-color: #2200493d;
    box-shadow: 0 0 5px rgba(var(--primary-rgb), 0.5);
    cursor: pointer;
    transition: 0.3s;
}

.project-info button:hover{
    opacity: 0.8;
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.5);
}

/* Project button styles */
.project-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #444;
    border-color: #666;
}

/* Accessible disabled state */
.project-btn[aria-disabled="true"]{
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #444;
    border-color: #666;
}

.project-btn:disabled:hover,
.project-btn[aria-disabled="true"]:hover {
    box-shadow: none;
    opacity: 0.6;
}

.project-vidbox .hover-sign{
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30%;
    height: 100px;
}

.hover-sign::before,
.hover-sign::after {
    content: none; /* Remove the emoji */
    display: none; /* Hide the hover sign */
}

.hover-sign.active{
    display: none;
}

@keyframes hover-animation {
  0% {
    /* top:20%; */
    box-shadow: 0 0 5px rgb(255, 255, 255);
    transform: translate(100%, 50%) rotate(30deg);
  }

  100% {
    box-shadow: 0 0 5px rgb(255, 255, 255);
    transform: translateX(80%, 80%) rotate(20deg);
  }
}


.thumb{
    border-radius: 8px;
    width: 520px;
    height: 200px;
}

/* Skills section */
.skills-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    padding: 0 20px;
}

.skills-box{
    width: 100%;
    height: 90vh;
    position: relative;
    display: flex;
    align-items: start;
    justify-content: center;
    mix-blend-mode:lighten;
    opacity: 0.7;
}

.skills-image{
    width: 70%;
    mix-blend-mode:difference;
}

.Designer{
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: start;
    top: 25%;
    left: 5%;
    max-width: 300px;
}

.Designer h1{
    font-size: 50px;
    display: flex;
    align-items: center;
}

.Designer p{
    line-height: 23px;
}


.coder{
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: start;
    top: 25%;
    right: 5%;
    max-width: 300px;
}

.coder h1{
    font-size: 50px;
    display: flex;
    align-items: center;
}

.coder p{
    line-height: 23px;
}

/* Mobile styles */
@media screen and (max-width: 700px) {
    .skills-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        height: auto;
        padding: 40px 0;
        gap: 30px;
        margin-top: 0; /* Ensure no extra top margin */
    }
    
    .skills-image {
        width: 90%;
        max-width: 300px;
        position: relative;
        order: 2; /* Place image in the middle */
    }
    
    .Designer, .coder {
        position: static;
        max-width: 90%;
        text-align: center;
        align-items: center;
        margin: 0 auto;
        width: 100%; /* Ensure full width to prevent any positioning issues */
    }
    
    .Designer {
        order: 1; /* First section */
    }
    
    .coder {
        order: 3; /* Last section */
    }
    
    .Designer h1, .coder h1 {
        font-size: 28px;
        justify-content: center;
    }
    
    .Designer p, .coder p {
        text-align: center;
        font-size: 14px;
    }
}

/* Tablet styles */
@media screen and (min-width: 701px) and (max-width: 1024px) {
    .skills-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        height: auto;
        padding: 40px 0;
        gap: 30px;
    }
    
    .skills-image {
        width: 70%;
        max-width: 400px;
        position: relative;
        order: 2;
    }
    
    .Designer, .coder {
        position: static;
        max-width: 600px;
        text-align: center;
        align-items: center;
        margin: 0 auto;
    }
    
    .Designer {
        order: 1;
    }
    
    .coder {
        order: 3;
    }
    
    .Designer h1, .coder h1 {
        justify-content: center;
        font-size: 32px;
    }
    
    .Designer p, .coder p {
        text-align: center;
    }
}



.coder-text{

    font-size: 50px;
}

/* SLIDER  */

.slider{
    position: absolute;
    bottom: 5%;
    right: 20%;
    width: 60%;
    height: var(--height);
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 10% 90%,
        transparent
    );
    mix-blend-mode:difference;
    opacity: 0.7;
}
.slider .list{
    display: flex;
    width: 100%;
    min-width: calc(var(--width) * var(--quantity));
    position: relative;
}
.slider .list .item{
    width: var(--width);
    height: var(--height);
    position: absolute;
    left: 100%;
    animation: autoRun 10s linear infinite;
    transition: filter 0.5s;
    animation-delay: calc( (10s / var(--quantity)) * (var(--position) - 1) - 10s)!important;
}
.slider .list .item img{
    width: 100%;
}
@keyframes autoRun{
    from{
        left: 100%;
    }to{
        left: calc(var(--width) * -1);
    }
}
.slider:hover .item{
    animation-play-state: paused!important;
    filter: grayscale(1);
}
.slider .item:hover{
    filter: grayscale(0);
}


  /* CONTACT SECTION */
.contact-section{
    width: 100%;
    max-width: 1200px;
    min-height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
    position: relative;
    padding: 40px 20px;
}

.contact-section h1{
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    z-index: 2;
    filter: none !important;
    opacity: 1 !important;
    order: -1;
}

.social-box {
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex: 1;
    min-width: 280px;
}

.social-box a{
    color: lightgray;
    text-decoration: none;
    font-size: 20px;
    text-wrap: nowrap;
}

.social-box i{
    color: #7668ff;
    font-size: 30px;
    margin-right: 10px;
}

.social-icons a i{
    color: white;
    margin-top: 40px;
}

.contact-box p{
    max-width: 400px;
    margin-top: 30px;
    margin-bottom: 5px;
} 

.contact-box {
    flex: 1;
    min-width: 320px;
    max-width: 500px;
}

.contact-box input{
    padding: 12px 20px;
    background-color: lightgray;
    width: 100%;
    min-height: 40px;
    border: none;
    outline: none;
    border-radius: 8px;
    font-size: 16px;
}

.contact-box button{
    margin-top: 30px;
    color: white;
    padding: 15px 35px;
    border-radius: 10px;
    border: 1px solid rgba(var(--primary-rgb), 0.5);
    background-color: #2200493d;
    box-shadow: 0 0 5px rgba(var(--primary-rgb), 0.5);
    cursor: pointer;
    transition: 0.3s;
}

.contact-box button:hover{
    opacity: 0.8;
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.5);
}

/* Form validation styles */
.contact-box input:focus {
    outline: none;
    border-color: #72a1de;
    box-shadow: 0 0 5px #72a1de;
}

.contact-box input.error {
    border-color: #ff4444;
    box-shadow: 0 0 5px #ff4444;
}

/* Error message styles */
.error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 10px;
    display: block;
}

/* Form status styles */
#formStatus {
    margin-top: 10px;
    font-weight: bold;
    min-height: 20px;
}

/* Loading animation */
.bx-spin {
    animation: bx-spin 2s linear infinite;
}

@keyframes bx-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* TECH STACK HORIZONTAL SCROLL SECTION */
.tech-stack-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 40px 0; /* Reduced padding for consistent spacing */
    position: relative;
    width: 100%;
    overflow: hidden;
}

.tech-scroll-container {
    width: 100%;
    margin: 50px 0;
    position: relative;
}

.tech-scroll-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(114, 161, 222, 0.05) 20%, 
        rgba(114, 161, 222, 0.05) 80%, 
        transparent 100%);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.tech-scroll-track {
    display: flex;
    align-items: center;
    animation: scrollTech 30s linear infinite;
    gap: 60px;
    padding: 0 30px;
}

/* Faster scroll speed on mobile devices */
@media screen and (max-width: 768px) {
    .tech-scroll-track {
        animation: scrollTech 15s linear infinite; /* Faster on mobile - 15 seconds instead of 30 */
    }
}

/* On mobile devices, ensure tech items wrap properly to show more content */
@media screen and (max-width: 768px) {
    .tech-scroll-wrapper {
        overflow-x: hidden; /* Ensure content doesn't overflow */
    }
    
    .tech-scroll-track {
        min-width: 200%; /* Ensure the track is wide enough for all items */
    }
}

/* Pause tech scroll animation when off-screen */
.tech-scroll-track.paused {
    animation-play-state: paused;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 20px;
    background: rgba(114, 161, 222, 0.1);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.tech-item:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(114, 161, 222, 0.2);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.3), 0 0 20px var(--primary);
}

.tech-item:hover .tech-name {
    color: #72a1de;
    text-shadow: 0 0 10px rgba(114, 161, 222, 0.5);
}

.tech-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(1.1);
    transition: all 0.4s ease;
    margin-bottom: 10px;
}

.tech-item:hover img {
    filter: brightness(1.3) drop-shadow(0 0 15px rgba(114, 161, 222, 0.6));
    transform: scale(1.1);
}

.tech-name {
    font-size: 12px;
    color: #ccc;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Tech Stack Scroll Animation */
@keyframes scrollTech {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause tech scroll when hovering anywhere over the tech stack */
.tech-scroll-wrapper:hover .tech-scroll-track{
    animation-play-state: paused;
}

/* During hover: grayscale all items except the hovered one */
.tech-scroll-wrapper:hover .tech-item{
    filter: grayscale(1) brightness(0.85);
}
.tech-scroll-wrapper:hover .tech-item:hover{
    filter: none;
}

/* Tech Stack Description Styles */
.tech-description-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, 
        rgba(114, 161, 222, 0.1) 0%, 
        rgba(114, 161, 222, 0.05) 50%, 
        transparent 100%);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(114, 161, 222, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    filter: none !important;
    opacity: 1 !important;
}

.tech-subtitle {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
    background: linear-gradient(45deg, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tech-description {
    font-size: 18px;
    line-height: 1.8;
    color: #e2e2e2;
    margin: 0;
    font-weight: 400;
}

.tech-description .highlight {
    color: var(--primary);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
    position: relative;
}

.tech-description .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #72a1de, transparent);
    opacity: 0.6;
}

/* Responsive design for tech stack */
@media screen and (max-width: 700px) {
    .tech-sphere-container {
        width: 300px;
        height: 300px;
    }
    
    .tech-icon {
        width: 45px;
        height: 45px;
        margin-left: -22.5px;
        margin-top: -22.5px;
    }
    
    .tech-icon img {
        width: 28px;
        height: 28px;
    }
    
    /* Adjust positioning for mobile */
    .tech-icon:nth-child(1) { transform: rotateY(0deg) rotateX(0deg) translateZ(140px); }
    .tech-icon:nth-child(2) { transform: rotateY(51.4deg) rotateX(0deg) translateZ(140px); }
    .tech-icon:nth-child(3) { transform: rotateY(102.8deg) rotateX(0deg) translateZ(140px); }
    .tech-icon:nth-child(4) { transform: rotateY(154.2deg) rotateX(0deg) translateZ(140px); }
    .tech-icon:nth-child(5) { transform: rotateY(205.6deg) rotateX(0deg) translateZ(140px); }
    .tech-icon:nth-child(6) { transform: rotateY(257deg) rotateX(0deg) translateZ(140px); }
    .tech-icon:nth-child(7) { transform: rotateY(308.4deg) rotateX(0deg) translateZ(140px); }
    .tech-icon:nth-child(8) { transform: rotateY(25.7deg) rotateX(30deg) translateZ(120px); }
    .tech-icon:nth-child(9) { transform: rotateY(77.1deg) rotateX(30deg) translateZ(120px); }
    .tech-icon:nth-child(10) { transform: rotateY(128.5deg) rotateX(30deg) translateZ(120px); }
    .tech-icon:nth-child(11) { transform: rotateY(180deg) rotateX(30deg) translateZ(120px); }
    .tech-icon:nth-child(12) { transform: rotateY(231.4deg) rotateX(30deg) translateZ(120px); }
    .tech-icon:nth-child(13) { transform: rotateY(282.8deg) rotateX(30deg) translateZ(120px); }
    .tech-icon:nth-child(14) { transform: rotateY(334.2deg) rotateX(30deg) translateZ(120px); }
    
    .sphere-glow {
        width: 250px;
        height: 250px;
    }
}

@media screen and (max-width: 480px) {
    .tech-sphere-container {
        width: 250px;
        height: 250px;
    }
    
    .tech-icon {
        width: 35px;
        height: 35px;
        margin-left: -17.5px;
        margin-top: -17.5px;
    }
    
    .tech-icon img {
        width: 22px;
        height: 22px;
    }
    
    /* Adjust positioning for small mobile */
    .tech-icon:nth-child(1) { transform: rotateY(0deg) rotateX(0deg) translateZ(110px); }
    .tech-icon:nth-child(2) { transform: rotateY(51.4deg) rotateX(0deg) translateZ(110px); }
    .tech-icon:nth-child(3) { transform: rotateY(102.8deg) rotateX(0deg) translateZ(110px); }
    .tech-icon:nth-child(4) { transform: rotateY(154.2deg) rotateX(0deg) translateZ(110px); }
    .tech-icon:nth-child(5) { transform: rotateY(205.6deg) rotateX(0deg) translateZ(110px); }
    .tech-icon:nth-child(6) { transform: rotateY(257deg) rotateX(0deg) translateZ(110px); }
    .tech-icon:nth-child(7) { transform: rotateY(308.4deg) rotateX(0deg) translateZ(110px); }
    .tech-icon:nth-child(8) { transform: rotateY(25.7deg) rotateX(25deg) translateZ(95px); }
    .tech-icon:nth-child(9) { transform: rotateY(77.1deg) rotateX(25deg) translateZ(95px); }
    .tech-icon:nth-child(10) { transform: rotateY(128.5deg) rotateX(25deg) translateZ(95px); }
    .tech-icon:nth-child(11) { transform: rotateY(180deg) rotateX(25deg) translateZ(95px); }
    .tech-icon:nth-child(12) { transform: rotateY(231.4deg) rotateX(25deg) translateZ(95px); }
    .tech-icon:nth-child(13) { transform: rotateY(282.8deg) rotateX(25deg) translateZ(95px); }
    .tech-icon:nth-child(14) { transform: rotateY(334.2deg) rotateX(25deg) translateZ(95px); }
    
    .sphere-glow {
        width: 200px;
        height: 200px;
    }
    
    .tech-description {
        font-size: 14px;
        padding: 0 20px;
    }
}

/* Clean tech icon hover effects */
.tech-icon {
    will-change: transform;
}

.tech-icon:hover {
    animation-play-state: paused;
}

/* Tooltip styles */
.tech-tooltip {
    pointer-events: none;
    font-family: Arial, sans-serif;
}

.tech-tooltip h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #72a1de;
}

.tech-tooltip p {
    margin: 0;
    font-size: 10px;
    color: #ccc;
}

/* Enhanced sphere interactions - Clean hover behavior */
.tech-sphere {
    transition: animation-play-state 0.3s ease;
}

.tech-sphere:hover {
    animation-play-state: paused;
}

.tech-icon:hover {
    transform: scale(1.1);
}

.footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    min-height: 70px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.121) 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    z-index: 999;
    padding: 1rem 3rem;
    box-sizing: border-box;
    margin-top: 40px; /* Add space from previous content */
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h1 {
    margin: 0;
    font-size: 16px;
    text-align: left;
}

.footer .box-icons {
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    align-items: center;
}

/* Add hover effects for footer icons */
.footer .box-icons p {
    transition: all 0.3s ease;
}

.footer .box-icons p:hover {
    transform: translateY(-3px);
    color: #72a1de;
}


/* BLUR EFFECT ANIMAION */

.autoBlur{
    animation: autoBlurAnimation linear both;
    animation-timeline: view();

}
@keyframes autoBlurAnimation{
    0%{
        filter: blur(40px);
    }
    35%,65%{
        filter: blur(0);
        opacity: 1;
    }
    100%{
        filter: blur(40px);
        opacity: 0;
    }
}


/* AUTO DISPLAY ANIMAION */
.autoDisplay{
    animation: autoDisplayAnimation both;
    animation-timeline: view();

}

@keyframes autoDisplayAnimation{
    from{
        filter: blur(10px);
        transform: translateY(-200px) scale(0);
    } 50%{
        opacity: 1;
        filter: blur(0px);
        transform: translateX(0) scale(1);
    }
}

/* Fallback for browsers without Scroll-Linked Animations (animation-timeline: view) */
@supports not (animation-timeline: view()){
    .autoBlur,
    .autoDisplay,
    .fadein-left{
        animation: none !important;
        filter: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}


/* FADEIN_LEFT */

.fadein-left{
    animation: fadeInLeftAnimation both;
    animation-timeline: view();
}

@keyframes fadeInLeftAnimation{
    0%{
        opacity: 0;
        transform: translateX(-500px) scale(0.2);
        filter: blur(10px);
    } 35%,65%{
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0px);
    }100%{
        filter: blur(10px);
    }
}

/* Sidebar */

.menu-icon{
    font-size: 35px;
    cursor: pointer;
    display: none;
}


.sidebar{
    position: fixed;
    right: 0;
    top: 0;
    bottom: 70%;
    width: 0%;
    background-color: #000000b8;
    z-index: 999;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.479);
    backdrop-filter: blur(10px);
    opacity: 0;
    border-bottom-left-radius: 100%;
    
}

.close-icon{
    font-size: 50px;
    color: lightgray;
    padding-left: 10px;
    cursor: pointer;
}

.sidebar ul{
    padding-left: 20px;
}

.sidebar ul li{
    list-style: none;
    margin-bottom: 30px;
}

.sidebar ul li a{
    text-decoration: none;
    color: lightgray;
    font-size: 30px;
    font-weight: 900;
    text-shadow:0 0 15px #4c4c4c;
}

.social-sidebar{
    padding-left: 20px;
    margin-top: 60px;
    text-wrap: nowrap;
}

.social-sidebar a{
    font-size: 35px;
    padding: 5px 5px;
    cursor: pointer;
    transition: 0.5s;
}

/* Sidebar Open ANimation */
.sidebar.open-sidebar{
    animation: openSideBarAnimation 1.5s forwards;
}

@keyframes openSideBarAnimation {
    to{
        width: 80%;
        opacity: 1;
        bottom: 0;
        border-radius: 0;
    }
}

/* Sidebar close ANimation */

.sidebar.close-sidebar{
    animation: closeSideBarAnimation 1.5s forwards;
}

@keyframes closeSideBarAnimation {
    from{
        width: 80%;
        opacity: 1;
        bottom: 0;
        border-radius: 0;
    }
    to{
        width: 0;
        opacity: 0;
        bottom: 70%;
        border-bottom-left-radius: 50%;
    }
}






@media (max-aspect-ratio: 16/9){
    .back-vid{
        width: 100%;
        height: auto;
        min-height: 100%;
        object-fit: cover;
    }
}

@media (min-aspect-ratio: 16/9){
    .back-vid{
        width: auto;
        height: 100%;
        min-width: 100%;
        object-fit: cover;
    }
}


/* Tablet - Large Mobile */
@media screen and (max-width: 1024px) {
    .container {
        gap: 40px;
        padding: 20px;
    }
    
    header ul {
        width: 50%;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        min-height: 80vh;
    }
    
    .hero-info {
        max-width: 90%;
    }
    
    .hero-info h1 {
        font-size: clamp(32px, 6vw, 48px);
        line-height: 1.2;
    }
    
    .skills-video-box {
        max-width: 90%;
    }
    
    .info-cards {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .card:nth-child(3) {
        grid-column: span 2;
        min-height: 300px;
    }
    
    .skills-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .Designer, .coder {
        max-width: 100%;
        text-align: center;
    }
}

/* Mobile */
@media screen and (max-width: 700px){
    header {
        position: fixed;
        height: 50px;
    }

    header ul,
    header .box-icons{
        display: none;
    }

    .menu-icon{
        display: inline;
    }

    .blackhole-box video {
        width: 120%;
        margin-top: -10%;
    }

    .autoBlur{
        animation: none;
    }
    
    /* Ensure background video properly fills mobile screens */
    .back-vid {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        min-width: 100%;
        min-height: 100%;
    }
    
    /* Ensure fadein-left elements have proper positioning on mobile */
    .fadein-left {
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Ensure section titles have proper spacing */
    .section-title {
        margin-top: 0;
        padding-top: 10px; /* Add some top padding to section titles for clearer separation */
    }
    
    .hero{
        flex-direction: column;
        gap: 20px;
        padding-top: 60px;
    }
    .hero-info{
        bottom: auto;
        text-align: center;
        max-width: 95%;
        margin: 0 auto;
    }

    .scroll-down{ display: none; }

    .hero .skills-video-box{
        height: auto;
        top: auto;
    }

    .info-cards{
        grid-template-columns: 1fr;
    }

    .card:nth-child(3){
        grid-column: span 1;
        min-height: 300px;
    }

    .container{
        height: auto;
        gap: 40px; /* Consistent with tablet spacing */
    }
    
    /* Add specific bottom margin to project section to ensure proper spacing on mobile */
    .my-project {
        margin-bottom: 60px; /* Further increased bottom margin to ensure clear separation */
    }
    
    /* Add top margin to skills section on mobile for additional separation */
    .skills-section {
        margin-top: 20px; /* Add top margin to skills section on mobile */
    }

    .project-card{
        flex-direction: column;
        margin-left: 0;
        gap: 15px; /* Reduced gap to save space */
        align-items: center;
        padding-bottom: 30px; /* Increase padding to ensure space at the bottom */
        margin-bottom: 10px; /* Add bottom margin for additional spacing */
    }

    .project-vidbox{
        min-width: 200px;
        width: 100%;
        max-width: 500px;
    }

    .project-info{
        overflow: visible;
        margin-left: 0;
        width: 100%;
        max-width: 500px;
        text-align: center;
        align-items: center;
        margin-bottom: 10px; /* Add bottom margin to create space */
    }

    .project-info h1{
        font-size: 20px;
        width: 100%;
        text-wrap: wrap;
        max-width: 100%;
    }

    .project-info p{
        width: 100%;
        font-size: 14px;
        max-width: 100%;
        min-width: auto;
        margin-bottom: 20px; /* Reduced margin to save space */
    }

    .project-info button{
        padding: 8px 14px;
        margin-bottom: 0; /* Remove any bottom margin on buttons */
        align-self: flex-start; /* Align button to start instead of center */
        max-width: 100%; /* Ensure button doesn't exceed container width */
        word-break: break-word; /* Break long text if needed */
    }

    .Designer,
    .coder{
        top: auto;
        left: auto;
        text-align: center;
        align-items: center;
        margin: 0 auto;
    }

    .slider .list .item img{
        width: 70%;
    }

    .contact-section{
        flex-direction: column;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .footer{
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
        padding: 1.5rem 1rem;
        text-align: center;
        min-height: auto;
    }
    
    .footer h1 {
        font-size: 14px;
        margin: 0;
        line-height: 1.4;
        max-width: 100%;
        word-break: break-word;
    }
    
    .footer .box-icons {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin: 0;
        padding: 0;
    }
    
    .footer .box-icons p {
        margin: 0;
        width: 35px;
        height: 35px;
    }

    .social-box{
        margin-left: 0;
        align-items: center;
    }
}


/* Small Mobile */
@media screen and (max-width: 480px) {
    .container {
        gap: 30px;
        padding: 10px;
    }

    .hero .skills-video-box {
        display: none;
    }

    .blackhole-box {
        overflow: hidden;
    }

    .blackhole-box video {
        width: 130%;
        margin-top: -15%;
    }

    .left {
        transform: scale(0.9);
        margin-left: -20px;
    }

    .left h2 {
        font-size: 18px;
    }

    .hero {
        transform: scale(0.95);
    }

    .hero-info h1 {
        font-size: clamp(28px, 8vw, 36px);
    }

    .section-title {
        font-size: clamp(24px, 6vw, 32px);
    }

    .info-cards {
        display: flex;
        flex-direction: column;
    }

    .card {
        min-height: 250px;
    }

    .card h1 {
        bottom: 30%;
        font-size: clamp(14px, 4vw, 18px);
    }

    .project-info {
        margin-left: 0;
    }

    .skills-box {
        min-height: auto;
        margin: 0;
        padding: 20px 10px;
    }

    .slider {
        bottom: 0%;
    }

    .contact-section {
        transform: scale(0.95);
        min-height: auto;
        padding: 20px 10px;
    }

    .footer {
        padding: 1rem;
        flex-direction: column;
        gap: 12px;
        text-align: center;
        align-items: center;
    }

    .footer h1 {
        font-size: 12px;
        margin: 0;
        line-height: 1.4;
        max-width: 100%;
        word-break: break-word;
    }

    .footer .box-icons {
        gap: 12px;
        justify-content: center;
    }
    
    .footer .box-icons p {
        width: 30px;
        height: 30px;
    }
}

/* PROJECT CAROUSEL STYLES */
.projects-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* Changed from hidden to fix video clipping */
    margin: 20px 0 0 0; /* Reduced margin to decrease gap before skills section */
}

.project-slider {
    position: relative;
    width: 80%;
    height: auto;
    min-height: 400px;
    overflow: visible; /* Changed from hidden to fix video clipping */
    border-radius: 20px;
}

.projects-container .project-card {
    display: none;
    width: 100%;
    min-height: 400px; /* Ensure minimum height */
    align-items: center;
    gap: 10%;
    justify-content: center;
    position: relative;
    padding: 20px 0; /* Add some vertical padding */
}

.projects-container .project-card.active {
    display: flex;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(114, 161, 222, 0.2);
    border: 1px solid rgba(114, 161, 222, 0.5);
    color: var(--primary);
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Adjust position to not interfere with project content */
    margin-left: 10px;
    margin-right: 10px;
}

.nav-btn:hover {
    background: rgba(114, 161, 222, 0.4);
    box-shadow: 0 0 15px rgba(114, 161, 222, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -100px; /* Moved further to the left for visual balance */
}

.next-btn {
    right: -100px; /* Moved further to the right to avoid overlapping description */
}

.project-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px; /* Increased to provide better spacing */
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--muted);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: var(--primary);
}

.indicator:hover {
    background: var(--primary);
}

/* Responsive adjustments for carousel */
@media screen and (max-width: 1024px) {
    .project-slider {
        width: 90%;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .prev-btn {
        left: -50px;
    }
    
    .next-btn {
        right: -50px;
    }
}

/* Project section styles */
/* Mobile-specific project section styles - Consolidated */
@media screen and (max-width: 700px) {
    .my-project {
        padding: 0 10px;
        min-height: auto;
    }
    
    .project-slider {
        width: 100%;
        padding: 0 5px;
    }
    
    .projects-container .project-card {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 15px 0;
        gap: 20px; /* Increase gap to prevent overlap */
    }
    
    .project-vidbox, .project-info {
        width: 100%;
        min-width: auto;
        padding: 0 10px; /* Add padding to prevent touching edges */
    }
    
    .project-vidbox {
        width: 100%;
        max-width: 100%;
        min-width: 280px; /* Minimum width to maintain video aspect */
    }
    
    .project-vidbox video {
        width: 100%;
        height: auto;
        min-height: 200px; /* Ensure minimum height for visibility */
        object-fit: contain; /* Maintain aspect ratio */
        border-radius: 15px; /* Slightly reduce border radius for mobile */
    }
    
    .project-info {
        width: 100%;
        padding: 0 15px;
        align-items: center;
        text-align: center;
    }
    
    .project-info h1 {
        font-size: 18px;
        width: 100%;
        text-align: center;
        margin: 10px 0;
        line-height: 1.3;
        max-width: 100%; /* Ensure text doesn't overflow */
    }
    
    .project-info p {
        font-size: 14px;
        width: 100%;
        text-align: center;
        margin-bottom: 20px; /* Adjusted margin to prevent overlap with button */
        line-height: 1.5;
        max-width: 100%; /* Ensure text doesn't overflow */
        min-height: auto; /* Allow height to adjust to content */
    }
    
    .project-info button {
        padding: 12px 24px; /* Slightly smaller but still touch-friendly */
        font-size: 14px;
        align-self: center;
        width: auto;
        min-width: 150px; /* Ensure button is large enough for touch */
        margin-top: 10px; /* Add space above button */
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
        z-index: 20;
    }
    
    .prev-btn, .next-btn {
        top: auto;
        bottom: 20px; /* Position below the content so it doesn't overlap */
        transform: translateX(0);
        left: 20px; /* Position prev button on the left */
        right: auto;
    }
    
    .next-btn {
        left: auto; /* Reset left position */
        right: 20px; /* Position next button on the right */
    }
    
    .project-indicators {
        margin-top: 20px;
    }
    
    /* Ensure proper spacing in mobile projects */
    .project-card {
        margin-bottom: 30px;
        padding-bottom: 80px; /* Extra space for navigation buttons */
    }
}

/* Small mobile optimization */
@media screen and (max-width: 480px) {
    .project-vidbox {
        min-width: 250px;
        padding: 0 5px;
    }
    
    .project-vidbox video {
        min-height: 180px;
    }
    
    .project-info h1 {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .project-info p {
        font-size: 13px;
        padding: 0 10px;
        margin-bottom: 20px;
    }
    
    .project-info button {
        padding: 10px 20px;
        min-width: 130px;
        font-size: 13px;
    }
    
    .prev-btn, .next-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
        bottom: 15px;
        left: 15px; /* Position prev button on the left */
        right: auto;
    }
    
    .next-btn {
        left: auto; /* Reset left position */
        right: 15px; /* Position next button on the right */
    }
}

/* Add scroll-responsive effects */
body.scrolling::-webkit-scrollbar-thumb {
    animation: 
        rainbowGlow 1.5s ease-in-out infinite, 
        colorShift 3s linear infinite,
        thumbPulse 1s ease-in-out infinite;
}



