/* Responsive Design - Mobile First Approach */

/* Base styles are mobile-first (320px+) */

/* Small Mobile Adjustments (320px - 480px) */
@media (max-width: 480px) {
    :root {
        --section-padding: 60px 16px;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1.25rem, 6vw, 1.75rem);
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-button {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}

/* Mobile Layout (max-width: 768px) */
@media (max-width: 768px) {
    .framework-container {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 100%;
        padding: 0 16px;
        width: 100%;
    }
    
    .framework-section {
        min-height: auto;
        padding: 60px 16px;
    }
    
    /* Content Area - Mobile */
    .content-area {
        position: static;
        order: 2;
    }
    
    .content-display {
        padding: 20px 16px;
        margin-bottom: 20px;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
    }
    
    .content-header {
        font-size: 1.75rem;
        font-weight: 700;
        margin-bottom: 0.8rem;
        line-height: 1.1;
        text-transform: uppercase;
    }
    
    .content-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .content-points li {
        font-size: 0.9rem;
        padding: 8px 0;
        padding-left: 40px;
        line-height: 1.5;
    }
    
    /* Mobile: Hide desktop layout, show mobile layout */
    .desktop-layout {
        display: none;
    }
    
    .mobile-framework-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
    }
    
    /* Framework Visualization - Mobile */
    .visualization-area {
        order: 1;
        min-height: auto;
        padding: 20px 16px 40px 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    /* Mobile Framework Header */
    .mobile-framework-header {
        text-align: center;
        margin-bottom: 30px;
        width: 100%;
    }
    
    .mobile-framework-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-primary);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
        margin-bottom: 0.5rem;
    }
    
    .mobile-framework-subtitle {
        font-size: 0.9rem;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    /* Mobile Circles Grid */
    .mobile-circles-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 15px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        justify-items: center;
    }
    
    /* Mobile Circle Styling */
    .mobile-circle {
        position: relative;
        width: 120px;
        height: 120px;
        margin: 0;
    }
    
    .mobile-circle .circle-text {
        font-size: 0.7rem;
        line-height: 1.1;
        padding: 8px;
    }
    
    /* Mobile Touch Interactions */
    .mobile-circle:hover {
        transform: scale(1.0);
    }
    
    .mobile-circle.active {
        transform: scale(1.12) !important;
        border-radius: 50% !important;
        box-shadow: 0 0 35px rgba(255, 107, 53, 0.8) !important, 
                    inset 0 0 25px rgba(255, 107, 53, 0.2) !important;
        animation: none !important;
    }
    
    .mobile-circle.active::before {
        opacity: 1 !important;
        filter: blur(2px) !important;
        transform: scale(1.1) !important;
    }
    
    .mobile-circle.active .circle-text {
        color: var(--text-primary) !important;
        text-shadow: 0 0 15px rgba(255, 107, 53, 0.8) !important;
    }
    
    /* CTA Section - Mobile */
    .cta-header {
        font-size: 1.75rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .cta-button.primary {
        padding: 16px 28px;
        font-size: 1rem;
    }
}

