/* ========================================
   Responsive Styles
   ======================================== */

/* Large Desktop */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
        gap: var(--space-lg);
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-stats {
        position: relative;
        bottom: auto;
        right: auto;
        justify-content: center;
        margin-top: var(--space-xl);
        flex-wrap: wrap;
    }
    
    .app-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .app-content {
        padding-right: 0;
        text-align: center;
    }
    
    .app-features {
        justify-content: center;
    }
    
    .app-buttons {
        justify-content: center;
    }
    
    .app-mockup {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .about-image {
        order: 2;
    }
    
    .about-content {
        padding-left: 0;
        text-align: center;
    }
    
    .about-features {
        justify-content: center;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-featured {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .services-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
    
    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Tablet */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-subtitle {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-stat-number {
        font-size: 2.5rem;
    }
    
    .section {
        padding: var(--space-xl) 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: var(--space-xl);
    }
    
    .cta-title {
        font-size: 2.5rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
        padding-left: 50px;
        padding-right: 0;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0;
        max-width: 100%;
    }
    
    .timeline-content::before {
        display: none;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-header {
        padding: 140px 0 80px;
    }
    
    .page-header-title {
        font-size: 3rem;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .header-inner {
        padding: var(--space-sm) var(--space-md);
    }
    
    .logo svg {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .hero {
        min-height: 550px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: var(--space-md);
    }
    
    .hero-stat {
        flex: 1 1 calc(50% - var(--space-md));
    }
    
    .hero-stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .app-title {
        font-size: 2.2rem;
    }
    
    .app-features {
        grid-template-columns: 1fr;
    }
    
    .app-buttons {
        flex-direction: column;
    }
    
    .app-mockup-frame {
        border-radius: 30px;
        padding: 15px;
    }
    
    .app-mockup-screen {
        border-radius: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: var(--space-lg);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .about-title {
        font-size: 2.2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-featured-content .news-title {
        font-size: 1.4rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .service-detail-card {
        flex-direction: column;
        text-align: center;
    }
    
    .service-detail-icon {
        margin: 0 auto;
    }
    
    .service-detail-list {
        justify-content: center;
    }
    
    .page-header-title {
        font-size: 2.5rem;
    }
    
    .page-header-description {
        font-size: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        grid-column: 1;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-contact-item {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .legal-content {
        padding: var(--space-xl) var(--space-md);
    }
    
    .legal-section h2 {
        font-size: 1.6rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
    
    .legal-table {
        font-size: 0.85rem;
    }
    
    .legal-table th,
    .legal-table td {
        padding: 8px 10px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-scroll {
        bottom: 20px;
    }
    
    .section {
        padding: var(--space-lg) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-xl);
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle::before,
    .section-subtitle::after {
        width: 25px;
    }
    
    .service-card {
        padding: var(--space-lg);
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .app-title {
        font-size: 1.8rem;
    }
    
    .app-badge {
        font-size: 0.7rem;
    }
    
    .app-button {
        padding: 10px 18px;
    }
    
    .app-button svg {
        width: 24px;
        height: 24px;
    }
    
    .about-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: var(--space-md);
        display: inline-block;
    }
    
    .about-badge-number {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-header-title {
        font-size: 2rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .custom-cursor {
        display: none;
    }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-content {
        max-width: 600px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-scroll {
        display: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-slide-bg {
        background-size: cover;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .back-to-top,
    .hero-scroll,
    .cta-section,
    .video-modal,
    .loader {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        padding: 20px 0;
    }
    
    .hero {
        min-height: auto;
        padding: 60px 0;
    }
    
    .hero-overlay {
        background: white;
    }
    
    .hero-title,
    .section-title {
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}
