/* ===================================
   RESPONSIVE STYLES
   =================================== */

/* Tablets e dispositivos médios */
@media (max-width: 992px) {
    .header h1 {
        font-size: 2.2rem;
    }
    
    .header .subtitle {
        font-size: 1.1rem;
    }
    
    .timeline::before {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 21px;
    }
    
    .skills-grid,
    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Smartphones e dispositivos pequenos */
@media (max-width: 768px) {
    .header {
        padding: 60px 0 0 0;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header .subtitle {
        font-size: 0.9rem;
    }
    
    .profile-img {
        width: 140px;
        height: 140px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav ul {
        gap: 10px;
    }
    
    .nav a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid,
    .education-grid,
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-links {
        flex-direction: column;
        align-items: center;
    }
    
    .github-link,
    .live-demo,
    .company-link {
        width: 100%;
        max-width: 200px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline::before {
        left: 21px;
    }
    
    .timeline-item::after {
        left: 11px !important;
    }
    
    .card,
    .timeline-content,
    .project-card,
    .skill-category,
    .education-item,
    .cert-item {
        padding: 20px;
    }
    
    /* Mobile Navigation Styling */
    .mobile-nav {
        display: none;
    }
    
    .mobile-nav.mobile-active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 20px;
        gap: 15px;
        z-index: 1000;
    }
    
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
        padding: 8px;
        border-radius: 4px;
    }
    
    .mobile-menu-btn:hover {
        background: var(--bg-light);
    }
    
    .nav .container {
        display: flex;
        justify-content: flex-end;
    }
}

/* Dispositivos muito pequenos */
@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .card,
    .timeline-content,
    .project-card,
    .skill-category,
    .education-item,
    .cert-item {
        padding: 15px;
    }
    
    .project-header {
        padding: 15px 10px;
    }
    
    .nav a {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .contact-item {
        font-size: 0.9rem;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 5px;
    }
    
    .language-switcher a {
        padding: 3px 7px;
        font-size: 0.7rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Ajustes para melhorar a impressão */
@media print {
    .nav,
    .language-switcher,
    .progress-bar,
    .footer {
        display: none;
    }
    
    .header {
        background: white !important;
        color: black !important;
        min-height: auto;
        padding: 20px 0;
    }
    
    .header h1,
    .header .subtitle,
    .header .contact-info,
    .header .contact-item a {
        color: black !important;
        text-shadow: none !important;
    }
    
    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    .project-card,
    .timeline-item,
    .skill-category,
    .education-item,
    .cert-item {
        page-break-inside: avoid;
    }
    
    .project-links,
    .github-link,
    .live-demo,
    .company-link {
        display: none !important;
    }
}