@media (max-width: 1024px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }

    .timeline-marker {
        left: 30px;
    }

    .timeline-content {
        margin: 0;
        max-width: 100%;
    }

    .skills-categories {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-base);
        overflow-y: auto;
        border-left: 1px solid var(--border-color);
    }

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

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.125rem;
    }

    .lang-toggle {
        width: 100%;
        text-align: center;
    }

    .hero-section {
        min-height: auto;
        padding: 6rem 1.5rem 3rem;
    }

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

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

    .hero-image-placeholder {
        width: 120px;
        height: 120px;
    }

    .hero-image-placeholder svg {
        width: 60px;
        height: 60px;
    }

    .hero-image {
        width: 120px;
        height: 120px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

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

    .scroll-indicator {
        display: none;
    }

    .section {
        padding: 3rem 1.5rem;
    }

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

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skills-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .timeline {
        padding: 1rem 0;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 50px;
        margin-bottom: 2rem;
    }

    .timeline-marker {
        left: 20px;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-period {
        align-self: flex-start;
    }

    .cert-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .projects-tabs {
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

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

    .achievement-highlight {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .achievement-icon {
        font-size: 3rem;
    }

    .achievement-content h3 {
        font-size: 1.25rem;
    }

    .contact-methods {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .nav-container {
        padding: 1rem 1.5rem;
    }

    .nav-brand {
        font-size: 1.125rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

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

    .hero-badges {
        gap: 0.5rem;
    }

    .badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }

    .section {
        padding: 2.5rem 1rem;
    }

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

    .about-text .lead {
        font-size: 1rem;
    }

    .info-item {
        padding: 1.25rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-marker {
        left: 15px;
        width: 10px;
        height: 10px;
        border-width: 3px;
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .timeline-header h3 {
        font-size: 1.125rem;
    }

    .cert-card {
        padding: 1.5rem;
    }

    .cert-icon {
        width: 56px;
        height: 56px;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-header {
        margin-bottom: 1rem;
    }

    .project-icon {
        width: 40px;
        height: 40px;
    }

    .achievement-highlight {
        padding: 1.25rem;
    }

    .achievement-icon {
        font-size: 2.5rem;
    }

    .contact-method {
        padding: 1.25rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }

    .additional-info {
        padding: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

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

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

@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;
    }
}

@media print {
    .navbar,
    .hero-cta,
    .scroll-indicator,
    .scroll-top,
    .projects-tabs,
    .lang-toggle {
        display: none !important;
    }

    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }

    .section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        text-decoration: underline;
    }

    .timeline::before {
        display: none;
    }

    .timeline-marker {
        display: none;
    }

    .timeline-item {
        padding-left: 0;
        page-break-inside: avoid;
    }

    .timeline-content {
        margin: 0;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}
