/* Responsive Design V2 - Full Page Sections */

/* Mobile First Responsive Breakpoints */
/* xs: 0-479px (mobile portrait) */
/* sm: 480-639px (mobile landscape) */
/* md: 640-767px (tablet portrait) */
/* lg: 768-1023px (tablet landscape) */
/* xl: 1024-1279px (desktop) */
/* 2xl: 1280px+ (large desktop) */

/* Extra Small Devices (Mobile Portrait) */
@media (max-width: 479px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    /* Header adjustments */
    .header-content {
        height: 60px;
        padding: 0 var(--space-2);
    }
    
    .logo-text {
        font-size: var(--text-lg);
    }
    
    .logo-icon {
        width: 24px;
        height: 24px;
    }
    
    /* Full page sections */
    .fullpage-section {
        min-height: 100vh;
        padding: calc(60px + var(--space-8)) var(--space-0) var(--space-8);
    }
    
    .section-content {
        gap: var(--space-8);
        text-align: center;
    }
    
    .section-title {
        font-size: var(--text-3xl);
        line-height: 1.1;
        margin-bottom: var(--space-4);
    }
    
    .section-description {
        font-size: var(--text-base);
        margin-bottom: var(--space-6);
    }
    
    .feature-list {
        gap: var(--space-3);
        margin: var(--space-6) 0;
    }
    
    .feature-item {
        justify-content: center;
        text-align: center;
    }
    
    .section-actions {
        gap: var(--space-3);
    }
    
    .section-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .cta-actions {
        gap: var(--space-4);
        margin: var(--space-8) 0;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Visual elements */
    .visual-area {
        min-height: 250px;
    }
    
    .data-flow-visual {
        padding: var(--space-4);
        gap: var(--space-4);
    }
    
    .flow-node {
        padding: var(--space-4);
        min-width: 80px;
    }
    
    .flow-node i {
        width: 24px;
        height: 24px;
    }
    
    .flow-node span {
        font-size: var(--text-xs);
    }
    
    .connections-discovery {
        width: 300px;
        height: 200px;
    }
    
    .hub-core {
        width: 40px;
        height: 40px;
    }
    
    .hub-core i {
        width: 16px;
        height: 16px;
    }
    
    .ring-inner {
        width: 60px;
        height: 60px;
        top: -30px;
        left: -30px;
    }
    
    .ring-outer {
        width: 90px;
        height: 90px;
        top: -45px;
        left: -45px;
    }
    
    .k-node {
        width: 40px;
        height: 40px;
    }
    
    .k-node i {
        width: 12px;
        height: 12px;
    }
    
    .node-label {
        font-size: 7px;
    }
    
    .connection-indicators {
        flex-direction: column;
        gap: var(--space-2);
        bottom: -60px;
    }
    
    .indicator-label {
        font-size: 10px;
    }
    
    .intelligence-animation {
        width: 300px;
        height: 200px;
    }
    
    .processing-core {
        width: 60px;
        height: 60px;
    }
    
    .ring-1 {
        width: 60px;
        height: 60px;
    }
    
    .ring-2 {
        width: 42px;
        height: 42px;
        top: 9px;
        left: 9px;
    }
    
    .ring-3 {
        width: 24px;
        height: 24px;
        top: 18px;
        left: 18px;
    }
    
    .core-center {
        width: 16px;
        height: 16px;
    }
    
    .core-center i {
        width: 10px;
        height: 10px;
    }
    
    .insight-node {
        width: 30px;
        height: 30px;
    }
    
    .insight-node i {
        width: 16px;
        height: 16px;
    }
    
    .stream {
        height: 100px;
    }
    
    .insight-beam {
        height: 40px;
    }
    
    /* Enterprise features */
    .enterprise-features {
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
    }
    
    .enterprise-badge {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }
    
    /* Footer adjustments */
    .footer {
        padding: var(--space-12) 0 var(--space-6);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

/* Small Devices (Mobile Landscape) */
@media (min-width: 480px) and (max-width: 639px) {
    .section-actions {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-4);
    }
    
    .section-actions .btn {
        flex: 1;
        max-width: 180px;
    }
    
    .cta-actions {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-6);
    }
    
    .cta-actions .btn {
        flex: 1;
        max-width: 200px;
    }
    
    .data-flow-visual {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .flow-node {
        min-width: 100px;
    }
    
    .enterprise-features {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium Devices (Tablet Portrait) */
@media (min-width: 640px) and (max-width: 767px) {
    .fullpage-section {
        padding: calc(70px + var(--space-12)) 0 var(--space-12);
    }
    
    .section-content {
        gap: var(--space-10);
    }
    
    .section-title {
        font-size: var(--text-5xl);
    }
    
    .section-description {
        font-size: var(--text-lg);
    }
    
    .visual-area {
        min-height: 350px;
    }
    
    .connections-discovery {
        width: 350px;
        height: 250px;
    }
    
    .intelligence-animation {
        width: 350px;
        height: 250px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Devices (Tablet Landscape) */
@media (min-width: 768px) and (max-width: 1023px) {
    .header-content {
        padding: 0 var(--space-4);
    }
    
    .fullpage-section {
        padding: calc(70px + var(--space-16)) 0 var(--space-16);
    }
    
    .section-content {
        gap: var(--space-16);
    }
    
    .content-area {
        text-align: left;
    }
    
    .feature-item {
        justify-content: flex-start;
        text-align: left;
    }
    
    .section-actions {
        justify-content: flex-start;
    }
    
    .cta-actions {
        justify-content: center;
    }
    
    .visual-area {
        min-height: 400px;
    }
    
    .footer-links {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra Large Devices (Desktop) */
@media (min-width: 1024px) {
    .header-content {
        padding: 0 var(--space-6);
    }
    
    .fullpage-section {
        padding: calc(70px + var(--space-20)) 0 var(--space-20);
    }
    
    .section-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-20);
        align-items: center;
    }
    
    .content-area {
        text-align: left;
    }
    
    .feature-item {
        justify-content: flex-start;
    }
    
    .section-actions {
        justify-content: flex-start;
    }
    
    /* Centered sections */
    .content-area.centered {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .content-area.centered .feature-item {
        justify-content: center;
    }
    
    .content-area.centered .section-actions {
        justify-content: center;
    }
}

/* 2XL Devices (Large Desktop) */
@media (min-width: 1280px) {
    .container {
        max-width: var(--container-max);
        padding: 0 var(--space-8);
    }
    
    .section-title {
        font-size: var(--text-7xl);
    }
    
    .section-description {
        font-size: var(--text-xl);
    }
    
    .section-content {
        gap: var(--space-24);
    }
}

/* Ultra Wide Screens */
@media (min-width: 1920px) {
    .section-title {
        font-size: 5rem;
    }
    
    .section-description {
        font-size: var(--text-2xl);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn {
        min-height: 48px;
        padding: var(--space-4) var(--space-8);
    }
    
    .btn-lg {
        min-height: 56px;
    }
    
    .btn-xl {
        min-height: 64px;
    }
    
    .nav-link {
        padding: var(--space-4) var(--space-3);
        min-height: 44px;
    }
    
    .mobile-menu-toggle {
        width: 48px;
        height: 48px;
    }
    
    .timeline-dot {
        width: 20px;
        height: 20px;
        border-width: 4px;
    }
    
    /* Remove hover effects that don't work on touch */
    .flow-node:hover,
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
        box-shadow: inherit;
    }
    
    /* Enhance focus states for touch navigation */
    .btn:focus,
    .nav-link:focus {
        outline: 3px solid var(--primary-blue);
        outline-offset: 2px;
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure icons and graphics are crisp on retina displays */
    [data-lucide],
    .logo-icon,
    .feature-icon,
    .flow-node i {
        transform: translateZ(0);
    }
    
    /* Enhance text rendering */
    .section-title,
    .gradient-text {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Landscape Orientation Optimizations */
@media (orientation: landscape) and (max-height: 600px) {
    .fullpage-section {
        min-height: auto;
        padding: calc(60px + var(--space-6)) 0 var(--space-6);
    }
    
    .section-content {
        gap: var(--space-8);
    }
    
    .visual-area {
        min-height: 200px;
    }
    
    .data-flow-visual {
        padding: var(--space-4);
    }
    
    .graph-visualization {
        height: 200px;
    }
}

/* Dark Mode Support (if system preference) */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --light-gray: #2a2a2a;
        --dark-gray: #f4f4f4;
        --medium-gray: #a0a0a0;
        --border-color: #404040;
        --shadow-color: rgba(255, 255, 255, 0.1);
        --overlay-color: rgba(255, 255, 255, 0.1);
    }
    
    .header {
        background: rgba(26, 26, 26, 0.95);
        border-bottom-color: rgba(64, 64, 64, 0.3);
    }
    
    .section-background::after {
        background: rgba(26, 26, 26, 0.9);
    }
    
    .footer {
        background: var(--white);
        color: var(--dark-gray);
    }
    
    .footer-brand .logo,
    .footer-brand .logo-text {
        color: var(--dark-gray);
    }
    
    .footer-title {
        color: var(--dark-gray);
    }
    
    .footer-list a:hover {
        color: var(--dark-gray);
    }
}

/* Reduce Motion for Accessibility */
@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;
    }
    
    .fullpage-section {
        opacity: 1;
        transform: none;
    }
    
    .flow-arrow,
    .graph-node,
    .graph-connection,
    .chart-bar,
    .timeline-dot.active {
        animation: none;
    }
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .header,
    .timeline-nav,
    .mobile-menu-toggle,
    .section-background,
    .footer {
        display: none !important;
    }
    
    .fullpage-section {
        min-height: auto;
        page-break-inside: avoid;
        padding: var(--space-8) 0;
    }
    
    .section-content {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .visual-area {
        display: none;
    }
    
    .content-area {
        text-align: left;
    }
    
    .btn {
        border: 1px solid black;
        text-decoration: none;
        display: inline-block;
    }
    
    .section-title {
        page-break-after: avoid;
        font-size: var(--text-3xl) !important;
    }
    
    .gradient-text {
        -webkit-text-fill-color: black;
        background: none;
    }
}

/* Focus Visible for Better Accessibility */
@supports selector(:focus-visible) {
    .btn:focus:not(:focus-visible),
    .nav-link:focus:not(:focus-visible),
    .mobile-menu-toggle:focus:not(:focus-visible),
    .timeline-dot:focus:not(:focus-visible) {
        outline: none;
    }
    
    .btn:focus-visible,
    .nav-link:focus-visible,
    .mobile-menu-toggle:focus-visible,
    .timeline-dot:focus-visible {
        outline: 2px solid var(--primary-blue);
        outline-offset: 2px;
    }
}

/* Custom scrollbar for webkit browsers */
@media (min-width: 1024px) {
    ::-webkit-scrollbar {
        width: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: var(--light-gray);
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--primary-blue);
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-blue-hover);
    }
}