/* ===================================
   Responsive Design - Mobile First
   =================================== */

/* Tablets and below (max-width: 992px) */
@media (max-width: 992px) {
    /* Sections fullscreen adjustment */
    .about,
    .portfolio,
    .services,
    .testimonials,
    .contact {
        min-height: auto;
        padding: 80px 0;
    }
    
    /* Typography adjustments */
    .hero-title {
        font-size: 42px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    /* Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-primary);
        padding: 80px 30px 30px;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-link {
        font-size: 18px;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .badge-number {
        font-size: 28px;
    }
    
    /* Portfolio Grid */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    /* General spacing */
    :root {
        --section-padding: 60px 0;
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* Typography */
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-description {
        font-size: 16px;
    }
    
    /* Hero Section */
    .hero {
        min-height: 100vh;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Section Header */
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-subtitle {
        font-size: 12px;
    }
    
    /* About Section */
    .about-text h3 {
        font-size: 24px;
    }
    
    .feature-item {
        gap: 15px;
    }
    
    .feature-item i {
        font-size: 24px;
    }
    
    /* Portfolio Grid */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portfolio-overlay h3 {
        font-size: 22px;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 30px;
    }
    
    .service-card h3 {
        font-size: 20px;
    }
    
    /* Testimonials */
    .testimonial-content {
        padding: 30px 20px;
    }
    
    .testimonial-text {
        font-size: 16px;
    }
    
    .slider-controls {
        margin-top: 30px;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* WhatsApp Float */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    /* Page Hero */
    .page-hero {
        min-height: 40vh;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    /* Process Steps */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .process-step::after {
        content: '↓';
        right: 50%;
        top: auto;
        bottom: -15px;
        transform: translateX(50%);
    }
    
    /* FAQ Accordion */
    .faq-accordion {
        margin-top: 30px;
    }
    
    .faq-question {
        padding: var(--space-sm) var(--space-md);
        font-size: 16px;
    }
    
    .faq-answer p {
        padding: 0 var(--space-md) var(--space-md);
        font-size: 15px;
    }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    /* Typography */
    .hero-title {
        font-size: 26px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    /* Logo */
    .logo {
        font-size: 24px;
    }
    
    /* Hero */
    .hero {
        min-height: 100vh;
    }
    
    .hero-scroll {
        bottom: 30px;
    }
    
    /* About */
    .about-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
        display: inline-block;
    }
    
    /* Contact Info */
    .info-icon {
        width: 50px;
        height: 50px;
    }
    
    .info-icon i {
        font-size: 20px;
    }
    
    .info-text h4 {
        font-size: 16px;
    }
    
    .info-text p {
        font-size: 14px;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 100px 20px 50px;
    }
    
    .hero-scroll {
        display: none;
    }
}

/* High resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .portfolio-image img,
    .about-image img,
    .testimonial-author img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print styles */
@media print {
    .header,
    .whatsapp-float,
    .hero-scroll,
    .nav-toggle,
    .contact-form,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    a {
        text-decoration: underline;
    }
    
    .section-title {
        page-break-after: avoid;
    }
    
    .portfolio-item,
    .service-card {
        page-break-inside: avoid;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-link,
    .whatsapp-float {
        animation: none;
    }
}

/* Dark Mode Support (optional future implementation) */
@media (prefers-color-scheme: dark) {
    /* Uncomment and customize when implementing dark mode
    :root {
        --color-white: #1a1a1a;
        --color-black: #ffffff;
        --color-gray-light: #2a2a2a;
    }
    */
}
