@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jersey+25&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jersey+10&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sedgwick+Ave+Display&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lugrasimo&family=Sedgwick+Ave+Display&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lugrasimo&family=Sedgwick+Ave+Display&family=Tiro+Devanagari+Hindi:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lugrasimo&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Sedgwick+Ave+Display&family=Tiro+Devanagari+Hindi:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Lugrasimo&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Sedgwick+Ave+Display&family=Tiro+Devanagari+Hindi:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Black+Han+Sans&family=Kalam:wght@300;400;700&family=Lugrasimo&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Sedgwick+Ave+Display&family=Sriracha&family=Tiro+Devanagari+Hindi:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bitcount+Grid+Single:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
@keyframes levitate {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px);}
    100% { transform: translateY(0); }
  }




::-webkit-scrollbar {
    width: 7px;
  }
    ::-webkit-scrollbar-track {
    background: #f1f1f1; 
  }
    ::-webkit-scrollbar-thumb {
    background:#C4A484; 
      border-radius:10px;
  }
  ::-webkit-scrollbar-thumb:hover {
    
    background: #c9a27c; 
  }
  html {
    scroll-behavior: smooth;
    user-select: none;
    scroll-snap-type: y mandatory;
    scroll-padding-top:var(--scroll-val);
  }

*{
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}
html {
    scroll-behavior: smooth;
    user-select: none;
    /* scroll-snap-type: y mandatory; */
    scroll-padding-top:var(--scroll-val);
  }
body{
    background-color: #09101a;
}
#navH3{
    font-family: "Bitcount Grid Single", system-ui;
    display: flex;
    align-items: center;
    justify-content: center;
    height:3rem;
    width:3rem;
    /* animation: levitate 3s ease-in-out infinite alternate; */
}

a{
    float: left;
    color: white !important;
    transition: all 0.3s ease-in-out;
}
a:hover{
    color: #f9bb7d !important;
    text-decoration: none;
    transform: scale(1.1);
    
}
.navbarA{
      transition: all 0.6s ease-in;
}
.navbarA:hover{
    filter: drop-shadow(5px 0px 10px  #C4A484);
  }
.nav-item{
    transition: all 0.3s ease-in;
}
.nav-item:hover{
    transform: translateY(-5px);
}
.nav-link.active {
  font-weight: bold;
  color: #C4A484 !important;
}
/* Home Screen */
.screens{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
}
.homeScreenDiv{
    gap: 1rem;
}
.segment{
    display: flex;
    flex-direction: column;
    padding: 1rem;
    margin-top: 4rem;
    width:48%;
    height: 85%;
}
.textArea{
    justify-content: flex-end;
}
.auto-text{
    color: #C4A484;
    font-family: "Jersey 25", sans-serif;
    font-optical-sizing: auto;
    font-size:3.3vw;
}
p{
    font-family: "Poppins", sans-serif;
    font-size:1.1rem;
}
.intro-text{
    font-size:1.1rem;
    font-family: "Montserrat", sans-serif;
}
#h3Text{
    color: #3a434c;
    margin-top: 1.5rem;
    font-family: "Bitcount Grid Single", system-ui;
}
.bottomSegment{
    height:70%;
}
.buttonSpace{
    height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}
