

.project-hero-content {
    text-align: center;
    z-index: 2;
}


.project-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Projects Section */
.projects-section {
    padding: 4rem 2rem;
    background: #f8fafc;
    min-height: 50vh;
}

.projects-grid {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Fixed 3 columns */
  gap: 2rem;
  justify-items: center; /* Center cards within grid areas */
}

/* Project Cards */
.project-card {
    
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #00e5ff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px (52, 152, 219, 0.15);
}

.project-card-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.project-card-content p {
    color: #64748b;
    line-height: 1.6;
}

/* Project Overlay (Semi-screen) */






/* Project Hero Section with Services Bar */
/* Project Hero Section with Services Bar */
.project-hero {
    height: 80vh; /* Increase height to give more space */
    background: black;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    z-index: 10;
    width: 100%;
    padding-bottom: 2rem; /* Add bottom padding */
}

.project-hero #shooting-star-bg {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; /* Below hero content but above background */
}

.project-hero-content,
.services-bar,
.services-container {
    position: relative;
    z-index: 10;
}
    


/* Services Bar - Inside Hero */
.services-bar {
    
    background: transparent;
    padding-top: 3rem;
    padding-bottom: 1rem; /* Reduce padding */
    flex-shrink: 0;
    position: relative;
    z-index: 15;
    transition: border-bottom-color 0.3s ease;
}

/* Service 1 (AI/ML) - Blue Theme */
.service-item[data-service="analytics"]:hover ~ * .services-bar,
.service-item[data-service="analytics"].active ~ * .services-bar,
.services-bar.service-1-active {
    border-bottom-color: #3498db;
}

.projects-content.service-1-active {
    background: linear-gradient(135deg, #f8fafc 0%, #ebf3fd 100%);
}

/* Service 2 (Computer Vision) - Purple Theme */
.service-item[data-service="ml"]:hover ~ * .services-bar,
.service-item[data-service="ml"].active ~ * .services-bar,
.services-bar.service-2-active {
    border-bottom-color: #a929e4;
}

.projects-content.service-2-active {
    background: linear-gradient(135deg, #f8fafc 0%, #f3ebfd 100%);
}

/* Service 3 (Web Development) - Green Theme */
.service-item[data-service="bi"]:hover ~ * .services-bar,
.service-item[data-service="bi"].active ~ * .services-bar,
.services-bar.service-3-active {
    border-bottom-color: #6be22b;
}
.projects-content.service-3-active {
    background: linear-gradient(135deg, #f8fafc 0%, #ebfdf0 100%);
}

/* Services Container */
.services-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: center;
    place-items: center;
    gap: 10rem;
    padding: 0 2rem;
    position: relative;
    z-index: 20; /* Highest z-index for services */
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

#service-item-1{
    padding-left: 2%;
}
.service-icon-1
 {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.241);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid whitesmoke;
    backdrop-filter: blur(10px);
}
.service-icon-2
 {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.241);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid whitesmoke;
    backdrop-filter: blur(10px);
}
.service-icon-3
 {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.241);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid whitesmoke;
    backdrop-filter: blur(10px);
}

.service-icon-1 img {
    width: 35px;
    height: 35px;
    filter: brightness(1) saturate(0) invert(1);
    transition: all 0.3s ease;
}
.service-icon-2 img {
    width: 35px;
    height: 35px;
    filter: brightness(1) saturate(0) invert(1);
    transition: all 0.3s ease;
}
.service-icon-3 img {
    width: 35px;
    height: 35px;
    filter: brightness(1) saturate(0) invert(1);
    transition: all 0.3s ease;
}

.service-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    white-space: nowrap;
    position: relative;
    z-index: 15; /* Ensure labels appear above everything */
}
.service-item[data-service="analytics"].active .service-label,
.service-item[data-service="analytics"]:hover .service-label {
    color: #3498db !important;
}
.service-item[data-service="ml"].active .service-label,
.service-item[data-service="ml"]:hover .service-label {
    color: #a929e4 !important;
}
.service-item[data-service="bi"].active .service-label,
.service-item[data-service="bi"]:hover .service-label {
    color: #6be22b !important;
}

