/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/* ============================
        GLOBAL STYLES
   ============================ */

   html, body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #fff;
    width: 100%;
    /* - seems to affect scrolling, getting stuck
    overflow-x: hidden;
    overflow-y: auto !important;
    */
}

/* ✅ Apply the new fonts globally, but EXCLUDE icons */
body *:not(.navbar *, .hero *, .fa, .fas, .far, .fab, .fal, .fad) {
    font-family: 'JetBrains Mono', monospace; /* Monospace for paragraphs */
}

/* ✅ Keep Inter for Headings */
h3, h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

/* ✅ Ensure Paragraphs Use JetBrains Mono */
p {
    font-family: 'JetBrains Mono', monospace;
}

/* ============================
    SECTION CONTAINERS
   ============================ */

   .section {
    padding: 80px 20px;
    text-align: center;
    opacity: 0; /* Initial hidden state */
    transform: translateY(20px); /* Initial position for animation */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    width: 100%;
    margin: auto;
    box-sizing: border-box;
}

.section .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Adjust padding as needed */
    box-sizing: border-box; /* Ensure padding is included in the element's total width */
}


/* ============================
    NAVBAR & NAVIGATION
   ============================ */

   .navbar {
    height: 80px; /* Set an explicit height */
    display: flex;
    align-items: center;
    justify-content: space-between; 
    width: 100%;
    padding: 15px 20px;
    background: rgba(20, 20, 20, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box; /* Ensure padding is included in the element's total width */
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Adjust padding as needed */
    box-sizing: border-box; /* Ensure padding is included in the element's total width */
}

/* ✅ Logo */
.logo {
    font-size: 30px;
    font-weight: bold;
    color: white;
    transition: color 0.3s ease;
    padding-left: 0%;
    font-family: 'Oxanium', sans-serif;

}


/* ✅ Navigation Links (Desktop Only) */
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0 auto; /* Ensures it's centered */
    justify-content: center;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-item a {
    text-decoration: none;
    color: white;
    font-size: 22px;
    transition: color 0.3s ease, opacity 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.nav-item a:hover {
    opacity: 0.7;
}

/* ✅ Hamburger & Dark Mode Container */
.menu-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 24px !important; 
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    margin-left: auto; /* Pushes it as far right as possible */
    margin-right: 150px; /* Ensures it has spacing from the right */
}

.light-mode .theme-toggle i {
    color: #333 !important; /* Darker color for better contrast */
}

.light-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.1) !important; 
}

.light-mode .mobile-menu .theme-toggle i {
    color: white !important; 
}

/* Scroll to Top Button */
#scrollToTopBtn {
    position: fixed;
    bottom: 20px;  /* Distance from bottom */
    right: 20px;   /* Distance from right */
    width: 50px;
    height: 50px;
    background: #4acaa8; /* Matches site theme */
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;  /* Start hidden */
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000; /* Ensure it appears above other elements */
}

/* ✅ Make button visible when scrolling */
#scrollToTopBtn.visible {
    opacity: 1;
    transform: scale(1);
}

/* ✅ Hover Effect */
#scrollToTopBtn:hover {
    background: #3a9d87;
}

/* ✅ Light Mode Adjustment */
.light-mode #scrollToTopBtn {
    background: #111;  /* Darker button for contrast */
    color: #f9f9f9;
}

/* 

/* ============================
    LIGHT MODE STYLES
============================ */



/* ✅ General Light Mode Background & Text */
.light-mode body,
.light-mode .section,
.light-mode .about-container,
.light-mode .projects-grid,
.light-mode #articles,
.light-mode #contact {
    background: #ffffff; /* White background */
    color: #111 !important; /* Dark grey text */
}

/* ✅ Ensure All Text is Readable */
.light-mode h1,
.light-mode h2,
.light-mode h3,
.light-mode h4,
.light-mode h5,
.light-mode h6,
.light-mode p,
.light-mode span,
.light-mode li,
.light-mode a {
    color: #111 !important; /* Dark grey for readability */
}