.icon{
    padding:3px;
}
.icon2{
    padding:5px;
}
.buttons{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30%;
    height:80%;
    border-radius:25px;
    border: none;
    overflow: hidden;
    font-family: "Ubuntu", sans-serif;
    transition: all 0.5s ease-in-out;
}
.buttons:hover{
    transform: scale(1.1);
    transform: translateY(-4px);
    background-color: #85FFBD;
    background-image: linear-gradient(45deg, #85FFBD 0%, #FFFB7D 100%);
    filter: drop-shadow(5px 0px 10px  #FFFB7D);
    
}
.imageArea{
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.shadow{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    background: #EECDA3; 
    background: -webkit-linear-gradient(to left, #ffc081, #EECDA3);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to left, #ffc081, #EECDA3); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    width:34%;
    height:72%;
    border-radius:100% ;
    z-index: -1;
    overflow: hidden;
    transition: all 0.6s ease-in-out;
}

.devPic{
   /* background-color: red; */
    display: hidden;
    width: 90%;
    object-fit:fill;
    z-index: 1;
    transform: scale(0.8);
    transition: all 0.9s ease-in-out;
}
.devPic2{
    margin-top: 1.1rem;
    width: 51%;
    height: 27rem;
    object-fit:fill;
    z-index: 2;
    transition: all 0.9s ease-in-out; 
}
.smallerImage{
    width:76%;
    height:30rem;
    object-fit:fill;
    z-index: 2; 
    transition: all 0.9s ease-in-out; 

}

/* tech Screen */
.technologiesScreen{
    display: flex;
    flex-direction: column;
    padding: 5.2rem 0 0 0;
    position: relative; /* Add this to establish stacking context */
    min-height: 100vh;
    
}
.Container{
    display: flex;
    justify-content:start;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    height:80vh;
    width: 100%;
    padding: 2rem;
    z-index: 1;
    position: relative;
    /* background-color: red; */
}
.particles{
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.skillsContainer{
    display: flex;
    flex-wrap: wrap;
    justify-content:flex-start;
    gap: 1rem;
    width: 98%;
    height: fit-content;
    padding: 1.5rem;
    z-index: 1;
   
    background: rgba(255, 255, 255, 0.13);
    border-radius: 1rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5.4px);
    -webkit-backdrop-filter: blur(5.4px);
    border: 1px solid rgba(245, 215, 215, 0.3);
    position: relative;
}
.title{
    width: 100%;
    
}
.title h2{
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out 0.3s;
    font-size: clamp(1.5rem, 2vw, 2.5rem);
    font-weight: bold;
    color: #C4A484 !important;
}
.title h2.animate-in {
  opacity: 1;
  transform: translateY(0);
}
.thunder-icon {
  animation: floatBolt 1s ease-in-out infinite;
  position: relative;
}

@keyframes floatBolt {
  0%   { transform: translateY(0);color: white; }
  90%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
.skillsCards{
    display: flex;
    flex-direction: row;
    width: 13.3rem;
    height: 4rem;
    background-color: rgba(255, 254, 254, 0.539);
    border-radius:0.3rem;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}
.skillsCards:hover{
    transform: scale(1.1);
    transform: translateY(-4px);
    background-color: #C4A484 ;
    
}
.skillsCards:hover .skillsIcon {
    /* animation: rotateIcon 0.6s ease-in-out; */
    transform: translateY(-2px) scale(1.2);
}
/* @keyframes rotateIcon {
    0% { transform: translateY(-2px) scale(0.7) rotate(0deg); }
    100% { transform: translateY(-2px) scale(1.1) rotate(360deg); }
} */
.iconArea{
    display: flex;
    align-items: center;
    justify-content: center;
    width:30%;
    height:100%;
    padding: 0.5rem;
    overflow: hidden;
    
}
.skillNameArea{
    display: flex;
    align-items: center;
    padding:0.1rem;
    width:70%;
    height:100%;
   
}
.skillNameArea p{
    margin: 0;
    padding: 0;
    color:  #43372a ;
    font-size: 1.4rem;
    font-family: "Merriweather", serif;
    font-weight: 500;
    text-transform: capitalize;
}
.skillsIcon{
    width: 3rem;
    height: 3rem;
    transition: all 0.6s ease-in-out;
}
/* Project Screen */
.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bubbles span {
    position: absolute;
    bottom: -50px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: bubbles 10s linear infinite;
}
@keyframes bubbles {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(0);
        opacity: 0;
    }
}


.bubbles span:nth-child(1) { left: 10%; animation-duration: 6s; width: 15px; height: 15px; }
.bubbles span:nth-child(2) { left: 20%; animation-duration: 8s; width: 20px; height: 20px; }
.bubbles span:nth-child(3) { left: 30%; animation-duration: 6s; width: 25px; height: 25px; }
.bubbles span:nth-child(4) { left: 40%; animation-duration: 10s; width: 20px; height: 20px; }
.bubbles span:nth-child(5) { left: 50%; animation-duration: 5s; width: 30px; height: 30px; }
.bubbles span:nth-child(6) { left: 60%; animation-duration: 7s; width: 15px; height: 15px; }
.bubbles span:nth-child(7) { left: 70%; animation-duration: 9s; width: 25px; height: 25px; }
.bubbles span:nth-child(8) { left: 80%; animation-duration: 6s; width: 20px; height: 20px; }
.bubbles span:nth-child(9) { left: 90%; animation-duration: 8s; width: 25px; height: 25px; }
.bubbles span:nth-child(10) { left: 95%; animation-duration: 7s; width: 30px; height: 30px; }
.bubbles span:nth-child(11) { left: 88%; animation-duration: 1s; width: 30px; height: 30px; }
.bubbles span:nth-child(12) { left: 95%; animation-duration: 3s; width: 30px; height: 30px; }
.bubbles span:nth-child(13) { left: 95%; animation-duration: 5s; width: 30px; height: 30px; }
.bubbles span:nth-child(14) { left: 95%; animation-duration: 17s; width: 30px; height: 30px; }
.bubbles span:nth-child(15) { left: 10%; animation-duration: 2s; width: 30px; height: 30px; }
.bubbles span:nth-child(16) { left: 92%; animation-duration: 11s; width: 30px; height: 30px; }
.bubbles span:nth-child(17) { left: 18%; animation-duration: 12s; width: 30px; height: 30px; }
.bubbles span:nth-child(18) { left: 16%; animation-duration: 8s; width: 30px; height: 30px; }
.bubbles span:nth-child(19) { left: 50%; animation-duration: 3s; width: 30px; height: 30px; }
.bubbles span:nth-child(20) { left: 11%; animation-duration: 1s; width: 30px; height: 30px; }
.projectsScreen {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: fit-content;
    min-height: 100vh;
    padding: 2rem 0;
}

.projectsScreenContainer {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    padding: 2rem;
    margin-top: 4.5rem;
    width: 90%;
    background-color: #0f1b2b;
    border-radius: 7px;
    gap: 1.5rem;
}


.majorProject,.minorProjecttag{
    position: absolute;
    top: 12px;
    right: 10px;
    background-color: #ffcc70; 
    color: #333; 
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 5;
    
}
/* .minorProjecttag:after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: grey;
  margin: 10px auto 0;
  border-radius: 2px;
} */

/* Project Overlay Styling */
.projectOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Black tint */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.7s ease;
    
}

.projectOverlay h3 {
    font-family: "Jersey 10", sans-serif;
   margin-top: 1rem;
    font-size: 1.3rem;
}

.projectOverlay p {
    font-size:0.8rem;
    opacity: 0.9;
}

.projectOverlay span {
    font-size:0.7rem;
    color: #ccc;
}

.projectOverlay button {
    margin-top: 1rem;
    padding: 0.2rem;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    width: 50%;
    background-color: #007bff;;
    color: #fff;
    transition: all 0.7s ease-in-out;
}

.projectOverlay button:hover {
        background: #0056b3;
        color: #f9bb7d;
        font-size: large;     
}
/* Modal code */
.modalBackdrop{
    display: none;
    min-height:100%;
    min-width:100%;
    position: absolute;
    background-color:pink ;
    z-index: 15;
    background: rgba(0, 0, 0, 0.48);
    box-shadow: 0 4px 30px rgba(30, 29, 29, 0.196);
    backdrop-filter: blur(7.9px);
    -webkit-backdrop-filter: blur(7.9px);
    border: 1px solid rgba(209, 184, 184, 0.4);
    transition: all 0.4s ease-in-out;
    overflow: hidden;
}
.detailViewModal {
    margin-top:-5rem;
    display: none;
    position: absolute;
    width: 45vw;
    max-width: 600px;
    min-width: 400px;
    height: auto;
    max-height: 70vh;
    border-radius: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.48);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(30, 29, 29, 0.196);
    backdrop-filter: blur(7.9px);
    -webkit-backdrop-filter: blur(7.9px);
    border: 1px solid rgba(209, 184, 184, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    opacity: 0;
    backdrop-filter: blur(10px);
}
.detailViewModal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(147, 51, 234, 0.1) 0%, 
        rgba(79, 70, 229, 0.05) 50%, 
        rgba(236, 72, 153, 0.1) 100%);
    pointer-events: none;
    z-index: -1;
}
.closeModal {
    position: absolute;
    z-index: 10;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.closeModal:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    transform: scale(1.1);
}

.closeIcon {
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    transition: all 0.3s ease;
}
.closeIcon:hover {
    color: #ef4444 !important;
    transform: rotate(90deg);
}
.projectLogo {
    width: 100%;
    height: 10rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(147, 51, 234, 0.2) 0%, 
        rgba(79, 70, 229, 0.2) 100%);
}
.projectLogo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(15, 15, 15, 0.8));
    pointer-events: none;
}
.projectLogo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
    transition: all 0.3s ease;
}
.modalProjectTitle {
    font-family: "Playfair Display", serif;
    position: absolute;
    bottom: 20px;
    left: 25px;
    color: #EECDA3;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
    z-index: 10;
}
.modalBody {
    padding: 5px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}
