/* Default Light Mode */
body {
    background-color: white;
    color: black;
    transition: background 0.3s, color 0.3s;
}

/* Sidebar - Light Mode */
#sidebar {
    background-color: #212529;
    transition: background-color 0.3s ease;
}

#sidebar a {
    color: white;
    display: block;
    padding: 15px;
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
}

#sidebar a:hover {
    background-color: #343a40;
    padding-left: 10px;
}

/* Dark Mode */
body.dark-mode {
    background-color: #121212;
    color: white;
}

/* Dark Mode - Sidebar */
body.dark-mode #sidebar {
    background-color: #1a1a1a;
}

body.dark-mode #sidebar a {
    color: #f1f1f1;
}

body.dark-mode #sidebar a:hover {
    background-color: #333;
    color: #ffffff;
}

/* Dark Mode - Cards */
body.dark-mode .card {
    background-color: #222;
    color: white;
    border-color: #444;
}

/* Dark Mode - Forms */
body.dark-mode .form-control {
    background-color: #333;
    color: white;
    border-color: #555;
}

/* Dark Mode - Buttons */
body.dark-mode .btn {
    border-color: white;
}


/* Hero Section - Fullscreen */
.hero-section {
    position: relative;
    width: 100%;
    height: 75vh; /* Fullscreen height */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Hero Image - Cover entire section */
.hero-overlay img {
    width: 100%;
    height: 70vh;
    object-fit: cover; /* Ensures image fills space without distortion */
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Hero Text - Centered & Readable */
.hero-section .container {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5); /* Transparent dark overlay for readability */
    padding: 20px;
    border-radius: 10px;
}


/* Dark Mode Toggle Button */
#theme-toggle {
    position: fixed;
    top: 15px;
    right: 20px;
    padding: 12px 15px;
    font-size: 20px;
    background-color: rgba(0, 0, 0, 0.8); /* Dark background for contrast */
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    transition: background 0.3s, transform 0.2s ease-in-out;
    z-index: 1000;
}

/* Hover Effect */
#theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: black;
    transform: scale(1.1); /* Slight zoom effect */
}

/* Button in Dark Mode */
body.dark-mode #theme-toggle {
    background-color: rgba(255, 255, 255, 0.9);
    color: black;
    border: 2px solid black;
}


/* Projects container */
.project-slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%; /* Ensures full section width */
    margin: auto;
    padding: 0 1%; /* Adds slight padding to match skills section */
}

/* Project slider */
.project-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto; /* Allows horizontal scrolling */
    overflow-y: hidden;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%; /* Ensures full width */
    white-space: nowrap;
    scrollbar-width: none;
}

.project-slider::-webkit-scrollbar {
    display: none; /* Hide scrollbar */
}

/* Ensure 3 cards fit across the full width */
.project-card {
    flex: 0 0 calc(33.33% - 20px); /* Ensures exactly 3 cards per row */
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Hover effect */
.project-card:hover {
    transform: scale(1.05);
}

/* Project image container */
.project-image-container {
    width: 100%;
    height: 250px; /* Keeps images at a good size */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Ensure project images are fully visible */
.project-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures full image is visible without cropping */
}

/* Card text fully visible */
.project-card .card-body {
    padding: 15px;
    text-align: left;
    white-space: normal; /* Ensures text wraps */
    overflow-wrap: break-word;
}

/* Navigation buttons at bottom */
.project-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.scroll-left, .scroll-right {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 18px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

.scroll-left:hover, .scroll-right:hover {
    background: black;
}

.skill-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.skill-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.about-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#neuronCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Moves canvas behind other elements */
}


/* Ensure the home section takes the full screen */
#home {
    position: relative;
    width: 100%;
    height: 100vh; /* Full screen height */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push content apart */
}

/* Background Image */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(3px); /* Optional blur effect */
    z-index: -2;
}

/* Title & Subtitle Section */
.hero-text-container {
    position: relative;
    text-align: center;
    padding-top: 60px; /* Push the title down */
    z-index: 2;
}

.animated-text {
    color: cyan;
    text-shadow: 0 0 8px cyan;
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    0% { text-shadow: 0 0 8px cyan; }
    100% { text-shadow: 0 0 15px cyan; }
}

/* Neural Network Container */
.neural-container {
    position: relative;
    width: 100%;
    height: 70%; /* Push it lower while keeping enough space for the title */
    z-index: 1;
}

#neuralCanvas {
    width: 100%;
    height: 100%;
}


