*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

/* Browser-specific font rendering fixes */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    line-height: 1.6; /* Explicit line-height */
}
.sr-only{opacity: 0;}
/* Force consistent backdrop-filter across browsers */
.navbar,
.profile-card,
.slide__text,
.entity-left,
.entity-right,
.pagination-header,
.pagination {
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}

/* Fix Chrome's default button/input styling */
button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Consistent font sizes - Replace clamp() with fixed px values */
.slide__text-heading {
    font-size: 48px !important; /* Instead of clamp() */
    font-weight: 700 !important;
    line-height: 1.1 !important;
}

.slide__text-desc {
    font-size: 24px !important; /* Instead of clamp() */
    line-height: 1.6 !important;
}

.profile-name {
    font-size: 19px; /* Instead of 1.2rem */
    font-weight: 600;
    line-height: 1.2;
}

.nav-link {
    font-size: 13px; /* Instead of 0.8rem */
    line-height: 1.4;
    padding: 12px 24px; /* px instead of rem */
}

.skills-header h2 {
    font-size: 35px; /* Instead of 2.2rem */
    line-height: 1.3;
}

/* Fix Chrome's flexbox differences */
.nav-container,
.logo-profile-container,
.nav-links,
.slide__text,
.skills-organized,
.slide__buttons {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

/* Consistent transform and transition prefixes */
.logo-profile-img,
.nav-link,
.slider-control,
.pagination-dot {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* Fix Chrome's grid differences */
.role-buttons,
.projects-grid,
.skills-entity {
    display: -ms-grid;
    display: grid;
}

/* Explicit border-radius values */
.navbar,
.profile-card,
.slide__text,
.role-btn,
.entity-left,
.entity-right {
    -moz-border-radius: 12px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;

}

/* Fix Chrome's default margins on headings */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: inherit;
    line-height: 1.2;
}

/* Fix Chrome's default paragraph margins */
p {
    margin: 0;
    line-height: 1.6;
}

#slide_subtopic{
        color: #4da3ff;
}

/* Consistent list styling */
ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Fix Chrome's default link styling */
a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

/* Browser-specific scrollbar fixes */
* {
    scrollbar-width: thin;
    scrollbar-color: #3498db transparent;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

*::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

*::-webkit-scrollbar-track {
    background: rgba(0, 2, 20, 0.3);
    -webkit-border-radius: 100px;
    border-radius: 100px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d0368a 0%, #708ad4 99%);
    -webkit-border-radius: 100px;
    border-radius: 100px;
    border: 2px solid rgba(0, 2, 20, 0.3);
}

/* Force consistent selection styling */
::selection {
    background: rgba(52, 152, 219, 0.3);
    color: #E6ECF5;
}

::-moz-selection {
    background: rgba(52, 152, 219, 0.3);
    color: #E6ECF5;
}
/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Base */
body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    line-height: 1.6;
    color: #E6ECF5;
    background: rgb(0, 0, 0) !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* Scroll snap container */
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
}

/* Scroll snap sections */
.snap-section {
    scroll-snap-align: start;
    min-height: 100vh;
}

/* NAV - Profile left, navigation right */
.navbar {
    background: rgba(0, 6, 61, 0.201);
    
    border-bottom: 0.5px solid #3498db;
    padding: 1.2rem 0;
    position: fixed; 
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: border-bottom-color 0.3s ease; /* Smooth transition */
}

/* Navbar color changes for each service */
.navbar.service-1-active {
    border-bottom-color: #3498db; /* Blue for AI/ML */
}

.navbar.service-2-active {
    border-bottom-color: #a929e4; /* Purple for Computer Vision */
}

.navbar.service-3-active {
    border-bottom-color: #6be22b; /* Green for Web Development */
}

.detail-value-avl .detail-value {
    margin-left: 0; /* remove extra spacing */
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    justify-content: space-between; /* Profile left, links right */
    align-items: center;
}

/* Profile section - moved to left */
.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 #3498db; 
    transition: transform .3s; 
}
/* Profile image active states - synchronized with service colors */
.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: #5dade2;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.4);
}
.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;
}

/* Navigation links - moved to right */
.nav-links {
    display: flex;
    gap: 1rem; /* More spacing between nav items */
    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%; 
    /*background: #3498db; */
    border-radius: 1px; 
}

