/* ===================================
   TEDXOZ - RESPONSIVE STYLES
   Mobile, Tablet, Desktop Optimization
   =================================== */

/* ===================================
   TABLET (768px - 1024px)
   =================================== */

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }

    .container {
        padding: 0 20px;
    }

    /* Navigation */
    .nav-links {
        gap: 24px;
    }

    .nav-links a {
        font-size: 13px;
    }

    /* Hero */
    .hero {
        min-height: 600px;
    }

    .hero-title {
        font-size: clamp(42px, 7vw, 64px);
    }

    /* Hardware Section */
    .hardware-showcase {
        gap: 60px;
    }

    /* Payment Section */
    .payment-content {
        gap: 60px;
    }

    /* Monitoring Section */
    .monitoring-showcase {
        gap: 60px;
    }

    /* Contact Section */
    .contact-content {
        gap: 60px;
    }

    .contact-form {
        padding: 40px;
    }

    /* Why Grid */
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .footer-links {
        gap: 24px;
    }
}

/* ===================================
   MOBILE (max-width: 768px)
   =================================== */

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    /* Navigation */
    .navbar {
        padding: 16px 0;
    }

    .brand-logo-img {
        height: 32px;
    }

    .brand-logo {
        font-size: 24px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 20px;
    }

    .cta-button {
        padding: 14px 32px;
        font-size: 18px;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1000;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Hero */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: clamp(36px, 10vw, 48px);
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
        padding: 14px 32px;
        font-size: 15px;
    }

    .scroll-indicator {
        bottom: 24px;
    }

    /* Sections */
    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: clamp(28px, 8vw, 40px);
    }

    .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    /* Product Story */
    .story-row {
        flex-direction: column;
        gap: 24px;
    }

    .story-block {
        padding: 32px 24px;
        flex-direction: row;
        gap: 20px;
        text-align: left;
    }

    .story-icon {
        font-size: 32px;
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .story-connector {
        transform: rotate(90deg);
    }

    .connector-line {
        width: 40px;
        height: 2px;
    }

    .connector-arrow {
        font-size: 24px;
    }

    .story-content {
        text-align: left;
    }

    .section-title {
        justify-content: flex-start;
    }

    .story-text {
        font-size: 16px;
    }

    /* Hardware Section */
    .hardware-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .device-mockup {
        width: 220px;
        height: 400px;
    }

    .hardware-features {
        gap: 16px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .feature-card:hover {
        transform: none;
    }

    .feature-icon {
        font-size: 28px;
    }

    .feature-card h3 {
        font-size: 18px;
    }

    .feature-card p {
        font-size: 14px;
    }

    /* Payment Section */
    .payment-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .payment-visual {
        order: 2;
    }

    .payment-text {
        order: 1;
    }

    .qr-mockup {
        width: 200px;
        height: 200px;
    }

    .qr-code {
        width: 150px;
        height: 150px;
    }

    .payment-headline {
        font-size: 24px;
    }

    .payment-description {
        font-size: 16px;
    }

    .payment-benefits {
        text-align: left;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Monitoring Section */
    .monitoring-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .phone-mockup {
        width: 260px;
        height: 520px;
    }

    .phone-screen {
        padding: 2px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 24px;
    }

    .monitor-feature h3 {
        font-size: 18px;
    }

    .monitor-feature p {
        font-size: 14px;
    }

    /* Why Section */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .why-card {
        padding: 32px 24px;
    }

    .why-card:hover {
        transform: none;
    }

    .why-icon {
        font-size: 40px;
    }

    .why-card h3 {
        font-size: 20px;
    }

    .why-card p {
        font-size: 14px;
    }

    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-description {
        font-size: 16px;
        margin: 20px 0 32px;
    }

    .contact-item {
        font-size: 16px;
        gap: 12px;
    }

    .contact-icon {
        font-size: 20px;
    }

    .contact-form {
        padding: 32px 24px;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 14px;
    }

    .submit-btn {
        font-size: 15px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 24px;
    }

    .footer-content {
        gap: 24px;
    }

    .footer-logo-img {
        height: 28px;
    }

    .footer-brand h3 {
        font-size: 20px;
    }

    .footer-brand p {
        font-size: 13px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .footer-bottom p {
        font-size: 12px;
    }
}

/* ===================================
   SMALL MOBILE (max-width: 480px)
   =================================== */

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    .story-block {
        padding: 24px 20px;
        flex-direction: column;
        text-align: center;
    }

    .device-mockup {
        width: 250px;
        height: 450px;
    }

    .phone-mockup {
        width: 250px;
        height: 450px;
    }

    .payment-visual {
        gap: 24px;
    }

    .qr-mockup {
        width: 250px;
        height: 250px;
    }

    .qr-code {
        width: 350px;
        height: 350px;
    }

    .payment-logo {
        height: 32px;
    }

    .contact-form {
        padding: 24px 20px;
    }
}

/* ===================================
   LANDSCAPE ORIENTATION (Very small height devices only)
   =================================== */

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ===================================
   HIGH RESOLUTION DISPLAYS
   =================================== */

@media (min-width: 1440px) {
    :root {
        --container-width: 1400px;
    }

    .hero-title {
        font-size: 96px;
    }

    .section-title {
        font-size: 64px;
    }
}

@media (min-width: 1920px) {
    :root {
        --container-width: 1600px;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .navbar,
    .scroll-indicator,
    .hero-background,
    .hero-midlayer,
    .parallax-bg,
    .contact-form,
    .footer {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}

/* ===================================
   TOUCH DEVICE OPTIMIZATIONS
   =================================== */

@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .nav-links a,
    .primary-btn,
    .secondary-btn,
    .submit-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Disable hover effects on touch devices */
    .feature-card:hover,
    .why-card:hover {
        transform: none;
    }

    /* Remove device tilt effects */
    .device-mockup,
    .phone-mockup {
        transform: none !important;
    }
}

/* ===================================
   DARK MODE SUPPORT (System Preference)
   =================================== */

@media (prefers-color-scheme: light) {
    /* Currently designed for dark mode only */
    /* Light mode styles can be added here if needed */
}

/* ===================================
   REDUCED DATA MODE
   =================================== */

@media (prefers-reduced-data: reduce) {
    /* Disable background images and effects */
    .hero-background,
    .hero-midlayer,
    .parallax-bg {
        background-image: none;
    }
}

/* ===================================
   SAFE AREA (iOS Notch Support)
   =================================== */

@supports (padding: env(safe-area-inset-top)) {
    .navbar {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}
