body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    background-color: #fff;
    padding: 2rem;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.sidebar-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

nav ul li a:hover {
    color: #007bff;
}

.theme-toggle {
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 180px;
}

.content {
    padding: 0;
}

#home {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #e6f0fa;
    background-size: cover;
    background-position: center;
}

#home h1 {
    font-size: 2.5rem;
    margin: 0;
}

#projects, #about, #testimonials, #contact {
    max-width: 900px;
    margin: 0 auto 2rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3 {
    margin: 1rem;
    font-size: 1.2rem;
}

.project-card p {
    margin: 0 1rem 1rem;
    color: #666;
}

.project-card a {
    display: inline-block;
    margin: 0 1rem 1rem;
    color: #007bff;
    text-decoration: none;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: none;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

#profileImage {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

#skillsList {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#skillsList li {
    background-color: #e6f0fa;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

#testimonialList {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.testimonial {
    background-color: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

#contactForm input, #contactForm textarea {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#contactForm button {
    padding: 0.5rem;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-links a {
    color: #333;
    font-size: 1.5rem;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #fff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

body.dark-mode {
    background-color: #1a1a1a;
    color: #f9f9f9;
}

body.dark-mode .sidebar, body.dark-mode .content, body.dark-mode footer, body.dark-mode .project-card, body.dark-mode .testimonial {
    background-color: #2a2a2a;
}

body.dark-mode nav ul li a, body.dark-mode .social-links a {
    color: #f9f9f9;
}

body.dark-mode .project-card a {
    color: #66b3ff;
}
body.dark-mode #skillsList li {
    color: #2a2a2a;
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        width: 200px;
        transform: translateX(-100%);
        transition: transform 0.3s;
        z-index: 1000;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: -40px;
        background-color: #007bff;
        color: #fff;
        padding: 0.5rem;
        border-radius: 0 5px 5px 0;
    }

    .content {
        padding: 1rem;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    #profileImage {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}