/* Profile card - positioned relative to profile */
/* Updated Profile Card Styles */
.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 #3498db;
}

.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: #3498db;
    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: #4da3ff;
    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;
}

/* MAIN */
.main-content { 
    margin-top: 0; /* Remove fixed margin for scroll snap */
}

.page { 
    display: none; 
    opacity: 0; 
    transition: opacity .25s; 
}

.page.active { 
    display: block; 
    opacity: 1; 
}

/* HERO SECTION - First snap section */
.hero-section {
    background: transparent;
    color: #E6ECF5;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
}

.slider-container {
    position: relative;
    height: 100%;
    user-select: none;
    background: transparent;
}

.slider-control {
    border: transparent;
    z-index: 8;
    position: absolute;
    top: 0;
    width: 5%;
    min-width: 20px;
    height: 100%;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: auto;
}
.slider-control.left { 
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,.18), rgba(0,0,0,0));
}
.slider-control.right { 
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,.18), rgba(0,0,0,0));
}

.pagination-container:hover ~ .slider-control:not(.inactive) {
    opacity: 1;
}
.slider-control:not(.inactive):hover { 
    opacity: 1; 
    cursor: pointer; 
}
/* Show slider controls when hovering over pagination */
.slider-pagi:hover ~ .slider-control:not(.inactive) {
    opacity: 0.7;
}

.slider-control.left::after,
.slider-control.right::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 36px; 
    height: 36px;
    margin-top: -18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}
.slider-container:hover .slider-control:not(.inactive):hover {
    opacity: 1;
}
.slider-control.left::after { 
    left: 16px; 
    clip-path: polygon(65% 20%, 35% 50%, 65% 80%, 55% 90%, 20% 50%, 55% 10%); 
}
.slider-control.right::after { 
    right: 16px; 
    clip-path: polygon(35% 20%, 65% 50%, 35% 80%, 45% 90%, 80% 50%, 45% 10%); 
}
.slider-control:hover::after {
    background: rgba(52, 152, 219, 0.9);
    border-color: #3498db;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}
.slider-control.inactive {
    pointer-events: none;
    opacity: 0 !important;
}
.slider-control.inactive::after {
    opacity: 0.3;
    background: rgba(255, 255, 255, 0.3);
}
/* Show controls when hovering over new pagination structure */
.pagination-container:hover ~ .slider-control:not(.inactive),
.pagination:hover ~ .slider-control:not(.inactive) {
    opacity: 1;
}
.slider-pagi {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    font-size: 0;
    list-style-type: none;
    padding: 1rem 2rem;
    background: transparent;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 200px;
    text-align: center;
}

.slider-pagi__elem {
    position: relative;
    display: inline-block;
    vertical-align: top;
    width: 16px;
    height: 16px;
    margin: 0 0.8rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.slider-pagi__elem:hover {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.3);
    transform: scale(1.1);
}
.slider-pagi__elem:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    background: #3498db;
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%) scale(0);
}

.slider-pagi__elem.active {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.2);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.4);
}
.slider-pagi__elem.active:before,
.slider-pagi__elem:hover:before {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.6);
}

.slider {
    z-index: 1;
    position: relative;
    height: 100%;
}

.slider.animating {
    transition: transform 0.5s;
    will-change: transform;
}

.slide {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: transparent;
}

.slide.active .slide__overlay,
.slide.active .slide__text {
    opacity: 1;
    transform: translateX(-50%, -50%); ;
}

.slide__bg {
    display: none;
}

.slide:nth-child(1) { left: 0; }
.slide:nth-child(2) { left: 100%; }
.slide:nth-child(3) { left: 200%; }
.slide:nth-child(4) { left: 300%; }

.slide__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
}


