/* =====================================
   1. CSS Variables for Consistency
   ===================================== */
   :root {
    /* Colors */
    --color-primary: #007bff;
    --color-secondary: #333333;
    --color-background: #ffffff;
    --color-text: #333333;
    --color-light-bg: #f4f4f4;
    --color-breadcrumb-bg: #f5f5f5;
    --color-breadcrumb-link: #007bff;
    --color-breadcrumb-hover: #0056b3;
    --color-overlay: rgba(0, 123, 255, 0.8);
    --color-nav-bg: rgba(255, 255, 255, 0.95);
    --color-nav-shadow: rgba(0, 0, 0, 0.1);
    --color-link-hover: #0056b3;
    --color-btn-hover: #0056b3;
    --color-footer-text: #666666;
    --color-skill-high: #28a745;
    --color-skill-medium: #ffc107;
    --color-skill-low: #dc3545;
    --color-dark-mode-bg: #121212;
    --color-dark-mode-text: #ffffff;
    --color-dark-mode-nav-bg: rgba(18, 18, 18, 0.95);

    /* Fonts */
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;

    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 40px;
    --spacing-xxl: 60px;

    /* Breakpoints */
    --breakpoint-lg: 992px;  /* ~Large screens */
    --breakpoint-md: 768px;  /* ~Tablets */
    --breakpoint-sm: 600px;  /* ~Small tablets/large phones */
    --breakpoint-xs: 480px;  /* ~Smaller phones */
}

/* =====================================
   2. General Styles
   ===================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-background);
    scroll-behavior: smooth;
    line-height: 1.6;
}

h1, h2, h3, p {
    text-align: center;
    font-family: var(--font-secondary);
    margin: var(--spacing-md) 0;
}

header, footer {
    text-align: center;
    padding: var(--spacing-md);
    background-color: var(--color-light-bg);
}

p {
    line-height: 1.6;
}

/* Container Utility */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md) 0;
}

/* =====================================
   3. Breadcrumb Navigation
   ===================================== */
.breadcrumb {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-breadcrumb-bg);
}

.breadcrumb a {
    text-decoration: none;
    color: var(--color-breadcrumb-link);
    font-weight: bold;
    position: relative;
    margin-right: var(--spacing-xs);
}

.breadcrumb a::after {
    content: '>';
    margin-left: var(--spacing-xs);
    color: var(--color-secondary);
}

.breadcrumb a:last-child::after {
    content: '';
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: var(--color-breadcrumb-hover);
}

/* =====================================
   4. Fixed Navigation / Navbar
   ===================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--color-nav-bg);
    z-index: 1000;
    box-shadow: 0 2px 5px var(--color-nav-shadow);
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    font-size: 1.5em;
    color: var(--color-secondary);
    cursor: pointer;
    background: none;
    border: none;
    position: fixed;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    z-index: 1001;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* horizontal layout */
    align-items: center;
}

.menu li {
    margin: 0 var(--spacing-sm);
}

.menu li a {
    text-decoration: none;
    color: var(--color-secondary);
    font-weight: bold;
    position: relative;
    transition: color 0.3s ease;
}

.menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.menu li a:hover,
.menu li a:focus {
    color: var(--color-primary);
    outline: none;
}

.menu li a:hover::after,
.menu li a:focus::after {
    transform: scaleX(1);
}

/* Responsive Nav */
@media (max-width: var(--breakpoint-md)) {
    .menu {
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100%;
        background-color: var(--color-nav-bg);
        transition: right 0.3s ease;
        padding-top: var(--spacing-xl); /* Space for toggle button */
    }
    .menu.show {
        right: 0;
    }
    .menu-toggle {
        display: block;
    }
    nav {
        justify-content: flex-start;
    }
    body {
        padding-top: 70px; /* Prevent overlap with fixed nav */
    }
}

/* =====================================
   5. Parallax Header (Optional)
   ===================================== */
.parallax-header {
    position: relative;
    background-image: url('../images/background.jpg'); /* Replace with your image */
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    height: 35vh;
    color: #fff;
}

.parallax-header .parallax-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
}

.parallax-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.parallax-header h1 {
    font-size: 3em; /* Adjust as needed */
}