/* Hover Effects */
.service-item:hover .service-icon-1{
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(52, 152, 219, 0.532);
}
.service-item:hover .service-icon-2 {
    background: rgba(52, 152, 219, 0.2);
    border-color: #a929e4;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(180, 52, 219, 0.59);
}
.service-item:hover .service-icon-3 {
    background: rgba(52, 152, 219, 0.2);
    border-color: #6be22b;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 219, 94, 0.669);
}

.service-item:hover .service-icon-1 img {
    filter: brightness(1.2) saturate(1) invert(0);
    transform: scale(1.1);
}
.service-item:hover .service-icon-2 img {

    filter: brightness(1.2) saturate(1) hue-rotate(60deg);
    transform: scale(1.1);
}
.service-item:hover .service-icon-3 img {
    filter: brightness(1.2) saturate(1) hue-rotate(270deg); /* Green tint */
    transform: scale(1.1);
}

.service-item:hover .service-label {
    opacity: 1;
    transform: translateY(0);
}

/* Active State */
.service-item.active .service-icon-1 {
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(52, 152, 219, 0.532);
    
}
.service-item.active .service-icon-1 img {
    filter: brightness(1.5) saturate(1) invert(0);

}
.service-item.active .service-icon-2 {
    background: rgba(52, 152, 219, 0.2);
    border-color: #a929e4;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(180, 52, 219, 0.59);
}   
.service-item.active .service-icon-2 img {
    filter: brightness(1.5) saturate(1) hue-rotate(60deg);
    transform: scale(1.1);

}
.service-item.active .service-icon-3 {
    background: rgba(52, 152, 219, 0.2);
    border-color: #6be22b;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 219, 94, 0.669);
}
.service-item.active .service-icon-3 img {
    filter: brightness(1.5) saturate(1) hue-rotate(270deg);
    transform: scale(1.1); /* Green tint */
}

