/**
 * Responsive styles
 */

@media (max-width: 768px) {
    .section-full {
        padding: 0.75rem;
        padding-top: 2.5rem;
        align-items: flex-start;
    }

    #home.section-full {
        align-items: center;
    }

    #home .terminal-output {
        min-height: 180px;
    }

    .section-content {
        max-height: calc(100vh - 5rem);
        padding-bottom: 3rem;
        padding-top: 0;
        overflow-y: auto;
        overflow-x: hidden;
        scroll-behavior: smooth;
    }

    .scroll-indicator {
        bottom: 1rem;
    }

    .scroll-arrow {
        width: 16px;
        height: 16px;
    }

    .scroll-text {
        font-size: 0.55rem;
    }

    .header {
        padding: 0.5rem 0;
    }

    .terminal-line {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .terminal-name {
        font-size: 1.6rem;
    }

    .terminal-subtitle {
        font-size: 0.9rem;
    }

    .terminal-output {
        font-size: 0.85rem;
        margin-top: 0.75rem;
        min-height: auto;
    }

    .terminal-header {
        margin-top: 0.25rem;
        margin-bottom: 0.75rem;
        padding: 0.5rem 0;
        font-size: 0.85rem;
        display: block;
        visibility: visible;
        opacity: 1;
        position: relative;
        z-index: 1;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        margin-top: 0;
    }

    .about-terminal {
        min-height: auto;
        padding: 0.75rem;
    }

    .about-terminal .terminal-output {
        min-height: auto;
        margin-top: 0.5rem;
    }

    .terminal-separator {
        overflow: hidden;
        text-overflow: clip;
        max-width: 100%;
        margin: 0.75rem 0 !important;
    }

    .menu-bar {
        padding: 0.4rem 0.75rem;
        height: auto;
        min-height: 32px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        gap: 0.5rem;
    }

    .menu-bar-left {
        gap: 0.4rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex: 1;
        max-width: calc(100% - 40px);
    }

    .menu-bar-left::-webkit-scrollbar {
        display: none;
    }

    .menu-logo {
        margin-right: 0.25rem;
        flex-shrink: 0;
    }

    .menu-logo svg {
        width: 14px;
        height: 14px;
    }

    .menu-item {
        font-size: 0.7rem;
        padding: 0.2rem 0.35rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .menu-bar-right {
        gap: 0.25rem;
        flex-shrink: 0;
        margin-left: auto;
    }

    .menu-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .menu-icon svg {
        width: 14px;
        height: 14px;
    }

    .experience-terminal {
        margin-top: 0.75rem;
    }

    .experience-block {
        padding: 0.5rem 0.75rem;
        margin-left: 0;
        margin-bottom: 0.5rem;
    }

    .experience-block::before {
        display: none;
    }

    .experience-org-header {
        margin-bottom: 0.5rem;
        padding-bottom: 0.35rem;
    }

    .experience-role {
        padding-left: 0.5rem;
        margin-left: 0.25rem;
        margin-bottom: 0.5rem;
    }

    .experience-title {
        font-size: 0.8rem;
        word-break: break-word;
    }

    .experience-duration {
        margin-left: 0.5rem;
        font-size: 0.7rem;
        margin-bottom: 0.35rem;
    }

    .experience-description {
        font-size: 0.75rem;
        margin-left: 0.5rem;
        line-height: 1.4;
        margin-bottom: 0.35rem;
    }

    .experience-tech {
        margin-left: 0.5rem;
        margin-top: 0.35rem;
        padding-top: 0.35rem;
    }

    .tech-tag {
        font-size: 0.6rem;
        padding: 0.15rem 0.35rem;
    }

    .certifications-terminal {
        margin-top: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .cert-terminal-output {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        overflow-x: hidden;
    }

    .cert-category-header {
        font-size: 0.8rem;
        margin: 0.5rem 0 0.35rem 0;
    }

    .cert-terminal-line {
        display: flex;
        flex-wrap: wrap;
        gap: 0.2rem;
        padding-left: 0.5rem;
        font-size: 0.7rem;
        line-height: 1.3;
        margin: 0.25rem 0;
    }

    .cert-name-inline {
        word-break: break-word;
    }

    .cert-meta-inline {
        display: block;
        width: 100%;
        margin-left: 1rem;
        font-size: 0.6rem;
    }

    .cert-link-inline {
        margin-left: 0;
    }

    .home-category-badge {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
    }

    #contributions-output {
        font-size: 0.65rem;
        padding: 0.5rem 0.75rem;
        white-space: pre-wrap;
        word-break: break-word;
        overflow-x: hidden;
        max-height: calc(100vh - 10rem);
        line-height: 1.4;
    }

    .skills-legend {
        gap: 0.5rem;
        font-size: 0.6rem;
        margin-bottom: 0.5rem !important;
    }

    .about-skill-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.35rem;
    }

    .about-skills-wrapper {
        gap: 0.25rem !important;
    }
}

@media (max-width: 480px) {
    .section-full {
        padding: 0.5rem;
        padding-top: 2.5rem;
    }

    #home.section-full {
        align-items: center;
    }

    #home .terminal-output {
        min-height: 160px;
    }

    .section-content {
        max-height: calc(100vh - 4.5rem);
        padding-bottom: 2.5rem;
    }

    .terminal-name {
        font-size: 1.35rem;
    }

    .terminal-subtitle {
        font-size: 0.8rem;
        gap: 0.35rem;
    }

    .home-category-badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
    }

    .section-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .terminal-header {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        padding: 0.4rem 0;
        display: block;
        visibility: visible;
        opacity: 1;
        position: relative;
        z-index: 1;
    }

    .about-terminal {
        padding: 0.5rem;
    }

    .experience-company {
        font-size: 0.75rem;
    }

    .experience-title {
        font-size: 0.7rem;
    }

    .cert-terminal-line {
        font-size: 0.6rem;
    }

    .cert-meta-inline {
        font-size: 0.55rem;
    }

    #contributions-output {
        font-size: 0.5rem;
        padding: 0.4rem 0.5rem;
        line-height: 1.35;
    }

    .scroll-indicator {
        bottom: 0.75rem;
    }

    .scroll-arrow {
        width: 14px;
        height: 14px;
    }

    .scroll-text {
        font-size: 0.5rem;
    }
}
