/* Global Styles */
        :root {
            --primary-color: #3498db;
            --secondary-color: #2c3e50;
            --accent-color: #e74c3c;
            --light-color: #ecf0f1;
            --dark-color: #2c3e50;
            --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-primary);
            line-height: 1.6;
            color: #333;
            background-color: #f9f9f9;
            overflow-x: hidden;
        }

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

        section {
            padding: 60px 0;
        }

        .section-title {
            text-align: center;
            margin-bottom: 40px;
            font-size: 2rem;
            color: var(--secondary-color);
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background-color: var(--primary-color);
        }

        .btn {
            display: inline-block;
            padding: 10px 20px;
            background-color: var(--primary-color);
            color: white;
            text-decoration: none;
            border-radius: 5px;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
        }

        .btn:hover {
            background-color: var(--secondary-color);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        /* Navigation Styles */
        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 10px;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background-color: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            transition: all 0.3s ease;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
        }

        .nav-links {
            display: flex;
            list-style: none;
        }

        .nav-links li {
            margin-left: 20px;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--dark-color);
            font-weight: 600;
            transition: color 0.3s ease;
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--primary-color);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .nav-links a:hover {
            color: var(--primary-color);
        }

        .resume-btn {
            background-color: var(--primary-color);
            color: white;
            padding: 8px 15px;
            border-radius: 5px;
            transition: all 0.3s ease;
        }

        .resume-btn:hover {
            background-color: var(--secondary-color);
            color: white;
            transform: translateY(-3px);
        }

        .hamburger {
            display: none;
            cursor: pointer;
        }

        .hamburger .line {
            width: 25px;
            height: 3px;
            background-color: var(--dark-color);
            margin: 5px;
            transition: all 0.3s ease;
        }

        /* Home Section */
        .home-section {
            padding-top: 80px;
            background-color: white;
            min-height: 100vh;
            display: flex;
            align-items: center;
        }

        .home-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
        }

        .home-text {
            flex: 1;
            min-width: 300px;
            padding-right: 20px;
        }

        .home-text h1 {
            font-size: 2.2rem;
            margin-bottom: 15px;
            color: var(--secondary-color);
            line-height: 1.2;
        }

        .home-text h1 span {
            color: var(--primary-color);
        }

        .home-text h2 {
            font-size: 1.4rem;
            margin-bottom: 15px;
            color: var(--dark-color);
            font-weight: 500;
        }

        .home-text p {
            font-size: 1rem;
            margin-bottom: 25px;
            color: #666;
            max-width: 500px;
        }

        .home-image {
            flex: 1;
            min-width: 300px;
            text-align: center;
            position: relative;
        }

        .home-image img {
            max-width: 100%;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: transform 0.5s ease;
        }

        .home-image img:hover {
            transform: scale(1.05);
        }

        /* About Section */
        .about-section {
            background-color: #f1f5f9;
        }

        .about-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 30px;
            flex-wrap: wrap;
        }

        .about-text {
            flex: 1;
            min-width: 300px;
        }

        .about-image {
            flex: 1;
            min-width: 300px;
            text-align: center;
        }

        .about-image img {
            max-width: 100%;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .education-item {
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid #ddd;
        }

        .education-item:last-child {
            border-bottom: none;
        }

        .education-item h4 {
            color: var(--secondary-color);
            margin-bottom: 5px;
            font-size: 1.1rem;
        }

        .education-item .institution {
            color: #666;
            font-style: italic;
            margin-bottom: 8px;
            font-size: 0.9rem;
        }

        .education-item p {
            color: #555;
            line-height: 1.6;
            font-size: 0.9rem;
        }

        /* Skills Section */
        /*previous skkill section which was on right*/
        /*
        .skills-section {
            background-color: white;
        }

        .skills-container {
            margin-top: 30px;
        }

        .skill-category {
            margin-bottom: 30px;
        }

        .skill-category h3 {
            font-size: 1.3rem;
            margin-bottom: 15px;
            color: var(--secondary-color);
            text-align: center;
            position: relative;
            display: inline-block;
            left: 50%;
            transform: translateX(-50%);
        }

        .skill-category h3::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: var(--primary-color);
        }

        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 15px;
        }

        .skill-item {
            background-color: white;
            padding: 15px;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .skill-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }

        .skill-item img {
            width: 40px;
            height: 40px;
            object-fit: contain;
            margin-bottom: 8px;
        }

        .skill-item span {
            font-weight: 600;
            color: var(--dark-color);
            font-size: 0.9rem;
        }
            */

        /*from here edit for putting skill in middle*/

        /* Skills Section */

        .skills-section {
            background-color: white;
            text-align: center; /* Center align text in the section */
        }

        .skills-container {
            margin: 30px auto 0; /* Center the container */
            max-width: 900px; /* Limit width for better readability */
        }

        .skill-category {
            margin-bottom: 30px;
        }

        .skill-category h3 {
            font-size: 1.3rem;
            margin-bottom: 15px;
            color: var(--secondary-color);
            position: relative;
            display: inline-block; /* Remove the transform positioning */
        }

        .skill-category h3::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: var(--primary-color);
        }

        /* Change grid to flex for better centering */
        .skills-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center; /* Center the skill items */
            gap: 15px;
            margin: 0 auto; /* Center the grid */
        }

        .skill-item {
            background-color: white;
            padding: 15px;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 120px; /* Fixed width for consistent sizing */
        }

        .skill-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }

        .skill-item img {
            width: 40px;
            height: 40px;
            object-fit: contain;
            margin-bottom: 8px;
        }

        .skill-item span {
            font-weight: 600;
            color: var(--dark-color);
            font-size: 0.9rem;
        }
        /*edit till here*/

        /* Projects Section */
        .projects-section {
            background-color: #f1f5f9;
        }

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

        .project-card {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
        }

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

        .project-image {
            width: 100%;
            height: 180px;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

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

        .project-content {
            padding: 15px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .project-content h3 {
            font-size: 1.2rem;
            margin-bottom: 8px;
            color: var(--secondary-color);
        }

        .project-content p {
            color: #666;
            margin-bottom: 12px;
            flex-grow: 1;
            font-size: 0.9rem;
        }

        .tech-stack {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 15px;
        }

        .tech-stack span {
            background-color: var(--light-color);
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--secondary-color);
        }

        .project-links {
            display: flex;
            gap: 8px;
            margin-top: auto;
        }

        .project-links .btn {
            flex: 1;
            text-align: center;
            padding: 8px;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }

        /* GitHub Section */
        .github-section {
            background-color: var(--secondary-color);
            color: white;
            padding: 60px 0;
        }

        .github-section .section-title {
            color: white;
        }

        .github-section .section-title::after {
            background-color: var(--accent-color);
        }

        .github-stats {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
            margin-top: 30px;
        }

        .stats-row {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 15px;
            width: 100%;
        }

        .github-stats img {
            border-radius: 8px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
            max-width: 100%;
            height: auto;
        }

        .github-calender-large {
            width: 100%;
            max-width: 800px;
            margin: 0 auto;
        }

        /* Contact Section */
        .contact-section {
            background-color: white;
        }

        .contact-container {
            display: flex;
            flex-wrap: wrap;
            gap: 30px;
            margin-top: 30px;
        }

        .contact-info {
            flex: 1;
            min-width: 300px;
            background-color: #f9f9f9;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
        }

        .contact-info h3 {
            font-size: 1.3rem;
            margin-bottom: 15px;
            color: var(--secondary-color);
        }

        .contact-info p {
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            color: #555;
            font-size: 0.9rem;
        }

        .contact-info i {
            color: var(--primary-color);
            width: 18px;
            text-align: center;
        }

        .social-links {
            display: flex;
            gap: 12px;
            margin-top: 20px;
        }

        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            background-color: var(--light-color);
            color: var(--secondary-color);
            border-radius: 50%;
            transition: all 0.3s ease;
            font-size: 1rem;
        }

        .social-links a:hover {
            background-color: var(--primary-color);
            color: white;
            transform: translateY(-3px);
        }

        .contact-form {
            flex: 1;
            min-width: 300px;
            background-color: #f9f9f9;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
        }

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

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-family: inherit;
            font-size: 0.9rem;
            transition: border-color 0.3s ease;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary-color);
        }

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

        /* Footer */
        footer {
            background-color: var(--secondary-color);
            color: white;
            text-align: center;
            padding: 15px 0;
            font-size: 0.8rem;
        }

        #last-message{
            font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
            color: white;
            font-size: 1rem;
            font-weight: 200;
        }

        /* Animations */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Responsive Styles */
        @media (max-width: 768px) {
            .nav-links {
                position: fixed;
                top: 70px;
                left: -100%;
                width: 100%;
                height: calc(100vh - 70px);
                background-color: white;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                transition: all 0.5s ease;
                z-index: 999;
            }

            .nav-links.active {
                left: 0;
            }

            .nav-links li {
                margin: 15px 0;
            }

            .hamburger {
                display: block;
            }

            .hamburger.active .line:nth-child(1) {
                transform: rotate(-45deg) translate(-5px, 6px);
            }

            .hamburger.active .line:nth-child(2) {
                opacity: 0;
            }

            .hamburger.active .line:nth-child(3) {
                transform: rotate(45deg) translate(-5px, -6px);
            }

            .home-text {
                padding-right: 0;
                margin-bottom: 30px;
                text-align: center;
            }

            .home-text p {
                margin-left: auto;
                margin-right: auto;
            }

            .section-title {
                font-size: 1.8rem;
            }

            .about-content {
                flex-direction: column;
            }

            .about-image {
                margin-top: 20px;
            }
            /* added new skill*/
            .skills-grid {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            }
            /*till here*/
            .project-links {
                flex-direction: column;
            }

            .project-links .btn {
                width: 100%;
            }

            .stats-row {
                flex-direction: column;
                align-items: center;
            }
        }

        @media (max-width: 480px) {
            /*previous skill*/
            /* .projects-grid {
                grid-template-columns: 1fr;
            } */
             /*edited new one*/
            .skills-grid {
                grid-template-columns: repeat(2, 1fr); /* 2 columns on very small screens */
            }
            /*till here*/

            .home-text h1 {
                font-size: 1.8rem;
            }

            .home-text h2 {
                font-size: 1.2rem;
            }

            .section-title {
                font-size: 1.5rem;
            }

            .skills-grid {
                grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
            }
            /*added new skill for smaller device*/
            .skill-item {
                width: 100px; /* Smaller items on mobile */
            }
            /*till here*/
        }