.modalProjectDesc {
    font-size: 1rem;
    color:#ffc081;
    line-height: 1.7;
    margin: 0;
    text-align: justify;
}
.techStackTitle {
    display: block;
    color:#EECDA3;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}
.techStackList {
   display: flex;
   align-items: center;
   width: 100%;
   height: fit-content;
   flex-direction: row;
   flex-wrap: nowrap;
   overflow: hidden; 
   overflow-x: scroll;
   gap: 8px;
   margin: 0;
   padding: 0.3rem;
    border-radius: 8px; 
}

.techStackList li {
   height: 40px;
   min-width: fit-content;
   white-space: nowrap;
   list-style: none;
   padding: 0 20px;
   display: flex;
   align-items: center;
   justify-content: center;
    background: linear-gradient(to left, #ffc081, #EECDA3);
   color: rgba(27, 24, 20, 0.9);
   border-radius: 25px;
   font-size: 0.65rem;
   border: 1px solid rgba(255, 255, 255, 0.1);
   backdrop-filter: blur(10px);
   transition: all 0.3s ease;
   
}

.techStackList::-webkit-scrollbar {
   display: none;
}
.techStackList li:hover {
    background: linear-gradient(135deg,
        #FFCB80 0%,     
        #F4A259 100%   
    );
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(244, 162, 89, 0.3);
    color: #1a1a1a; 
    transition: all 0.3s ease;
}
.techStackList::before,
.techStackList::after {
   content: '';
   position: absolute;
   top: 0;
   bottom: 0;
   width: 50px;
   pointer-events: none;
   z-index: 2;
   transition: all 0.3s ease;
   opacity: 0;
    border-radius: 8px;
}

.techStackList::before {
   left: 0;
   background: linear-gradient(90deg, 
       rgba(250, 184, 76, 0.2) 0%,
       rgba(250, 184, 76, 0.1) 50%,
       transparent 100%);
   box-shadow: inset 20px 0 15px -10px rgba(250, 184, 76, 0.3);
}

.techStackList::after {
   right: 0;
   background: linear-gradient(270deg, 
       rgba(250, 184, 76, 0.2) 0%,
       rgba(250, 184, 76, 0.1) 50%,
       transparent 100%);
   box-shadow: inset -20px 0 15px -10px rgba(250, 184, 76, 0.3);
}

.techStackList.hover-left::before {
   opacity: 1;
}

.techStackList.hover-right::after {
   opacity: 1;
}
.modalFooter button {
    position: absolute !important;
    top:6rem;
    right:1.3rem;
    border: none;
    border-radius: 15px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, 
        rgba(147, 51, 234, 0.8) 0%, 
        rgba(79, 70, 229, 0.8) 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    
}
.modalFooter button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 10px 25px rgba(147, 51, 234, 0.4),
        0 0 20px rgba(147, 51, 234, 0.2);
    border-color: rgba(147, 51, 234, 0.5);
}
.modalFooter button i{
     transition: all 3s ease-in-out;
}
.modalFooter button:hover i{
    animation: rotateIcon 3s ease-in-out; 
}
@keyframes rotateIcon {
    0% { transform: translate(-2px) scale(0.7) rotateY(0deg); }
    50% { transform: translate(-2px) scale(1.4) rotateY(360deg);}
    100% { transform: translate(-2px) scale(1.4) rotateY(0deg);}
}


/* Show overlay when hovering over project name */
.cardBody:hover .projectOverlay {
    opacity: 1;
    transform: translateY(0);
}
.cardBody {
    position: relative;
    height: 200px;
    border-radius: 5px;
    background-color: #16283f;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.cardimage{
    position: relative;
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;    
    height:100%;
    width:100%;
    overflow: hidden;
}
.cardimage img{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cardimage::after{
    position: absolute;
    content: '';
    display:inline-block;
    top: -180px;
    left: 0;
    width: 30px;
    height: 100%;
    background-color: #fff;
    animation: shiny 3s ease-in-out infinite;
   
}

.covercaption{
    color: white;
    position: absolute;
    top:9rem ;
    font-size:1rem;
    font-family:Arial, Helvetica, sans-serif;
    text-transform: capitalize;
    background: rgba(0, 0, 0, 0.348);
    backdrop-filter: blur(3px);
    padding: 0.5rem 2rem;
    border-radius:11px;
    white-space: nowrap; /* Prevents text wrapping */
    overflow: hidden;
    /* animation: levitate2 3s ease-in-out infinite alternate; */
  } 


/* Assign different animation delays to each card */
.cardBody:nth-child(1) .cardimage::after {
    animation-delay: 0s;  /* No delay */
}

.cardBody:nth-child(2) .cardimage::after {
    animation-delay: 1s;  /* Starts after 1 second */
}

.cardBody:nth-child(3) .cardimage::after {
    animation-delay: 2s;  /* Starts after 2 seconds */
}
.cardBody:nth-child(4) .cardimage::after {
    animation-delay: 3s; 
}
@-webkit-keyframes shiny{
      0% { -webkit-transform: scale(0) rotate(45deg); opacity: 0; }
      80% { -webkit-transform: scale(0) rotate(45deg); opacity: 0.5; }
      81% { -webkit-transform: scale(4) rotate(45deg); opacity: 1; }
      100% { -webkit-transform: scale(50) rotate(45deg); opacity: 0; }
  }
@keyframes shiny {
      0% { transform: scale(0) rotate(45deg); opacity: 0; }
      80% { transform: scale(0) rotate(45deg); opacity: 0.5; }
      81% { transform: scale(4) rotate(45deg); opacity: 1; }
      100% { transform: scale(50) rotate(45deg); opacity: 0; }
  }

.minorProject{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    position: relative;
    margin-top:1rem;
    width: 90%;
    flex-wrap: wrap;
    height: fit-content;
    background-color: #0f1b2b;
    border-radius: 7px;
    padding: 1rem;  
}
.conatiner {
    overflow-x: scroll;  /* Enable scrolling */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
}

.conatiner::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari */
}

.glowbutton{
    text-align: center;
    font-family: "Jersey 10", sans-serif;
    font-optical-sizing: auto;
    font-size: 1.5rem;
    border: none;
    width:9rem;
    height: 5rem;
    border-radius: 7px;
    background-color: #09101a;
    color: #c9a27c;
    box-shadow:
    0 0 1px #fff,
    0 0 2px #fff,
    0 0 3px #fff,
    0 0 4px #bc13fe,
    0 0 5px #bc13fe,
    0 0 6px #bc13fe,
    0 0 7px #bc13fe,
    0 0 8px #bc13fe;
    animation: levitate 3s ease-in-out infinite alternate;
}    
.glowbutton:nth-child(2) {
    animation-delay: 0.3s;
}
.glowbutton:nth-child(3) {
    animation-delay: 0.6s;
}
.glowbutton:nth-child(4) {
    animation-delay: 0.9s;
}
.glowbutton:nth-child(5) {
    animation-delay: 1.2s;
}

.glowbutton:nth-child(1) {
    animation-delay: 0s;
}
 
/* Footer */

@keyframes blink {
    0% {  color: #21202a;}
    50% {color: #f1f1f1;}
    100% {color: #353443;  }
  }
.socialhadle{
    display: flex;
    gap: 1.5rem;
}
.footerquote{
    margin-right:11rem;
    color: #21202a;
    animation: blink 3s ease-in-out infinite alternate;
    font-family: "Jersey 25", sans-serif;
    font-optical-sizing: auto;
    transition: all 0.6s ease-in;
}
 
.footerName{
    margin-left: -4rem !important;
    font-family: "Playfair Display", serif;
    font-size: 1.1rem !important;

}

.footerIcon{
    margin-right:0.5rem;
    transition: all 0.3s ease-in-out;
}
.footerIcon:hover{
    color: #EECDA3!important;
    transform: translateY(-5px) scale(1.1);
}
/* @keyframes rotate {
    0% { transform: translateY(-5px) scale(1.1) ; }
    100% { transform: translateY(-5px) scale(1.1) rotate(360deg); }
} */
/* Finger Pointer CSS */
.finger-pointer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 2s ease-in-out,
    opacity 0.5s ease-in-out;
}

.finger-pointer img {
  width: 4rem;
  height: auto;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.finger-pointer.show {
  opacity: 1;
}

.finger-pointer.click-effect {
  animation: clickPulse 0.4s ease-in-out;
}

@keyframes clickPulse {
  0% { transform: translate(var(--x, -50%), var(--y, -50%)) scale(1); }
  50% { transform: translate(var(--x, -50%), var(--y, -50%)) scale(0.9); }
  100% { transform: translate(var(--x, -50%), var(--y, -50%)) scale(1); }
}
/* RWD section */
@media (max-width: 768px) {
    .glowing {
        box-shadow:
            0 0 3px #fff,
            0 0 6px #bc13fe,
            0 0 12px #bc13fe;
        transform: scale(1.1);
        transition: all 0.3s ease-in-out;
    }

    .homeScreenDiv{
        margin-top: 3rem;
        /* background-color: olive; */
        flex-direction: column-reverse;
        gap: 1rem;
    }
    .imageArea{
        width:100%;
        height:35%;
        /* background-color: pink; */
        margin-top: -1rem;
    }
    .imageArea img{
        margin-top: -1rem;
        max-height: 100%;
    }
    .shadow{
        margin-top:-4rem;
        width: 65%;
        height: 35%;
        aspect-ratio: 1/1;
        border-radius:100%;
        transition: all 0.6s ease-in-out;
    }
  

    .textArea{
        margin-top:-7rem;
        width: 100%;
        height:50%;
        justify-content: center;
      
    }
    .bottomSegment{
        margin-top: 1.2rem;
    }
    .bottomSegment h2{
        margin-top:-1rem;
    }
    .bottomSegment h3{
        margin-top: 1rem;
    }
    .auto-text{
        font-size: 2.2rem;
    }
    .buttons{
        width: 50%;
        height: 7vh;
    }
    
    .conatiner::-webkit-scrollbar {
        height: 5px; /* Thin scrollbar */
    }
    .conatiner::-webkit-scrollbar-thumb {
        background: #c9a27c;
        border-radius: 10px;
    }
    .conatiner::-webkit-scrollbar-track {
        background: transparent;
    }
    .projectsScreen{
        height: 70rem;
        /* background-color: yellow; */
    }
    .projectsScreenContainer{
        padding:2rem;
        height:35rem;
        width: 100%;
        margin-top:-2rem;
        display: flex;
        flex-direction: row !important;
        flex-wrap: nowrap;
        overflow-x: scroll;
        scrollbar-width: thin;
        /* background-color: yellow; */
    }


 
    .cardBody{
        min-width: 100%;
        height: 95%;
    }
    .covercaption{
        margin-top:17rem;
        width: 90%;
        text-align: center;
        height:3rem;
    }
    .projectOverlay h3{
        font-size: 3rem;
    }
    .projectOverlay p{
        font-size: 1.3rem;
    }
    .projectOverlay span{
        font-size: 1.1rem;
    }
    .projectOverlay a{
        text-align: center;
        width: 70%;
        height:8%;
       background-color: #007bff;;
        color: #fff;
        transition: all 0.7s ease-in-out;
    }
     .projectOverlay a:hover {
        background: #0056b3;
        font-size: large;   
    }
    .minorProject {
        height: fit-content;
        display: flex;
        gap:1rem;
        align-items: center;
        justify-content: center;
        flex-flow: column;
        /* overflow-y: scroll; */
        flex-wrap: wrap; /* Prevent wrapping */
        white-space: nowrap; /* Prevent text wrapping */
        scroll-behavior: smooth; /* Smooth scrolling */
    }
    
    /* Hide scrollbar for better UI */
    .minorProject::-webkit-scrollbar {
        height: 5px; /* Thin scrollbar */
    }
    .minorProject::-webkit-scrollbar-thumb {
        background: #c9a27c;
        border-radius: 10px;
    }
    .minorProject::-webkit-scrollbar-track {
        background: transparent;
    }
    .conatiner {
        overflow-x: scroll;  /* Enable scrolling */
        scrollbar-width: none; /* Hide scrollbar for Firefox */
        -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
    }
    
    .conatiner::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome, Safari */
    }
    
    /* Ensure buttons don’t expand too much */
    .projectButton {
        width: 90%; /* Set a fixed width */
        height: 5rem;
        font-size: 1.5rem;
        flex-shrink: 0; /* Prevent buttons from shrinking */
    }

    .majorProject{
        text-align: center;
        margin-top:1rem;
        margin-right:2rem;
    }


    footer{
    
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column-reverse;
    }
    .footerquote{
       display: none;
    }
    .footerIcon{
        font-size: 2rem;
        margin-left: 1rem;
    }
}






/* OPTION 1: Floating bubble near the developer image */
.idea-bubble-v1 {
    position: absolute;
    top: 20%;
    left: 75%;
    width: 200px;
    height: 80px;
    background: rgba(196, 164, 132, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 4s ease-in-out infinite;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.bubble-text-v1 {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* OPTION 2: Sticky note style in corner */
.idea-bubble-v2 {
    position: fixed;
    top: 120px;
    right: 20px;
    width: 180px;
    height: 120px;
    background: linear-gradient(135deg, #ffeb3b, #ffc107);
    border-radius: 0 0 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: stickyNote 3s ease-in-out infinite;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform-origin: top right;
}

.idea-bubble-v2::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-left: 25px solid #f57c00;
    border-top: 25px solid transparent;
}

.bubble-text-v2 {
    font-family: "Jersey 25", sans-serif;
    font-size: 16px;
    color: #333;
    text-align: center;
    padding: 10px;
    line-height: 1.2;
}

/* OPTION 3: Thought bubble above buttons */
.idea-bubble-v3 {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 90px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s ease-in-out infinite;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.idea-bubble-v3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #667eea;
    border-radius: 50%;
}

.idea-bubble-v3::before {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 45%;
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
    opacity: 0.7;
}

.bubble-text-v3 {
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
    padding: 0 15px;
}

/* OPTION 4: Minimal floating tag */
.idea-bubble-v4 {
    position: absolute;
    top: 25%;
    right: 2%;
    /* background: rgba(9, 16, 26, 0.9); */
    border: 1px solid #C4A484;
    border-radius: 30px;
    padding: 6px 10px;
    animation: pulse 3s ease-in-out infinite;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.bubble-text-v4 {
    font-family: "Jersey 25", sans-serif;
    font-size: 18px;
    color: #C4A484;
    white-space: nowrap;
}

.spark-icon {
    display: inline-block;
    margin-left: 1px;
    animation: sparkle 1.5s ease-in-out infinite;
}
/* hint css */
        .hint-hand {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 2.5rem;
            opacity: 0;
            pointer-events: none;
            z-index: 10;
            filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
        }

        .hint-hand.show {
            animation: handHint 2.5s ease-in-out;
        }

        @keyframes handHint {
            0% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.8);
            }
            20% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1);
            }
            40% {
                transform: translate(-50%, -50%) scale(1.1);
            }
            60% {
                transform: translate(-50%, -50%) scale(1);
            }
            80% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1);
            }
            100% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.8);
            }
        }

        /* Pulse Ring Animation */
        .pulse-ring {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100%;
            height: 100%;
            border: 3px solid rgba(255, 215, 0, 0.6);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            opacity: 0;
            pointer-events: none;
        }

        .pulse-ring.show {
            animation: pulseRing 2.5s ease-out;
        }

        @keyframes pulseRing {
            0% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(1);
            }
            20% {
                opacity: 1;
            }
            100% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(1.3);
            }
        }

        /* Sparkle Effect */
        .sparkles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        .sparkle {
            position: absolute;
            width: 6px;
            height: 6px;
            background: #ffd700;
            border-radius: 50%;
            opacity: 0;
        }

        .sparkle.show {
            animation: sparkleAnim 2s ease-out;
        }

        @keyframes sparkleAnim {
            0% {
                opacity: 0;
                transform: scale(0);
            }
            20% {
                opacity: 1;
                transform: scale(1);
            }
            100% {
                opacity: 0;
                transform: scale(0) translateY(-20px);
            }
        }

        /* Tooltip */
        .tooltip {
            position: absolute;
            bottom: -60px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.9rem;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
            white-space: nowrap;
        }

        .tooltip.show {
            opacity: 1;
        }

        .tooltip::before {
            content: '';
            position: absolute;
            top: -5px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-bottom: 5px solid #000000cc;
        }

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes stickyNote {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 #c4a484b3;
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 0 10px #c4a48400;
        transform: scale(1.05);
    }
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}
/* Mobile Responsive */
@media (max-width: 768px) {
    .idea-bubble-v1 {
        top: 5%;
        left: 5%;
        width: 160px;
        height: 60px;
    }
    
    .idea-bubble-v2 {
        width: 140px;
        height: 100px;
        right: 10px;
    }
    
    .idea-bubble-v3 {
        width: 180px;
        height: 70px;
    }
    
    .idea-bubble-v4 {
        position: relative;
        top: 5%;
        left: 1%;
        display: flex;
        align-items: center;
        justify-content: center;
        max-width:98%;
    }

    .bubble-text-v1, .bubble-text-v2, .bubble-text-v3 {
        font-size: 12px;
    }
    
    .bubble-text-v4 {
        font-size: 14px;
    }
}
/* Ripple effect on click */
.ripple {
      position: absolute;
      border: 2px solid #C4A484;
      border-radius: 50%;
      width: 20px;
      height: 20px;
      transform: translate(-50%, -50%) scale(0);
      animation: ripple-animation 0.6s ease-out;
      pointer-events: none;
    }

    .ripple::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 4px;
      height: 4px;
      background: white;
      border-radius: 50%;
      transform: translate(-50%, -50%);
    }

    @keyframes ripple-animation {
      to {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
      }
    }


