/* ==================== RESPONSIVIDADE ==================== */

/* ==================== VIDEO RESPONSIVO ==================== */
.video-background iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* ==================== MOBILE FIRST APPROACH ==================== */

/* Tablets e Dispositivos Médios */
@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(1.5rem, 4vw, 2.8rem);
    }
    
    .hero-subtitle {
        font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    }
    
    .nav-menu {
        gap: var(--spacing-md);
        font-size: 0.85rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
    
    .portfolio-item {
        height: 350px;
    }
}

/* Mobile em Landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding-top: var(--spacing-md);
    }
    
    .hero-title {
        font-size: clamp(1.2rem, 3vw, 2rem);
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: var(--spacing-sm);
    }
    
    .hero-buttons .btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.8rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Mobile em Portrait */
@media (max-width: 768px) {
    /* ==================== NAVIGATION ==================== */
    .nav-container {
        padding: 0 var(--spacing-sm);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-xl);
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        font-weight: var(--font-weight-medium);
    }
    
    .nav-contact {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 30px;
        height: 25px;
        justify-content: center;
        align-items: center;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }
    
    .nav-toggle span {
        width: 100%;
        height: 2px;
        background: var(--color-primary);
        transition: all 0.3s ease;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* ==================== HERO ==================== */
    .hero {
        min-height: 100vh;
        padding: var(--spacing-md) 0;
    }
    
    .hero-content {
        padding-top: 20vh;
        text-align: center;
    }
    
    .hero-logo {
        margin-bottom: var(--spacing-md);
    }
    
    .hero-logo img {
        width: 120px;
        height: auto;
    }
    
    .hero-label {
        font-size: 0.65rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        line-height: 1.1;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-subtitle {
        font-size: clamp(0.75rem, 2.5vw, 0.9rem);
        margin-bottom: var(--spacing-lg);
        max-width: 90%;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 200px;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.85rem;
    }
    
    /* ==================== ABOUT ==================== */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: 0 var(--spacing-sm);
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .stat {
        padding: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* ==================== TEAM ==================== */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        padding: 0 var(--spacing-sm);
    }
    
    .team-name {
        font-size: var(--font-size-sm);
    }
    
    .team-role {
        font-size: var(--font-size-xs);
    }
    
    /* ==================== PORTFOLIO ==================== */
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
    
    .portfolio-item {
        height: 250px;
    }
    
    .portfolio-name {
        font-size: var(--font-size-sm);
    }
    
    /* ==================== SERVICES ==================== */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .service-card {
        padding: var(--spacing-md);
    }
    
    .service-title {
        font-size: 1.3rem;
    }
    
    /* ==================== SOCIAL PROOF ==================== */
    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .partner-logo {
        width: min(200px, 100%);
    }
    
    /* ==================== CTA ==================== */
    .cta-content {
        text-align: center;
    }
    
    .cta-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: center;
    }
    
    .cta-btn {
        width: 200px;
    }
    
    /* ==================== FOOTER ==================== */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .footer-social {
        text-align: center;
    }
    
    /* ==================== CONTACT ==================== */
    .contact-form-new {
        padding: 0 var(--spacing-sm);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .btn-contact-submit {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.85rem;
        max-width: 180px;
    }
    
    .back-to-home {
        top: 10px;
        left: 10px;
    }
    
    .back-to-home .btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.8rem;
    }
}

/* Mobile Pequeno */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.3rem, 7vw, 2rem);
    }
    
    .hero-subtitle {
        font-size: clamp(0.7rem, 3vw, 0.85rem);
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .portfolio-item {
        height: 300px;
    }
    
    .logos-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* ==================== HIGH RESOLUTION DISPLAYS ==================== */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 4vw, 4rem);
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-lg);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-buttons .btn {
        opacity: 1;
        transform: none;
    }
}

/* ==================== DARK MODE SUPPORT ==================== */
@media (prefers-color-scheme: dark) {
    :root {
        --color-primary: #ffffff;
        --color-secondary: #f5f5f5;
        --color-background: #000000;
        --color-surface: #0a0a0a;
        --color-surface-light: #1a1a1a;
        --color-text: #ffffff;
        --color-text-muted: #888888;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .header,
    .nav-toggle,
    .hero-buttons,
    .back-to-home,
    .video-background,
    .about-video-bg {
        display: none !important;
    }
    
    .hero,
    .about {
        background: white !important;
        color: black !important;
    }
    
    .hero-title,
    .hero-subtitle,
    .section-title {
        color: black !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}