.service-item.active .service-label {
    opacity: 1;
    transform: translateY(0);
    color: #f9fafb;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

/* Hero Content - Centered in remaining space */


.project-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Ensure main content doesn't overlap */
.main-content {
    position: relative;
    z-index: 1;
}
body .project-hero {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}



.project-hero-description {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 100 !important;
}

/* Update your existing project-hero-content to accommodate the description */
.project-hero-content {
    top:9vh;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 12;
    padding: 3rem 0;
    position: relative;
    min-height: 200px; 
}

.project-hero-title {
    font-size: clamp(3rem, 8vw, 5rem); /* Responsive sizing */
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2rem 0; /* Add bottom margin */
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 12;
}
.project-hero-description {
     font-size: clamp(1.2rem, 3vw, 2rem); /* Responsive sizing */
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin:  0 auto;
    max-width: 900px;
    line-height: 1.6;
    text-align: center;
    font-style: italic;
    letter-spacing: 0.02em;
    z-index: 12;
     padding: 0 2rem;
}



/* Projects Content */
.projects-content {
    padding: 6rem 2rem 4rem 2rem; /* Increase top padding */
    background: black;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto 4rem auto; /* Remove top margin */
    border-radius: 50px;
    transition: background 0.5s ease;
    margin-top: 3rem; /* Add separation margin */
}

.project-card.highlighted {
    transform: translateY(-8px);
    transition: all 0.3s ease;
}

.project-card.highlighted-blue {
    border: 3px solid #3498db;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.project-card.highlighted-purple {
    border: 3px solid #a929e4;
    box-shadow: 0 8px 25px rgba(169, 41, 228, 0.3);
}

.project-card.highlighted-green {
    border: 3px solid #6be22b;
    box-shadow: 0 8px 25px rgba(107, 226, 43, 0.3);
}



/* Project Cards */
.project-card {
  background: #000000d1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  max-width: 350px; /* ADD: Maximum card width */
}

/* Default project card border */
.project-card::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 5px;
    background: linear-gradient(90deg, #ffffff, #767676, #000000, #767676, #ffffff);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

/* Blue highlighting for AI/ML */
.project-card.highlighted-blue::before {
    background: linear-gradient(90deg, #ffffff, #3498db, #003b62,#3498db, #ffffff) !important;
}

/* Purple highlighting for Computer Vision */
.project-card.highlighted-purple::before {
    background: linear-gradient(90deg, #ffffff,#a929e4,#3c0057, #a929e4, #ffffff) !important;
}

/* Green highlighting for Web Development */
.project-card.highlighted-green::before {
    background: linear-gradient(90deg, #ffffff, #6be22b, #2f8600, #6be22b, #ffffff) !important;
}


.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
  height: 160px; /* CHANGE: Reduce from 200px to 160px */
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-weight: 500;
  overflow: hidden;
  border: 3px solid white;  /* green border (or any color) */

  border-radius: 20px;   /* round corners */
    overflow: hidden;      /* clip image edges */
    
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    overflow: hidden;  /* ensures corners outside radius are hidden */
    display: block;    /* prevents extra inline gap */
}


.project-content {
    padding: 1.2rem;

}

.project-content h3 {
  font-size: 1.3rem; /* CHANGE: Reduce from 1.5rem to 1.3rem */
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.4rem; /* CHANGE: Reduce from 0.5rem to 0.4rem */
}

.project-content p {
  color: #929292ff;
  line-height: 1.5; /* CHANGE: Reduce from 1.6 to 1.5 */
  margin-bottom: 0.8rem; /* CHANGE: Reduce from 1rem to 0.8rem */
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tag {
    background: #e2e8f0;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Project Overlay */
.project-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    overflow: hidden; /* Prevent outer scrolling */
    z-index: 9999;
}

.project-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}



/* Make sure scrollbar is visible and styled */
.project-overlay-content::-webkit-scrollbar {
    width: 12px !important;
    background: rgba(8, 2, 42, 0.1) !important;
    border-radius: 6px !important;
}
.project-overlay-content::-webkit-scrollbar-track {
    background: rgba(8, 2, 42, 0.2) !important;
    border-radius: 6px !important;
    border: 1px solid rgba(52, 152, 219, 0.1) !important;
}

.project-overlay-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3498db 0%, #2980b9 100%) !important;
    border-radius: 5px !important;
    border: 1px solid rgba(8, 2, 42, 0.1) !important;
    box-shadow: 0 0 6px rgba(52, 152, 219, 0.3) !important;
    min-height: 25px !important;
}

.project-overlay-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2980b9 0%, #1f5f99 100%) !important;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5) !important;
}

.project-overlay-content::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #2980b9 0%, #1f5f99 50%, #154360 100%) !important;
    box-shadow: 
        inset 2px 2px 6px 0 rgba(0, 0, 0, 0.2),
        0 0 15px rgba(52, 152, 219, 0.7) !important;
}


.project-overlay-content::-webkit-scrollbar-corner {
    background: rgba(0, 2, 20, 0.3) !important;
}


.project-overlay-content::-webkit-scrollbar-button {
    display: block !important;
    height: 10px !important;
    background: rgba(52, 152, 219, 0.2) !important;
    border-radius: 5px !important;
}

.project-overlay-content::-webkit-scrollbar-button:hover {
    background: rgba(52, 152, 219, 0.4) !important;
}



/* Project Slides Container */
.project-slides {
    height: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.project-overlay.active .project-overlay-content {
    scrollbar-width: thin !important;
    scrollbar-color: #3498db rgba(0, 2, 20, 0.3) !important;
}

.project-overlay.active .project-overlay-content::-webkit-scrollbar {
    width: 12px !important;
    display: block !important;
}


.navbar {
    z-index: 1000; /* Keep this lower than overlay */
}

/* For Blue Theme (analytics) */
.navbar.service-1-active .job-title {
  color: #3498db !important;
}

/* For Purple Theme (ml category) */
.navbar.service-2-active .job-title {
  color: #a929e4 !important;
}

/* For Green Theme (bi category) */
.navbar.service-3-active .job-title {
  color: #6be22b !important;
}


body.overlay-active {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

body.overlay-active .main-content,
body.overlay-active .navbar,
body.overlay-active .project-hero,
body.overlay-active .projects-content {
    pointer-events: none; /* Disable background interactions */
}

/* Change project slide to horizontal layout */
.project-slide {
  display: flex;
  flex-direction: column;   /* vertical stack: image, text, nav */
  width: 100%;
  height: 100%;
  background: white;
  overflow: hidden;
}


.project-overlay-content {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: min(95vw, 1000px);
  height: calc(100vh - 130px); /* Account for navbar */
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: all;
  z-index: 10000;
}
.project-slide.active {
    opacity: 1;
    transform: none !important;
}

.project-slide-image {
  flex: 0 0 50%;            /* 50% of overlay height, adjust as needed */
  max-height: 50%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  border-radius: 15px 15px 0 0;
  box-sizing: border-box;
  overflow: hidden;
}
.project-slide-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgb(255, 255, 255);
    border-radius: 12px;
    pointer-events: none;
}

.project-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}



/* Text container - remaining 3/4 space */
.project-slide-nav {
  flex: 0 0 10%;           /* 10% of height, or adjust as min-content */
  width: 100%;
  min-height: 50px;
  max-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 0;
  background: transparent;
  box-sizing: border-box;
}

#overlayTitle {
  position: sticky;
  top: 0;
  background: rgb(0, 0, 1) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  z-index: 10;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  border: 2px solid #e5e7eb;
  margin: 0;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-slide-text::-webkit-scrollbar {
    width: 8px;
}

.project-slide-text::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.project-slide-text::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.project-slide-text::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}