/* Ensure form labels contrast correctly based on background */
body.dark-mode .contact-form {
    background-color: #222 !important; /* Dark background for form */
    color: #ffffff !important; /* White text inside the form */
    border-radius: 8px;
    padding: 20px;
}

/* Labels inside dark mode form */
body.dark-mode .contact-form label,
body.dark-mode .contact-form .form-label {
    color: #ffffff !important; /* White labels when form is dark */
}

/* Labels outside the form (on the white background) */
body.dark-mode label:not(.contact-form label),
body.dark-mode .form-label:not(.contact-form .form-label) {
    color: #000000 !important; /* Black labels outside the form */
}

/* Fix input fields */
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background-color: #333 !important; /* Dark background */
    color: #ffffff !important; /* White text */
    border: 1px solid #555 !important;
}

/* Fix placeholders */
body.dark-mode .contact-form input::placeholder,
body.dark-mode .contact-form textarea::placeholder {
    color: #aaaaaa !important; /* Light gray */
}



/* === Vertical Sidebar === */
/* .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100%;
    background-color: #222;
    padding-top: 20px;
    transition: transform 0.3s ease-in-out;
} */

/* Navigation Links */
.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    padding: 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    display: block;
    font-size: 18px;
    transition: 0.3s;
}

.nav-links a:hover {
    background-color: #444;
    padding-left: 10px;
}

/* === Hamburger Menu for Mobile === */
.hamburger-menu {
    display: none;
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* === Mobile Responsive (Collapsed Menu) === */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-250px); /* Hide sidebar initially */
    }

    .hamburger-menu {
        display: block; /* Show hamburger icon */
    }

    .sidebar.open {
        transform: translateX(0); /* Show sidebar when open */
    }
}







/* Certification container styling (Ensuring Full Width Like Projects) */
.certification-slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

/* Alternating section background colors */
#projects {
    background-color: #ffffff; /* White */
    padding: 50px 0;
}

#certifications {
    background-color: #f8f9fa; /* Light Grey */
    padding: 50px 0;
}

#contact {
    background-color: #ffffff; /* White */
    padding: 50px 0;
}

/* Certification slider for horizontal scrolling */
.certification-slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    scrollbar-width: none;
}

.certification-slider::-webkit-scrollbar {
    display: none;
}

/* Make certification cards fill the space */
.certification-card {
    flex: 0 0 calc(33.33% - 20px); /* Ensures exactly 3 cards per row */
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    text-align: center;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%; /* Ensuring full width within its section */
}

/* Ensuring the section fills the page width */
.certification-slider-container {
    width: 100%;
    max-width: 100%;
    padding: 0 2%; /* Align with project section padding */
}

/* Hover effect for zooming the whole card */
.certification-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Certification image container */
.cert-image-container {
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Image resizing to be uniform */
.cert-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Navigation buttons */
.certification-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.scroll-left, .scroll-right {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 18px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

.scroll-left:hover, .scroll-right:hover {
    background: black;
}

/* Projects container */
.project-slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%; /* Ensures full section width */
    padding: 0 2%; /* Adjusts padding to fill section */
}

/* Project slider */
.project-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto; /* Allows horizontal scrolling */
    overflow-y: hidden;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%; /* Ensures full width */
    white-space: nowrap;
    scrollbar-width: none;
    justify-content: space-between; /* Ensures cards spread evenly */
}

.project-slider::-webkit-scrollbar {
    display: none; /* Hide scrollbar */
}

/* Ensure cards cover the full width, adjusting for responsiveness */
.project-card {
    flex: 0 0 calc(33.33% - 10px); /* Ensures three cards per row */
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .project-card {
        flex: 0 0 calc(50% - 10px); /* Two cards per row */
    }
}

@media (max-width: 600px) {
    .project-card {
        flex: 0 0 calc(100% - 10px); /* One card per row */
    }
}

/* Hover effect */
.project-card:hover {
    transform: scale(1.05);
}

/* Project image container */
.project-image-container {
    width: 100%;
    height: 250px; /* Keeps images at a good size */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Ensure project images are fully visible */
.project-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures full image is visible without cropping */
}

/* Card text fully visible */
.project-card .card-body {
    padding: 15px;
    text-align: left;
    white-space: normal; /* Ensures text wraps */
    overflow-wrap: break-word;
}

/* Navigation buttons at bottom */
.project-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.scroll-left, .scroll-right {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 18px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

.scroll-left:hover, .scroll-right:hover {
    background: black;
}

.skill-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.skill-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.about-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Certification section - same behavior as projects */
.certification-slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 2%;
}

