/* ===== Responsive Design ===== */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .about-content {
        gap: 40px;
    }
    
    .product-showcase {
        gap: 40px;
    }
    
    .contact-content {
        gap: 40px;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 16px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 60px;
        gap: 40px;
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-visual {
        height: 400px;
        order: -1;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .stat-item {
        flex: 1;
        margin: 0 10px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Products Section */
    .product-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-demo {
        order: -1;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    /* Technology Section */
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tech-card {
        padding: 1.5rem;
    }
    
    .tech-card h3 {
        font-size: 1.1rem;
    }
    
    .tech-card p {
        font-size: 0.9rem;
    }
    
    /* Cases Section */
    .case-studies {
        grid-template-columns: 1fr;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Mobile Large (576px to 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 12px;
    }
    
    /* Typography */
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Spacing */
    :root {
        --section-padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    /* Hero Section */
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .floating-card {
        padding: 16px;
        font-size: 0.9rem;
    }
    
    .card-icon {
        font-size: 1.25rem;
    }
    
    /* About Section */
    .about-item h3 {
        font-size: 1.25rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-item {
        margin: 0;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    /* Products Section */
    .product-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .product-icon {
        width: 60px;
        height: 60px;
    }
    
    .product-title h3 {
        font-size: 1.5rem;
    }
    
    .product-features ul {
        gap: 16px;
    }
    
    .feature-icon {
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn img {
        height: 45px;
    }
    
    .qr-code img {
        width: 100px;
        height: 100px;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    /* Technology Section */
    .tech-overview h3,
    .tech-architecture h3,
    .competitive-advantages h3 {
        font-size: 1.5rem;
    }
    
    .tech-overview p {
        font-size: 1rem;
    }
    
    .highlight-item {
        padding: 24px;
    }
    
    .highlight-item h4 {
        font-size: 1.125rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-item {
        padding: 24px;
    }
    
    .advantage-icon {
        font-size: 2.5rem;
    }
    
    .advantage-item h4 {
        font-size: 1.125rem;
    }
    
    /* Cases Section */
    .case-item {
        margin-bottom: 20px;
    }
    
    .case-image {
        height: 150px;
    }
    
    .case-placeholder {
        font-size: 3rem;
    }
    
    .case-info {
        padding: 24px;
    }
    
    .case-info h4 {
        font-size: 1.125rem;
    }
    
    .case-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .testimonials h3 {
        font-size: 1.5rem;
    }
    
    .testimonial-item {
        padding: 30px 20px;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        gap: 12px;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Contact Section */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .contact-icon {
        align-self: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .contact-form h3 {
        font-size: 1.25rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 12px;
    }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 8px;
    }
    
    /* Typography */
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    /* Spacing */
    :root {
        --section-padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    /* Hero Section */
    .hero {
        padding: 60px 0 30px;
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .floating-card {
        padding: 12px;
        font-size: 0.8rem;
    }
    
    .card-text {
        display: none;
    }
    
    /* About Section */
    .about-item {
        margin-bottom: 30px;
    }
    
    /* Products Section */
    .product-description p {
        font-size: 1rem;
    }
    
    .feature-text strong {
        font-size: 0.9rem;
    }
    
    .feature-text p {
        font-size: 0.8rem;
    }
    
    .phone-mockup {
        width: 180px;
        height: 360px;
        padding: 15px;
    }
    
    .phone-screen {
        border-radius: 15px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Technology Section */
    .highlight-item,
    .advantage-item {
        padding: 20px;
    }
    
    .architecture-diagram {
        gap: 15px;
    }
    
    .arch-layer {
        padding: 16px;
    }
    
    .arch-layer:not(:last-child)::after {
        bottom: -25px;
        font-size: 1.25rem;
    }
    
    /* Cases Section */
    .case-image {
        height: 120px;
    }
    
    .case-placeholder {
        font-size: 2.5rem;
    }
    
    .case-info {
        padding: 20px;
    }
    
    .testimonial-item {
        padding: 24px 16px;
    }
    
    /* Contact Section */
    .contact-form {
        padding: 24px 16px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
    }
    
    /* Back to Top Button */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.125rem;
    }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
    .container {
        padding: 0 6px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .phone-mockup {
        width: 160px;
        height: 320px;
        padding: 12px;
    }
    
    .floating-card {
        padding: 8px;
    }
    
    .card-icon {
        font-size: 1rem;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .testimonial-item {
        padding: 20px 12px;
    }
    
    .contact-form {
        padding: 20px 12px;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 40px 0 20px;
    }
    
    .hero-visual {
        height: 200px;
    }
    
    .floating-card {
        padding: 8px;
        font-size: 0.75rem;
    }
    
    .card-text {
        display: none;
    }
    
    :root {
        --section-padding: 30px 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo,
    .footer-logo,
    .product-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-card {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* This can be implemented if dark mode is desired */
    /* Currently maintaining light theme as per requirements */
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .header,
    .nav-toggle,
    .back-to-top,
    .hero-buttons,
    .download-buttons,
    .contact-form {
        display: none !important;
    }
    
    .hero {
        background: none !important;
        color: black !important;
        padding: 20px 0;
    }
    
    .section-title::after {
        background: black !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
    
    .hero-content,
    .about-content,
    .product-showcase,
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .floating-card,
    .phone-mockup {
        display: none !important;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    .footer {
        background: none !important;
        color: black !important;
        border-top: 1px solid black;
    }
}