/* Existing CSS code */

/* Responsive CSS */

@media (max-width: 1000px){
    .work-container {
        flex-direction: column;
        width: 90%;
        gap: 20px;
    }
    .left, .right {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 15px 10px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 100;
        transition: top 0.3s ease;
    }

    .navbar a {
        font-size: 14px;
        color: black;
        margin: 0 8px;
    }
    
    .navbar a:hover {
        color: #007bff;
    }
    .dark .navbar {
        background-color: var(--color-white);
    }
    
    .dark .navbar a {
    color: var(--color-text);
    }
    
    .dark #theme-toggle {
    color: var(--color-text);
    }
    #theme-toggle {
    background: transparent;
    border: none;
    font-size: 20px;
    color: black;
    cursor: pointer;
    margin-left: 15px;
    margin-right: 20px;
    }
    


    #theme-toggle{
        margin-left: 0px;
    }

    .home {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #photo {
        width: 150px;
        height: 150px;
    }
    .profile-info{
        flex-direction: column;
    }
    .home h2 {
        font-size: 32px;
    }

    .home p {
        font-size: 14px;
    }

    button#theme-toggle {
        font-size: 15px;
        margin-left: 10px;
    }
    .work-container {
        flex-direction: column;
        width: 90%;
        gap: 20px;
    }

    .left, .right {
        width: 100%;
    }

    .education, .experience, .skills, .certifications {
        padding: 15px;
        min-height: auto;
    }

    h3 {
        font-size: 20px;
    }

    p {
        font-size: 14px;
    }

    .cv-download-button {
        font-size: 14px;
        padding: 8px 16px;
    }

    .popup-content {
        margin: 30% auto;
    }

    #contact h2 {
        font-size: 24px;
    }

    .contact-info p {
        font-size: 14px;
    }

    .social-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 15px 10px;
    }

    .navbar a {
        font-size: 14px;
        margin-left: 10px;
    }

    .home h2 {
        font-size: 28px;
    }

    .home p {
        font-size: 12px;
    }

    .work-container {
        width: 95%;
    }

    h3 {
        font-size: 18px;
    }

    p {
        font-size: 12px;
    }

    .cv-download-button {
        font-size: 12px;
        padding: 6px 12px;
    }

    #contact h2 {
        font-size: 20px;
    }

    .contact-info p {
        font-size: 12px;
    }
}