/* AI Logo Design Subscription - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-5 {
        font-size: 2rem;
    }
    
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    /* Hero Section */
    #hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-shapes .shape-blob-1,
    .hero-shapes .shape-blob-2 {
        display: none; /* Hide decorative elements on mobile */
    }
    
    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    
    /* Team Section */
    #team .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    #team img {
        width: 100px;
        height: 100px;
    }
    
    /* Process Section */
    #process .col-lg-2 {
        margin-bottom: 1.5rem;
    }
    
    /* Timeline Section */
    #timeline .col-lg-2 {
        margin-bottom: 1.5rem;
    }
    
    /* Gallery */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Contact Form */
    .form-control {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    /* Footer */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Disable animations on mobile for performance */
    .card:hover {
        transform: none;
    }
    
    .text-center:hover .fa-3x {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    #team .text-center:hover img {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-5 {
        font-size: 2.25rem;
    }
    
    #hero {
        min-height: 85vh;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    #team img {
        width: 110px;
        height: 110px;
    }
    
    /* Reduce animations on small screens */
    .shape-blob-1,
    .shape-blob-2 {
        animation-duration: 10s;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-5 {
        font-size: 2.5rem;
    }
    
    #hero {
        min-height: 90vh;
    }
    
    .card-img-top {
        height: 220px;
    }
    
    #team img {
        width: 120px;
        height: 120px;
    }
    
    /* Services grid adjustment */
    #services .col-lg-4:nth-child(3n+1) {
        clear: left;
    }
    
    /* Features grid adjustment */
    #features .col-lg-3:nth-child(2n+1) {
        clear: left;
    }
    
    /* Process steps adjustment */
    #process .col-lg-2:nth-child(3n+1) {
        clear: left;
    }
    
    /* Timeline adjustment */
    #timeline .col-lg-2:nth-child(3n+1) {
        clear: left;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .display-5 {
        font-size: 2.75rem;
    }
    
    #hero {
        min-height: 95vh;
    }
    
    .card-img-top {
        height: 240px;
    }
    
    /* Adjust team member spacing */
    #team .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Adjust process steps */
    #process .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Adjust timeline */
    #timeline .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .display-5 {
        font-size: 3rem;
    }
    
    #hero {
        min-height: 100vh;
    }
    
    .card-img-top {
        height: 250px;
    }
    
    /* Enhanced hover effects on larger screens */
    .card:hover {
        transform: translateY(-8px);
    }
    
    .btn-primary:hover {
        transform: translateY(-3px);
    }
}

/* Ultra Wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .display-5 {
        font-size: 3.25rem;
    }
    
    /* Larger decorative elements */
    .shape-blob-1 {
        width: 250px;
        height: 250px;
    }
    
    .shape-blob-2 {
        width: 200px;
        height: 200px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    section {
        padding: 1.5rem 0;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper text rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
    
    /* Optimize images for retina */
    .card-img-top,
    #gallery img,
    #team img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    #footer,
    .breadcrumb {
        display: none;
    }
    
    /* Optimize for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        break-inside: avoid;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
    
    /* Remove shadows and effects */
    * {
        box-shadow: none;
        text-shadow: none;
    }
    
    /* Ensure readability */
    .text-muted {
        color: #666;
    }
}

/* Accessibility - Reduce motion */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
    
    /* Remove floating animations */
    .shape-blob-1,
    .shape-blob-2 {
        animation: none;
    }
    
    /* Remove hover transforms */
    .card:hover,
    .btn-primary:hover,
    .text-center:hover .fa-3x,
    #gallery img:hover,
    #team .text-center:hover img {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --text-primary: #000000;
        --text-secondary: #333333;
        --border-color: #000000;
        --light-bg: #ffffff;
    }
    
    .card {
        border: 2px solid var(--border-color);
    }
    
    .btn-primary {
        border: 2px solid var(--primary-color);
    }
}

/* Dark mode support */

/* Focus management for keyboard navigation */
@media (any-hover: none) {
    /* Touch devices - remove hover effects */
    .card:hover,
    .btn-primary:hover,
    .text-center:hover .fa-3x,
    #gallery img:hover,
    #team .text-center:hover img,
    #process .text-center:hover .rounded-circle {
        transform: none;
        box-shadow: inherit;
        background-color: inherit;
        border-color: inherit;
    }
}

/* Specific mobile optimizations */
@media (max-width: 767.98px) {
    /* Improve touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Optimize form controls for mobile */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    /* Stack pricing cards on mobile */
    #priceplan .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Adjust FAQ layout */
    #faq .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Optimize gallery for mobile */
    #gallery .col-lg-3 {
        padding: 0.25rem;
    }
    
    /* Mobile-friendly contact section */
    #contact .row:last-child .col-lg-4 {
        margin-bottom: 1.5rem;
        text-align: center;
    }
} 