.parallax-header .tagline {
    font-size: 1.5em;
    margin-top: 10px;
}

/* =====================================
   6. Projects Gallery
   ===================================== */
.gallery h2 {
    font-size: 2em;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.project {
    position: relative;
    overflow: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin: var(--spacing-xs);
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.project-link {
    display: block;
    color: inherit;
    text-decoration: none;
    position: relative;
}

.project img {
    width: 100%; /* Ensures the image fills the container's width */
    height: 50vh; /* Sets a fixed height for uniformity */
    object-fit: cover; /* Crops the image to fit the container while preserving aspect ratio */
    display: block; /* Removes any inline spacing issues */
}

/* Overlay text on hover */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-overlay);
    color: #fff;
    padding: var(--spacing-sm);
    opacity: 0;
    transition: opacity 0.3s;
}

.project:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    margin: 0;
    font-size: 1.2em;
}

.overlay p {
    margin: 5px 0 0;
    font-size: 0.9em;
}

/* =====================================
   7. Project Details Section
   ===================================== */
.project-details {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

.project-details h2 {
    font-size: 2.5em;
    margin-bottom: var(--spacing-md);
    text-align: center;
    color: var(--color-primary);
}

.project-details .summary {
    font-size: 1.1em;
    margin-bottom: var(--spacing-lg);
    text-align: justify;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.technologies,
.live-link,
.screenshots {
    margin-bottom: var(--spacing-lg);
}

.technologies h3,
.live-link h3,
.screenshots h3 {
    font-size: 1.5em;
    margin-bottom: var(--spacing-sm);
}

.technologies ul {
    list-style-type: square;
    padding-left: var(--spacing-md);
}

.technologies li {
    margin-bottom: var(--spacing-xs);
}

.live-link a {
    color: #28a745;
    text-decoration: none;
    font-weight: bold;
}

.live-link a:hover {
    text-decoration: underline;
}

/* Screenshot gallery */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-sm);
}

.screenshot-gallery a {
    display: block;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
}

.screenshot-gallery a:hover {
    transform: scale(1.05);
    border-color: var(--color-primary);
}

.screenshot-gallery a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s;
}

.screenshot-gallery a:hover::before {
    opacity: 1;
}

.screenshot-gallery img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}
/* =====================================
   X. Introduction Section (Restored)
   ===================================== */
   .introduction .container {
    /* 
       Use your site-wide container if you prefer:
       width: 90%;
       max-width: 1200px;
       margin: 0 auto;
       padding: var(--spacing-md) 0;
    */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1000px; /* or use 1200px to match your site */
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    z-index: 2;
}

.introduction .profile-pic {
    flex: 1 1 300px;
    text-align: center;
}

.introduction .bio {
    flex: 2 1 600px;
    padding: var(--spacing-md);
}

.introduction .profile-pic img {
    border-radius: 50%;
    max-width: 200px; 
    object-fit: cover;
}

.introduction .bio h2 {
    text-align: left;
    margin-top: 0; /* If you want to remove extra space */
}

.introduction .bio p {
    font-size: 18px;
    line-height: 1.6;
    text-align: left; /* if you don't want it centered */
}


/* =====================================
   8. Skills Section
   ===================================== */
.skills {
    background-color: #f9f9f9;
    padding: var(--spacing-xl) var(--spacing-md);
}

.skills h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 2em;
    color: var(--color-secondary);
}

.skills .skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    flex: 1 1 300px;
    margin: var(--spacing-sm);
    background-color: var(--color-background);
    padding: var(--spacing-md);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-size: 1.5em;
    color: var(--color-secondary);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 8px;
    position: relative;
}

.skill-category h3 i {
    margin-right: var(--spacing-xs);
}

/* Category specific icon styling */
.skill-category h3 i.fa-code {
    color: var(--color-primary); /* Blue for frontend */
}

.skill-category h3 i.fa-server {
    color: #6c757d; /* Grey for backend */
}

.skill-category h3 i.fa-laptop-code {
    color: #28a745; /* Green for other languages */
}

body.dark-mode .skill-category h3 {
    color: #f0f0f0;
    border-bottom-color: rgba(255,255,255,0.2);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    background-color: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: rgba(0,123,255,0.03);
}