/* Text content styling */
.project-slide-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 1rem;
    line-height: 1.3;
    position: sticky; /* Keep title visible while scrolling */
    top: 0;
  background: transparent !important;
    padding-bottom: 0.5rem;
    z-index: 10;
}

.project-slide-text p {
    color: #243650;
    line-height: 1.5;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    text-align: justify;
}

.project-slide-nav {
  position: absolute !important;
  bottom: 0px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: transparent !important;
  backdrop-filter: blur(15px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.4rem 0.8rem !important;
  border-top-left-radius: 15px !important;
  border-top-right-radius: 15px !important;
  border-left: 3px solid rgb(0, 0, 0) !important;
  border-right: 3px solid rgb(0, 0, 0) !important; 
  border-top: 3px solid rgb(0, 0, 0) !important;
  gap: 0.8rem !important;
  z-index: 1000 !important;
  height: 57px !important;
  min-width: 180px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  border-bottom: transparent;
}



.slide-prev, .slide-next {
    width: 40px;
    height: 40px;
    border: none;
    background: #000000;
    
    color: rgb(255, 255, 255);
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-prev:hover, .slide-next:hover {
    background: rgb(0, 0, 0);
    color: rgb(255, 253, 253);
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.slide-indicators {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.6);
}

.slide-dot.active {
    background: #000000;
    transform: scale(1.3);
}

.slide-dot:hover {
    background: rgba(52, 152, 219, 0.7);
    border-color: #3498db;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
}

#overlayDescription {
  flex: 1;
  padding: 0.5rem 2rem;
  overflow-y: auto;
  font-size: 1rem;
  line-height: 1.6;
  color: #64748b;
  text-align: justify;
  scrollbar-width: thin;
  scrollbar-color: #3498db rgba(0, 0, 0, 0.1);
}

#overlayDescription p:first-child {
  margin-top: 0;
}

#overlayDescription::-webkit-scrollbar {
    width: 8px;
}

#overlayDescription::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

#overlayDescription::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

.project-slide-title {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    z-index: 10;
    border-bottom: 2px solid #e5e7eb;
    margin: 0;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-slide-title h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.github-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
  background: transparent !important;
}

.github-link:hover {
    color: #000000 !important;
    background: rgba(255, 255, 255, 0.955) !important;
    transform: scale(1.05) !important;
}

.github-link svg {
    width: 18px !important;
    height: 18px !important;
}