/* Mobile Portrait Styles for Skills Section */
@media screen and (max-width: 768px) {
  .technologiesScreen {
    padding: 3rem 0 0 0;
    min-height: 100vh;
  }
  .particles{
    margin-top:15rem;
  }

  .Container {
    margin-bottom: -3rem;
    height: auto;
    min-height: 90vh;
    padding: 1rem;
    overflow-y: visible;
  }

  .skillsContainer {
    display: flex;
    width: 100%;
    padding: 1rem;
    gap: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.8rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(245, 215, 215, 0.2);
  }

  .title {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
  }

  .title h2 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    color: #C4A484 !important;
    margin: 0;
  }

  /* Skills Cards - Mobile Layout (Side by Side) */
  .skillsCards {
    display: flex;
    flex-direction: row;
    width: 50%;
    min-width: 140px;
    max-width: 160px;
    height: 3.3rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(196, 164, 132, 0.3);
  }

  .skillsCards:hover,
  .skillsCards:active {
    transform: translateY(-2px) scale(1.02);
    background: rgba(196, 164, 132, 0.9);
    box-shadow: 0 4px 12px rgba(196, 164, 132, 0.3);
  }

  .skillsCards:hover .skillNameArea p,
  .skillsCards:active .skillNameArea p {
    color: #fff;
  }

  .iconArea {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25%;
    height: 100%;
    padding: 0.4rem;
    background: rgba(196, 164, 132, 0.1);
  }

  .skillsIcon {
    width: 2.2rem;
    height: 2.2rem;
    object-fit: contain;
  }

  .skillNameArea {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 0.8rem;
    width: 75%;
    height: 100%;
  }

  .skillNameArea p {
    margin: 0;
    padding: 0;
    color: #43372a;
    font-size: 0.8rem;
    font-family: "Merriweather", serif;
    font-weight: 500;
    text-transform: capitalize;
    line-height: 1.2;
  }
}

