        :root {
            --primary: #f06292;
            --secondary: #f58fb1;
            --dark: #090909; /* Darker background like CodeWithHarry */
            --light: #e0e0e0; /* Lighter text for dark background */
            --accent: #ff9800;
            --text: #ffffff; /* White text for main content */
            --header-bg: #000207; /* Specific dark background for header */
            --search-bg: #0f0f10; /* Background for search bar */  
            --button-bg: #2b2d30; /* Background for buttons */
            --button-hover-bg: #0d0e0e; /* Hover background for buttons */
            --shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Stronger shadow for dark theme */
            --transition: all 0.3s ease;
            background-color: #121212;
            max-height: fit-content;
        }
        .internal-container {
            background-color:none;
            align-items:center;
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {   
            font-family: 'Poppins', sans-serif;     
            font-weight: 400;
            line-height: 1.6;
            color: var(--text); /* Set default text color to white for the dark background */
            background-color: #F5F5F5;
            font-size: 1rem;
        }
        header {
            background-color: #F5F5F5; /* Use specific header background */
            padding: 1 0px; /* Slightly reduced padding */
            position: relative;
            top: 0;
            color: #000000;
            z-index: 20;
            width: 100%;
            box-shadow: var(--shadow);
            border-bottom: 1px solid rgba(223, 223, 223, 0.986); /* Subtle bottom border */
        }
        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 0;
            padding-right: 0;
            padding-left: 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.08);
            padding-bottom: 0; /* Space between top and bottom parts of header */
            gap:1rem /* Divider */
        }
        .header-bottom {
            padding-top: 0.2rem;
            padding-bottom: 0.2rem;
            padding-left: 0;
            padding-right: 0;
            display: flex;
            height: 30px;
            align-items: center;
        }
        footer{
            background-color:#F5F5F5;
            padding: 1 0rem;
            position: sticky;
            width: 100%;
            top: 0;
            height: 400px;
            color: #000000;
            z-index: 20;
            box-shadow: var(--shadow);
            text-align: center;
        }
        .container {
            width: 100%;
            max-width: none; /* Slightly wider max-width */
            margin: 0 auto;
            padding: 0;
            padding-right: 1rem;
            padding-left: 0rem;
        }
        nav {
            display: flex;
            align-items: center;
            width: 100%; /* Take full width of parent to distribute items */
        }

        .logo {
            display: flex;
            align-items: center;
            text-align: center;
            font-size: 1.5rem; /* Adjusted font size */
            font-family: 'Poppins', sans-serif;
            font-weight: 700;
            padding: 10px;
            margin-right: 0.5rem; /* Space between logo and nav links */
            white-space: nowrap; /* Prevent logo text from wrapping */
        }
        .logo img {
            width: 50px; /* Adjusted size */
            height: 50px; /* Adjusted size */
            padding: 8px;
            filter: invert(0); /* Invert color for dark background */
        }
        .navlinks {
            display: flex;
            list-style: none;
            flex-grow: 1; /* Allow nav links to take up available space */
            justify-content: flex-start; /* Align to the start */
        }
        .navlinks li {
            margin-right: 2rem;
            border-radius: 8px; 
            width: 70px;
            align-items: center;
            text-align: center;/* Adjusted margin between links */
        }
        .navlinks a {
            font-size: 1rem;
            color: black;
            font-family: 'Poppins', sans-serif;
            text-decoration: none;
            padding: 0.5rem 0;
            position: relative;
            transition: var(--transition);
            white-space: nowrap; /* Prevent nav links from wrapping */
        }
        .navlinks li:hover{
            background-color: #e4e4e4;
        }
        

        /* Right Section: Search, Buttons, Theme Toggle */
        .right-section {
            display: flex;
            align-items: center;
            gap: 0.8rem; /* Space between items in the right section */
        }
        

        .header-button {
            border: 2px solid rgba(217, 215, 215, 0.947);
            padding: 0.6rem 1rem;
            border-radius: 6px;
            cursor: pointer;
            height: auto;
            font-size: 0.9rem;
            transition: var(--transition);
            white-space: nowrap;
        }
        .header-button:hover {
            background-color: rgb(226, 224, 224);
        }

        /* Secondary Navigation */
        .secondary-nav {
            display: flex;
            list-style: none;
            gap: 1.5rem; /* Space between secondary links */
            margin-left: 1rem; /* Indent slightly from the left edge */
        }
        .secondary-nav li a {
            text-decoration: none;
            font-size: 0.95rem;
            transition: var(--transition);
            display: flex;
            color: #000000;
            align-items: center;
        }
        .secondary-nav li a .dropdown-icon {
            margin-left: 5px;
            font-size: 0.7em; /* Smaller dropdown icon */
            transform: translateY(2px);
            transition: transform 0.3s ease;
        }
        .secondary-nav li.dropdown:hover .dropdown-icon {
        transform: translateY(2px) rotate(180deg); /* Corrected selector and added 'deg' */
        }
        .dropdown-content {
            display: none; /* Hidden by default */
            position: absolute;
            margin: auto;
            background-color: rgb(255, 245, 245); 
            box-shadow: var(--shadow);
            border-radius: 6px;
            padding: 1rem 0;
            width: 500px;
            transition: opacity 0.3s ease, visibility 0.3s ease; /* Fade in/out transition */
        }
       
        .dropdown-content a {
            padding: 10px 15px;
            width: 140px;
            height: 100px;
            background-color: #F5F5F5 ;
            border: 1px solid deeppink;
            border-radius: 10px;
            font-size: 0.9rem; /* Slightly smaller for dropdown items */
            transition: background-color 0.3s ease, color 0.3s ease;
            white-space: nowrap;
        }

        .dropdown:hover .dropdown-content {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
            opacity: 1;
            visibility: visible;
        }

        .dropdown-content1 {
            display: none; /* Hidden by default */
            position: absolute;
            height: auto;
            width: 300px;
            background-color: var(--header-bg); 
            box-shadow: var(--shadow);
            border-radius: 6px;
            padding: 0.5rem 0;
            transition: opacity 0.3s ease, visibility 0.3s ease; /* Fade in/out transition */
        }
        .dropdown-content1 a {
            color: var(--light);
            justify-content: flex-start;
            padding: 15px 16px;
            text-decoration: none;
            display: flex;
            font-size: 0.9rem; /* Slightly smaller for dropdown items */
            transition: background-color 0.3s ease, color 0.3s ease;
            white-space: nowrap;
        }

        .dropdown1:hover .dropdown-content1 {
            display: inline-block;
            opacity: 1;
            visibility: visible;
        }

        /* Home Section - Rest of the styles remain mostly the same, adjusted for new colors */
        .home {
            position: relative;
            width: 100%;
            height: 80vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: var(--light); /* Text color for home section */
            text-align: center;
            padding: 2rem;
            overflow: hidden;
        }

        .header-top .search-bar {
                text-align: center;
                width: 100px !important;
                border: none;
                border-radius: 8px;
                height: 39px;
                margin: auto;
                padding: 0.3rem 0.5rem !important;
                background-color:rgb(226, 224, 224);
        }
        /* Tutorials Section - Rest of the styles remain mostly the same, adjusted for new colors */
        .tutorials {
            background-color:  rgb(255, 245, 245); /* Use dark variable */
            text-align: center;
        }

        .tutorials .container{
            width: auto;
            max-width:1250px;
            padding: 2%;
            margin: 0 auto;
        }

        .tutorials .container p{
            font-size: 1.2rem;
            line-height: 1.6;
            color: black;
            text-align: center;
            margin-top: 1rem;
        }


        .tutorials > p {
            font-size: 1.2rem;
            max-width: 900px;
            margin: 0 auto 3rem auto;
            line-height: 1.8;
            color: black; /* Ensure paragraphs are light */
        }


        .langgrid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            padding: 0 1rem;
            max-width: 1200px;
            height: auto;
            margin: 0 auto;
        }
        .button2{
            background-color: deeppink;
            padding: 1rem 2rem;
            font-size: 1.1rem;
            font-weight: bold;
            font-family: 'Poppins', sans-serif;
            color: rgb(0, 0, 0);
            justify-content: center;
            margin: auto;
            height: 3.54rem;
            border-radius: 40px;
            margin-bottom: 80px;
            margin-top: 20px;
            border: none;
            cursor: pointer;
            box-shadow: 0 10px 10px rgba(186, 3, 97, 0.252);
        }
         /* Main Section Styles */
        .main {
            display: flex;
            flex-direction: row;
            gap: 0rem;
            max-width: 100%; /* Center the content area and add vertical margin */
            align-items: stretch;
            background-color: none;
        }

        .internalsidebar {
            flex-shrink: 0;
            position: relative; /* Adjust based on header height */
            width: 300px;
            height: 100vh;
            overflow-y: scroll;
            scrollbar-width: 4rem;
            scrollbar-color:rgb(202, 157, 157) rgb(255, 229, 229);
            background-color: rgb(255, 245, 245);
            box-shadow: none;
            padding: 1.5rem;
            border: 1px solid  rgba(0, 0, 0, 0.08); /* Adjust based on header height */
            align-self: flex-start;
        }

        .internalsidebar h3 {
            font-size: 1rem; /* Slightly larger for main headings */
            color: black;
            border-bottom: 2px solid black;
            margin-bottom: 0.5rem;
            padding-bottom: 0.5rem;
        }

        .internalsidebar nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .internalsidebar nav li {
            margin-bottom: 0.8rem;
        }

        .internalsidebar nav button {
            display: block;
            width: 200px;
            padding: 10px;
            height: 45px;
            cursor: pointer;
            border-radius: 6px;
            border: #000000;
            background-color: rgba(0, 0, 0, 0);
            color: black;
            text-decoration: none;
            font-size: 0.9rem;
            align-items: flex-start;
            text-align: left;

        }

        .internalsidebar nav button:hover {
            background-color: white;
        }

        .internalsidebar nav button.active {
            background-color: var(--primary);
            color: white;
        }

        .internal-nav-link {
            border-left: 0px solid transparent;
            padding-left: 0.5rem;
        }

        .internal-nav-link.active {
            border-left: 10px solid #007bff;
            padding-left: 1rem;
            background-color: #f0f0f0;
            box-shadow: inset 0 0 5px rgba(0, 123, 255, 0.2);
        }
        .internalsidebar nav button.active:hover {
            background-color: var(--primary);
            color: white;
        }
        .internalsidebar::-webkit-scrollbar {
            width: 8px;
        }
        .main-content{
            background-color: rgb(255, 245, 245);
            height: 100%;
        }

        /* Internal Content Display */
        .internal-content-display {
            flex-grow: 1;
            background-color:#F5F5F5;
            border-radius: 10px;
            box-shadow: var(--shadow);
            padding: 1rem;
            width:100%;
            color: black;
            margin:auto;
        }

        /* Hamburger icon for internalsidebar */
        .sidebar-hamburger {
            display: none;
            flex-direction: column;
            cursor: pointer;
            width: 32px;
            height: 32px;
            justify-content: center;
            align-items: center;
            z-index: 100;
            background: transparent;
            position: absolute;
            top: 90px;
            left: 10px;
        }
        .sidebar-hamburger span {
            height: 4px;
            width: 100%;
            background: var(--primary);
            margin: 4px 0;
            border-radius: 2px;
            transition: 0.3s;
        }

        .internal-content-display h3 {
            font-size: 2rem;
            color: black;
            margin-bottom: 1.5rem;
            border-bottom: 1px solid #000000;
            padding-bottom: 0.5rem;
        }

        .internal-content-display h4 {
            font-size: 1.5rem;
            color: rgb(39, 38, 38);
            margin-top: 1.5rem;
            margin-bottom: 1rem;
        }

        .internal-content-display p {
            margin-bottom: 1rem;
            line-height: 1.8;
        }
        .navigation-buttons{
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 3rem;
            gap: 10px;
            height: 50px;
        }

        .navigation-buttons .button {
            padding: 10 15px;
            background-color: rgb(255, 1, 90);
            color: #eee;
            font-weight: bold;
            text-align: center;
            font-size: 1.2rem;
            font-family: 'Poppins', sans-serif;
            cursor: pointer;
            border: 1px solid rgb(255, 1, 90);
            border-radius: 30px;
            width: 160px;
            height: 50px;
        }

        .navigation-buttons .button:hover{
            box-shadow:0 9px 18px rgb(115, 47, 71) ; 
            color: rgb(0, 0, 0);
            background-color: rgb(255, 1, 90) ;
            border: 1px solid  rgb(255, 1, 90) ;
            transition: var(--transition);
        }

        .internal-content-display pre {
            background-color: #cacbcc; /* Darker background for code */
            color: #000000; /* Lighter text for code */
            padding: 1rem;
            border-left: deeppink solid 7px;
            border-radius: 8px;
            overflow-x: auto;
            margin-bottom: 2rem;
            font-size: 0.9rem;
        }

        .internal-content-display code {
            font-family: 'Fira Code', 'Cascadia Code', monospace;
        }
        .header-bottom input{
            display: none;
        }
        /* Social links in footer */
        .social-links {
            display: flex;
            gap: 12px;
            align-items: center;
            justify-content: center;
            margin: 1rem 0;
        }

        /* Individual link appearance */
        .social-links a {
            width: 48px;
            height: 48px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: #ffffff;
            color: #222222;
            text-decoration: none;
            box-shadow:0 8px 20px rgba(0, 0, 0, 0.15)   ;
            transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
            -webkit-tap-highlight-color: transparent;
        }

        /* Icon sizing */
        .social-links a i {
            font-size: 1.25rem;
            line-height: 1;
            pointer-events: none; /* ensure the anchor handles clicks/focus */
        }


        /* Slightly smaller on narrow screens */
        @media (max-width: 480px) {
            .social-links a {
                width: 40px;
                height: 40px;
            }
            .social-links a i {
                font-size: 1rem;
            }
        }

        /* Respect users who prefer reduced motion */
        @media (prefers-reduced-motion: reduce) {
            .social-links a,
            .social-links a:focus {
                transition: none;
                transform: none;
            }
        }
        @media (max-width: 768px) {
            .main, .projects, .tutorials, .internal-content-display, .internalsidebar {
                padding: 0.5rem !important;
                margin: 0 !important;
                width: 100% !important;
                max-width: 100vw !important;
                box-sizing: border-box;
            }
            .langinfo .button1{
                margin: auto;
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 3px;
            }
             
            .internal-container {
                align-items:center;
            }
            .container{
                padding: 0%;
            }
            .tutorials .container{
                padding: 0 !important;
            }
            .header-top .right-section{
                display: none;
            }
            .header-bottom {
                display: none;
            }
            header, footer {
                padding: 0rem !important;
            }
            .header, #contact{
                flex-direction: column !important;
                align-items: center !important;
                gap: 0rem !important;
                width: 100% !important;
                background-color: none;
            }
            .logo {
                font-size: 1rem !important;
                margin:auto  !important;
                padding: 0rem !important;
                width:100% !important;
            }
            .logo img {
                width: 35px !important;
                height: 35px !important;
                padding: 4px !important;
                margin-left: 0%;
            }
            .navlinks {
                flex-direction: row !important;
                align-items: center !important;
                justify-content: center !important;
                width: 100% !important;
                gap: 0.2rem !important;
                margin: 0 !important;
            }
            .navlinks li {
                margin: 0.2rem 0 !important;
                width: 100% !important;
            }
            .navlinks li:hover{
                background-color: rgb(218, 206, 206);
            }
            .right-section {
                flex-direction: row !important;
                align-items: left !important;
                gap: 5rem !important;
                width: 100px !important;
                margin: 0 !important;
            }
            .header-bottom .dropdown{
                display: flex;
                flex-direction: column !important;
                justify-content: center;
                text-align: center;
                align-items: flex-start;
                width: 50%;
                margin: auto;
                padding: 1rem 4rem;
                height: 50px;
                font-size: 3rem;
                border-radius: 20px;
                background-color: rgb(18, 17, 17);
            }
            .search-bar {
                text-align: center;
                width: 50vw !important;
                border: black;
                border-radius: 20px;
                min-width: 180px !important;
                padding: 0.3rem 0.5rem !important;
            }
            .dropdown-content {
                display: none; /* Hidden by default */
                position: absolute;
                left: 50%;
                top: 100%;
                background-color: black; 
                box-shadow: var(--shadow);
                border-radius: 6px;
                transition: opacity 0.3s ease, visibility 0.3s ease; /* Fade in/out transition */
            }
            .dropdown-content a {
                color: var(--light);
                padding: 10px 12px;
                text-decoration: none;
                display: block;
                margin-left: 1rem;
                font-size: 0.9rem; /* Slightly smaller for dropdown items */
                transition: background-color 0.3s ease, color 0.3s ease;
                white-space: nowrap;
            }
            .header-button, .button2, .navigation-buttons .button {
                font-size: 0.8rem !important;
                padding: 0.4rem 0.8rem !important;
                width: 300px !important;
                margin: 0.2rem 0 !important;
            }
            .main {
                flex-direction: column !important;
                gap: 0.5rem !important;
                margin: 0;
                align-items: stretch !important;
                width: 100% !important;
            }
            .internalsidebar {
                position: relative !important;
                left: -100vw !important;
                top: 0 !important;
                height: 100vh !important;
                width: 80vw !important;
                background: rgb(255, 252, 252);
                z-index: 99 !important;
                transition: left 0.3s !important;
                box-shadow: var(--shadow) !important;
                border-right: none !important;
                padding: 1rem !important;
            }
            .internalsidebar.active {
                left: 0 !important;
            }
            .sidebar-hamburger {
                display: flex !important;
            }
            .langgrid, .dataset {
                grid-template-columns: 1fr !important;
                gap: 1rem !important;
                margin: auto;
                width:100%;
                padding: 1rem !important;
            }
            .langcontr, .projects .container, .tutorials .container {
                min-width: 0 !important;
                width: 100% !important;
                max-width: 100vw !important;
                padding: 0.5rem !important;
            }
            #tutorails{
                display: flex;
                flex-direction: column;
            }
            .language{
                width: fit-content;
            }
            .langgrid .language{
                width: 90%;
            }
            .langimg {
                height: auto !important;
                width: 100% !important;
                background-color: black;
                border-radius: 10px !important;
            }
            .langimg i{
                width: 100% !important;
                background-color: rgb(255, 255, 255);
                height: fit-content !important;
                border-radius: 10px !important;
            }
            .langtitle, .langtitle1 {
                font-size: 1.2rem !important;
                margin-bottom: 0.5rem !important;
            }
            .langinfo, .langinfo1, .langdecs, .langdecs1 {
                font-size: 0.9rem !important;
                padding: 0.5rem !important;
                width: 100% !important;
                max-width: 100vw !important;
            }
            .editor-output-wrapper {
                flex-direction: column !important;
                gap: 1rem !important;
                width: 100% !important;
                max-width: 100% !important;
                padding: 0 !important;
            }

            #code,
            #output {
                width: 100% !important;
                max-width: 100% !important;
            }
        }
            /* smaller icons on narrow screens */
            @media (max-width: 480px) {
                .social-links a {
                    width: 40px;
                    height: 40px;
                    font-size: 1rem;
                }
            }
            .datainfo{
                width: 300px;
                margin: auto;
                animation: fadeScaleIn 0.5s ease-out forwards;  
            }