/* Smooth scroll offset for fixed navbar */
#projects-section {
    scroll-margin-top: 100px; /* Adjust based on your navbar height */
}

/* Enhanced smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Optional: Add a subtle animation when projects section comes into view */
#projects-section {
    scroll-margin-top: 100px;
    transition: all 0.3s ease-in-out;
}

#projects-section.highlighted {
    transform: scale(1.02);
}


.navbar {
    background: rgba(0, 6, 61, 0.201);
    border-bottom: 0.5px solid #717171e3;
    padding: 1.2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: border-bottom-color 0.3s ease;
    width: 100%;
}

.navbar.service-1-active { border-bottom-color: #3498db; }
.navbar.service-2-active { border-bottom-color: #a929e4; }
.navbar.service-3-active { border-bottom-color: #6be22b; }

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-profile-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    z-index: 1001;
}

.logo-profile-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #717171e3;
    transition: transform .3s, border-color 0.3s, box-shadow 0.3s;
    background: #000000;
}

.navbar.service-1-active .logo-profile-img {
    border-color: #3498db !important;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.4) !important;
}

.navbar.service-2-active .logo-profile-img {
    border-color: #a929e4 !important;
    box-shadow: 0 0 15px rgba(169, 41, 228, 0.4) !important;
}

.navbar.service-3-active .logo-profile-img {
    border-color: #6be22b !important;
    box-shadow: 0 0 15px rgba(107, 226, 43, 0.4) !important;
}

.logo-profile-img:hover {
    border-color: #717171e3 ;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.48);
}

.logo-profile-container:hover .logo-profile-img {
    transform: scale(1.06);
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #E6ECF5;
    cursor: pointer;
    transition: color 0.3s;
}

.profile-name:hover {
    color: #3498db;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: #3498db;
    background: rgb(255, 255, 255);
    border-color: rgba(52, 152, 219, 0.3);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #000000;
    background: rgb(255, 255, 255);
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    height: 2px;
    width: 100%;
    border-radius: 1px;
}

.profile-card {
    position: absolute;
    top: 50px;
    left: 0;
    width: 320px;
    background: rgba(11, 18, 32, 0.95);
    color: #E6ECF5;
    border-radius: 12px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,.3);
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all .25s;
    pointer-events: none;
    z-index: 9999;
    transform: translateY(-10px);
    backdrop-filter: blur(10px);
}

.logo-profile-container:hover .profile-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-card-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #717171e3 ;
    
}

.navbar.service-1-active .profile-card-img {
    border-color: #3498db !important;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.4) !important;
}

.navbar.service-1-active .detail-label {
    color: #3498db !important;
}

.navbar.service-2-active .profile-card-img {
    border-color: #a929e4 !important;
    box-shadow: 0 0 15px rgba(169, 41, 228, 0.4) !important;
}

.navbar.service-2-active .detail-label {
    color: #a929e4 !important;
}

.navbar.service-3-active .profile-card-img {
    border-color: #6be22b !important;
    box-shadow: 0 0 15px rgba(107, 226, 43, 0.4) !important;
}

.navbar.service-3-active .detail-label {
    color: #6be22b !important;
}

.profile-card-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #E6ECF5;
    font-weight: 600;
}

.job-title {
    color: #717171e3;
    font-size: 0.9rem;
    margin: 0;
    margin-top: 0.2rem;
}

.profile-card-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.profile-detail {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.4rem 0;
}

.detail-label {
    font-weight: 600;
    color: #717171e3;
    font-size: 0.85rem;
    min-width: 70px;
    text-align: left;
}

.detail-value {
    color: #E6ECF5;
    font-size: 0.85rem;
    text-align: right;
    flex: 1;
    margin-left: 1rem;
}

.detail-value-avl {
    color: #27ae60;
    font-size: 0.85rem;
    text-align: right;
    flex: 1;
    margin-left: 1rem;
}

.profile-detail img {
    margin-left: 0.28rem;
    vertical-align: middle;
    border-radius: 2px;
}

.scroll-indicator {
  display: none;
}