.slide__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    transition: transform 0.5s 0.5s, opacity 0.2s 0.5s;
    will-change: transform, opacity;
    transform: translate3d(-20%, 0, 0);
    opacity: 0;
    z-index: 2;
}
.slide.active .slide__overlay {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.slide:nth-child(1) .slide__overlay-path {
    fill: rgba(0, 0, 0, 0.6);
    opacity: 40%;
}

.slide:nth-child(2) .slide__overlay-path {
    fill: rgba(255, 255, 255, 0.6);
    opacity: 40%;
}

.slide:nth-child(3) .slide__overlay-path {
    fill: rgba(0, 0, 0, 0.6);
    opacity: 40%;
}

.slide:nth-child(4) .slide__overlay-path {
    fill: rgba(255, 255, 255, 0.6);
    opacity: 40%;
}

.slide__text {
    position: absolute;
    display: flex !important;
    height: auto;
    bottom: auto;
    min-height: 300px;
    max-height: 80vh;
    min-width: 85%; /* Adjusted width */
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%); /* Proper centering */
    z-index: 4;
    color: #E6ECF5;
    transition: transform 0.8s 0.12s, opacity 0.5s 0.8s;
    will-change: transform, opacity;
    opacity: 0;
    border-radius: 20px;
    background: rgba(0, 6, 61, 0.201);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow:
        0 20px 40px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(14px) saturate(112%);
    -webkit-backdrop-filter: blur(14px) saturate(112%);
    padding: 2rem;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    overflow-y: none;
    align-items: center !important;
    /* Remove margin adjustments that were causing misalignment */
}



.slide__text-desc {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem) !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
    text-align: center !important;
    max-width: 100% !important;
    width: 100% !important;
}
    /* Allow description to grow */

.slide__text-link {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    cursor: pointer;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #E6ECF5;
    text-decoration: none;
    border: 2px solid #E6ECF5;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
    text-shadow: none;
    backdrop-filter: blur(8px);
    text-align: center;
    min-width: 140px;
}

.slide__text-link:hover {
    background: #E6ECF5;
    color: #06101e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 236, 245, 0.3);
}
slide__text .interactive-features,
.slide__text p {
    font-size: 1.1rem !important; /* Bigger content text */
    line-height: 1.7 !important;
    text-align: center !important; /* Center align instead of justify */
    margin: 1.5rem 0 !important;
    width: 100% !important;
}

/* SKILLS SECTION - Second snap section */
.skills-section {
    background: transparent;
    padding: 4rem 0 6rem 0;
    position: relative;
    z-index: 3;
    scroll-snap-align: start;
    min-height: 100vh; /* Use min-height instead of fixed height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Start from top, not center */
    overflow: visible; /* Allow content to overflow */
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Remove height constraints */
}

.skills-header { 
    text-align: center; 
    margin-bottom: 2rem; 
}

.skills-header h2 { 
    font-size: 2.2rem; 
    margin-bottom: .6rem; 
    color: #ffffff; 
}

.skills-header p { 
    color: #b1c1cf; 
}

.role-buttons {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 1rem; 
    margin-bottom: 1.5rem;
}

.role-btn {
    background: #00022400;
    backdrop-filter: blur(15px);
    color: #ffffff; 
    border: 2px solid #3498db; 
    border-radius: 12px; 
    padding: 1rem;
    font-weight: 600; 
    cursor: pointer; 
    transition: all .2s;
}

.role-btn:hover { 
    border-color: #3498db; 
    box-shadow: 0 6px 12px rgba(52,152,219,.15); 
}

.role-btn.active { 
    background: #3498db; 
    color: #06101e; 
    border-color: #ffffff6f; 
}

.skills-entity {
    display: grid;
    grid-template-columns: 1.6fr 1fr; /* Desktop: radar left, content right */
    gap: 24px;
    align-items: start; /* Align to start instead of stretch */
    padding: 16px;
    
    border-radius: 14px;
    background: transparent;
    backdrop-filter: blur(15px);
    /* Remove all height constraints - let content determine height */
    min-height: 500px; /* Minimum height only */
    height: auto; /* Auto height */
    max-height: none; /* Remove max-height limit */
    overflow: visible; /* Allow content to be visible */
}

.entity-left {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border:1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    background: rgba(0, 6, 61, 0.201);
    backdrop-filter: blur(20px);
    min-height: 400px; /* Minimum height for radar */
    height: auto; /* Auto height */
}

#radarCanvas {
    width: 100%;
    height: 100%;
    min-height: 500px;
    max-height: 700px;
    display: block;
}

.entity-right {
    
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    background: rgba(0, 6, 61, 0.201);
    backdrop-filter: blur(20px);
    color: #E6ECF5;
    /* Remove height constraints - let content determine height */
    height: auto; /* Auto height */
    min-height: 400px; /* Minimum height */
    max-height: none; /* Remove max-height limit */
    overflow: visible; /* Make content visible */
}

