/* ========================================
   AI Blog Outline Generator - Responsive CSS
   ======================================== */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-5 {
        font-size: 1.8rem;
    }
    
    .h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Spacing */
    section {
        padding: 2rem 0;
    }
    
    /* Hero Section */
    #hero {
        min-height: 80vh;
        text-align: center;
    }
    
    #hero .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    /* Disable animations on mobile for better performance */
    .hero-shapes .shape {
        animation: none;
        display: none;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Form Controls */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }
    
    /* Feature Icons */
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Team Images */
    .card-img-top.rounded-circle {
        width: 120px;
        height: 120px;
    }
    
    /* Metric Circles */
    .metric-circle {
        width: 60px;
        height: 60px;
        font-size: 0.9rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-5 {
        font-size: 2rem;
    }
    
    .h2 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    #hero {
        min-height: 85vh;
    }
    
    /* Reduce hero shape animation intensity */
    .shape-1, .shape-2 {
        opacity: 0.05;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-5 {
        font-size: 2.2rem;
    }
    
    .h2 {
        font-size: 1.9rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    #hero {
        min-height: 90vh;
    }
    
    /* Cards in rows */
    .card {
        height: 100%;
    }
    
    /* Services grid adjustment */
    #services .col-md-6.col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .display-5 {
        font-size: 2.4rem;
    }
    
    .h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 4.5rem 0;
    }
    
    #hero {
        height: 100vh;
        min-height: 600px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .display-5 {
        font-size: 2.5rem;
    }
    
    .h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 5rem 0;
    }
    
    #hero {
        height: 100vh;
        min-height: 700px;
    }
    
    /* Container max-width adjustment */
    .container {
        max-width: 1140px;
    }
}

/* Landscape phone orientation */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        height: auto;
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
    
    /* Hide hero shapes in landscape on small screens */
    .hero-shapes {
        display: none;
    }
}

/* Print Styles */
@media print {
    /* Hide non-essential elements */
    #header,
    #footer,
    .btn,
    .hero-shapes {
        display: none;
    }
    
    /* Ensure proper text contrast */
    body {
        color: #000;
        background: #fff;
    overflow-x: hidden;
}
    
    /* Adjust spacing for print */
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card {
        border: 1px solid #ddd;
        box-shadow: none;
    }
}

/* High DPI / Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Adjust for crisp rendering on high DPI displays */
    .feature-icon,
    .metric-circle {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Touch Device Optimizations */
@media (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Hide decorative animations */
    .hero-shapes {
        display: none;
    }
}

/* Dark Mode Support (if system preference) */

/* Focus Management for Accessibility */
@media (prefers-reduced-motion: no-preference) {
    /* Smooth focus transitions only when motion is allowed */
    a:focus,
    button:focus,
    input:focus,
    textarea:focus,
    select:focus {
        transition: box-shadow 0.2s ease-in-out;
    }
}

/* Container Responsive Adjustments */
@media (max-width: 1400px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Navigation Responsive Behavior */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-link {
        text-align: center;
        padding: 0.5rem 1rem;
    }
}

/* Service Cards Grid Responsive */
@media (max-width: 767.98px) {
    #services .row.g-4 {
        gap: 1rem;
    }
    
    #services .card {
        margin-bottom: 1rem;
    }
}

/* Footer Responsive */
@media (max-width: 767.98px) {
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    #footer .list-unstyled {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    #footer .list-unstyled li {
        margin: 0;
    }
} 