.certification-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    scrollbar-width: none;
}

.certification-slider::-webkit-scrollbar {
    display: none;
}

.certification-card {
    flex: 0 0 calc(33.33% - 10px);
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

@media (max-width: 992px) {
    .certification-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .certification-card {
        flex: 0 0 calc(100% - 10px);
    }
}


/* Skill Card Styling */
.skill-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 15px;
    text-align: left;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    min-height: auto;
    height: 100%;
    width: 100%;
}

/* Header Layout for Icon + Text */
.skill-header {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px; /* Space between icon and text */
}

/* Standardized Skill Icons */
.skill-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

/* Skill Name Styling */
.skill-name {
    font-weight: bold;
    font-size: 22px;
}

/* Thick Progress Bar */
.skill-card .progress {
    width: 100%;
    height: 15px; /* Increased thickness */
    border-radius: 8px;
    margin-top: 8px;
    background-color: #ddd;
}

/* Progress Bar Fill */
.skill-card .progress-bar {
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ------------------------------------------------------------------------*/

/* Ensure Spinner is White */
#spinner {
    color: white !important;
    border-width: 2px;
}

/* Align Spinner and Button Text */
button {
    display: flex;
    align-items: center;
    gap: 10px; /* Adds spacing between spinner and text */
}



/* ----------------------------------------------------------------------- */
/* Experience & Education Section - Full Width Like Projects */
.experience-slider-container,
.education-slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: auto;
    padding: 0 2%;
}

/* Experience & Education Slider */
.experience-slider,
.education-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto; /* Allows horizontal scrolling */
    overflow-y: hidden;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    scrollbar-width: none;
    justify-content: space-between; /* Ensures even spacing */
}

.experience-slider::-webkit-scrollbar,
.education-slider::-webkit-scrollbar {
    display: none; /* Hide scrollbar */
}

/* Experience & Education Cards - Adjusted to Cover More Space */
.experience-card,
.education-card {
    flex: 0 0 calc(32% - 5px); /* Increase width from 33.33% to 40% */
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .experience-card,
    .education-card {
        flex: 0 0 calc(48% - 10px); /* Two cards per row, slightly bigger */
    }
}

@media (max-width: 600px) {
    .experience-card,
    .education-card {
        flex: 0 0 calc(100% - 10px); /* One card per row */
    }
}

/* Hover effect */
.experience-card:hover,
.education-card:hover {
    transform: scale(1.05);
}

/* Card Content - Consistent Padding */
.experience-card .card-body,
.education-card .card-body {
    padding: 15px;
    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;
}

/* Navigation Buttons */
.experience-nav-buttons,
.education-nav-buttons,
.skills-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

/* Responsive grid for skills */
@media (min-width: 992px) {
    .skills-slider {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        overflow: visible;
        height: auto;
        max-height: none;
    }
    
    .skills-slider .col-md-4 {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Tablet view - 2 columns */
@media (max-width: 991px) and (min-width: 768px) {
    .skills-slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile view - 1 column with horizontal scroll */
@media (max-width: 767px) {
    .skills-slider {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 20px;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
        padding: 10px 0 30px 0; /* Add some padding for better touch targets */
    }
    
    /* Hide scrollbar for WebKit browsers (Chrome, Safari) */
    .skills-slider::-webkit-scrollbar {
        display: none;
    }
    
    .skills-slider .col-md-4 {
        flex: 0 0 85%;
        max-width: 85%;
        margin-right: 15px;
    }
}

.scroll-left,
.scroll-right {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 18px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

.scroll-left:hover,
.scroll-right:hover {
    background: black;
}

/* bonus for navbar */
body.dark-mode #sidebar {
    background-color: #1a1a1a !important;
}
body.dark-mode #sidebar a {
    color: #f1f1f1 !important;
}
body.dark-mode #sidebar a:hover {
    background-color: #333 !important;
    color: white !important;
}

/* === Dark Mode Fixes for Contact Form === */

body.dark-mode #contact h2,
body.dark-mode #contact label,
body.dark-mode #contact .form-label {
    color: #f1f1f1 !important;
}

body.dark-mode #contact .form-control {
    background-color: #2a2a2a !important;
    color: white !important;
    border: 1px solid #666 !important;
}

body.dark-mode #contact .form-control::placeholder {
    color: #aaa !important;
}

body.dark-mode #contact .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* === BLOG SECTION DARK MODE FIX === */