/* ✅ Keep Green Headings */
.light-mode h2,
.light-mode h3,
.light-mode h4,
.light-mode .about-header,
.light-mode .featured-article h4,
.light-mode .skill-category h4 {
    color: #4acaa8 !important; /* Maintain green accent */
}

/* ============================
    LIGHT MODE - NAVIGATION & HERO SECTION
============================ */

/* ✅ Navbar */
.light-mode .navbar {
    background: rgba(255, 255, 255, 0.95);
}

.light-mode .nav-item a {
    color: #111 !important;
}

.light-mode .nav-item a:hover {
    opacity: 0.7;
}

/* ✅ Make Mobile Menu Nav Links Lighter in Light Mode */
.light-mode .mobile-menu a {
    color: #f9f9f9 !important; /* Dark grey for readability */
}

/* ✅ Ensure Dark Mode Toggle Icon is Lighter in Mobile Menu */
.light-mode .mobile-menu .theme-toggle i {
    color: #f9f9f9 !important; /* Slightly lighter for visibility */
}

/* ✅ Hero Section */
.light-mode .hero {
    background: #f9f9f9;
}

.light-mode .hero-text {
    color: #111 !important;
}

.light-mode .hero-subtext {
    color: #444 !important;
}

/* ============================
    LIGHT MODE - CONTENT SECTIONS
============================ */

/* ✅ About, Projects, Articles, Contact */
.light-mode .about-text,
.light-mode .project-card,
.light-mode .featured-article,
.light-mode .contact-links a {
    color: #111 !important;
}

/* ✅ Skill Category */
.light-mode .skill-category {
    background: #f0f0f0;
    color: #111 !important;
}

/* ✅ Project & Article Cards */
.light-mode .project-card,
.light-mode .featured-article {
    background: rgba(0, 0, 0, 0.05);
    color: #111 !important;
}

/* ✅ Ensure Subtle Background for Cards */
.light-mode .about-card,
.light-mode .skill-category {
    background: rgba(0, 0, 0, 0.05);
    color: #111 !important;
}

/* ============================
    LIGHT MODE - BUTTONS & INTERACTIONS
============================ */

/* ✅ Read More Button */
.light-mode .read-more-button {
    background: #4acaa8;
    color: white !important;
}

.light-mode .read-more-button:hover {
    background: #3a9d87;
}

/* ✅ Contact Section */
.light-mode #contact {
    background: #f9f9f9;
    color: #111 !important;
}

/* ✅ Contact Links */
.light-mode .contact-links li a {
    color: #111 !important;
}

.light-mode .contact-links li a:hover {
    color: #3a9d87;
}

/* ============================
    LIGHT MODE - ICONS & BUTTONS
============================ */

/* ✅ GitHub Buttons - Ensure Visibility */
.light-mode .github-icon {
    background: #333 !important; /* Darker grey */
    color: white !important;
    opacity: 0.9;
}

.light-mode .github-icon:hover {
    background: #4acaa8 !important; /* Matches the green theme */
    opacity: 1;
}

/* ✅ Skills Icons - Ensure Visibility */
.light-mode .skill-icons i {
    color: #000000 !important; /* Keep branding consistent */
}

.light-mode .skill-icons i:hover {
    color: #3a9d87 !important; /* Slightly darker green hover effect */
}

/* ============================

Mobile specific styles

============================

*/

/* ✅ Hamburger Button */
.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 5px;
    border: none;
}

/* ✅ Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    width: 100%;
    padding: 10px 0;
    text-align: center;
}

/* ✅ Close Button Styling */
.close-menu {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    color: white; /* Matches menu text */
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close-menu:hover {
    opacity: 0.7;
}

/* ✅ Light Mode Styling */
.light-mode .close-menu {
    color: white; /* Ensures visibility in light mode */
}

/* ✅ Mobile Menu Dark Mode Toggle */
.theme-switch {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 26px;
    margin: 15px auto; /* Centers inside the menu */
}

/* ✅ Hide default checkbox */
.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* ✅ Switch background */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: 0.4s;
    border-radius: 34px;
}

