@media (max-width: 1024px) {
    html {
        scroll-padding-top: 130px;
    }
}


html {
    scroll-behavior: smooth;
}
* {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            display: flex;
            height: 100vh;
            overflow: hidden;
            color: #333;
            font-size: 14px;
        }

        /* Left Navigation Pane (Desktop Default) */
        .nav-pane {
            width: 25%;
            background: #1a1a1a;
            color: #fff;
            padding: 30px 20px;
            position: fixed;
            height: 100%;
            overflow: auto;
            z-index: 10;
        }
        .nav-pane img {
            width: 135px;
            height: 135px;
            border-radius: 50%;
            object-fit: cover;
            display: block;
            margin: 0 auto 5px auto;
            border: 3px solid #007BFF;
        }
        .nav-pane h2 {
            text-align: center;
            margin-bottom: 10px;
            font-size: 1.5em;
        }
        .nav-pane p {
            text-align: center;
            font-size: 0.9em;
            margin-bottom: 30px;
        }
        .nav-pane ul {
            list-style: none;
        }
        .nav-pane ul li {
            margin: 15px 0;
        }
        .nav-pane ul li a {
            color: #fff;
            text-decoration: none;
            font-weight: bold;
            display: block;
            padding: 8px 12px;
            border-radius: 8px;
            transition: 0.3s;
        }
        /* Style for the active/intersecting link */
        .nav-pane ul li a.active-nav {
            background: transparent;
            color: #007BFF;
            box-shadow: 0 2px 8px rgba(0, 123, 255, 0.5);
            transform: scale(1.02);
        }
        .nav-pane ul li a:hover:not(.active-nav) {
            background: rgba(0, 123, 255, 0.2);
        }
        /* Nested navigation links */
        .nav-pane ul.nested-links {
            list-style: none;
            padding-left: 20px;
            margin-top: 5px;
        }
        .nav-pane ul.nested-links li {
            margin: 5px 0;
        }
        /* Social Links Styling */
        .social-links-container {
            display: flex;
            justify-content: space-around;
            padding: 20px 0 10px 0;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            margin-top: 20px;
        }
        .social-links-container a {
            color: #fff;
            font-size: 1.5em;
            transition: color 0.3s, transform 0.2s;
        }
        .social-links-container a:hover {
            color: #007BFF;
            transform: scale(1.15);
        }

        .nav-copyright {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 10px;
            font-size: 0.95em;
            color: #ccc;
        }

        .nav-copyright i {
            margin-right: 6px;
        }
        /* Specific coloring for better recognition */
        .social-links-container a[title="GitHub"]:hover { color: #E8E8E8; } 
        .social-links-container a[title="LinkedIn"]:hover { color: #0A66C2; } 
        .social-links-container a[title="Email"]:hover { color: #EA4335; } 
        .social-links-container a[title="YouTube"]:hover { color: #FF0000; } 


        /* Right Scrollable Content (Desktop Default) */
        .content {
            margin-left: 25%;
            width: 75%;
            height: 100%;
            overflow-y: scroll;
            padding: 30px;
            scroll-behavior: smooth;
            background: #f8f9fa; /* Added background color for the content area */
        }

        /* Target all sections that we want to observe, including sub-sections inside Projects */
        section[id] {
            margin-bottom: 100px;
        }

        section h1, section h2, section h3 {
            margin-bottom: 20px;
            color: #222;
        }
        
        /* Added line separator to main headings */
        section h1 {
            font-size: 2em;
            border-bottom: 1px solid #ddd;
            padding-bottom: 10px;
        }
        section h2 {
            font-size: 1.7em;
            margin-top: 30px;
            text-align: center;
        }
        /* Added icon styling to the combined h2 */
        #skills-specialization h2 i {
            color: #007BFF; /* Make the icon blue */
            margin-right: 10px;
        }
        section h3 {
            font-size: 1.2em;
        }
        .project-details h4 {
            margin-bottom: 10px;
            color: #007BFF;
            font-size: 1.1em;
        }

        .project h2{
          font-size: 1.3em;
          margin-top: 10px;
          margin-bottom: 10px;
          color: #1a1a1a;
          text-align: left;
          font-weight: bold;
        }

        .project h3{
             font-size: 1.1em;
             margin-bottom: 10px;
             color: #1a1a1a;
             text-align: left;
             font-weight: normal;
             font-style: italic;
        }
        .project-desc {
            font-size: .95em;
            margin-bottom: 15px;
            color: #000000;
            text-align: justify;
        }

        /* --- Experience Section Styles --- */
        .experience-container {
            /* Now holds a single card */
            display: flex;
            gap: 30px;
            flex-wrap: wrap;
            justify-content: center; 
        }

        .experience-card {
            /* Now acts as the single large container for both job entries */
            width: 100%; 
            max-width: none; 
            background: #ffffff;
            border: 1px solid #e0eeef;
            border-radius: 12px;
            padding: 30px; 
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        
        /* NEW: Style for each job entry inside the main card (Two-Column Layout) */
        .job-entry {
            display: flex;
            gap: 30px;
            margin-bottom: 40px; /* Space between Amigo and Energypac */
            padding-bottom: 30px;
            border-bottom: 2px dashed #ddd; /* Separator between jobs */
        }

        /* Remove border-bottom from the last job-entry */
        .job-entry:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }
        
        /* NEW: Define the two columns */
        .job-content, .job-media {
            flex: 1;
        }

        .job-content {
            flex-basis: 70%;
        }
        .job-media {
            flex-basis: 30%;
        }

        .job-media {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .company-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 2px solid #007BFF;
            padding-bottom: 8px;
            margin-bottom: 15px;
        }

        .company-header h3 {
            margin: 0;
            color: #1a1a1a;
            font-size: 1.4em;
            font-weight: 700;
        }

        /* Adjust logo placement and style for the combined card */
        .company-logo {
            /* max-width: 120px; */
            width: 70%;
            height: auto;
            margin-bottom: 15px; /* Space below logo */
            /* border: 3px solid #007BFF; */
            padding: 3px;
            /* border-radius: 50%; */
            object-fit: cover;
        }

        .designation {
            font-size: 1.3em;
            font-weight: 600;
            color: #007BFF;
            margin-bottom: 5px;
        }

        .timeline {
            font-size: 1em;
            color: #666;
            font-style: italic;
            margin-bottom: 20px;
            border-bottom: 1px solid #eee;
            padding-bottom: 10px;
        }

        .roles h4 {
            font-size: 1em;
            color: #333;
            margin-bottom: 10px;
        }

        .roles ul {
          list-style: disc;
          margin-left: 20px;
          color: #555;
          font-size: 1em;
          text-align: justify;
        }
        
        .roles ul li {
            margin-bottom: 8px;
        }
        
        /* --- Video Styles (Critical Update for IFRAME) --- */
        .experience-card .project-video {
            margin-top: 0; /* Adjusted margin */
            
        }
        
        .project-video { 
            position: relative;
            width: 100%; 
            margin: 0 auto; /* Removed old margins */
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
            /* Ensures the video container maintains 16:9 aspect ratio */
            aspect-ratio: 16/9; 
        } 

        /* This targets the IFRAME now used directly */
        .project-video iframe { 
            width: 100%; 
            height: 100%; 
            border: 0; 
            object-fit: cover;
            display: block; 
        }
        
        /* --- About Me Styles --- */
        .about-intro {
            display: flex;
            /* gap: 30px; */
            align-items: flex-start;
            margin: 20px auto 40px auto;
            padding:20px;
            background: #ffffff;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }
        .about-image {
            flex-shrink: 0;
            width: 300px;
            padding-left: 20px;
            margin-bottom: 15px;
            text-align: center;
        }
        .about-image img {
            width: 100%;
            height: auto;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }
        .about-description {
          flex-grow: 1;          /* Allows it to expand in flex container */
          padding: 10px 20px;    /* Adds top/bottom 10px and left/right 20px spacing */
          line-height: 1.4;      /* Makes text more readable */
          font-size: 1rem;       /* Standard font size */
          color: #333;           /* Dark gray text for better readability */
          text-align: justify;  /* Justifies the text */
}
        
        /* Combined Skills Section Styling */
        #skills-specialization {
            margin-top: 40px; 
            padding: 0 0px;
        }
        #skills-specialization h2 {
            text-align: center; 
            color: #222; 
        }

        /* Specialization Container & List Styling */
        .specialization-container {
            padding: 20px; 
            margin: 20px auto 40px auto; 
            background: #ffffff; 
            border: 1px solid #e0e0e0;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .specialization-container:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
        }

        /* 1. Center the entire list block */
        .specialization-list {
            list-style: none; 
            padding-left: 0; 
            max-width: max-content; 
            margin: 15px auto 0 auto; 
            text-align: left;
            font-size: 16px; /* change this value as needed */ 
        }

        /* 2. Style list item content to remain left-aligned within the centered block */
        .specialization-list li {
            padding: 3px 0;
            margin-bottom: 12px; 
            font-weight: 500;
            font-size: 1em;
            color: #333;
            display: flex;
            align-items: flex-start;
            text-align: left;
        }
        
        /* Custom Blue Bullet using pseudo-element */
        .specialization-list li::before {
            content: '•'; 
            color: #007BFF; 
            font-size: 1.5em; 
            line-height: 1;
            margin-right: 10px;
            margin-top: -3px; 
            flex-shrink: 0; 
        }
        #education .core-skills-container .single-skill-card {
            display: flex;
            flex-direction: column;
            gap: 24px; /* Optional: adds space between entries */           
        }
        .skill-group.education-entry {
            display: flex;
            /* flex-direction: row; */
            align-items: center;
            justify-content: space-between;
            gap: 24px;
            }
        .education-desc {
            flex: 1;
            }
        .education-logo img {
            width: 70px; /* Adjust size as needed */
            height: auto;
            margin-top: 40px;
            margin-right: 30px;
            border-radius: 8px; /* Optional */
            }
    
        .core-skills-container h3 {
            text-align: center;
            margin-bottom: 20px;
            color: #222; 
            font-size: 1.4em;
        }
        
        .single-skill-card {
            background: #ffffff;
            border: 1px solid #e0e0e0;
            border-radius: 10px;
            padding: 30px; 
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s, box-shadow 0.3s;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px 40px; 
            margin-top: 20px;
        }
        .single-skill-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
        }

        .skill-group {
            padding: 10px 0;
        }
        
        .skill-group h4 {
            margin-top: 0;
            display: flex;
            align-items: center;
            color: #043e7bde; 
            font-size: 1.2em;
            border-bottom: 1px dashed #ddd;
            padding-bottom:3px;
            margin-bottom: 2px;
        }

        .project-content h4 {
            margin-top: 0;
            display: flex;
            align-items: center;
            color: #043e7bde; 
            font-size: 1.2em;
            /* border-bottom: 1px dashed #ddd; */
            padding-bottom:3px;
            margin-bottom: 5px;
        }


        .skill-group i {
            font-size: 1.5em;
            margin-right: 10px;
            color: #007BFF; 
        }

        .skill-list-text {
            margin: 0;
            line-height: 1.6;
            color: #000000;
            font-size: 1em;
            font-weight: normal; 
        }
        .skill-list-text strong {
             font-weight: bold;
             font-size: 1.1em;
             color: #333;
        }
        
        /* Projects Layout */
        .projects-container {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }
        .project-row {
            display: flex;
            gap: 30px;
            align-items: center;
        }
        .project-content {
            flex: 1 1 0;
            max-width: none;
            text-align: ju
        }
        .project-video-col {
            flex: 0 0 40%;
            max-width: 40%;
            /* To change width, just update flex-basis and max-width here, e.g. 40% */
            display: flex;
            align-items: center;
            justify-content: center;
            /* box-sizing: border-box; */
            margin: 0;
            background: none;
            height: 100%;
        }
        
        .project {
                    flex: 1;
                    width: 100%;
                    /* min-width: 300px;  */
                    background: #f5f3f3;
                    padding: 20px;
                    border-radius: 5px;
                    box-shadow: 0 4px 15px rgba(0,0,0,0.10);
                    transition: transform 0.3s, box-shadow 0.3s;
                }

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

        .project-details {
            display: flex;
            gap: 20px;
            margin-top: 15px;
            margin-bottom: 15px;
        }

        .project-details .role,
        .project-details .highlights {
            font-size: .95em;
            flex: 1;
            background: #e9ecef;
            padding: 10px;
            border-radius: 5px;
        }
        
        .project-details ul {
            margin: 0;
            padding-left: 20px;
        }

        .project img {
            max-width: 100%;
            border-radius: 10px;
            margin-top: 10px;
        }

        /* Image Carousel Styles */
        .image-carousel {
            position: relative;
            width: 100%;
            overflow: hidden;
            border-radius: 5px;
            aspect-ratio: 16/9;
            margin-bottom: 15px; 
        }
        .carousel-images {
            display: flex;
            width: auto;
            height: 100%;
            transition: transform 0.5s ease;
        }
        .image-slide {
            width: 100%;
            height: 100%;
            flex-shrink: 0;
            align-items: center;
            justify-content: center;
            position: relative;
        }
        .image-slide img {
            display: block;
            margin: 0 auto;
            width:  auto;
            height: 100%;
            object-fit: cover;
            border-radius: 5px;
        }
        .carousel-nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            font-size: .9rem;
            padding: 5px 8px;
            cursor: pointer;
            z-index: 5;
        }
        .carousel-nav-btn.prev {
            left: 0;
            border-radius: 0 2px 2px 0;
        }
        .carousel-nav-btn.next {
            right: 0;
            border-radius: 2px 0 0 2px;
        }
        .carousel-view-button {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            padding: 10px 20px;
            background: rgba(0, 0, 0, 0.6);
            border-radius: 8px;
            color: white;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 1px;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        .image-carousel:hover .carousel-view-button {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1.1);
        }
        
        .image-title-overlay {
            position: absolute;
            bottom: 0;
            width: max-content;
            left: 50%;
            transform: translateX(-50%);
            background:#4e4e4e9f;
            color: #fff;
            text-align: center;
            padding: 2px 7px;
            font-size: 0.9em;
            pointer-events: none;
            border-radius: 4px;
            z-index: 4;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
        }

        .tags {
            margin-top: 20px;
        }
        .tag {
            display: inline-block;
            /* background: #007BFF; */
            border: 1.4px solid #007BFF;
            color: #000000;
            padding: 3px 5px;
            border-radius: 5px;
            margin: 2px 2px 0 0;
            font-size: 0.8em;
        }
        
        /* New Styles for the Modals */
        .video-modal, .image-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            visibility: hidden;
            opacity: 0;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .video-modal.modal-active, .image-modal.modal-active {
            visibility: visible;
            opacity: 1;
        }

        .video-modal::before, .image-modal::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .modal-content {
            position: relative;
            align-items: center;
            justify-content: center;
            width: 90%;
            max-width: 1100px;
            aspect-ratio: 16/9;
            z-index: 1001;
        }
        
        .modal-content iframe {
            width: 100%;
            height: 100%;
            border-radius: 10px;
        }

        .modal-content img {
            max-width: 99.5%;
            width: auto;
            display: block;
            margin: 0 auto;
            height: 100%;
            border-radius: 10px;
        }

        .modal-close {
            position: absolute;
            top: -25px;
            right: -25px;
            background: #fff;
            color: #333;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.5rem;
            cursor: pointer;
            z-index: 1002;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            transition: transform 0.2s ease;
        }
        .modal-close:hover {
            transform: scale(1.1);
        }

        .video-view-button {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            padding: 10px 20px;
            background: rgba(0, 0, 0, 0.6);
            border-radius: 8px;
            color: white;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 1px;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        .project-video:hover .video-view-button {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1.1);
        }
        
        .modal-image-title {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            background: rgba(0, 0, 0, 0.5);
            color: #fff;
            text-align: center;
            padding: 12px;
            font-size: 1em;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
            border-radius: 0 0 10px 10px;
            box-shadow: 0 -5px 10px rgba(0,0,0,0.1);
        }
        
        /* --- START: UPDATED ACHIEVEMENTS SECTION STYLES (Single Card) --- */
        .achievements-container {
            /* Retain padding/margin control */
            padding: 10px;
        }
        
        /* NEW: The single, large card container for all achievements */
        .single-achievements-container {
            background: #ffffff;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            padding: 20px;
            /* border-left: 5px solid #007BFF; */
            transition: transform 0.3s ease;
        }
        
        .single-achievements-container:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }

        /* Update: Style for an individual achievement item inside the single card */
        .achievement-item {
            display: flex;
            align-items: center;
            padding: 20px 0;
            /* Separator between items */
            border-bottom: 1px solid #eee;
        }
        
        /* Remove separator and padding from the last item */
        .achievement-item:last-child {
            border-bottom: none; 
            padding-bottom: 0;
        }
        
        /* Adjust padding for the first item */
        .achievement-item:first-child {
            padding-top: 0;
        }

        .achievement-image {
            flex-shrink: 0;
            width: 270px; /* Fixed width for desktop image container */
            height: 170px; /* Fixed height for consistent layout */
            margin-right: 20px;
            overflow: hidden;
            border-radius: 8px;
            border: 2px solid #ddd;
        }

        .achievement-image img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Ensures image fills the container without distortion */
            display: block;
        }

        .achievement-details {
            flex-grow: 1;
        }

        .achievement-details h3 {
            margin-top: 0;
            margin-bottom: 10px;
            color: #007BFF;
            font-size: 1.3em;
        }

        .achievement-details p {
            margin: 15px 0;
            color: #555;
            line-height: 1.5;
        }
        /* --- END: UPDATED ACHIEVEMENTS SECTION STYLES --- */
        
        /* --- START: CONTACT SECTION STYLES (For Icons) --- */
        #contact p {
            font-size: 1.3em;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            color: #444;
        }
        #contact p i {
            color: #007BFF; /* Icon color */
            margin-right: 12px;
            min-width: 20px; /* Ensure icons align properly */
            text-align: center;
        }
        #contact p a {
            color: #007BFF;
            text-decoration: none;
            font-weight: 500;
        }
        #contact p a:hover {
            text-decoration: underline;
        }
        /* --- END: CONTACT SECTION STYLES --- */


        /* ============================================================= */
        /* RESPONSIVENESS (Mobile/Tablet Layouts) */
        /* ============================================================= */
        @media (max-width: 1024px) {
            /* Achievements section: image first, then content */
            .achievement-item {
                display: flex;
                flex-direction: column;
                align-items: center;
            }
            .achievement-image {
                order: -1;
                width: 100%;
                max-width: 320px;
                margin: 0 auto 15px auto;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            .achievement-details {
                order: 0;
                width: 100%;
                max-width: 100%;
            }
            body {
                display: block;
                height: auto;
                overflow-x: hidden;
                overflow-y: auto;
            }
            .job-entry {
                display: flex;
                flex-direction: column;
            }
            .job-media {
                order: -1;
                width: 100%;
                max-width: 320px;
                margin: 0 auto 10px auto;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            .job-content {
                order: 0;
                width: 100%;
                max-width: 100%;
            }
            /* About section: image first, then content */
            .about-intro {
                display: flex;
                flex-direction: column;
            }
            .about-image {
                order: -1;
                width: 100%;
                max-width: 320px;
                margin: 0 auto 15px auto;
            }
            .about-description {
                order: 0;
            }
            /* Project section: video/image first, then content */
            .project-row {
                display: flex;
                flex-direction: column;
            }
            .project-video-col {
                order: -1;
                width: 70%;
                max-width: 100%;
                margin-bottom: 10px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            .project-content {
                order: 0;
                width: 100%;
                max-width: 100%;
            }
    html {
        scroll-padding-top: 130px;
    }
            
            /* Navigation Pane */
            .nav-pane {
                width: 100%;
                position: fixed;
                top: 0;
                left: 0;
                z-index: 100;
                height: auto;
                padding: 10px 0 0 0;
                box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
                background: #1a1a1a;
            }
            /* Only show main section links */
            .nav-pane {
                width: 100%;
                position: fixed;
                top: 0;
                left: 0;
                z-index: 100;
                height: auto;
                padding: 20px 15px;
                box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
                background: #1a1a1a;
            }
            .nav-pane p {
                display: none !important;
            }
            .nav-pane h2 {
                display: none !important;
            }
            .nav-pane ul li a {
                padding: 10px 16px;
                font-size: 1em;
                border-radius: 8px;
            }
            .content {
                margin-left: 0;
                width: 100%;
                padding: 20px 15px;
                overflow-y: auto;
                margin-top: 60px; /* Height for nav-pane */
                min-height: 100vh;
            }
            .nav-pane img {
                display: none !important;
            }
            .nav-pane h2 {
                font-size: 1.4em;
            }
            .nav-pane p {
                font-size: 0.85em;
                margin-bottom: 20px;
            }
            .nav-pane ul {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                gap: 4px 8px; /* Space between links */
            }
            .nav-pane ul li {
                margin: 0;
            }
            .nav-pane ul li a {
                padding: 5px 10px;
                font-size: 0.85em;
            }
            
            /* Hide nested links on mobile for cleaner navigation */
            .nav-pane ul.nested-links {
                display: none;
            }
            
            /* Mobile social links centering */
            .social-links-container {
                display: none;
            }
            .nav-copyright {
                display: none;

            /* Content Area */
            .content {
                margin-left: 0;
                width: 100%;
                padding: 20px 15px;
                overflow-y: auto;
                margin-top: 220px; /* Space for nav-pane height */
                min-height: 100vh;
            }

            /* Adjust cards and containers to stack/shrink */
            .experience-container {
                flex-direction: column;
                gap: 20px;
            }
            .experience-card, .project {
                min-width: 100%;
            }

            /* About Me section adjustment */
            .about-intro {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }
            
            /* Skills Grid adjustment */
            .single-skill-card {
                grid-template-columns: 1fr;
                padding: 20px;
            }
            
            /* Project details stack */
            .project-details {
                flex-direction: column;
                gap: 15px;
            }
            .project-details .role,
            .project-details .highlights {
                padding: 10px;
            }
            
            /* Reduce section margin for mobile density */
            section[id] {
                margin-bottom: 50px;
            }
            
            /* Experience Section Mobile Adjustments */
            .job-entry {
                flex-direction: column; /* Stack content and video vertically */
                gap: 20px;
            }
            .job-media {
                order: -1; /* Place the logo/video above the text content on mobile */
            }
            
            /* Achievements Mobile Stack */
            .achievement-item {
                flex-direction: column; /* Stack image and text vertically */
                text-align: center;
            }
            .achievement-image {
                width: 100%;
                max-width: 320px;
                height: auto;
                margin: 0 auto 15px auto;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            .achievement-image img {
                width: 100%;
                height: auto;
                object-fit: cover;
                border-radius: 8px;
                display: block;
            }
            .achievement-details h3 {
                font-size: 1.2em;
            }
            
            /* Contact Section Mobile Adjustment */
            #contact p {
                font-size: 1em;
            }
                .project-row {
                    display: flex;
                    flex-direction: column;
                    gap: 18px;
                    align-items: stretch;
                }
                /* Ensure video/carousel comes first, then content */
                .project-video-col {
                    order: -1;
                    width: 100%;
                    max-width: 100%;
                    margin-bottom: 10px;
                }
                .project-content {
                    order: 0;
                    width: 100%;
                    max-width: 100%;
                }
        }
        
        /* New desktop layout for job entries within the single card (WIDER screens) */
        @media (min-width: 769px) {
            .experience-card:hover {
                transform: none; /* No vertical lift on the large container */
                box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* Keep original shadow */
            }
        }

    }