.entity-right h3 {
    margin: 0 0 4px 0;
    color: #F2F6FB;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.skill-item:last-child {
    border-bottom: 0;
}

.skill-name { 
    color: #E6ECF5; 
}

.skill-level {
    background: #3498db;
    color: #06101e;
    padding: 2px 10px;
    border-radius: 16px;
    font-weight: 700;
    font-size: .85rem;
}

.skill-level.empty {
    background: rgba(255,255,255,0.1);
    color: #cdd8e5;
}

.project-mini h4 {
    margin: 8px 0 4px 0;
    color: #E6ECF5;
    font-weight: 600;
}

.usage-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    margin: 0;
}

.usage-list li {
    color: #cfe1f5;
    opacity: 0.95;
}

/* PROJECTS */
.projects-hero { 
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); 
    top: 30%;
    color: white; 
    text-align: center; 
    padding: 3rem 0; 
}

.projects-content { 
    padding: 3rem 0; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding-left: 2rem; 
    padding-right: 2rem; 
}

.projects-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 1.5rem; 
}

.project-card { 
    background: white; 
    border: 1px solid #e1e8ed; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 2px 8px rgba(0,0,0,.05); 
    transition: transform .2s, box-shadow .2s; 
}

.project-card:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(0,0,0,.1); 
}

.project-image { 
    height: 180px; 
    background: #f8f9fa; 
    display: grid; 
    place-items: center; 
    color: #7f8c8d; 
}

.project-content { 
    padding: 1rem 1.2rem 1.2rem; 
}

.project-content h3 { 
    color: #2c3e50; 
    margin-bottom: .3rem; 
}

.project-content p { 
    color: #5a6c7d; 
    margin-bottom: .8rem; 
}

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

.project-tag { 
    background: #f8f9fa; 
    color: #5a6c7d; 
    padding: .25rem .6rem; 
    border-radius: 14px; 
    border: 1px solid #e1e8ed; 
}

/* CONTACT */
.contact-hero { 
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%); 
    color: white; 
    text-align: center; 
    padding: 3rem 0; 
}

.contact-content { 
    padding: 3rem 0; 
    max-width: 700px; 
    margin: 0 auto; 
    padding-left: 2rem; 
    padding-right: 2rem; 
}

.contact-form { 
    background: white; 
    border-radius: 12px; 
    padding: 1.5rem; 
    border: 1px solid #e1e8ed; 
    box-shadow: 0 2px 8px rgba(0,0,0,.05); 
    color: #2c3e50; 
}

.form-group { 
    margin-bottom: 1rem; 
}

.form-group label { 
    display: block; 
    margin-bottom: .4rem; 
    font-weight: 600; 
}

input, textarea, .form-group input, .form-group textarea {
    user-select: auto;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
}

.form-group input, .form-group textarea { 
    width: 100%; 
    padding: .75rem; 
    border: 2px solid #e1e8ed; 
    border-radius: 8px; 
    font-size: 1rem; 
}

.form-group input:focus, .form-group textarea:focus { 
    outline: none; 
    border-color: #3498db; 
}

.submit-btn { 
    background: #3498db; 
    color: #06101e; 
    border: none; 
    padding: .9rem 1.2rem; 
    border-radius: 8px; 
    font-weight: 700; 
    cursor: pointer; 
    width: 100%; 
}

.submit-btn:hover { 
    background: #2980b9; 
}

.cta-btn {
    display: inline-block;
    padding: .9rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #3498db;
    background: transparent;
    color: #3498db;
    transition: all .2s;
    text-decoration: none;
    text-align: center;
}

.cta-btn:hover {
    background: #3498db;
    color: #06101e;
}

/* Prevent text selection when interacting with shooting stars */
body.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Ensure buttons remain clickable */
button, .nav-link, .role-btn, .cta-btn {
    user-select: auto;
    pointer-events: auto;
}

/* ==============================
   CUSTOM SCROLLBAR STYLING
   ============================== */

/* Hide default scrollbars for all elements */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

*::-webkit-scrollbar {
    display: none; /* WebKit browsers */
}

/* Custom scrollbar for specific scrollable areas */
.entity-right,
.skills-container,
body,
html {
    scrollbar-width: thin;
    scrollbar-color: #3498db transparent; /* Firefox */
}

