/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

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

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        z-index: 999;
    }

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

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

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

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

    section {
        padding: 60px 0;
    }

    .hero {
        margin-top: 60px;
        min-height: calc(100vh - 60px);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .cta-group {
        flex-direction: column;
    }

    .cta-group .btn {
        width: 100%;
        justify-content: center;
    }

    .project-features ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

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

    .section-title::after {
        width: 60px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .nav-links {
        gap: 20px;
    }

    .contact-wrapper {
        gap: 30px;
    }

    .project-links {
        flex-direction: column;
    }

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

    .footer-content {
        gap: 30px;
    }
}

/* =========================
   REFINED HEADER & UI STYLES
========================= */

.app-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 40px !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 2px solid var(--primary-color) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
    width: 100% !important;
    min-height: 70px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1000 !important;
}

.header-center {
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    justify-content: center !important;
    margin: 0 20px !important;
}

.combined-controls {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    background-color: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(42, 132, 255, 0.2) !important;
    border-radius: 30px !important;
    padding: 0 !important;
    max-width: 450px !important;
    width: 100% !important;
    height: 42px !important;
    transition: var(--transition) !important;
}

.combined-controls:focus-within {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(42, 132, 255, 0.1) !important;
    background-color: var(--white) !important;
}

.search-box {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 !important;
    padding: 0 15px !important;
    min-width: 0 !important;
}

.search-box i {
    color: var(--text-secondary) !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
}

#searchInput {
    border: none !important;
    background: transparent !important;
    color: var(--text-primary) !important;
    font-size: 14px !important;
    width: 100% !important;
    padding: 0 !important;
    outline: none !important;
}

.divider {
    width: 1px !important;
    height: 20px !important;
    background-color: rgba(0, 0, 0, 0.1) !important;
    flex-shrink: 0 !important;
}

.filter-box {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 15px !important;
    flex-shrink: 0 !important;
}

.filter-box i {
    color: var(--text-secondary) !important;
    font-size: 14px !important;
}

#categoryFilter {
    border: none !important;
    background: transparent !important;
    color: var(--text-primary) !important;
    font-size: 14px !important;
    padding: 0 !important;
    outline: none !important;
    cursor: pointer !important;
    font-weight: 500 !important;
}

/* TOAST NOTIFICATION BELOW HEADER */
#toast {
    position: fixed !important;
    top: 90px !important;
    right: 20px !important;
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    pointer-events: none !important;
    z-index: 1001 !important;
    font-weight: 500 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

/* RESPONSIVE HEADER */
@media (max-width: 992px) {
    .header-center {
        margin: 0 10px !important;
    }
    .combined-controls {
        max-width: 300px !important;
    }
}

@media (max-width: 768px) {
    .app-header {
        padding: 10px 20px !important;
    }
    .header-center {
        order: 3 !important;
        margin: 10px 0 0 0 !important;
        width: 100% !important;
        flex: none !important;
    }
    .app-header {
        flex-wrap: wrap !important;
        height: auto !important;
    }
    .combined-controls {
        max-width: 100% !important;
    }
    #toast {
        top: 130px !important;
    }
}

/* Dark Mode Overrides */
[data-theme="dark"] .app-header {
    background-color: rgba(13, 17, 23, 0.95) !important;
    border-bottom-color: var(--primary-color) !important;
}

[data-theme="dark"] .combined-controls {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(77, 150, 255, 0.2) !important;
}

[data-theme="dark"] .combined-controls:focus-within {
    background-color: var(--light-bg) !important;
}

[data-theme="dark"] .divider {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
}

[data-theme="dark"] .skill-category,
[data-theme="dark"] .project-card,
[data-theme="dark"] .skeleton-card,
[data-theme="dark"] .social-links a {
    background-color: #161b22;
}

[data-theme="dark"] .skill-tag,
[data-theme="dark"] .tech-badge {
    background-color: rgba(77, 150, 255, 0.1);
}

[data-theme="dark"] .nav-links {
    background-color: #0d1117;
}

[data-theme="dark"] #categoryFilter option {
    background-color: #161b22;
    color: var(--text-primary);
}

.move-to-top-btn{
    position:fixed;
    height: 50px;
    width: 50px;
    background-color:#007bff;
    border-radius: 50%;
    right:20px;
    bottom:30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;

    
}
.move-to-top-btn a{
    color:#fff;
    padding: 30px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
   
}