/* Extra Small Mobile Devices */
@media screen and (max-width: 480px) {
  .technologiesScreen {
    padding: 2rem 0 0 0;
  }

  .Container {
    padding: 0.5rem;
  }

  .skillsContainer {
    padding: 0.8rem;
    gap: 0.6rem;
  }

  .title h2 {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
  }

  .skillsCards {
    max-width: 100%;
    width: 48%;
    min-width: 130px;
    height: 3rem;
  }

  .skillsIcon {
    width: 2rem;
    height: 2rem;
  }

  .skillNameArea {
    padding: 0 0.6rem;
  }

  .skillNameArea p {
    font-size: 0.9rem;
  }
}

/* Portrait orientation specific */
@media screen and (max-width: 768px) and (orientation: portrait) {
  .skillsContainer {
    margin-top: 5rem;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-height: none;
  }

  .skillsCards {
    width: 48%;
    min-width: 140px;
    max-width: 160px;
  }
}

/* Landscape mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .technologiesScreen {
    padding: 1rem 0 0 0;
  }

  .Container {
    height: 70vh;
    padding: 0.8rem;
  }

  .skillsContainer {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
  }

  .skillsCards {
    width: 45%;
    min-width: 200px;
    max-width: 240px;
  }
}

/* Touch improvements for mobile */
@media (hover: none) and (pointer: coarse) {
  .skillsCards {
    transition: all 0.2s ease-in-out;
  }

  .skillsCards:active {
    transform: scale(0.98);
  }
}

