/* Responsividade - Breakpoints */

/* Desktop Grande (1200px e acima) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Desktop (992px a 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

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

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

/* Tablet (768px a 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }

    .hero {
        padding: 6rem 2rem 3rem;
    }

    .hero-profile {
        gap: 2rem;
    }

    .profile-image {
        width: 160px;
        height: 160px;
    }

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

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Mobile (576px a 767px) */
@media (max-width: 767px) {
    /* Estilos responsivos para a seção pessoal */
    .personal {
        padding: 4rem 1rem;
    }

    .personal h2 {
        font-size: 2.2rem;
    }

    .personal-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .social-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .social-card {
        padding: 1rem;
    }

    .social-card i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .social-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .social-card p {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }

    .social-description {
        font-size: 0.75rem;
    }
    .container {
        max-width: 540px;
    }

    .header {
        padding: 0.8rem 1rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem;
        gap: 2rem;
        transition: all 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
    }

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

    .hero {
        padding: 5rem 1rem 2rem;
        text-align: center;
    }

    /* Ajustes para o visualizador de CV no mobile */
    .cv-preview-toggle {
        display: none !important;
    }

    .cv-embed {
        display: none !important;
    }

    .cv-actions {
        justify-content: center;
    }

    .hero-profile {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        text-align: center;
    }

    .hero-text {
        align-items: center;
        text-align: center;
    }

    .hero-description {
        max-width: 100%;
        padding: 0 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

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

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

    .cv-actions {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Mobile Pequeno (375px a 575px) */
@media (max-width: 575px) {
    .hero {
        padding: 4rem 1rem 2rem;
    }

    .profile-image {
        width: 140px;
        height: 140px;
    }

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

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

    .hero-description {
        font-size: 0.95rem;
    }

    .stat-card {
        padding: 1.2rem;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Mobile Muito Pequeno (374px e abaixo) */
@media (max-width: 374px) {
    /* Ajuste para telas muito pequenas - grid 2x2 */
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .social-card {
        padding: 0.8rem;
    }

    .social-card i {
        font-size: 1.2rem;
    }

    .social-card h3 {
        font-size: 0.85rem;
    }

    .social-card p,
    .social-description {
        font-size: 0.7rem;
    }
    .hero-title {
        font-size: 1.8rem;
    }

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

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

    .stat-card {
        padding: 1rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Ajustes para orientação paisagem em dispositivos móveis */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 4rem 1rem 2rem;
    }

    .hero-profile {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .nav-links {
        padding: 1rem;
        gap: 1rem;
    }

    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* Suporte para telas de alta resolução (2K, 4K) */
@media (min-width: 2000px) {
    .container {
        max-width: 1400px;
    }

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

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

    .profile-image {
        width: 240px;
        height: 240px;
    }
}

/* Responsividade para as seções About */
@media (max-width: 1024px) {
    .about-section {
        padding: 2.5rem;
        margin-bottom: 2.5rem;
    }

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

    .timeline {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .about-container {
        padding: 0 1.5rem;
    }

    .about-section {
        padding: 2rem 1.8rem;
        margin-bottom: 2rem;
        border-radius: 15px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        gap: 0.8rem;
    }

    .section-title i {
        font-size: 1.5rem;
    }

    .section-content {
        font-size: 1rem;
        line-height: 1.6;
    }

    .timeline::before {
        left: -1rem;
    }

    .timeline-item::before {
        width: 10px;
        height: 10px;
        left: -1.2rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }

    .timeline-year {
        font-size: 1.1rem;
        padding: 0.25rem 0.8rem;
        margin-bottom: 0.6rem;
    }

    .timeline-content {
        padding: 1.2rem;
        font-size: 0.95rem;
    }

    .about-section:hover {
        transform: translateY(-3px);
    }

    .timeline-content:hover {
        transform: translateX(5px);
    }
}

@media (max-width: 480px) {
    .about-container {
        padding: 0 1rem;
    }

    .about-section {
        padding: 1.8rem 1.5rem;
        margin-bottom: 1.8rem;
        border-radius: 12px;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
        gap: 0.6rem;
    }

    .section-title i {
        font-size: 1.3rem;
    }

    .section-content {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .timeline {
        padding: 1rem 0.5rem;
        margin: 0;
    }

    .timeline::before {
        left: -0.8rem;
        width: 2px;
    }

    .timeline-item {
        padding-left: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .timeline-item::before {
        width: 8px;
        height: 8px;
        left: -1rem;
    }

    .timeline-year {
        font-size: 1rem;
        padding: 0.2rem 0.6rem;
    }

    .timeline-content {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .about-section:hover {
        transform: translateY(-2px);
    }

    .timeline-content:hover {
        transform: translateX(3px);
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 360px) {
    .about-section {
        padding: 1.5rem 1.2rem;
        margin-bottom: 1.5rem;
    }

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

    .timeline-year {
        font-size: 0.9rem;
        padding: 0.2rem 0.5rem;
    }

    .timeline-content {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
}