/* ✅ Small circle inside switch */
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: transform 0.35s ease-in-out, background-color 0.35s ease-in-out;
    border-radius: 50%;
}

/* ✅ When switched to Light Mode */
input:checked + .slider {
    background-color: #4acaa8; /* Green when toggled */
}

input:checked + .slider:before {
    transform: translateX(24px);
    background-color: white;
}

/* ✅ Light Mode Styling */
.light-mode .mobile-menu .slider {
    background-color: #4acaa8;
}


/* ✅ Show Mobile Menu when Active */
.mobile-menu.active {
    display: flex;
}

/* ✅ Mobile Nav Links */
.mobile-menu a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: white;
    font-size: 18px;
}

/* ✅ Mobile Dark Mode Toggle */
#mobile-dark-mode-toggle {
    display: flex;
    justify-content: center;
    margin: 10px auto;
}

.hero {
    position: relative;
    min-height: calc(100vh - 80px);
    height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #000000;
    width: 100%;
    overflow: hidden;
    padding: 0; /* ✅ Now controlled globally */
}

.hero .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    max-width: 800px; /* ✅ Prevents text from stretching too wide */
    padding: 20px;
}

/* ✅ Ensure Text Does Not Break Oddly */
.hero-text {
    font-size: 2.5em;
    font-weight: 600;
    font-family: 'Fira Code', monospace;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;
    max-width: 90%; /* ✅ Keeps text responsive */
    word-wrap: break-word;
}

.hero-subtext {
    font-size: 1.2em;
    font-family: 'Fira Code', monospace;
    color: #ccc;
    margin-top: 10px;
    max-width: 85%; /* ✅ Keeps text from being too wide */
    display: block; /* ✅ Ensures it's a block element */
    max-width: 90%; /* ✅ Keeps text responsive */
    text-align: center; /* ✅ Ensures text is centered */
    margin: 0 auto; /* ✅ Centers text horizontally */
}

/* ============================
    SCROLL ANIMATIONS
   ============================ */

/* Scroll Animation - when moving down page */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

/* Reveal effect */
.section.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   TECH STACK SLIDER
   ============================ */

   .tech-slider-container {
    padding: 20px 0;
    overflow: hidden;
    background: #181818;
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.tech-track-container {
    display: flex;
    gap: 40px;
    animation: scroll-tech 20s linear infinite;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
}

.tech-track-container i {
    font-size: 40px;
    color: #4acaa8;
    transition: transform 0.3s ease, color 0.3s ease;
}

.tech-track-container i:hover {
    transform: scale(1.2);
    color: #3a9d87;
}

/* ============================
    ANIMATIONS
   ============================ */

@keyframes scroll-tech {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* ============================
    ABOUT SECTION
   ============================ */

   .about-container {
    display: flex;
    align-items: center;
    justify-content: center; /* ✅ Ensures even spacing */
    flex-wrap: wrap;
    gap: 40px;
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 400px;
    flex-shrink: 0; /* ✅ Prevents shrinking */
}

.profile-pic {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.typing-text {
    font-family: 'Fira Code', monospace;
    font-size: 1.2em;
    color: #4acaa8;
    margin-top: 10px;
    height: 30px;
    overflow: hidden;
}

.about-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 0 auto; /* ✅ Ensures proper centering */
    max-width: 600px;
    margin-bottom: 40px;
}

.about-header {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    margin-bottom: 10px;
}

.about-content {
    flex: 1;
    max-width: 400px;

}

.about-text {
    max-width: 600px;
    font-size: 1em;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 20px;
}

.about-text h4 {
    margin-top: 10px;
    font-size: 1.3em;
    color: #4acaa8;
}

.cv-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    background: #4acaa8;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}
/* ============================
    SKILLS SECTION
   ============================ */

   
.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}   

.skill-category {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    margin-top: 40px;
}

.skill-category h4 {
    margin: 0;
    font-size: 1.1em;
    color: #4acaa8;
    margin-bottom: 8px;
}

.skill-category p {
    margin: 5px 0 0;
    font-size: 1em;
    color: #ddd;
}

.skill-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.skill-icons i {
    font-size: 1.5em;
    color: #ffffff;
    transition: transform 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.skill-icons i:hover {
    transform: scale(1.1);
    color: #4acaa8;
}
/* ============================
    PROJECTS & ARTICLES
   ============================ */

   /* ✅ Projects container */
#projects {
    text-align: center;
}

#projects h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #4acaa8;
}

