:root {
        /* Original light theme colors */
        --primary-color: #7DCE82;
        --secondary-color: #72a83b;
        --text-color: #333;
        --light-gray: #f5f5f5;
        --medium-gray: #e0e0e0;
        --dark-gray: #767676;
        --white: #fff;
        --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        --border-color: #ddd;
        --label-bg: #D7F5DC;
        
        /* Background colors */
        --background-color: #fff;
        --card-bg: #fff;
    }

    /* Dark theme colors */
    [data-theme="dark"] {
        --primary-color: #67B06B;
        --secondary-color: #5A8C2F;
        --text-color: #f0f0f0;
        --light-gray: #222;
        --medium-gray: #444;
        --dark-gray: #aaa;
        --white: #222;
        --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        --border-color: #444;
        --label-bg: #345738;
        
        /* Background colors */
        --background-color: #121212;
        --card-bg: #1e1e1e;
    }

    /* Apply background colors to elements */
    body {
        background-color: var(--light-gray);
        color: var(--text-color);
    }

    .profile-container, .section, .service-card, .project-card, footer, 
    .contact-left {
        background-color: var(--card-bg);
    }

    .contact-right {
        background-color: var(--light-gray);
    }
    
    /* Add transition for smooth theme change */
    body, .profile-container, .section, .service-card, .project-card,
    .contact-left, .contact-right, .form-control, .social-icon, 
    .portfolio-container, footer, .info-label, .info-value, 
    h1, h2, h3, p, span, a, .service-description, .project-title {
        transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    }
    
    /* Additional dark mode adjustments */
    [data-theme="dark"] .profile-pic img {
        border: 3px solid var(--primary-color);
    }

    [data-theme="dark"] .regular {
        color: 3px solid var(--primary-color);
    }

    [data-theme="dark"] h1, h2, h3, p, span, a {
        color: 3px solid var(--primary-color);
    }

    [data-theme="dark"] .info-label {
        background-color: var(--label-bg);
        color: var(--dark-gray);
    }
    [data-theme="dark"] .section-heading{
        color: var(--text-color);
    }

    [data-theme="dark"] .contact-info-title{
        color: var(--text-color);
    }

    [data-theme="dark"] .contact-info-content{
        color: var(--text-color);
    }

    [data-theme="dark"] .github {
        color: var(--text-color);
    }

    [data-theme="dark"] .admin-modal-content {
        background-color: var(--medium-gray);
        color: var(--text-color);
    }

    [data-theme="dark"] .form-control {
        background-color: var(--medium-gray);
        border-color: var(--border-color);
        color: var(--text-color);
    }
    /* Theme toggle button styles */
    .theme-toggle {
        position: fixed;
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: var(--primary-color);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        cursor: pointer;
        box-shadow: var(--shadow);
        z-index: 1000;
        border: none;
        font-size: 20px;
    }

    .theme-toggle:hover {
        transform: scale(1.05);
    }

    .theme-toggle i {
        transition: transform 0.3s ease;
    }

    .theme-toggle:hover i {
        transform: rotate(30deg);
    }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--light-gray);
            color: var(--text-color);
            line-height: 1.6;
        }

        .container {
            max-width: 2000px;
            margin: 40px auto;
            display: grid;
            grid-template-columns: 400px 1fr;
            gap: 30px;
            padding: 20px 20px;
        }

        /* Profile Section */
        .profile-container {
            background-color: var(--white);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
            height: fit-content;
            border: 1px solid var(--border-color);
        }

        .profile-header {
            padding: 30px 20px;
            text-align: center;
            border-bottom: 1px dashed var(--border-color);
        }

        .profile-pic img{
            border: 3px solid var(--label-bg);
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background-color: var(--medium-gray);
            margin: 0 auto 20px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .profile-pic i {
            font-size: 60px;
            color: var(--white);
        }

        .profile-name {
            margin-bottom: 5px;
            font-weight: 600;
            font-size: 20px;
        }

        .profile-title {
            color: var(--dark-gray);
            font-size: 14px;
            margin-bottom: 15px;
        }

        .social-icons {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 15px;
        }

        .social-icon {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 14px;
            transition: transform 0.3s;
        }

        .social-icon:hover {
            transform: translateY(-3px);
        }
        .facebook {
            background-color: #3d5c9e;
        }

        .instagram {
            background-color: #e4405f;
        }

        .twitter {
            background-color: #1da1f2;
        }

        .linkedin {
            background-color: #0077b5;
        }

        .github {
            background-color: #000000;
        }

        .gmail {
            background-color: #f54141;
        }

        .profile-details {
            padding: 20px;
        }

        /* Info Grid */
        .info-grid {
            display: grid;
            gap: 15px;
            margin-bottom: 25px;
        }

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

        .info-label {
            background-color: var(--label-bg);
            color: var(--text-color);
            font-size: 14px;
            font-weight: 500;
            padding: 5px 10px;
            border-radius: 5px;
            margin-right: 10px;
        }

        .info-value {
            font-size: 14px;
            color: var(--dark-gray);
        }

        .status-available {
            color: var(--primary-color);
            font-weight: 500;
        }

        /* Section Styles */
        .section-subtitle {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 15px;
            position: relative;
        }

        .languages-section,
        .skills-section,
        .extra-skills-section {
            margin-bottom: 25px;
            border-bottom: 1px dashed var(--border-color);
            padding-bottom: 15px;
        }

        .languages-section:last-child,
        .skills-section:last-child,
        .extra-skills-section:last-child {
            border-bottom: none;
        }

        /* Language Bar */
        .language-item,
        .skill-item {
            margin-bottom: 12px;
        }

        .language-info,
        .skill-info {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
            font-size: 14px;
        }

        .language-bar,
        .skill-bar {
            height: 5px;
            background-color: var(--medium-gray);
            border-radius: 10px;
            overflow: hidden;
        }

        .language-progress,
        .skill-progress {
            height: 100%;
            background-color: var(--primary-color);
            border-radius: 10px;
        }

        /* Extra Skills */
        .extra-skills-list {
            list-style: none;
        }

        .extra-skill-item {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }

        .extra-skill-icon {
            color: var(--primary-color);
            margin-right: 10px;
            font-size: 14px;
        }

        .extra-skill-text {
            font-size: 14px;
            color: var(--dark-gray);
        }

        /* Main Content Section */
        .main-content {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .section {
            background-color: var(--white);
            border-radius: 10px;
            padding: 25px;
            box-shadow: var(--shadow);
        }

        .section-title {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 3px;
            background-color: var(--primary-color);
        }

        /* Services Section */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }

        .service-card {
            background-color: var(--white);
            border-radius: 8px;
            padding: 20px;
            text-align: center;
            border: 1px solid var(--medium-gray);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .service-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow);
        }

        .service-icon {
            background-color: rgba(76, 175, 80, 0.1);
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
        }

        .service-icon i {
            color: var(--primary-color);
            font-size: 24px;
        }

        .service-title {
            font-weight: 500;
            margin-bottom: 10px;
        }

        .service-description {
            font-size: 14px;
            color: var(--dark-gray);
        }

        /* Skills Section */
        .skills-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }

        .skill-item {
            margin-bottom: 15px;
        }

        .skill-info {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
        }

        .skill-bar {
            height: 8px;
            background-color: var(--medium-gray);
            border-radius: 4px;
            overflow: hidden;
        }

        .skill-progress {
            height: 100%;
            background-color: var(--primary-color);
            border-radius: 4px;
        }

        /* Projects Section */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }

        .project-card {
            background-color: var(--white);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--shadow);
        }

        .project-img img, .fa-image {
            width: 100%;
            height: 150px;
            background-color: var(--medium-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 24px;
        }

        .project-content {
            padding: 15px;
        }

        .project-title {
            font-weight: 500;
            margin-bottom: 5px;
        }

        .project-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-bottom: 10px;
        }

        .project-tag {
            background-color: rgba(76, 175, 80, 0.1);
            color: var(--primary-color);
            font-size: 12px;
            padding: 2px 8px;
            border-radius: 4px;
        }

        /* Contact Section */
        .contact-form {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group.full-width {
            grid-column: span 2;
        }

        .form-control {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--medium-gray);
            border-radius: 5px;
            font-family: 'Poppins', sans-serif;
            font-size: 14px;
            transition: border-color 0.3s;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
        }

        textarea.form-control {
            min-height: 120px;
            resize: vertical;
        }

        .submit-btn {
            background-color: var(--primary-color);
            color: var(--white);
            padding: 12px 25px;
            border: none;
            border-radius: 5px;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.3s;
            font-family: 'Poppins', sans-serif;
        }

        .extra-skills {
            margin-top: 30px;
        }
        
        .sub-section-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 15px;
            position: relative;
        }
        
        .extra-skills-list {
            list-style: none;
        }
        
        .extra-skill-item {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .extra-skill-icon {
            color: var(--primary-color);
            margin-right: 10px;
            font-size: 14px;
        }
        
        .extra-skill-text {
            font-size: 14px;
            color: var(--dark-gray);
        }

        /* Languages Section */
        .languages-section {
            margin-bottom: 30px;
        }
        
        .language-item {
            margin-bottom: 12px;
        }
        
        .language-info {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
            font-size: 14px;
        }
        
        .language-bar {
            height: 5px;
            background-color: var(--medium-gray);
            border-radius: 10px;
            overflow: hidden;
        }
        
        .language-progress {
            height: 100%;
            background-color: var(--primary-color);
            border-radius: 10px;
        }

        /* Responsive Styles */
        @media (max-width: 900px) {
            .container {
                grid-template-columns: 1fr;
            }

            .profile-container {
                margin-bottom: 20px;
            }
        }

        #page-loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--white);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            transition: opacity 0.5s, visibility 0.5s;
        }

        #page-loader.loaded {
            opacity: 0;
            visibility: hidden;
        }

        .loader {
            border: 5px solid var(--medium-gray);
            border-top: 5px solid var(--primary-color);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        .portfolio-container {
            max-width: 900px;
            width: 900px;
            border-radius: 16px;
            padding: 40px;
            position: relative;
            overflow: hidden;
        }
        
        .shape {
            position: absolute;
            opacity: 0.5;
        }
        
        .circle-yellow {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: #FFD54F;
            top: 30px;
            left: 40px;
        }
        
        .circle-green {
            width: 15px;
            height: 15px;
            border-radius: 50%;
            background-color: #8BC34A;
            top: 55px;
            right: 30%;
        }
        
        .square-yellow {
            width: 12px;
            height: 12px;
            transform: rotate(45deg);
            background-color: #FFD54F;
            top: 12%;
            right: 15%;
        }
        
        .circle-green-bottom {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background-color: #8BC34A;
            bottom: 30px;
            left: 12%;
        }
        
        .circle-yellow-bottom {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            border: 2px solid #FFD54F;
            bottom: 20%;
            right: 25%;
        }
        
        .triangle-red {
            width: 0;
            height: 0;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-bottom: 12px solid #FF5252;
            bottom: 15%;
            right: 15%;
        }
        
        h1 {
            font-size: 32px;
            font-weight: 700;
            color: #212121;
            margin-bottom: 5px;
        }
        
        .highlight {
            color: #8BC34A;
            font-weight: 600;
        }
        
        .regular {
            color: #212121;
        }
        
        .lorem-text {
            color: #757575;
            font-size: 14px;
            line-height: 1.6;
            margin-top: 10px;
            margin-bottom: 30px;
            max-width: 80%;
        }
        
        .buttons {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        .btn {
            padding: 10px 20px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }
        
        .btn-primary {
            background-color: #8BC34A;
            color: white;
            border: none;
        }
        
        .btn-primary:hover {
            background-color: #7CB342;
            color: white;
        }
        
        .btn-secondary {
            background-color: #8BC34A;
            color: white;
            border: none;
        }
        
        .btn-secondary:hover {
            background-color: #7CB342;
            color: white;
        }
        
        .download-icon {
            margin-left: 5px;
        }
         /* Main contact container */
        .contact-container {
            margin: 10px auto;
            display: flex;
            flex-direction: row; /* Ensure row layout */
            flex-wrap: nowrap; /* Prevent wrapping */
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
            background-color: #fff;
        }

        /* Left and right sections */
        .contact-left, .contact-right {
            flex: 1; /* Equal width for both sides */
            padding: 40px;
            min-width: 300px; /* Minimum width to prevent squishing */
        }
        /* Section headings */
        .section-heading {
            margin-bottom: 30px;
            color: #333;
            font-size: 24px;
            font-weight: 600;
            padding-bottom: 10px;
            position: relative;
        }

        .section-heading:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 2px;
            background-color: var(--primary-color);
        }

        /* Form styles */
        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-control {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #e0e0e0;
            border-radius: 5px;
            font-size: 14px;
            transition: border-color 0.3s;
            background-color: #fff;
            font-family: 'Poppins', sans-serif;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(125, 206, 130, 0.2);
        }

        textarea.form-control {
            height: 140px;
            resize: none;
        }

        .submit-btn {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: background-color 0.3s;
            align-self: flex-start;
            text-transform: uppercase;
            margin-top: 10px;
        }

        .submit-btn:hover {
            background-color: var(--secondary-color);
        }

        /* Contact info styles */
        .contact-info-section {
            margin-bottom: 30px;
            position: relative;
        }

        .contact-info-section:last-child {
            margin-bottom: 0;
        }

        .contact-icon {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background-color: var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
            margin-bottom: 20px;
        }

        .contact-info-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            border-bottom: 1px dashed #e0e0e0;
            padding-bottom: 8px;
        }

        .contact-info-row:last-child {
            border-bottom: none;
        }

        .contact-info-title {
            font-weight: 500;
            color: #555;
            flex: 1;
        }

        .contact-info-content {
            color: #333;
            text-align: right;
            font-weight: 400;
        }

        /* Media query for responsive design */
        @media (max-width: 768px) {
            #contact {
                flex-direction: column;
                flex-wrap: wrap;
            }
            
            .contact-left, .contact-right {
                width: 100%;
            }
        }

            /* Footer */
            footer {
                background-color: var(--white);
                padding: 20px;
                text-align: center;
                border-top: 1px solid var(--border-color);
                margin-top: 30px;
            }

            footer p {
                font-size: 14px;
                color: var(--dark-gray);
            }
            /* Container adjustments */
            .container {
                max-width: 2000px;
                margin: 20px auto;
                display: grid;
                grid-template-columns: 1fr;
                gap: 20px;
                padding: 15px;
            }

            @media (min-width: 901px) {
                .container {
                    grid-template-columns: 400px 1fr;
                    margin: 40px auto;
                    padding: 20px;
                    gap: 30px;
                }
            }

            /* Better mobile layout adjustments */
            @media (max-width: 900px) {
                .profile-container {
                    margin-bottom: 20px;
                }
                
                .services-grid,
                .projects-grid,
                .skills-container {
                    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
                    gap: 15px;
                }
            }

            /* Small mobile devices */
            @media (max-width: 480px) {
                .services-grid,
                .projects-grid,
                .skills-container {
                    grid-template-columns: 1fr;
                }
                
                .section {
                    padding: 15px;
                }
                
                .contact-form {
                    grid-template-columns: 1fr;
                }
                
                .form-group.full-width {
                    grid-column: span 1;
                }
            }

            /* Portfolio container responsiveness */
            .portfolio-container {
                max-width: 100%;
                width: auto;
                padding: 20px;
            }

            @media (min-width: 901px) {
                .portfolio-container {
                    max-width: 900px;
                    width: 900px;
                    padding: 40px;
                }
            }

            /* Contact container responsiveness */
            .contact-container {
                flex-direction: column;
            }

            @media (min-width: 769px) {
                .contact-container {
                    flex-direction: row;
                }
            }

            .contact-left, .contact-right {
                width: 100%;
                padding: 20px;
            }

            @media (min-width: 769px) {
                .contact-left, .contact-right {
                    flex: 1;
                    padding: 40px;
                }
            }

            /* Text adjustments for mobile */
            .lorem-text {
                max-width: 100%;
            }

            @media (min-width: 769px) {
                .lorem-text {
                    max-width: 80%;
                }
            }

            /* Buttons responsiveness */
            .buttons {
                flex-direction: column;
                gap: 10px;
            }

            @media (min-width: 480px) {
                .buttons {
                    flex-direction: row;
                    gap: 15px;
                }
            }

            /* Improve font size responsiveness */
            @media (max-width: 480px) {
                h1 {
                    font-size: 24px;
                }
                
                .section-title {
                    font-size: 18px;
                }
                
                .profile-name {
                    font-size: 18px;
                }
                
                .section-heading {
                    font-size: 20px;
                }
            }

            /* Fix for profile picture on small screens */
            @media (max-width: 480px) {
                .profile-pic img {
                    width: 100px;
                    height: 100px;
                }
            }

            /* Image responsiveness */
            img {
                max-width: 100%;
                height: auto;
            }

            /* Fix contact media query from original CSS */
            @media (max-width: 768px) {
                #contact {
                    flex-direction: column;
                }
                
                .contact-container {
                    flex-direction: column;
                }
                
                .contact-left, .contact-right {
                    width: 100%;
                    padding: 20px;
                }
            }

            /* CSS for the admin button and panel */
            .admin-button {
                position: fixed;
                top: 80px; /* Positioned below the theme toggle */
                right: 20px;
                width: 50px;
                height: 50px;
                border-radius: 50%;
                background-color: var(--primary-color);
                display: flex;
                align-items: center;
                justify-content: center;
                color: white;
                cursor: pointer;
                box-shadow: var(--shadow);
                z-index: 1000;
                border: none;
                font-size: 20px;
            }

            .admin-button:hover {
                transform: scale(1.05);
            }

            /* Admin modal styles */
            .admin-modal {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.7);
                z-index: 2000;
                justify-content: center;
                align-items: center;
            }

            .admin-modal-content {
                background-color: whitesmoke;
                color: var(--text-color);
                width: 90%;
                max-width: 500px;
                padding: 2rem;
                border-radius: 10px;
                box-shadow: var(--shadow);
                position: relative;
            }

            .close-modal {
                position: absolute;
                top: 10px;
                right: 15px;
                font-size: 24px;
                cursor: pointer;
                color: var(--text-color);
            }

            .admin-panel h2 {
                margin-top: 0;
                margin-bottom: 1.5rem;
                color: var(--primary-color);
            }

            .admin-panel .form-group {
                margin-bottom: 1.5rem;
            }

            .admin-panel label {
                display: block;
                margin-bottom: 0.5rem;
                font-weight: 500;
            }

            .admin-panel input[type="file"] {
                border: 1px solid #ddd;
                padding: 8px;
                width: 100%;
                border-radius: 5px;
                background-color: var(--bg-light);
            }

            .admin-panel button {
                background-color: var(--primary-color);
                color: white;
                border: none;
                border-radius: 5px;
                padding: 10px 15px;
                cursor: pointer;
                font-weight: 500;
                transition: all 0.3s ease;
            }

            .admin-panel button:hover {
                background-color: var(--secondary-color);
            }