@keyframes fadeScaleIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
        @media (max-width: 768px) {
            .internal-content-display h3 {
                font-size: 1.5rem;
            }

            .internal-content-display h4 {
                font-size: 1.2rem;
            }
        }
        /*sidebar toggle button styles*/
        .sidebar-toggle-btn {
            position: relative;
            top: 0px;
            left: 10px;                   
            right: 200px;
            z-index: 101;
            background: var(--primary);
            color: #fff;
            border: none;
            border-radius: 6px;
            padding: 10px 18px;
            font-size: 1.2rem;
            cursor: pointer;
            width: 120px;
            box-shadow: var(--shadow);
            transition: background 0.3s;
        }
        .sidebar-toggle-btn{
            display: none;
        }
        .sidebar-toggle-btn:active {
            background: var(--secondary);
        }
        .hero-img-container{
            text-align: center;
            height: 400px;
            display:flex;
            flex-direction: row;
            align-items: center;
            background-color: rgb(255, 255, 255);
        }
        .hero-img-container i{
            margin: auto;
            font-size: 10rem;
        }
        .hero-img-container span{
            font-size: 9rem;
            font-weight: 100;
            font-family: 'Times New Roman', Times, serif;
        }
        @media (max-width: 768px) {
            .hero-img-container{
                height: 250px;
                background-color: none;
                display:flex;
                margin: 10px;
                flex-direction: row;
                align-items: center;
            }
            .hero-img-container i {
                font-size: 200px;
                display: flex;
                gap: 1rem;
                color: deeppink;
                flex-direction: column;
            }
            .hero-img-container span{
                font-size: 20px;
                font-weight: 800;
            }
        }
        @media (max-width: 768px) {
            .sidebar-toggle-btn {
                display: block !important;
                align-items: right;
            }
            
            .internalsidebar {
                position: fixed !important;
                left: -100vw !important;
                height: 100vh !important;
                width: 60vw !important;
                top: 0px !important;
                background: rgb(255, 253, 253) !important;
                transition: left 0.3s !important;
                box-shadow: var(--shadow) !important;
                border-right: none !important;
            }
            .internalsidebar.active {
                left: 0 !important;
            }
            .internal-content-display {
                width: 100% !important;
                position: relative;
            }
        }
        /*above image container styles*/