.tech-card-hover i {
    transform: scale(1.1);
}

.tech-card i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--color-primary);
    transition: transform 0.3s ease, color 0.3s ease;
}

.tech-card:hover i {
    transform: scale(1.1);
}

.tech-card span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-secondary);
}

/* Dark mode styles for the skills section */
body.dark-mode .skill-category {
    background-color: #222;
    border: 1px solid #333;
}

body.dark-mode .tech-card {
    background-color: #2d2d2d;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

body.dark-mode .tech-card:hover {
    background-color: #333;
}

body.dark-mode .tech-card span {
    color: #eee;
}

/* Icon-specific colors */
.tech-card i.fa-html5 { color: #E44D26; }
.tech-card i.fa-css3-alt { color: #264DE4; }
.tech-card i.fa-js { color: #F7DF1E; }
.tech-card i.fa-react { color: #61DAFB; }
.tech-card i.fa-node-js { color: #68A063; }
.tech-card i.fa-php { color: #777BB3; }
.tech-card i.fa-database { color: #F29111; }
.tech-card i.fa-python { color: #3776AB; }

/* =====================================
   9. Experience and Education
   ===================================== */
.experience,
.education {
    padding: var(--spacing-xl) var(--spacing-md);
}

.experience:nth-of-type(even),
.education:nth-of-type(even) {
    background-color: #f9f9f9;
}

.experience h2,
.education h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.experience .experience-item,
.education .education-item {
    max-width: 800px;
    margin: var(--spacing-md) auto;
}

.experience h3,
.education h3 {
    font-size: 22px;
}

.experience span,
.education span {
    display: block;
    font-size: 16px;
    color: #777777;
    margin-bottom: 10px;
}

.experience p,
.education p {
    font-size: 16px;
    line-height: 1.5;
}

/* =====================================
   10. Interests Section
   ===================================== */
.interests {
    padding: var(--spacing-xl) var(--spacing-md);
}

.interests h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.interests p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
}

.moodboard-container {
    text-align: center;
    margin: var(--spacing-md) auto;
    padding: var(--spacing-sm);
   /* background-color:var(--color-light-bg);  /* Light background for clear contrast */
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    max-width: 600px;         /* Constrains the width */
    color: #333;              /* Dark text for readability */
}

.moodboard-text {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1em;
    line-height: 1.4;
}

.moodboard-container a {
    color: var(--color-primary);
    text-decoration: underline;
}


/* =====================================
   11. Call to Action Section
   ===================================== */
.call-to-action {
    text-align: center;
    background-color: var(--color-primary);
    color: #fff;
    padding: var(--spacing-xl) var(--spacing-md);
}

.call-to-action .btn {
    display: inline-block;
    margin-top: var(--spacing-sm);
    padding: 15px 30px;
    background-color: #fff;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.call-to-action .btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-5px);
}

/* =====================================
   12. Contact Form Styles
   ===================================== */
.contact-form {
    background-color: var(--color-background);
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 80vw;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Contact Form Heading */
.contact-form h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 2em;
    color: var(--color-secondary);
}

/* Success and Error Messages */
.contact-form .success {
    background-color: #d4edda;
    color: #155724;
    border-left: 6px solid #28a745;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.contact-form .error {
    color: #dc3545;
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
}

/* Form Group */
.contact-form .form-group {
    margin-bottom: var(--spacing-lg);
}

/* Form Labels */
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555555;
}

/* Required Asterisk */
.contact-form .required {
    color: #dc3545;
    margin-left: 4px;
}

/* Form Inputs */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

/* Form Inputs Focus State */
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

/* Textarea Specific Styles */
.contact-form textarea {
    resize: vertical;
    min-height: 150px;
    max-height: 400px;
}

/* Submit Button */
.contact-form .btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Submit Button Hover State */
.contact-form .btn:hover {
    background-color: var(--color-btn-hover);
    transform: translateY(-2px);
}

/* Submit Button Focus State */
.contact-form .btn:focus {
    outline: 2px solid var(--color-btn-hover);
    outline-offset: 2px;
}

/* =====================================
   13. Responsive Design
   (Using variable-based breakpoints)
   ===================================== */

/* ~ Large Screens (~992px) */
@media (max-width: var(--breakpoint-lg)) {
    .gallery h2 {
        font-size: 1.8em;
    }
    .project-details h2 {
        font-size: 2em;
    }
    .project-details .summary {
        font-size: 1em;
    }
    .technologies h3,
    .live-link h3,
    .screenshots h3 {
        font-size: 1.3em;
    }
    .projects-grid,
    .screenshot-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* ~ Medium Screens (~768px) */
@media (max-width: var(--breakpoint-md)) {
    .breadcrumb,
    .gallery,
    .project-details,
    .technologies,
    .live-link,
    .screenshots {
        padding: var(--spacing-sm);
    }
    .gallery h2 {
        font-size: 1.6em;
    }
    .project-details h2 {
        font-size: 1.8em;
    }
    .technologies h3,
    .live-link h3,
    .screenshots h3 {
        font-size: 1.1em;
    }
    .projects-grid,
    .screenshot-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* ~ Small Screens (~600px) */
@media (max-width: var(--breakpoint-sm)) {
    h1, h2, h3, p {
        margin: 15px 0;
    }
    .breadcrumb {
        padding: 8px 15px;
    }
    .gallery h2 {
        font-size: 1.4em;
    }
    .project-details h2 {
        font-size: 1.6em;
    }
    .technologies h3,
    .live-link h3,
    .screenshots h3 {
        font-size: 1em;
    }
    .projects-grid,
    .screenshot-gallery {
        grid-template-columns: 1fr;
    }
    /* Adjust contact form for smaller screens */
    .contact-form .btn {
        width: 100%;
        padding: 12px;
    }
}

/* ~ Extra Small Screens (~480px) */
@media (max-width: var(--breakpoint-xs)) {
    /* You can add further fine-tuning if needed */
}

/* =====================================
   14. Dark Mode Toggle
   ===================================== */
#theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    transition: background 0.3s;
}

#theme-toggle:hover {
    background: #e65c54;
}

body.dark-mode {
    background-color: var(--color-dark-mode-bg);
    color: var(--color-dark-mode-text);
}

body.dark-mode nav {
    background-color: var(--color-dark-mode-nav-bg);
}

body.dark-mode .menu li a {
    color: var(--color-dark-mode-text);
}

body.dark-mode .menu li a:hover::after {
    background-color: var(--color-primary);
}

body.dark-mode .call-to-action {
    background-color: #333333;
}

body.dark-mode .call-to-action .btn {
    background-color: var(--color-primary);
    color: #fff;
}

body.dark-mode .skills .skill-bar .filled.high {
    background-color: var(--color-skill-high);
}

body.dark-mode .skills .skill-bar .filled.medium {
    background-color: var(--color-skill-medium);
}

body.dark-mode .skills .skill-bar .filled.low {
    background-color: var(--color-skill-low);
}

/* =====================================
   15. Accessibility & Footer
   ===================================== */
/* Focus Outlines */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Visually Hidden (Screen Reader Only) */
.visually-hidden,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Footer Styles */
footer {
    font-size: 0.9em;
    color: var(--color-footer-text);
    position: relative;
}

footer p {
    margin: 0;
}

/* =====================================
   16. Lightbox (If Needed)
   ===================================== */
.lb-data .lb-caption {
    font-size: 1em;
    text-align: center;
}

/* =====================================
   17. General Button Styles
   ===================================== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.btn:hover {
    background-color: var(--color-btn-hover);
}

/* =====================================
   18. Optional SVG Dividers
   ===================================== */
.svg-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.svg-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.svg-divider .shape-fill {
    fill: var(--color-background);
}

/* =====================================
   19. Optional Smooth Scrolling
   ===================================== */
html {
    scroll-behavior: smooth;
}

/*===============
  20. Filter Bar
  ===============*/

  .filter-bar {
    text-align: center;
    margin-bottom: 20px;
}

.filter-button {
    padding: 8px 16px;
    margin: 0 5px;
    border: none;
    background-color: #f4f4f4;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.filter-button:hover {
    background-color: #ddd;
}

.filter-button.active {
    background-color: #007bff;
    color: #fff;
}

/* Adjust the base body styles for a sleek dark theme */
body.dark-mode {
    background-color: var(--color-dark-mode-bg);
    color: var(--color-dark-mode-text);
}

/* Refine navigation in dark mode */
body.dark-mode nav {
    background-color: var(--color-dark-mode-nav-bg);
}

/* Tweak the skill-item container for a minimalist, modern look */
.skill-item {
    flex: 1 1 300px;
    margin: var(--spacing-md);
    background-color: var(--color-dark-mode-bg);
    padding: var(--spacing-md);
    border: none; /* Removed border for a cleaner appearance */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* Slightly deeper shadow for dark mode */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* General adjustments for buttons in dark mode */
body.dark-mode .btn {
    background-color: var(--color-primary);
    color: #fff;
}
body.dark-mode .btn:hover {
    background-color: var(--color-btn-hover);
}

/* Ensure headings and text maintain contrast */
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode p {
    color: var(--color-dark-mode-text);
}

/* Make sure contact form heading is visible in dark mode */
body.dark-mode .contact-form h2 {
    color: var(--color-dark-mode-text);
}

/* Make contact form labels visible in dark mode */
body.dark-mode .contact-form label {
    color: var(--color-dark-mode-text);
}

@media (max-width: 600px) {
    .projects-grid {
        /* Lower the min width to allow more items per row */
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .project img {
        /* Reduce the fixed height so more projects are visible */
        height: 200px;
    }
}
/* =====================================
   Dark Mode Overrides
===================================== */
body.dark-mode {
    background-color: var(--color-dark-mode-bg);
    color: var(--color-dark-mode-text);
}

body.dark-mode header,
body.dark-mode footer,
body.dark-mode nav {
    background-color: var(--color-dark-mode-nav-bg);
    color: var(--color-dark-mode-text);
}

body.dark-mode a {
    color: var(--color-dark-mode-text);
}

body.dark-mode .breadcrumb {
    background-color: #1e1e1e;
}

body.dark-mode .breadcrumb a {
    color: var(--color-dark-mode-text);
}

body.dark-mode .menu li a {
    color: var(--color-dark-mode-text);
}

body.dark-mode .menu li a:hover::after {
    background-color: var(--color-primary);
}

/* Set sections to use the dark mode background */
body.dark-mode .skills,
body.dark-mode .experience,
body.dark-mode .education,
body.dark-mode .interests,
body.dark-mode .gallery,
body.dark-mode .call-to-action {
    background-color: var(--color-dark-mode-bg);
}

/* Headings and general text */
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode p {
    color: var(--color-dark-mode-text);
}

/* Buttons */
body.dark-mode .btn {
    background-color: var(--color-primary);
    color: #fff;
}
body.dark-mode .btn:hover {
    background-color: var(--color-btn-hover);
}

/* Project Gallery: make cards blend with the background */
body.dark-mode .project {
    background-color: var(--color-dark-mode-bg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

/* Overlay for project cards */
body.dark-mode .overlay {
    background: rgba(0, 123, 255, 0.8);
}

/* Increase visibility of language text in skills section */
body.dark-mode .skill-item li span {
    color: var(--color-dark-mode-text);
}

/* Make sure contact form elements are visible in dark mode */
body.dark-mode .contact-form {
    background-color: #222;
    color: var(--color-dark-mode-text);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .contact-form h2 {
    color: var(--color-dark-mode-text);
    font-weight: 600;
}

body.dark-mode .contact-form label {
    color: #e0e0e0;
}

body.dark-mode .contact-form input[type="text"],
body.dark-mode .contact-form input[type="email"],
body.dark-mode .contact-form textarea {
    background-color: #333;
    border: 1px solid #444;
    color: #fff;
}

body.dark-mode .contact-form input[type="text"]:focus,
body.dark-mode .contact-form input[type="email"]:focus,
body.dark-mode .contact-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

@media (max-width: 600px) {
    .projects-grid {
        /* Lower the min width to allow more items per row */
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .project img {
        /* Reduce the fixed height so more projects are visible */
        height: 200px;
    }
}