#projects p {
    font-size: 1.2em;
    color: #ddd;
    margin-bottom: 40px;
}
   
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.project-card {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    color: white;
    text-align: center;
    width: 300px;
    min-height: 220px; /* Ensures a minimum height but allows growth */
    height: auto; /* Allows cards to expand as needed */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures even spacing */
    align-items: center;
    position: relative;
    transition: transform 0.3s ease;
}

.project-card p {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.project-card span {
    margin-top: auto; /* Pushes "Coming Soon" to the bottom */
}

.project-card:hover {
    transform: scale(1.05);
}

.project-card > .project-learning,
.project-card > span {
  margin-top: auto;
}

.project-learning {
  margin-top: auto;
  font-size: 0.9rem;
  opacity: 0.85;
}

.github-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 18px;
    color: #fff;
    background: #333;
    padding: 8px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.8;
    transition: background 0.3s ease, opacity 0.3s ease;
}

.github-icon.active {
    background: #4acaa8;
    opacity: 1;
    pointer-events: auto;
}

.github-icon:hover {
    background: #3a9d87;
    opacity: 1;
}

/* ============================
    FEATURED ARTICLE
   ============================ */

#articles {
    text-align: center;
}

#articles h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #4acaa8;
}

#articles p {
    font-size: 1.2em;
    color: #ddd;
    margin-bottom: 40px;
}

#articles p a {
    color: #4acaa8;
    font-weight: bold;
    text-decoration: none;
}

#articles p a:hover {
    text-decoration: underline;
}

.article-links {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 0;
}

.article-links li a {
    font-size: 30px;
    color: #4acaa8;
    transition: color 0.3s ease;
}

.article-links li a:hover {
    color: #3a9d87;
}

.featured-article {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 600px;
    margin: 20px auto;
}

.featured-article h4 {
    font-size: 1.2em;
    color: #4acaa8;
    margin-bottom: 8px;
}

.featured-article p {
    color: #ddd;
}

.read-more-button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background: #4acaa8;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.read-more-button:hover {
    background: #3a9d87;
}

/* ============================
    CONTACT SECTION & ICONS
   ============================ */

#contact {
    text-align: center;
    background-color: #1e1e1e;
}

#contact h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #4acaa8;
}

#contact p {
    font-size: 1.2em;
    color: #ddd;
    margin-bottom: 40px;
}

.contact-links {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 0;
}

.contact-links li a {
    font-size: 30px;
    color: #4acaa8;
    transition: color 0.3s ease;
}

.contact-links li a:hover {
    color: #3a9d87;
}

/* ============================
    FOOTER STYLING
   ============================ */

   .footer {
    background: #181818;
    color: #ddd;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9em;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer p {
    margin: 5px 0;
}

.footer strong {
    color: #4acaa8; /* Accent color */
}

/* ✅ Light Mode Adjustments */
.light-mode .footer {
    background: #f9f9f9;
    color: #111;
}

.light-mode .footer strong {
    color: #3a9d87;
}


/* ============================
    RESPONSIVE DESIGN
============================ */


/* ✅ Hide Mobile Toggle on Large Screens */
@media (min-width: 769px) {
    .mobile-menu .theme-switch {
        display: none !important;
    }
}


