
:root {
    --primary-color: #2563eb;
    --text-color: #1f2937;
    --bg-color: #ffffff;
    --accent-color: #dbeafe;
    --dark-bg-color: #1f2937;
    --dark-text-color: #d1d5db;
    --dark-accent-color: #374151;
    --toggle-bg-color: #f3f4f6;
    --toggle-dark-bg-color: #4b5563;
}

/* Rest of your CSS remains the same until the contact form styles */

.message-status {
    margin-top: 1rem;
}

.success-message, .error-message {
    display: none;
    text-align: center;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
}

.success-message {
    color: #2ecc71;
    background-color: #e8f8f5;
}

.error-message {
    color: #e74c3c;
    background-color: #fdedec;
}

.show {
    display: block;
}

/* Add loading state for button */
button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}


        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            scroll-behavior: smooth;
        }

        body {
            font-family: system-ui, -apple-system, sans-serif;
            line-height: 1.6;
            color: var(--text-color);
            background-color: var(--bg-color);
            transition: background-color 0.3s, color 0.3s;
        }

        body.dark-mode {
            --text-color: var(--dark-text-color);
            --bg-color: var(--dark-bg-color);
            --accent-color: var(--dark-accent-color);
        }

        .skeleton {
            animation: skeleton-loading 1s linear infinite alternate;
        }

        @keyframes skeleton-loading {
            0% {
                background-color: #e5e7eb;
            }
            100% {
                background-color: #f3f4f6;
            }
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 1rem;
            margin-bottom: 4rem;
            background-color: #e5e7eb;
        }
        .dark-mode nav{
            background-color: #2f2f2f86;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            align-items: center;
        }


        .nav-links a {
            text-decoration: none;
            color: var(--text-color);
            font-weight: 500;
            transition: color 0.3s;
        }

        .nav-links a:hover {
            color: var(--primary-color);
        }

        .toggle-button {
            position: relative;
            width: 60px;
            height: 30px;
            border-radius: 15px;
            background-color: var(--toggle-bg-color);
            cursor: pointer;
            transition: background-color 0.3s;
            display: flex;
            align-items: center;
            padding: 0 5px;
        }

        .dark-mode .toggle-button {
            background-color: var(--toggle-dark-bg-color);
        }

        .toggle-button svg {
            width: 20px;
            height: 20px;
            position: absolute;
            transition: transform 0.3s, opacity 0.3s;
        }

        #sun-icon {
            left: 5px;
            fill: #f59e0b;
            stroke: #f59e0b;
        }

        #moon-icon {
            right: 5px;
            fill: #6b7280;
            opacity: 0;
        }

        .dark-mode #sun-icon {
            opacity: 0;
        }

        .dark-mode #moon-icon {
            opacity: 1;
            fill: #d1d5db;
        }

        .toggle-slider {
            position: absolute;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background-color: white;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            left: 3px;
            transition: transform 0.3s;
        }

        .dark-mode .toggle-slider {
            transform: translateX(30px);
            background-color: #374151;
        }

        .hero {
            display: flex;
            align-items: center;
            gap: 4rem;
            margin-bottom: 6rem;
        }

        .hero-content {
            flex: 1;
        }

        .profile-image {
            width: 300px;
            height: 300px;
            border-radius: 50%;
            object-fit: cover;
        }

        .section {
            margin-bottom: 4rem;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s, transform 0.5s;
        }

        .section.visible {
            opacity: 1;
            transform: translateY(0);
        }

        h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
            line-height: 1.2;
        }

        h2 {
            font-size: 2rem;
            margin-bottom: 2rem;
            color: var(--primary-color);
        }

        .project-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .project-card {
            background: var(--accent-color);
            padding: 1.5rem;
            border-radius: 0.5rem;
            transition: transform 0.3s;
            text-decoration: none;
            color: inherit;
            display: block;
        }

        .project-card:hover {
            transform: translateY(-5px);
            transition: transform 0.2s ease;

        }

        .skills-list {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .skill-tag {
            background: var(--accent-color);
            padding: 0.5rem 1rem;
            border-radius: 2rem;
            font-weight: 500;
        }

        .contact-form {
            max-width: 600px;
        }

        input, textarea {
            width: 100%;
            padding: 0.75rem;
            margin-bottom: 1rem;
            border: 1px solid #e5e7eb;
            border-radius: 0.375rem;
            font-family: inherit;
            background-color: var(--bg-color);
            color: var(--text-color);
        }

        button {
            background-color: var(--primary-color);
            color: white;
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 0.375rem;
            cursor: pointer;
            font-weight: 500;
            transition: background-color 0.3s;
        }

        button:hover {
            background-color: #1d4ed8;
        }
        .links {
            padding-top: 10%;
            display: flex;
            align-items: center;
            gap: 2rem;
        }
        
        .links a {
            padding-left: 0;
        }
        
        .download-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: black;
            margin-left: 0;
            padding: 5px 5px 5px 20px; 
            border-radius: 6px;
            text-decoration: none;
            font-weight: 500;
            transition: background-color 0.3s, transform 0.2s;
        }
        
        .download-btn:hover {
            background-color: #2563eb;
            transform: translateY(-2px);
        }
        
        .download-icon {
            width: 16px;
            height: 16px;
            stroke: rgb(0, 0, 0);
            stroke-width: 2;
            fill: none;
        }
        .dark-mode .download-icon{
            stroke: white;
        }
        
        .links svg {
            width: 24px;
            height: 24px;
        }
        .dark-mode .links svg {
            fill: var(--dark-text-color);
        }

        .links a:hover svg {
            fill: var(--primary-color);
        }
        
        
        .dark-mode .download-btn {
            background-color: var(--dark-bg-color);
            color: white;
        }
        .dark-mode .download-btn:hover{
            background-color: #2563eb;
        }

        .back-to-top {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            background-color: var(--primary-color);
            color: white;
            width: 3rem;
            height: 3rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border: none;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: all 0.3s ease;
            z-index: 1000;
            font-size: 24px;  /* Size for the arrow character */
            line-height: 1;   /* Keeps the arrow centered */
        }
        
        .show-back-to-top {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        
        .back-to-top:hover {
            background-color: #1d4ed8;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        
        /* Dark mode support */
        .dark-mode .back-to-top {
            background-color: var(--dark-accent-color);
            color: var(--dark-text-color);
        }
        
        .dark-mode .back-to-top:hover {
            background-color: var(--primary-color);
        }
        
        /* Mobile responsiveness */
        @media (max-width: 768px) {
            .back-to-top {
                bottom: 1rem;
                right: 1rem;
                width: 2.5rem;
                height: 2.5rem;
                font-size: 20px;
            }
        }
        /* Add these media queries at the end of your CSS file */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        overflow-x: hidden;
    }

    .hero {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        margin-bottom: 3rem;
    }

    .profile-image {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    h1 {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .links {
        justify-content: center;
    }

    /* Prevent horizontal scrolling */
    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Adjust nav for mobile */
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
    }

    /* Make project cards full width on mobile */
    .project-grid {
        grid-template-columns: 1fr;
    }

    /* Adjust skills list spacing */
    .skills-list {
        justify-content: center;
    }

    /* Make form inputs full width */
    .contact-form input,
    .contact-form textarea {
        width: 100%;
    }
}

/* Additional breakpoint for very small devices */
@media (max-width: 480px) {
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }
}