/* ===================================
   UAVResearch Landing Page - Responsive Styles
   =================================== */

/* ===================================
   Tablet (768px - 1024px)
   =================================== */

@media (max-width: 1024px) {
    :root {
        --h1-size: 2.5rem;
        --h2-size: 2rem;
        --h3-size: 1.75rem;
        --section-padding: 60px 20px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .nav-menu {
        gap: 1.5rem;
    }
    
    /* Hero */
    .hero-features {
        gap: 1.5rem;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    /* Technology */
    .tech-categories {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    /* Metrics */
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    
    /* Download */
    .download-options {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    /* CTA */
    .cta-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 2rem;
    }
}

/* ===================================
   Mobile (< 768px)
   =================================== */

@media (max-width: 768px) {
    :root {
        --h1-size: 2rem;
        --h2-size: 1.75rem;
        --h3-size: 1.5rem;
        --h4-size: 1.25rem;
        --section-padding: 40px 15px;
        --card-padding: 20px;
        --grid-gap: 20px;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    /* Navigation */
    .nav-wrapper {
        padding: 0.75rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-cta {
        margin-left: 0;
        width: 100%;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero */
    .hero {
        min-height: 90vh;
        padding-top: 60px;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .hero-feature {
        font-size: 0.9rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* Section Headers */
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon-large {
        font-size: 2rem;
    }
    
    /* Technology */
    .tech-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tech-category {
        padding: 1.5rem;
    }
    
    .tech-item {
        padding: 0.75rem;
    }
    
    .tech-logo {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .placeholder-icon {
        font-size: 3rem;
    }
    
    /* Investors */
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .metric-card {
        padding: 1.5rem 0.75rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .opportunity-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .opportunity-item {
        padding: 1rem;
    }
    
    .advantage-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .advantage-icon {
        font-size: 2rem;
    }
    
    .investor-cta {
        padding: 2rem 1.5rem;
    }
    
    .investor-cta h3 {
        font-size: 1.5rem;
    }
    
    .investor-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .investor-buttons .btn {
        width: 100%;
    }
    
    /* Download */
    .download-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .download-card {
        padding: 1.5rem;
    }
    
    .download-icon {
        font-size: 3rem;
    }
    
    .code-block {
        padding: 1rem;
    }
    
    .code-block pre {
        font-size: 0.8rem;
    }
    
    .copy-button {
        position: static;
        width: 100%;
        margin-top: 1rem;
    }
    
    .doc-links-grid {
        grid-template-columns: 1fr;
    }
    
    /* CTA Sections */
    .cta-sections {
        padding: 2rem 15px;
    }
    
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-card {
        padding: 2rem 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .contact-method {
        padding: 1rem;
    }
    
    .contact-icon {
        font-size: 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 15px 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ===================================
   Small Mobile (< 480px)
   =================================== */

@media (max-width: 480px) {
    :root {
        --h1-size: 1.75rem;
        --h2-size: 1.5rem;
        --h3-size: 1.25rem;
        --section-padding: 30px 15px;
    }
    
    /* Hero */
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    /* Buttons */
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .btn-large {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    /* Features */
    .feature-card {
        padding: 1.5rem;
    }
    
    /* Metrics */
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .metric-card {
        padding: 1.5rem 1rem;
    }
    
    /* Technology */
    .tech-category {
        padding: 1rem;
    }
    
    /* Investor CTA */
    .investor-cta {
        padding: 1.5rem 1rem;
    }
    
    .investor-cta h3 {
        font-size: 1.25rem;
    }
    
    .investor-cta p {
        font-size: 1rem;
    }
    
    /* Download */
    .download-card {
        padding: 1.25rem;
    }
    
    /* Contact */
    .contact-form {
        padding: 1.25rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 15px 1rem;
    }
}

/* ===================================
   Large Desktop (> 1440px)
   =================================== */

@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }
    
    :root {
        --h1-size: 3.5rem;
        --h2-size: 2.75rem;
        --h3-size: 2.25rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .navbar,
    .mobile-menu-toggle,
    .scroll-indicator,
    .hero-cta,
    .contact-form,
    .footer-social {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1 { font-size: 24pt; }
    h2 { font-size: 20pt; }
    h3 { font-size: 16pt; }
    
    section {
        page-break-inside: avoid;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
}

/* ===================================
   Accessibility - Reduced Motion
   =================================== */

@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-arrow {
        animation: none;
    }
}

/* ===================================
   High Contrast Mode
   =================================== */

@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0056b3;
        --dark: #000000;
        --white: #ffffff;
    }
    
    .btn-outline {
        border-width: 3px;
    }
    
    .feature-card,
    .download-card,
    .contact-method {
        border: 2px solid var(--dark);
    }
}

/* ===================================
   Dark Mode Support (Optional)
   =================================== */

@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode support
    :root {
        --dark: #ffffff;
        --gray: #b0b0b0;
        --light-gray: #2a2a2a;
        --white: #1a1a1a;
    }
    
    body {
        background-color: var(--white);
        color: var(--dark);
    }
    
    .navbar {
        background-color: rgba(26, 26, 26, 0.95);
    }
    
    .feature-card,
    .download-card,
    .contact-form,
    .contact-method {
        background-color: #2a2a2a;
    }
    */
}

/* ===================================
   Landscape Orientation (Mobile)
   =================================== */

@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 4rem 0 2rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===================================
   Touch Device Optimizations
   =================================== */

@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 0.5rem 0;
    }
    
    .social-link {
        width: 48px;
        height: 48px;
    }
    
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .download-card:hover,
    .gallery-item:hover {
        transform: none;
    }
    
    /* Add active states instead */
    .feature-card:active,
    .download-card:active {
        transform: scale(0.98);
    }
}

/* Made with Bob */
/* ===================================
   Modern Refresh Responsive Adjustments
   =================================== */

@media (max-width: 1100px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-content {
        max-width: 840px;
    }

    .hero-visual {
        max-width: 760px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        background: rgba(255, 255, 255, 0.96);
    }

    .nav-menu {
        border-top: 1px solid var(--line);
    }

    .hero {
        min-height: auto;
        padding: 96px 0 48px;
    }

    .hero-content {
        text-align: left;
    }

    .hero-title {
        font-size: 2.45rem;
        line-height: 1.04;
    }

    .hero-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .hero-feature {
        align-items: flex-start;
    }

    .hero-cta {
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .control-grid {
        grid-template-columns: 1fr;
    }

    .map-panel {
        min-height: 260px;
        grid-row: auto;
    }

    .telemetry-panel,
    .mission-panel {
        min-height: 0;
    }

    .feature-card,
    .download-card,
    .cta-card,
    .contact-form {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .window-bar strong {
        font-size: 0.76rem;
    }

    .control-grid {
        padding: 10px;
        gap: 10px;
    }

    .map-panel {
        min-height: 220px;
    }
}