/* Make the entire blog section background match dark mode */
body.dark-mode #blogs {
    background-color: #121212 !important;
    color: #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Blog cards (new .blog-card class) dark mode fix */
body.dark-mode .card.blog-card {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
    border: 1px solid #333 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Text inside the blog cards */
body.dark-mode .card.blog-card .card-title,
body.dark-mode .card.blog-card .card-text {
    color: #ffffff !important;
}

/* Blog button in dark mode */
body.dark-mode .card.blog-card .btn {
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

/* Primary button (Read Blog) styling */
body.dark-mode .card.blog-card .btn-primary {
    background-color: #007bff !important;
    border-color: #007bff !important;
    color: white !important;
}

body.dark-mode .card.blog-card .btn-primary:hover {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
    color: white !important;
}

/* Blog sidebar */

/* Sidebar behavior for blog detail page */
#blogSidebar {
    height: 100%;
    min-height: 100vh;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* On mobile, sidebar height adjusts automatically */
@media (max-width: 768px) {
    #blogSidebar {
        min-height: auto;
        height: auto;
    }
}

/* BLOG SLIDER FIX */
.blog-slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: auto;
    padding: 0 2%;
}

.blog-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    scrollbar-width: none;
}

.blog-slider::-webkit-scrollbar {
    display: none;
}

.blog-item {
    flex: 0 0 calc(33.33% - 10px); /* Same as projects */
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .blog-item {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .blog-item {
        flex: 0 0 calc(100% - 10px);
    }
}

/* Hover Effect */
.blog-item:hover {
    transform: scale(1.05);
}

#sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #212529;
}

#sidebar-logo {
    flex: 0 0 auto; /* Fixed height, never scroll */
}

#sidebar-links {
    flex: 1 1 auto; /* Take remaining space */
    overflow-y: auto; /* Scroll only menu if needed */
}

/* Optional: Make sidebar-links scroll nicely */
#sidebar-links::-webkit-scrollbar {
    width: 6px;
}
/* Skills Section Styling */
.skill-card {
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.skill-icon {
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
}

.skill-level-badge .badge {
    font-size: 0.8rem;
    padding: 0.35em 0.65em;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Progress bar styling */
.progress {
    background-color: #e9ecef;
    overflow: visible;
}

.progress-bar {
    position: relative;
    transition: width 1s ease-in-out;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    border: 2px solid #198754;
}

/* Modal styling */
#skillModal .modal-content {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background-color: #ffffff;
    color: #212529;
    transition: all 0.3s ease;
}

#skillModal .modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    background-color: #f8f9fa;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

#skillModal .modal-title {
    color: #2c3e50;
    font-weight: 600;
}

#skillModalBody {
    background-color: #ffffff;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

#skillModalBody .d-flex {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
}

#skillModalBody .d-flex:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sub-skill-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.8);
    transition: all 0.3s ease;
}

#skillModalBody .d-flex:hover .sub-skill-icon {
    filter: grayscale(0) opacity(1);
    transform: scale(1.1);
}

/* Dark mode styles */
body.dark-mode #skillModal .modal-content {
    background-color: #2d3748;
    color: #e2e8f0;
    border: 1px solid #4a5568;
}

body.dark-mode #skillModal .modal-header {
    background-color: #2d3748;
    border-bottom: 1px solid #4a5568;
}

body.dark-mode #skillModal .modal-title {
    color: #e2e8f0;
}

body.dark-mode #skillModalBody {
    background-color: #2d3748;
}

body.dark-mode #skillModalBody .d-flex {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-mode #skillModalBody .d-flex:hover {
    background-color: #4a5568;
}

body.dark-mode .sub-skill-icon {
    filter: grayscale(100%) opacity(0.8);
}

body.dark-mode #skillModalBody .d-flex:hover .sub-skill-icon {
    filter: grayscale(0) opacity(1);
}

/* Ensure text and bullets are visible in dark mode */
body.dark-mode #skillModalBody .d-flex span[style*="color: #343a40"] {
    color: #e2e8f0 !important;
}

/* Style for bullet points in dark mode */
body.dark-mode #skillModalBody .d-flex .text-primary {
    color: #63b3ed !important;
}

/* Ensure all text in modal is visible in dark mode */
body.dark-mode #skillModal,
body.dark-mode #skillModal * {
    color: #e2e8f0 !important;
}

/* Specific override for the skill level text */
body.dark-mode .skill-level-badge .badge {
    color: #ffffff !important;
    background-color: #4a5568;
}

/* Scrollbar styling */
#sidebar-links::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 3px;
}

