/* === RESPONSIVE STYLES === */

/* Extra Large Screens */
@media (min-width: 1400px) {
    .container {
        width: 85%;
        max-width: 1600px;
        padding: 0 2rem;
    }
}

/* Large Screens */
@media (max-width: 1200px) {
    .container {
        width: 95%;
        padding: 0 1.5rem;
    }

    .about-content {
        gap: 2rem;
    }
    
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Medium Screens */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .container {
        width: 92%;
        padding: 0 1.25rem;
    }

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

    .about-image {
        margin-bottom: 2rem;
        max-width: 400px;
    }

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

    .contact-info {
        margin-bottom: 2rem;
    }

    .projects-grid,
    .blog-posts {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Small Screens */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        width: 95%;
        padding: 0 1rem;
    }

    .nav-container {
        position: relative;
    }

    .hamburger {
        display: block;
        z-index: 1010;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-secondary);
        transition: var(--transition);
        z-index: 1000;
    }

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

    .nav-links li {
        margin-left: 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }



    .projects-grid,
    .experience-grid,
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-content {
        text-align: left !important;
        align-items: flex-start !important;
        margin-left: 0 !important;
    }
    .about-content,
    .projects-grid,
    .experience-grid,
    .blog-posts,
    .contact-content {
        text-align: left !important;
        align-items: flex-start !important;
    }
    .project-content,
    .experience-content,
    .blog-content {
        text-align: left !important;
        align-items: flex-start !important;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .container {
        width: 96%;
        padding: 0 0.75rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 4rem 0;
    }

    .experience-card,
    .project-content,
    .blog-content {
        padding: 1rem;
    }
    
    .experience-content {
        padding: 1.25rem;
    }
    
    .experience-image {
        height: 100px;
        padding: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content {
        text-align: left !important;
        align-items: flex-start !important;
        margin-left: 0 !important;
    }
    .about-content,
    .projects-grid,
    .experience-grid,
    .blog-posts,
    .contact-content {
        text-align: left !important;
        align-items: flex-start !important;
    }
    .project-content,
    .experience-content,
    .blog-content {
        text-align: left !important;
        align-items: flex-start !important;
    }
}

.theme-toggle {
    position: relative;
    width: 40px;
    height: 22px;
    background-color: #e9e9ea;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 15px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: white;
    transition: transform 0.3s, background-color 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-toggle {
    background-color: #34c759;
}

[data-theme="dark"] .theme-toggle::before {
    transform: translateX(18px);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    width: 10px;
    height: 10px;
    position: absolute;
}

.theme-toggle .sun-icon {
    left: 6px;
}

.theme-toggle .moon-icon {
    right: 6px;
}