/* ==========================================================================
   RESPONSIVE STYLES - Media Queries and Responsive Design Rules
   ========================================================================== */

/* Mobile responsive (≤768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    header .container {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav a {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
    
    .main-nav a:last-child {
        margin-top: 1rem;
    }
    
    .logo img {
        height: 30px;
    }
    
    main {
        padding: 1rem;
    }
    
    article.page {
        padding: 1rem;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
    .logo img {
        height: 25px;
    }
    
    article.page {
        padding: 0.5rem;
    }
}

/* Tablet responsive (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-cta {
        margin-top: 2.5rem;
    }
    
    .primary-cta {
        padding: 1.1rem 2.2rem;
        font-size: 1.05rem;
    }
}

/* Desktop responsive (≥1025px) */
@media (min-width: 1025px) {
    .hero-content-container {
        gap: 4vh;
    }
    
    .intelligence-hub-hero .hero-tagline h2 {
        font-size: 2.1rem; /* Increased from 1.6rem to match larger baseline */
    }
    
    .cta-card h3 {
        font-size: 1.1rem;
    }
}

/* Large desktop (1921px - 2560px) */
@media (min-width: 1921px) and (max-width: 2560px) {
    .hero-content-container {
        gap: 5vh;
    }
    
    .intelligence-hub-hero .hero-tagline h2 {
        font-size: 2.4rem; /* Increased from 1.8rem to match larger baseline */
    }
    
    .cta-card h3 {
        font-size: 1.2rem;
    }
}

/* Ultra-wide desktop (≥2561px) */
@media (min-width: 2561px) {
    .hero-content-container {
        gap: 6vh;
    }
    
    .intelligence-hub-hero .hero-tagline h2 {
        font-size: 2.7rem; /* Increased from 2rem to match larger baseline */
    }
    
    .cta-card h3 {
        font-size: 1.3rem;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (max-height: 1024px) {
    .hero-content {
        padding: 1rem;
        gap: 2vh;
    }
    
    .hero-text {
        max-width: 90vw;
        font-size: 0.9rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .intelligence-visualization {
        max-width: 80vw;
        max-height: 40vh;
        margin: 1rem auto;
    }
    
    .hero-cta {
        margin-top: 1rem;
    }
    
    .primary-cta {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .knowledge-graph {
        max-width: 70vw;
        max-height: 35vh;
    }
    
    .intelligence-core {
        max-width: 60px;
        max-height: 60px;
    }
    
    .core-icon {
        max-width: 40px;
        max-height: 40px;
    }
    
    .node-icon {
        max-width: 25px;
        max-height: 25px;
    }
    
    .data-node, .service-node {
        max-width: 80px;
        max-height: 80px;
    }
    
    .rotating-text {
        font-size: 0.8rem;
        max-width: 60px;
    }
    
    .rotating-text::before {
        font-size: 0.7rem;
        max-width: 50px;
    }
}

/* Very short screens */
@media (max-width: 480px) and (max-height: 800px) {
    .hero-content {
        padding: 0.5rem;
        gap: 1vh;
    }
    
    .hero-text {
        font-size: 0.8rem;
        line-height: 1.1;
        margin-bottom: 0.5rem;
    }
    
    .intelligence-visualization {
        max-height: 30vh;
        margin: 0.5rem auto;
    }
    
    .knowledge-graph {
        max-height: 25vh;
    }
    
    .intelligence-core {
        max-width: 50px;
        max-height: 50px;
    }
    
    .core-icon {
        max-width: 35px;
        max-height: 35px;
    }
    
    .node-icon {
        max-width: 20px;
        max-height: 20px;
    }
    
    .data-node, .service-node {
        max-width: 60px;
        max-height: 60px;
    }
    
    .rotating-text {
        font-size: 0.7rem;
        max-width: 50px;
    }
    
    .rotating-text::before {
        font-size: 0.6rem;
        max-width: 40px;
    }
}

/* Landscape orientation */
@media screen and (max-width: 926px) and (orientation: landscape) {
    .clarion-logo-container {
        --logo-max-width: 95vw !important;
        --logo-max-height: 80vh !important;
        padding: 1rem 2rem 2rem 2rem !important;
        overflow: visible !important;
    }
    
    .clarion-logo-container svg {
        width: 70vw !important; /* Proportional to viewport width */
        height: auto !important;
        max-width: var(--logo-max-width) !important;
        max-height: var(--logo-max-height) !important;
        margin: 0 auto !important;
        display: block !important;
        transform: scale(1.1) !important; /* Slight scale for landscape */
    }
    
    .intelligence-hub-hero .hero-tagline {
        max-width: 80vw;
        text-align: center;
    }
    
    .intelligence-hub-hero .hero-tagline h2 {
        font-size: 0.9rem;
        line-height: 1.1;
        margin: 0;
        padding: 0;
    }
    
    .cta-grid {
        gap: 0.5rem;
        max-width: 250px;
    }
    
    .cta-card {
        max-width: 200px;
        padding: 0.5rem 1rem;
        min-height: 40px;
    }
    
    .intelligence-hub-hero .hero-tagline {
        max-width: 70vw;
        text-align: center;
    }
    
    .intelligence-hub-hero .hero-tagline h2 {
        font-size: 0.8rem;
        line-height: 1.1;
        margin: 0;
        padding: 0;
    }
    
    .cta-grid {
        gap: 0.4rem;
        max-width: 200px;
    }
    
    .cta-card {
        max-width: 180px;
        padding: 0.4rem 0.8rem;
        min-height: 36px;
    }
    
    .cta-card h3 {
        font-size: 0.7rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .clarion-logo-container svg #node-7,
    .clarion-logo-container svg #node-8,
    .clarion-logo-container svg #node-9,
    .clarion-logo-container svg #node-10 {
        cursor: default;
        pointer-events: none;
    }
    
    .clarion-logo-container svg #node-7:hover,
    .clarion-logo-container svg #node-8:hover,
    .clarion-logo-container svg #node-9:hover,
    .clarion-logo-container svg #node-10:hover {
        transform: none;
        filter: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .clarion-logo-container svg {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Responsive background adjustments */
@media (max-width: 768px) {
    .grid-overlay {
        background-size: 80px 80px;
        opacity: 0.3;
    }
    
    .floating-particles::before,
    .floating-particles::after {
        width: 60px;
        height: 60px;
    }
    
    .floating-particles::before {
        left: 5%;
    }
    
    .floating-particles::after {
        right: 5%;
    }
}

@media (min-width: 1600px) {
    .grid-overlay {
        background-size: 150px 150px;
        opacity: 0.5;
    }
    
    .floating-particles::before {
        width: 150px;
        height: 150px;
    }
    
    .floating-particles::after {
        width: 100px;
        height: 100px;
    }
}

@media (min-width: 2200px) {
    .grid-overlay {
        background-size: 180px 180px;
        opacity: 0.6;
    }
    
    .floating-particles::before {
        width: 180px;
        height: 180px;
    }
    
    .floating-particles::after {
        width: 120px;
        height: 120px;
    }
}

/* Print styles */
@media print {
    .intelligence-hub-hero {
        background: white !important;
        color: black !important;
    }
    
    .cta-card {
        background: white !important;
        border: 1px solid #ccc !important;
        color: black !important;
    }
    
    .hero-background {
        display: none !important;
    }
} 