/* 📱 Mobile & Tablet Screens (<= 768px) */
@media (max-width: 768px) {

    /* ✅ Hide Desktop Nav Links */
    .nav-links {
        display: none;
    }

    .navbar .theme-toggle {
        display: none !important; /* Hide toggle in navbar for smaller screens */
    }

    /* ✅ Ensure Menu Container Aligns Properly */
    .menu-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-right: 10px;
    }

    /* ✅ Show Hamburger Menu */
    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
        font-size: 30px;
        cursor: pointer;
        color: white;
        background: rgba(255, 255, 255, 0.1);
        padding: 5px;
        border-radius: 5px;
        border: none;
        z-index: 1001;
    }

    .light-mode .hamburger {
        color: black;
        background: rgba(0, 0, 0, 0.1);
    }

    /* ✅ Mobile Menu */
    .mobile-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background: rgba(20, 20, 20, 0.95);
        padding: 15px 0;
        text-align: center;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .mobile-menu.active {
        opacity: 1;
        transform: translateY(0);
        display: flex;
    }

    /* ✅ Mobile Menu Links */
    .mobile-menu a {
        display: block;
        padding: 10px 20px;
        text-decoration: none;
        color: white;
        font-size: 18px;
        transition: opacity 0.3s ease;
    }

    /* ✅ Mobile Dark Mode Toggle */
    .mobile-menu .theme-toggle {
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        cursor: pointer;
        transition: background 0.3s ease, transform 0.3s ease;
        margin: 10px auto; /* Center in mobile menu */
    }



    /* ✅ Improve Section Spacing */
    .section {
        padding: 50px 15px;
    }

    /* ✅ Hero Section */
    .hero-text {
        font-size: 1.8em;
    }

    .hero-subtext {
        font-size: 1em;
    }

    .hero-content {
        max-width: 80%;
        margin: 0 auto;
    }

    /* ✅ About Section */
    .about-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
        width: 90%;
        margin: 0 auto;
    }

    .about-content {
        text-align: center;
        max-width: 100%;
    }

    .about-card {
        padding: 20px;
        max-width: 90%;
    }

    /* ✅ Skills Section */
    .skills-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        width: 90%;
        max-width: 1200px;
        margin: 0 auto;
    }

    .skill-category {
        width: 90%;
        margin: 10px auto;
        padding: 20px;
    }

    /* ✅ Projects Section */
    .projects-grid {
        flex-direction: column;
        align-items: center;
        width: 90%;
        max-width: 1200px;
        margin: 0 auto;
    }

    .project-card {
        width: 90%;
        max-width: 350px;
        text-align: center;
    }

    /* ✅ Contact Section */
    .contact-links {
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px;
    }

    /* ✅ Tech Stack Slider */
    .tech-track-container i {
        font-size: 30px;
        gap: 20px;
    }
}

/* 📏 Large Tablets & Small Laptops (769px - 1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 95%;
    }


    /* ✅ Hide dark mode toggle in navbar for smaller screens */
    .navbar .theme-toggle {
        display: none !important;
    }

    /* ✅ Ensure it remains visible inside the mobile menu */
    .mobile-menu .theme-toggle {
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        cursor: pointer;
        transition: background 0.3s ease, transform 0.3s ease;
        margin: 10px auto; /* Centers it inside the mobile menu */
    }

    .mobile-menu .theme-toggle i {
        color: white !important;
        font-size: 22px !important; /* Make icon bigger */
    }

    /* ✅ Ensure visibility in Light Mode */
    .light-mode .mobile-menu .theme-toggle i {
        color: white !important;
    }
}


    .hero-content {
        max-width: 85%;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }


/* 🖥️ Small Desktop Screens (1025px - 1366px) */
@media (max-width: 1366px) {
    .container {
        max-width: 85%;
    }

    .hero-content {
        max-width: 75%;
    }
}

/* 🖥️ Larger Screens & Widescreens (> 1366px) */
@media (min-width: 1367px) {
    .container {
        max-width: 1200px;
    }

    .hero-content {
        max-width: 60%;
    }
}