@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    .section {
        padding: 3rem 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .container {
        padding: 0 1.5rem;
    }
    .navbar .container {
        padding: 1rem 1.5rem;
    }
    .nav-toggle {
        display: block;
        z-index: 1001;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--card-bg);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right var(--transition-base);
        box-shadow: var(--shadow-xl);
        padding: 2rem;
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-link {
        font-size: 1.25rem;
    }
    .theme-toggle {
        margin-left: 1rem;
    }
    .hero {
        min-height: 90vh;
        padding-top: 60px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.25rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .hero-image {
        width: 150px;
        height: 150px;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    .social-links {
        flex-wrap: wrap;
    }
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .timeline {
        padding-left: 1.5rem;
    }
    .timeline-item {
        padding-left: 2rem;
    }
    .timeline-content {
        padding: 1.5rem;
    }
    .timeline-position {
        font-size: 1.125rem;
    }
    .timeline-company {
        font-size: 1rem;
    }
    .timeline-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .project-image {
        height: 200px;
    }
    .project-links {
        flex-direction: column;
    }
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .github-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .github-stat-card {
        padding: 1.5rem 1rem;
    }
    .github-stat-card i {
        font-size: 2rem;
    }
    .stat-value {
        font-size: 2rem;
    }
    .stat-label {
        font-size: 0.9rem;
    }
    .github-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .github-languages,
    .github-activity {
        padding: 1.5rem;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    .section {
        padding: 2.5rem 0;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .container {
        padding: 0 1rem;
    }
    .navbar .container {
        padding: 0.75rem 1rem;
    }
    .nav-menu {
        width: 80%;
    }
    .hero {
        min-height: 85vh;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.125rem;
    }
    .hero-description {
        font-size: 0.95rem;
    }
    .hero-image {
        width: 120px;
        height: 120px;
        margin-bottom: 1.5rem;
    }
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .about-text {
        padding: 1.5rem;
    }
    .about-text p {
        font-size: 1rem;
    }
    .about-details {
        grid-template-columns: 1fr;
    }
    .about-detail {
        padding: 0.75rem;
    }
    .skills-category-title {
        font-size: 1.25rem;
    }
    .skill-card {
        padding: 1.25rem;
    }
    .skill-name {
        font-size: 1rem;
    }
    .timeline {
        padding-left: 1rem;
    }
    .timeline-item {
        padding-left: 1.5rem;
        margin-bottom: 2rem;
    }
    .timeline-content {
        padding: 1.25rem;
    }
    .timeline-position {
        font-size: 1rem;
    }
    .timeline-company {
        font-size: 0.95rem;
    }
    .timeline-technologies {
        gap: 0.375rem;
    }
    .tech-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    .project-content {
        padding: 1.25rem;
    }
    .project-name {
        font-size: 1.25rem;
    }
    .project-image {
        height: 180px;
    }
    .certification-card {
        padding: 1.5rem;
    }
    .certification-logo {
        width: 80px;
        height: 80px;
    }
    .certification-name {
        font-size: 1.125rem;
    }
    .github-stats {
        gap: 0.75rem;
    }
    .github-stat-card {
        padding: 1.25rem 0.75rem;
    }
    .github-stat-card i {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    .stat-value {
        font-size: 1.75rem;
    }
    .stat-label {
        font-size: 0.85rem;
    }
    .github-languages h3,
    .github-activity h3 {
        font-size: 1.25rem;
    }
    .github-languages,
    .github-activity {
        padding: 1.25rem;
    }
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }
}
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    .hero-title {
        font-size: 4rem;
    }
    .section-title {
        font-size: 3rem;
    }
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .certifications-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 6rem 0 3rem;
    }
    .hero-image {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
    .hero-description {
        margin-bottom: 1rem;
    }
    .hero-buttons {
        margin-bottom: 1rem;
    }
    .scroll-indicator {
        display: none;
    }
}
@media print {
    .navbar,
    .theme-toggle,
    .scroll-indicator,
    .loading-overlay,
    .hero-buttons,
    .social-links,
    .project-links,
    .footer {
        display: none !important;
    }
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    .section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
    body {
        background: white !important;
        color: black !important;
    }
    .card,
    .timeline-content,
    .project-card,
    .certification-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .scroll-indicator {
        animation: none;
    }
}
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --text-color: #000000;
        --background-color: #ffffff;
        --border-color: #000000;
    }
    [data-theme="dark"] {
        --primary-color: #4d94ff;
        --text-color: #ffffff;
        --background-color: #000000;
        --border-color: #ffffff;
    }
    .btn,
    .nav-link,
    .social-link {
        border: 2px solid currentColor;
    }
}
