/* Responsive styles */
@media (max-width: 1200px) {
    .section-container {
        padding: 5rem 1.5rem;
    }
    
    h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cert-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .terminal-container {
        width: 95%;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 1rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    nav ul li {
        margin-left: 1rem;
    }
    
    nav ul li a {
        font-size: 0.8rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tech-categories,
    .cert-list {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo {
        margin-bottom: 1rem;
    }
    
    .terminal-body {
        padding: 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .terminal-container {
        width: 100%;
    }
    
    .terminal-header {
        padding: 0.5rem;
    }
    
    .terminal-body {
        padding: 0.8rem;
        font-size: 0.7rem;
    }
    
    .cert-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cert-badge {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .section-container {
        padding: 4rem 1rem;
    }
}

/* Mobile navigation styles */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        z-index: 1001;
        cursor: pointer;
    }
    
    .mobile-nav-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--color-primary);
        margin: 5px 0;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-bg-alt);
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 1rem 0;
    }
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Additional responsive adjustments for very small screens */
@media (max-width: 320px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .typing-text {
        font-size: 1rem;
    }
    
    .terminal-body {
        font-size: 0.65rem;
    }
}

/* Ensure language selector doesn't overlap other UI elements */
@media (max-width: 768px) {
    .language-selector {
        top: 10px;
        right: 10px;
    }
}