/* Comprehensive Responsive Design for FIYOC Website */

/* Base responsive utilities */
@media (max-width: 1200px) {
    .container {
        max-width: 1100px;
        padding: 0 1.5rem;
    }

    .hero-stats {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .footer-main {
        grid-template-columns: 2fr 1fr 1fr 1.2fr;
        gap: 3rem;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 960px;
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 5rem);
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 2.2vw, 1.15rem);
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }

    .marketing-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.5rem;
    }

    .workflow-step:nth-child(even) .step-content {
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .workflow-step:nth-child(odd) .step-content {
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .contact-content,
    .faq-content {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 0;
    }

    .contact-btn {
        margin-top: 1rem;
        padding: 0.8rem 2rem;
    }

    /* Hero Section */
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 1rem;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 4rem);
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: clamp(0.95rem, 4vw, 1.1rem);
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        padding: 1.2rem 2rem;
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
        max-width: 100%;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .stat-description {
        font-size: 0.75rem;
    }

    .scroll-indicator {
        bottom: 1.5rem;
    }

    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
    }

    .service-card {
        padding: 2.5rem 2rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.5rem;
    }

    .service-icon svg {
        width: 35px;
        height: 35px;
    }

    .service-card h3 {
        font-size: 1.4rem;
    }

    /* Workflow Section */
    .workflow-timeline {
        position: relative;
    }

    .workflow-step {
        flex-direction: column !important;
        text-align: center;
        margin-bottom: 4rem;
    }

    .workflow-step:nth-child(even) .step-content,
    .workflow-step:nth-child(odd) .step-content {
        text-align: center;
        padding: 2.5rem 2rem;
    }

    .step-number {
        position: relative;
        left: auto;
        transform: none;
        margin-bottom: 2rem;
        width: 70px;
        height: 70px;
        font-size: 1.3rem;
    }

    .step-content h3 {
        font-size: 1.6rem;
    }

    .timeline-line {
        display: none;
    }

    /* Testimonials */
    .testimonials-slider {
        margin: 3rem auto 0;
    }

    .testimonial-card {
        padding: 2.5rem 2rem;
    }

    .testimonial-content blockquote {
        font-size: 1.3rem;
    }

    .testimonial-author {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .author-avatar {
        width: 50px;
        height: 50px;
    }

    .author-info h4 {
        font-size: 1.1rem;
    }

    /* Marketing Section */
    .marketing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
    }

    .marketing-card {
        padding: 2.5rem 2rem;
        text-align: center;
    }

    .marketing-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.5rem;
    }

    .marketing-icon svg {
        width: 35px;
        height: 35px;
    }

    .marketing-card h3 {
        font-size: 1.4rem;
    }

    /* Contact Section */
    .contact-content,
    .faq-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-top: 3rem;
    }

    .contact-info h3 {
        font-size: 1.8rem;
    }

    .contact-methods {
        gap: 1.5rem;
    }

    .contact-method {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .method-icon {
        width: 50px;
        height: 50px;
    }

    .method-icon svg {
        width: 25px;
        height: 25px;
    }

    .method-info h4 {
        font-size: 1.1rem;
    }

    .contact-form-wrapper,
    .feedback-form-wrapper {
        padding: 2.5rem 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    /* FAQ Section */
    .faq-item {
        padding: 1.5rem;
    }

    .faq-question {
        font-size: 1rem;
    }

    /* Footer */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-logo {
        max-width: 100%;
    }

    .floating-logo {
        font-size: 2.5rem;
    }

    .contact-info {
        margin-top: 2rem;
        padding: 1.5rem;
    }

    .social-links {
        justify-content: center;
        margin-top: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding-top: 1.5rem;
    }

    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
        height: 70px;
    }

    .nav-logo h2 {
        font-size: 1.8rem;
    }

    .hero {
        padding-top: 80px;
        padding-bottom: 3rem;
    }

    .hero-title {
        font-size: clamp(2rem, 9vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 4.5vw, 1rem);
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
        text-align: center;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .stat-description {
        font-size: 0.7rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    .step-content {
        padding: 2rem 1.5rem;
    }

    .step-content h3 {
        font-size: 1.5rem;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .testimonial-content blockquote {
        font-size: 1.2rem;
    }

    .marketing-card {
        padding: 2rem 1.5rem;
    }

    .marketing-card h3 {
        font-size: 1.3rem;
    }

    .contact-info h3 {
        font-size: 1.6rem;
    }

    .contact-method {
        padding: 1.5rem;
    }

    .contact-form-wrapper,
    .feedback-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .faq-item {
        padding: 1.2rem 1.5rem;
    }

    .footer {
        padding: 3rem 0 2rem;
    }

    .floating-logo {
        font-size: 2.2rem;
    }

    .footer h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.8rem;
    }

    .nav-container {
        padding: 0 0.8rem;
    }

    .nav-logo h2 {
        font-size: 1.6rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 10vw, 3rem);
    }

    .hero-subtitle {
        font-size: clamp(0.85rem, 5vw, 0.95rem);
    }

    .btn-primary,
    .btn-secondary {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-stats {
        margin-top: 1.5rem;
    }

    .stat-item {
        padding: 1.2rem 0.8rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stat-description {
        font-size: 0.65rem;
    }

    .section-title {
        font-size: clamp(1.8rem, 9vw, 3rem);
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .service-card {
        padding: 1.8rem 1.2rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.2rem;
    }

    .service-icon svg {
        width: 30px;
        height: 30px;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .step-content {
        padding: 1.8rem 1.2rem;
    }

    .step-content h3 {
        font-size: 1.4rem;
    }

    .step-content p {
        font-size: 0.95rem;
    }

    .testimonial-card {
        padding: 1.8rem 1.2rem;
    }

    .testimonial-content blockquote {
        font-size: 1.1rem;
    }

    .testimonial-author {
        gap: 0.8rem;
    }

    .author-avatar {
        width: 45px;
        height: 45px;
    }

    .author-info h4 {
        font-size: 1rem;
    }

    .author-info p {
        font-size: 0.85rem;
    }

    .marketing-card {
        padding: 1.8rem 1.2rem;
    }

    .marketing-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.2rem;
    }

    .marketing-icon svg {
        width: 30px;
        height: 30px;
    }

    .marketing-card h3 {
        font-size: 1.2rem;
    }

    .marketing-card p {
        font-size: 0.9rem;
    }

    .marketing-stats .stat {
        font-size: 2rem;
    }

    .marketing-stats .label {
        font-size: 0.8rem;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    .contact-method {
        padding: 1.2rem;
        gap: 0.8rem;
    }

    .method-icon {
        width: 45px;
        height: 45px;
    }

    .method-icon svg {
        width: 22px;
        height: 22px;
    }

    .method-info h4 {
        font-size: 1rem;
    }

    .method-info p {
        font-size: 0.85rem;
    }

    .contact-form-wrapper,
    .feedback-form-wrapper {
        padding: 1.8rem 1.2rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.9rem;
        font-size: 0.95rem;
    }

    .checkbox-item {
        font-size: 0.9rem;
    }

    .faq-item {
        padding: 1rem 1.2rem;
    }

    .faq-question {
        font-size: 0.95rem;
    }

    .faq-answer {
        font-size: 0.9rem;
    }

    .footer {
        padding: 2.5rem 0 1.5rem;
    }

    .floating-logo {
        font-size: 2rem;
    }

    .footer-logo p {
        font-size: 0.9rem;
    }

    .footer h3 {
        font-size: 1rem;
    }

    .footer-services li,
    .footer-company li {
        margin-bottom: 0.6rem;
    }

    .footer-services a,
    .footer-company a {
        font-size: 0.9rem;
    }

    .contact-info {
        padding: 1.2rem;
    }

    .contact-info p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }

    .social-links {
        gap: 0.8rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }

    .footer-legal a {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 0.6rem;
    }

    .hero-title {
        font-size: clamp(1.6rem, 11vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: clamp(0.8rem, 5.5vw, 0.9rem);
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.9rem 1.2rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: clamp(1.6rem, 10vw, 2.5rem);
    }

    .service-card {
        padding: 1.5rem 1rem;
    }

    .testimonial-card {
        padding: 1.5rem 1rem;
    }

    .contact-form-wrapper,
    .feedback-form-wrapper {
        padding: 1.5rem 1rem;
    }

    .faq-item {
        padding: 0.8rem 1rem;
    }
}

/* Landscape orientation for mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 80vh;
        padding-top: 60px;
        padding-bottom: 2rem;
    }

    .hero-content {
        gap: 1rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 6vw, 3rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: clamp(0.85rem, 3vw, 0.95rem);
        margin-bottom: 1rem;
    }

    .hero-buttons {
        gap: 0.8rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-stats {
        margin-top: 1rem;
    }

    .stat-item {
        padding: 1rem 0.8rem;
    }

    .scroll-indicator {
        bottom: 0.5rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-title,
    .section-title {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-bg,
    .scroll-indicator,
    .preloader,
    .testimonial-navigation,
    .contact-form,
    .social-links {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    .section-title,
    .section-subtitle {
        color: black !important;
        background: none !important;
        -webkit-text-fill-color: black !important;
    }

    .service-card,
    .testimonial-card,
    .marketing-card {
        background: white !important;
        border: 1px solid #ccc !important;
        color: black !important;
        break-inside: avoid;
    }

    .btn-primary,
    .btn-secondary {
        background: black !important;
        color: white !important;
        border: none !important;
    }
}

/* Reduced motion preferences */
@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;
    }

    .scroll-line {
        animation: none;
    }

    .floating-shapes .shape {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Already dark theme, no changes needed */
}

/* Light mode support (if needed) */
@media (prefers-color-scheme: light) {
    /* Add light mode styles if required */
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover {
        transform: none;
    }

    .service-card:hover,
    .marketing-card:hover,
    .contact-method:hover {
        transform: none;
    }

    .btn-primary:hover .btn-glow,
    .btn-secondary:hover {
        transform: none;
    }

    .social-link:hover {
        transform: none;
    }

    /* Ensure touch targets are adequate */
    .nav-link,
    .service-link,
    .testimonial-prev,
    .testimonial-next,
    .social-link,
    .faq-question {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Large screen optimizations */
@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }

    .hero-title {
        font-size: clamp(4rem, 8vw, 7rem);
    }

    .hero-subtitle {
        font-size: clamp(1.1rem, 2vw, 1.4rem);
    }

    .section-title {
        font-size: clamp(3rem, 6vw, 5rem);
    }
}

/* Ultra-wide screen optimizations */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
        padding: 0 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }

    .marketing-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}
