/* ================================
   MKTMIDIA - Responsive Styles
   ================================ */

/* Tablet - Large (1024px and below) */
@media screen and (max-width: 1024px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-title {
        font-size: clamp(2rem, 7vw, 4rem);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
}

/* Tablet - Medium (768px and below) */
@media screen and (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2.5rem;
        --spacing-xl: 3rem;
    }
    
    /* Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-md);
        transition: left var(--transition-normal);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.5rem;
    }
    
    .mobile-toggle {
        display: flex;
        z-index: 1000;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }
    
    /* Hero */
    .hero {
        min-height: 90vh;
        padding-top: 100px;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Cases */
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .case-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xs);
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    /* Why TikTok */
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
}

/* Mobile - Large (480px and below) */
@media screen and (max-width: 480px) {
    :root {
        font-size: 14px;
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Navigation */
    .logo {
        font-size: 1.25rem;
    }
    
    .logo-arc {
        width: 35px;
        height: 35px;
    }
    
    .lang-toggle {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Hero */
    .hero-badge {
        font-size: 0.65rem;
        padding: 0.4rem 1rem;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 10vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-feature {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    .hero-feature i {
        font-size: 1.25rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* Stats */
    .stats {
        padding: var(--spacing-lg) 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .stat-desc {
        font-size: 0.75rem;
    }
    
    /* Section Headers */
    .section-badge {
        font-size: 0.65rem;
        padding: 0.4rem 1rem;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
    
    .section-desc {
        font-size: 1rem;
    }
    
    /* About */
    .about-badge {
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
        bottom: var(--spacing-sm);
        left: var(--spacing-sm);
    }
    
    .about-badge i {
        font-size: 1.25rem;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .feature-content h3 {
        font-size: 1.125rem;
    }
    
    .feature-content p {
        font-size: 0.95rem;
    }
    
    /* Services */
    .service-card {
        padding: var(--spacing-md);
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
    }
    
    .service-features li {
        font-size: 0.9rem;
    }
    
    /* Cases */
    .case-image {
        height: 200px;
    }
    
    .case-category {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
    }
    
    .case-content {
        padding: var(--spacing-sm);
    }
    
    .case-content h3 {
        font-size: 1.125rem;
    }
    
    .case-content p {
        font-size: 0.9rem;
    }
    
    .case-stats {
        gap: 0.5rem;
    }
    
    .stat-value {
        font-size: 1.125rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    /* Why TikTok */
    .why-card {
        padding: var(--spacing-md);
    }
    
    .why-number {
        font-size: 2.5rem;
    }
    
    .why-card h3 {
        font-size: 1.25rem;
    }
    
    .why-card p {
        font-size: 0.95rem;
    }
    
    /* Contact */
    .contact-info h2 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
    
    .contact-info p {
        font-size: 1rem;
    }
    
    .detail-icon {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    
    .detail-content h4 {
        font-size: 0.8rem;
    }
    
    .detail-content a,
    .detail-content p {
        font-size: 1rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    
    .contact-form-wrapper {
        padding: var(--spacing-md);
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-sm);
    }
    
    .footer-top {
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-md);
        padding-bottom: var(--spacing-md);
    }
    
    .footer-brand p {
        font-size: 0.9rem;
    }
    
    .footer-col h4 {
        font-size: 0.95rem;
    }
    
    .footer-col ul li a {
        font-size: 0.85rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    /* Back to Top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 1rem;
        right: 1rem;
        font-size: 1.125rem;
    }
}

/* Mobile - Small (360px and below) */
@media screen and (max-width: 360px) {
    :root {
        font-size: 13px;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 10vw, 2rem);
    }
    
    .section-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    
    .case-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Landscape Mode for Tablets */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .hero-content {
        max-width: 800px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-features {
        margin-bottom: var(--spacing-sm);
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-toggle,
    .lang-toggle,
    .hero-cta,
    .scroll-indicator,
    .social-links,
    .contact-form,
    .back-to-top,
    .footer-social {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .hero,
    .stats,
    .about,
    .services,
    .cases,
    .why-tiktok,
    .contact,
    .footer {
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
    }
}

/* High DPI Screens */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi) {
    .logo-arc {
        border-width: 5px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .mouse::before {
        animation: none;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment if dark mode is desired */
    /*
    :root {
        --primary-black: #FFFFFF;
        --primary-white: #000000;
        --accent-gray: #1A1A1A;
        --dark-gray: #F5F5F5;
        --medium-gray: #CCCCCC;
        --light-gray: #333333;
    }
    */
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .social-link,
    .back-to-top {
        min-height: 44px;
        min-width: 44px;
    }
    
    .service-card:hover,
    .case-card:hover,
    .why-card:hover {
        transform: none;
    }
    
    .case-card:active .case-image img {
        transform: scale(1.05);
    }
}