/* Custom Cursor Styles */
.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: white;
}

.cursor-outline {
  width: 30px;
  height: 30px;
  border: 2px solid #e18e3b;
  transition: transform 0.15s ease-in-out;
}

/* RESPONSIVE DESIGN - MEDIA QUERIES */

/* Large tablets and small desktops (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .modalBackdrop{ 
        /* fix this later,#alignment issue in mobile port */
        display: none;
        min-height:100%;
        min-width:100%;
        position: absolute;
        top:-4rem;
    }
    .detailViewModal {
        width: 55vw;
        max-width: 500px;
        min-width: 350px;
    }
    
    .modalProjectTitle {
        font-size: 1.6rem;
        left: 20px;
        bottom: 15px;
    }
    
    .modalBody {
        padding: 20px;
    }
}

/* Tablets (768px - 999px) */
@media screen and (max-width: 999px) {
    .detailViewModal {
        width: 70vw;
        max-width: 450px;
        min-width: 320px;
        max-height: 85vh;
    }
    
    .projectLogo {
        height: 8rem;
    }
    
    .modalProjectTitle {
        font-size: 1.4rem;
        left: 18px;
        bottom: 12px;
    }
    
    .modalFooter button {
        top: 4.8rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }
    
    .modalFooter button i {
        font-size: 1.5rem;
    }
    
    .closeModal {
        width: 32px;
        height: 32px;
        top: 12px;
        right: 12px;
    }
    
    .closeIcon {
        font-size: 18px;
    }
}

