/* ==========================================
   EVOLUTION - CSS RESPONSIVO
   ========================================== */

/* ==========================================
   LARGE DEVICES (Desktops, 1200px and up)
   ========================================== */

@media (min-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .logo-img {
        height: 100px;
        max-width: 300px;
    }
    
    .footer-logo {
        height: 120px;
        max-width: 350px;
    }
}

/* ==========================================
   MEDIUM DEVICES (Tablets, 768px to 1199px)
   ========================================== */

@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .about-content {
        padding-right: 0;
    }
    
    .logo-img {
        height: 80px;
        max-width: 250px;
    }
    
    .footer-logo {
        height: 100px;
        max-width: 300px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-number {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        margin-left: 5rem;
        margin-right: 0;
        text-align: left !important;
    }
}

/* ==========================================
   SMALL DEVICES (Landscape Phones, 576px to 767px)
   ========================================== */

@media (max-width: 767px) {
    /* Header */
    .navbar-collapse {
        background: var(--bg-primary);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .d-flex.align-items-center.ms-lg-3 {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
        width: 100%;
    }
    
    .btn-consult {
        width: 100%;
        text-align: center;
    }
    
    /* Logo */
    .logo-img {
        height: 60px;
        max-width: 200px;
    }
    
    /* Hero */
    .heroSwiper {
        height: calc(100vh - 70px);
        min-height: 400px;
    }
    
    .hero-slide {
        background-size: cover;
        background-position: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Sections */
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* About */
    .about-image {
        margin-top: 2rem;
    }
    
    .counter-box {
        padding: 1.5rem;
    }
    
    .counter-number {
        font-size: 2.5rem;
    }
    
    /* Services */
    .service-card {
        padding: 1.5rem;
    }
    
    /* Technologies */
    .tech-item {
        padding: 1.5rem;
        height: 100px;
    }
    
    .tech-item i {
        font-size: 2rem;
    }
    
    /* Portfolio */
    .portfolio-filter {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .portfolio-image {
        height: 200px;
    }
    
    /* Partners */
    .partner-logo {
        height: 100px;
        padding: 1rem;
    }
    
    .partner-logo-img {
        max-height: 80px;
    }
    
    .partner-logo span {
        font-size: 0.875rem;
    }
    
    /* Timeline */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        left: 20px;
    }
    
    .timeline-content {
        margin-left: 3.5rem;
        padding: 1rem;
    }
    
    /* Instagram */
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* Contact */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 0 0;
    }
    
    .footer-logo {
        height: 80px;
        max-width: 250px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    /* Floating Buttons */
    .floating-buttons {
        bottom: 1rem;
        right: 1rem;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .chatbot {
        bottom: 6rem;
        right: 1rem;
        width: calc(100vw - 2rem);
    }
    
    .back-to-top {
        bottom: 1rem;
        left: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* ==========================================
   EXTRA SMALL DEVICES (Portrait Phones, less than 576px)
   ========================================== */

@media (max-width: 575px) {
    /* Hero */
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.75rem;
    }
    
    /* Logo */
    .logo-img {
        height: 50px;
        max-width: 180px;
    }
    
    .footer-logo {
        height: 70px;
        max-width: 220px;
    }
    
    /* Counter */
    .counter-number {
        font-size: 2rem;
    }
    
    .counter-label {
        font-size: 0.875rem;
    }
    
    /* Services */
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-title {
        font-size: 1.125rem;
    }
    
    /* Technologies */
    .tech-item {
        padding: 1rem;
        height: 80px;
    }
    
    .tech-item i {
        font-size: 1.5rem;
    }
    
    .tech-item span {
        font-size: 0.75rem;
    }
    
    /* Portfolio */
    .portfolio-image {
        height: 180px;
    }
    
    /* Partners */
    .partner-logo {
        height: 80px;
        padding: 0.75rem;
    }
    
    .partner-logo-img {
        max-height: 70px;
    }
    
    .partner-logo span {
        font-size: 0.75rem;
    }
    
    /* Differential */
    .differential-card {
        padding: 2rem 1rem;
    }
    
    .differential-card h3 {
        font-size: 1.125rem;
    }
    
    /* Instagram */
    .instagram-grid {
        grid-template-columns: 1fr;
    }
    
    /* FAQ */
    .accordion-button {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .accordion-body {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    /* Contact */
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Chatbot */
    .chatbot-options {
        grid-template-columns: 1fr;
    }
    
    .chatbot-option {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}

/* ==========================================
   ORIENTATION SPECIFIC
   ========================================== */

@media (max-height: 500px) and (orientation: landscape) {
    .heroSwiper {
        height: 500px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        gap: 0.5rem;
    }
    
    .hero-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    #header,
    .floating-buttons,
    .chatbot,
    .back-to-top,
    .hero-section,
    .map-section {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section-title {
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* ==========================================
   ACCESSIBILITY - REDUCED MOTION
   ========================================== */

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

/* ==========================================
   HIGH CONTRAST MODE
   ========================================== */

@media (prefers-contrast: high) {
    :root {
        --shadow-color: rgba(0, 0, 0, 0.5);
    }
    
    .service-card,
    .portfolio-card,
    .testimonial-card {
        border: 2px solid var(--text-primary);
    }
}

/* ==========================================
   DARK MODE PREFERENCE
   ========================================== */

@media (prefers-color-scheme: dark) {
    /* Auto-enable dark mode if system prefers it */
    /* Uncomment if you want automatic dark mode */
    /* body { */
    /*     --bg-primary: var(--dark-bg-primary); */
    /*     --bg-secondary: var(--dark-bg-secondary); */
    /*     --bg-tertiary: var(--dark-bg-tertiary); */
    /*     --text-primary: var(--dark-text-primary); */
    /*     --text-secondary: var(--dark-text-secondary); */
    /*     --text-muted: var(--dark-text-muted); */
    /*     --border-color: var(--dark-border-color); */
    /*     --shadow-color: var(--dark-shadow-color); */
    /* } */
}