@keyframes floatX {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(10px);
    }
    50% {
        transform: translateX(0);
    }
    75% {
        transform: translateX(-10px);
    }
    100% {
        transform: translateX(0);
    }
}

         .language {
            background-color:white;  
            min-height: 350px;
            border-radius: 10px;
            overflow: hidden;
            display: flex;
            width: 350px;
            flex-direction: column;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            transform-style: preserve-3d;
            will-change: transform;
        }
        .langcontr .language {
            animation: floatX 3s ease-in-out infinite;
        }    
        .langgrid .language{
            width: fit-content;
        }
        .langcontr .language:hover {
            transform: scale(1.05) translateZ(20px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
        }

        .language:hover {
            box-shadow:0 8px 20px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
            transform: translateY(-5px);
        }

        .langimg {
            height: 90%;
            padding: 1rem;
            background-color: #f4eded;
            overflow: hidden;
        }

        .langimg i { 
            width: 100%;
            font-size: 20px;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        .langinfo {
            padding: 1.5rem;
            color: rgb(0, 0, 0);
            background-color: none;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .langtitle {
            font-size: 1.8rem;
            font-weight: bold;
            margin-bottom: 0.75rem;
            color: black; /* Title color */
        }
        
        .langdecs {
            font-size: 0.95rem;
            color: black;
            text-align: center;
            width: 300px;
            height: 190px;
            line-height: 1.6;
        }

        .social-links {
            display: flex;
            justify-content: center;
            margin: 1.5rem 0;
        }

        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            margin: 0 0.5rem;
            transition: var(--transition);
        }
        .projects {
            text-align: center;
            width: 100%;
            max-width: 1600px;
            height: 100%;
            margin: 0 auto;
            background-color: rgb(255, 245, 245);
        }

        .projects .container {
            width: auto;
            max-width: 1200px;
            padding: 2%;
            margin: 0 auto; /* Center the container */
        }

        .projects .container p{
            font-size: 1.2rem;
            line-height: 1.6;
            color: var(--light);
            text-align: center;
            margin-top: 1rem;
        }
        .langcontr {
            display: flex;
            flex-wrap: wrap;
            flex-direction: row;
            gap: 1rem;
            background-color: rgb(255, 245, 245);
            padding: 2rem;
            margin: auto;
            align-items: stretch;
        }
        .langcontr .language{
            height: 300px;
        }
        @media (max-width: 768px) {
        .projects{
            height: fit-content;
        }
        .langcontr {
            flex-direction: column;
            height: fit-content;
            width: 90%;
            gap: 20px;
            padding: 10px;
            margin: 0%;
            align-items: center;
        }
    }

        .pythonplaygrnd{
            width: 100%;
            height: 100%;
            background-color: rgb(255, 245, 245);
            display: flex;
            padding: 1.2rem;
            justify-content: center;
            align-items: center;
        }
        .pythonply{
            width: 100%;
            height: 90%;
            margin: auto;
            display: flex;
            flex-direction: row;
            background-color: white;
            border-radius: 10px;
            box-shadow:0 8px 20px rgba(0, 0, 0, 0.15);
            padding: 1rem;
            justify-content: center;
            align-items: center;
        }
        .playground h1,
        .playground p {
            color: #000000;
            text-align: center;
        }

        /* Base styles */
        .playground {
            width: 100%;
            max-width: 100%;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            height: 100%;
            padding: 1rem 2rem;
            box-sizing: border-box;
        }

        .editor-output-wrapper {
            display: flex;
            flex-direction: row;
            gap: 1rem;
            width: 100%;
            box-sizing: border-box;
        }

        /* Code and Output containers */
        #code,
        #output {
            width: 100%;
            min-height: 180px;
            height: auto;
            box-sizing: border-box;
            padding: 0.5rem;
            font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
            font-weight: 900;
            font-size: 1.1rem;
            color: deeppink;
            border: 1px solid #ccc;
            border-radius: 6px;
            background-color: #f9f9f9;
            overflow-x: auto;
            white-space: pre-wrap;
            word-break: break-word;
        }



        
        /* Fullscreen overlay */
        .fullscreen-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.85);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            animation: fadeIn 0.3s ease;
        }
        /* Recommended CSS for the fixed plot size */
        .generated-plot-fixed {
            width: 100%;             /* Take full width of the output container */
            max-width: 600px;        /* Limit the maximum width if the container is very large */
            max-height: 400px;       /* Limit the maximum height */
            height: auto;
            object-fit: contain;     /* Ensures the plot scales down to fit without cropping */
            display: block;          /* Ensures proper spacing/margins */
            margin: 1rem 0;          /* Add vertical spacing */
            border: 1px solid #ddd;
            padding: 5px;
        }
        .fullscreen-overlay img {
            max-width: 90vw;
            max-height: 90vh;
            border-radius: 12px;
            box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
        }

                /* --- CSS for User Info in Header --- */
        .logged-out-buttons {
            display: flex; 
            gap: 10px;
        }
        .user-info {
            position: fixed;
            top: 90px; /* appears below avatar-circle */
            right: 20px;
            width: 220px;
            background-color: #f9f9f9;
            border: 1px solid #ccc;
            padding: 12px;
            border-radius: 8px;
            display: none;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            z-index: 99;
        }
        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #ff0066;
        }
        .user-name {
            font-weight: bold;
            color: #ff0066;
        }
        .logout-button {
            background-color: transparent;
            border: 1px solid #ff0066;
            color: #ff0066;
            padding: 5px 10px;
            width: 80px;
            height: 35px;
            border-radius: 5px;
            cursor: pointer;
        }
         .right-section {
            display: flex;
            align-items: center;
            gap: 15px; 
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }


        .button1 {
            padding: 0.5rem 1.5rem;
            font-size: 1rem;
            background-color: #ff0099;
            color: #fff;
            width: 150px;
            height: 40px;
            border: none;
            box-shadow: var(--shadow);
            border-radius: 6px;
            cursor: pointer;
            margin-top: 1rem;
        }
        .footerp{
            text-align: center;
            color: black;
            gap: 1.8rem;
            display: flex;
            flex-direction: column;
            padding: 1rem;
        }
              
        /* Responsive adjustments */
        @media (max-width: 768px) { 
            .header-top {
                flex-wrap: wrap; 
                gap: 1rem;
            }
            .navlinks {
                flex-basis: 100%;
                justify-content: center;
                margin-top: 1rem;
                flex-direction: column;
                width: 100px;
                gap: 0.4rem;
            }
            .logo {
              flex-basis: 100%; 
              text-align: left;
              align-items: left;
              margin-bottom: 1rem;
              width: 50px;
              margin-right: 20rem; 
              }
            .right-section {
                flex-basis: 100%;
                justify-content: center;
                flex-direction: column;
            }
            .header-bottom {
                flex-direction: column;
                justify-content: center;
                align-items: center;
            }
            .secondary-nav {
                display: flex;
                flex-direction: row;
                margin-left: 0;
                margin: auto;
                gap: 0.5rem;
                text-align: center;
                width: 100%;
            }
            .social-links a i {
                font-size: 1.50rem;
                line-height: 1;
                pointer-events: none; /* ensure the anchor handles clicks/focus */
            }
        } 