/* Mobile landscape and small tablets (480px - 767px) */
@media screen and (max-width: 767px) {
    .detailViewModal {
        width: 85vw;
        max-width: none;
        min-width: 280px;
        min-height: 45vh;
        margin-top: -5rem;
        border-radius: 15px;
    }
    
    .projectLogo {
        min-height: 11rem;
    }
    
    .modalProjectTitle {
        font-size: 1.3rem;
        left: 15px;
        bottom: 10px;
        right: 80px; /* Prevent overlap with button */
        z-index: 10; /* Ensure title is above other elements */
    }
    
    .modalBody {
        padding: 15px;
    }
    
    .modalProjectDesc {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .techStackTitle {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .techStackList li {
        height: 35px;
        padding: 0 15px;
        font-size: 0.6rem;
    }
    
    .modalFooter button {
        margin-top:3.5rem;
        top: 7.2rem;
        right: 0.8rem;
        width: 50px;
        height:50px;
    }
    
    .modalFooter button i {
        font-size: 1.3rem;
    }
}

/* Mobile portrait (320px - 479px) */
@media screen and (max-width: 479px) {
    .detailViewModal {
        width: 92vw;
        min-width: 260px;
        max-width: 90%;
        max-height: 85vh;
        margin-top: -25rem;
        border-radius: 12px;
    }
    
    .projectLogo {
        height: 6rem;
    }
    
    .modalProjectTitle {
        font-size: 1.1rem;
        left: 12px;
        bottom: 8px;
        right: 70px;
        line-height: 1.2;
    }
    
    .modalBody {
        padding: 12px;
    }
    
    .modalProjectDesc {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .techStackTitle {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .techStackList {
        gap: 6px;
        padding: 0.2rem;
    }
    
    .techStackList li {
        height: 32px;
        padding: 0 12px;
        font-size: 0.55rem;
        min-width: auto;
    }
    
    .modalFooter button {
        top: 3.8rem;
        right: 0.6rem;
        width: 40px;
        height: 40px;
    }
    
    .modalFooter button i {
        font-size: 1.1rem;
    }
    
    .closeModal {
        width: 28px;
        height: 28px;
        top: 10px;
        right: 10px;
    }
    
    .closeIcon {
        font-size: 16px;
    }
}

/* Extra small devices (max-width: 320px) */
@media screen and (max-width: 320px) {
    .detailViewModal {
        width: 95vw;
        min-width: 240px;
        margin-top: -1rem;
    }
    
    .projectLogo {
        height: 5rem;
    }
    
    .modalProjectTitle {
        font-size: 1rem;
        left: 10px;
        bottom: 6px;
        right: 60px;
    }
    
    .modalBody {
        padding: 10px;
    }
    
    .modalProjectDesc {
        font-size: 0.8rem;
    }
    
    .techStackTitle {
        font-size: 0.9rem;
    }
    
    .techStackList li {
        height: 30px;
        padding: 0 10px;
        font-size: 0.5rem;
    }
    
    .modalFooter button {
        top: 3.5rem;
        right: 0.5rem;
        width: 35px;
        height: 35px;
    }
    
    .modalFooter button i {
        font-size: 1rem;
    }
}

/* Landscape orientation adjustments for mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .detailViewModal {
        max-height: 90vh;
        width: 80vw;
    }
    
    .projectLogo {
        height: 4rem;
    }
    
    .modalProjectTitle {
        font-size: 1rem;
        bottom: 5px;
    }
    
    .modalBody {
        padding: 10px;
    }
    
    .modalFooter button {
        top: 2.8rem;
        width: 35px;
        height: 35px;
    }
}