.entity-right::-webkit-scrollbar,
.skills-container::-webkit-scrollbar,
body::-webkit-scrollbar,
html::-webkit-scrollbar {
    width: 12px;
    display: block;
}

.entity-right::-webkit-scrollbar-track,
.skills-container::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
html::-webkit-scrollbar-track {
    background: rgba(0, 2, 20, 0.3);
    border-radius: 100px;
}

.entity-right::-webkit-scrollbar-thumb,
.skills-container::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb {
    background-image: linear-gradient(180deg, #d0368a 0%, #708ad4 99%);
    box-shadow: inset 2px 2px 5px 0 rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    border: 2px solid rgba(0, 2, 20, 0.3);
}

.entity-right::-webkit-scrollbar-thumb:hover,
.skills-container::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover {
    background-image: linear-gradient(180deg, #e048a0 0%, #8098e4 99%);
    box-shadow: inset 2px 2px 8px 0 rgba(255, 255, 255, 0.7);
}

/* Ensure scrollbars appear when needed */
.entity-right {
    overflow-y: auto !important;
    scrollbar-width: thin !important;
}

body {
    overflow-y: auto !important;
    scrollbar-width: thin !important;
}

/* Minimal company link - no gaps */
.company-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.company-link:hover {
    color: #2980b9;
}

.skills-ultra-compact p {
    margin: 0.3rem 0;
    font-size: 0.8rem;
    line-height: 1.3;
}

.skills-ultra-compact strong {
    color: #3498db;
    font-weight: 600;
}

/* Organized Skills Layout */
.skills-organized {
    margin:1rem ;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: rgba(0, 2, 20, 0.6);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 8px;
    padding: 1.2rem;
    align-self: center !important;
    width: 100% !important;
    text-align: left !important;
}

.skill-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(52, 152, 219, 0.05);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.skill-row:hover
.skill-row:last-child {
    border-bottom: none;
}

.skill-row:last-child {
    border-bottom: none;
}

.skill-cat {
    color: #3498db;
    font-weight: 600;
    font-size: 0.8rem;
    min-width: 80px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-items {
    color: #E6ECF5;
    font-size: 0.8rem;
    line-height: 1.3;
    flex: 1;
    text-align: right;
}

/* Resume buttons */
.slide__buttons {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1.5rem !important;
    margin-top: 1.5rem !important;
    width: 100% !important;
    flex-wrap: wrap;
}

.slide__text-link {
    font-size: 1.1rem !important; /* Bigger button text */
    padding: 1rem 2rem !important; /* Bigger padding */
    text-align: center !important;
}

.skills-organized.grid-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0.5rem;
    align-items: start;
}

.skills-organized.grid-layout .skill-row {
    display: contents;
}

.skills-organized.grid-layout .skill-cat {
    padding: 0.5rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 4px;
    text-align: center;
}

.skills-organized.grid-layout .skill-items {
    padding: 0.5rem;
    background: rgba(0, 2, 20, 0.3);
    border-radius: 4px;
    text-align: left;
}

.skills-section .pagination-container,
.projects-content .pagination-container,
.contact-content .pagination-container {
    display: none !important;
}

/* Enhanced Pagination Container */
/* Base Pagination Container */
.pagination-container {
    position: absolute !important;
    bottom: 3rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 100 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
    pointer-events: auto !important;
}

.pagination-header {
    background: linear-gradient(135deg, rgba(0, 2, 20, 0.95) 0%, rgba(6, 16, 30, 0.9) 100%) !important;
    border: 1px solid rgba(52, 152, 219, 0.4) !important;
    border-radius: 12px !important;
    padding: 0.8rem 1.5rem !important;
    backdrop-filter: blur(15px) saturate(150%) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1.5rem !important;
    min-width: 240px !important;
    opacity: 0 !important;
    transform: translateY(15px) scale(0.95) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    pointer-events: none !important;
    text-align: center !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.pagination-header.show {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: all !important;
}

.pagination-title {
    color: #3498db !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.pagination-counter {
    color: #E6ECF5 !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    background: rgba(52, 152, 219, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.current-slide {
    color: #00E5FF !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
}

/* Pagination Dots */
.pagination {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    align-items: center !important;
    pointer-events: auto !important;
    justify-content: center !important;
    background: rgba(0, 2, 20, 0.6) !important;
    padding: 1rem 1.5rem !important;
    border-radius: 25px !important;
    border: 1px solid rgba(52, 152, 219, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

.pagination-dot {
    position: relative !important;
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.3) !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    pointer-events: auto !important;
}

.pagination-dot:hover {
    background: rgba(52, 152, 219, 0.6) !important;
    border-color: rgba(52, 152, 219, 0.8) !important;
    transform: scale(1.3) !important;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.4) !important;
}

.pagination-dot.active {
    background: #3498db !important;
    border-color: rgba(0, 229, 255, 0.8) !important;
    box-shadow: 
        0 0 25px rgba(52, 152, 219, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.2) !important;
}

/* CSS-only tooltips using data attribute */
.pagination-dot::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 2, 20, 0.95);
    color: #E6ECF5;
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(52, 152, 219, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pagination-dot::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 2, 20, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.pagination-dot:hover::before,
.pagination-dot:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Hide old pagination */
.slider-pagi {
    display: none !important;
}
/* Add to your main CSS file */
body {
    transition: opacity 0.3s ease-in-out;
}

.page-transition-out {
    opacity: 0.7 !important;
}

/* Ensure loader only appears on home page */
.page-load-overlay {
    display: none; /* Default hidden */
}

.home-page .page-load-overlay {
    display: flex; /* Only show on home page */
}

/* Navigation Loader Styles */
.nav-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 15, 20, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999998; /* Slightly lower than main loader */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.nav-loader-content {
    text-align: center;
    color: white;
}

.nav-loader-content p {
    margin-top: 15px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Navigation Loader Spinner */
.nav-loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: navSpin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes navSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.slide__text *,
    .skills-organized *,
    .pagination-container *,
    .profile-card *,
    .skills-entity * {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-loader-spinner {
        width: 35px;
        height: 35px;
    }
    
    .nav-loader-content p {
        font-size: 0.9rem;
    }
}

.resume-icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  color: #ffffff;
  background: transparent;
}

.resume-icon-container:hover,
.resume-icon-container:focus {
  color: #3498db;
  background: rgb(255, 255, 255);
  border-color: rgba(52, 152, 219, 0.3);
  outline: none;
  transform: translateY(-1px);
}

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

.resume-icon-container svg {
  width: 24px;
  height: 30px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.5;
}




/* Add this to your Projects_480px.css file */

@media (max-width: 480px) {
  
  /* Mobile scroll-based visibility for navigation elements */
  .mobile-scroll-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) scale(0.9) !important;
    pointer-events: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  /* Enhanced transition for service labels */
  .service-label {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  /* Enhanced transition for project slide navigation */
  .project-slide-nav {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  /* Ensure navigation elements are visible by default */
  

  .project-slide-nav:not(.mobile-scroll-hidden) {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
  }

  /* Smooth scroll behavior for mobile */
  html {
    scroll-behavior: smooth !important;
  }

  /* Add scroll padding to account for fixed navbar */
  .services-bar {
    scroll-margin-top: 70px !important;
  }

  .projects-content {
    scroll-margin-top: 70px !important;
  }

  /* Enhanced service item interactions on mobile */
  .service-item {
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  /* Better touch targets for mobile */
  .service-item {
    padding: 0.5rem !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .service-item:active {
    transform: scale(0.95) !important;
    background: rgba(255, 255, 255, 0.05) !important;
  }

  /* Enhanced project card touch interactions */
  .project-card {
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .project-card:active {
    transform: translateY(-4px) scale(0.98) !important;
  }

  /* Ensure overlay is not affected by scroll hiding */
  .project-overlay.active .mobile-scroll-hidden {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: all !important;
  }

  /* Additional mobile optimizations */
  .project-hero {
    -webkit-overflow-scrolling: touch !important;
  }

  .projects-content {
    -webkit-overflow-scrolling: touch !important;
  }

  /* Prevent zoom on input focus (if applicable) */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* Better mobile scrolling performance */
  .project-overlay-content {
    -webkit-overflow-scrolling: touch !important;
    will-change: scroll-position !important;
  }

  /* Smooth transition zones */
  .services-bar {
    position: relative !important;
    z-index: 15 !important;
  }

 

 

  /* Hide scroll indicator when in services area */
  .project-hero.services-active::after {
    opacity: 0 !important;
    visibility: hidden !important;
  }

}