/* Tablet Layout (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .framework-container {
        grid-template-columns: 420px 1fr;
        gap: 40px;
        max-width: 1200px;
    }
    
    .content-display {
        padding: 32px;
    }
    
    .content-header {
        font-size: 1.875rem;
        font-weight: 700;
        text-transform: uppercase;
        line-height: 1.1;
        margin-bottom: 0.9rem;
    }
    
    /* Tablet: Hide mobile layout, show desktop layout */
    .mobile-framework-layout {
        display: none;
    }
    
    .desktop-layout {
        display: block;
    }
    
    .framework-diagram {
        width: 500px;
        height: 500px;
        display: block;
        position: relative;
    }
    
    .central-hub {
        display: flex;
        width: 140px;
        height: 140px;
    }
    
    .connection-lines {
        display: block;
    }
    
    .central-hub::before {
        width: 200px;
        height: 200px;
    }
    
    .hub-text {
        font-size: 1.2rem;
    }
    
    .focus-circle {
        position: absolute !important;
        width: 120px;
        height: 120px;
        margin: 0 !important;
    }
    
    .circle-text {
        font-size: 0.75rem;
    }
    
    /* Tablet circle positions - Perfect hexagon */
    #community {
        top: 50px !important;
        left: 190px !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
    }
    
    #education {
        top: 140px !important;
        right: 50px !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
    }
    
    #experience {
        bottom: 140px !important;
        right: 50px !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }
    
    #resources {
        bottom: 50px !important;
        left: 190px !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
    }
    
    #metrics {
        bottom: 140px !important;
        left: 50px !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
    }
    
    #leadership {
        top: 140px !important;
        left: 50px !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
    }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .framework-container {
        grid-template-columns: 480px 1fr;
        gap: 50px;
    }
    
    .content-display {
        padding: 32px;
    }
    
    .content-header {
        font-size: 2rem;
        font-weight: 700;
        text-transform: uppercase;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .content-description {
        font-size: 1.125rem;
    }
    
    /* Desktop: Hide mobile layout, show desktop layout */
    .mobile-framework-layout {
        display: none;
    }
    
    .desktop-layout {
        display: block;
    }
    
    .framework-diagram {
        width: 900px;
        height: 900px;
        display: block;
        position: relative;
    }
    
    .central-hub {
        display: flex;
        width: 200px;
        height: 200px;
    }
    
    .connection-lines {
        display: block;
    }
    
    .central-hub::before {
        width: 240px;
        height: 240px;
    }
    
    .hub-text {
        font-size: 1.2rem;
    }
    
    .focus-circle {
        position: absolute !important;
        width: 200px;
        height: 200px;
        margin: 0 !important;
    }
    
    .circle-text {
        font-size: 1rem;
    }
    
    /* Large desktop circle positions - Override with our desktop layout */
    #community {
        top: 100px !important;
        left: 350px !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
    }
    
    #education {
        top: 220px !important;
        right: 100px !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
    }
    
    #experience {
        bottom: 220px !important;
        right: 100px !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }
    
    #resources {
        bottom: 100px !important;
        left: 350px !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
    }
    
    #metrics {
        bottom: 220px !important;
        left: 100px !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
    }
    
    #leadership {
        top: 220px !important;
        left: 100px !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
    }
}

/* Extra Large Screens (1440px+) */
@media (min-width: 1440px) {
    .hero-title {
        font-size: clamp(4rem, 6vw, 7rem);
    }
    
    .hero-subtitle {
        font-size: clamp(2rem, 3vw, 2.5rem);
    }
    
    .hero-description {
        font-size: 1.25rem;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 40px 20px;
    }
    
    .hero-content {
        max-width: 600px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
    }
    
    .framework-section {
        padding: 60px 20px;
    }
    
    .framework-diagram {
        width: 280px;
        height: 280px;
    }
    
    .central-hub {
        width: 80px;
        height: 80px;
    }
    
    .hub-text {
        font-size: 0.55rem;
    }
    
    .focus-circle {
        width: 55px;
        height: 55px;
    }
    
    .circle-text {
        font-size: 0.45rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .framework-diagram,
    .central-hub,
    .focus-circle {
        /* Ensure crisp rendering on high DPI displays */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* 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;
    }
    
    .hero-content,
    .hero-title,
    .hero-subtitle,
    .hero-description,
    .cta-button {
        animation: none !important;
    }
}

/* Dark Mode Support (if system preference) */
@media (prefers-color-scheme: dark) {
    /* This is a placeholder for potential future dark mode support */
    /* Currently maintaining light theme as per requirements */
}

/* Print Styles Enhancement */
@media print {
    .framework-diagram {
        width: 300px !important;
        height: 300px !important;
    }
    
    .focus-circle {
        background: white !important;
        border: 2px solid black !important;
    }
    
    .central-hub {
        background: black !important;
        color: white !important;
    }
    
    .connection-line {
        stroke: black !important;
    }
}



/* Focus and Active States for Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .focus-circle:hover {
        background: var(--dark-card);
        transform: none;
        box-shadow: none;
        border-color: transparent;
    }
    
    .focus-circle:hover .circle-text {
        color: var(--text-primary);
    }
    
    .focus-circle:active {
        background: var(--dark-card);
        transform: scale(0.95);
        border-color: transparent;
        box-shadow: 0 0 30px rgba(255, 107, 53, 0.6), inset 0 0 20px rgba(255, 107, 53, 0.1);
    }
    
    .focus-circle:active .circle-text {
        color: var(--text-primary);
        text-shadow: 0 0 10px rgba(255, 107, 53, 0.6);
    }
} 