/* AI Lead Scoring Software - Responsive CSS */

/* Mobile First Approach - Base styles for mobile devices */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.25rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }
    
    /* Hero section */
    #hero {
        min-height: 80vh;
        padding-top: 80px;
        text-align: center;
    }
    
    #hero .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Sections padding */
    section {
        padding: 3rem 0;
    }
    
    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.25rem;
    overflow-x: hidden;
}
    
    /* Process section circles */
    #process .rounded-circle {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    #process .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Team images */
    #team .card-img-top {
        width: 120px;
        height: 120px;
    }
    
    /* Contact form */
    .form-control {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    #gallery .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Services grid */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Price plan cards */
    #priceplan .card {
        margin-bottom: 2rem;
    }
    
    /* FAQ cards */
    #faq .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Disable animations on mobile for performance */
    * {
        animation-duration: 0s !important;
        transition-duration: 0.1s !important;
    }
    
    .card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    #hero {
        min-height: 85vh;
        padding-top: 80px;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    /* Process section */
    #process .col-lg-2 {
        margin-bottom: 1.5rem;
    }
    
    /* Cards */
    .card-body {
        padding: 1.5rem;
    }
    
    /* Team images */
    #team .card-img-top {
        width: 130px;
        height: 130px;
    }
    
    /* Sections */
    section {
        padding: 3.5rem 0;
    }
    
    /* Disable heavy animations */
    .card:hover {
        transform: translateY(-2px);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    #hero {
        min-height: 90vh;
        padding-top: 80px;
    }
    
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Process section */
    #process .col-lg-2 {
        margin-bottom: 1rem;
    }
    
    /* Team images */
    #team .card-img-top {
        width: 140px;
        height: 140px;
    }
    
    /* Cards */
    .card-body {
        padding: 1.75rem;
    }
    
    /* Services grid - 2 columns */
    #services .col-lg-4:nth-child(3n+1) {
        clear: left;
    }
    
    /* Sections */
    section {
        padding: 4rem 0;
    }
    
    .py-5 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero section */
    #hero {
        min-height: 95vh;
    }
    
    /* Full animations enabled */
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    /* Team images */
    #team .card-img-top {
        width: 150px;
        height: 150px;
    }
    
    /* Process section */
    #process .rounded-circle {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Hero section */
    #hero {
        min-height: 100vh;
    }
    
    /* Container max-width adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced animations for desktop */
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    }
    
    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    }
    
    /* Team images */
    #team .card-img-top {
        width: 160px;
        height: 160px;
    }
    
    /* Process section */
    #process .rounded-circle {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }
    
    /* Enhanced spacing */
    section {
        padding: 5rem 0;
    }
    
    .py-5 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced typography */
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    /* Enhanced spacing */
    section {
        padding: 6rem 0;
    }
    
    /* Team images */
    #team .card-img-top {
        width: 170px;
        height: 170px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: 100vh;
        padding-top: 60px;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and shadows */
    .card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .btn {
        border-width: 1px;
    }
}

/* Print styles */
@media print {
    * {
        color: black !important;
        background: white !important;
    }
    
    .navbar,
    #footer,
    .btn,
    .badge {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
    
    .card {
        border: 1px solid #ddd;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Accessibility - Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .card:hover,
    .btn:hover,
    #gallery img:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
    
    .form-control {
        border: 2px solid #000;
    }
}

/* Dark mode support (if needed in future) */

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .card:hover,
    .btn:hover,
    #gallery img:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .form-control {
        min-height: 44px;
    }
}

/* Specific fixes for iOS Safari */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari specific fixes */
    .form-control {
        font-size: 16px; /* Prevents zoom on focus */
    }
    
    #hero {
        min-height: -webkit-fill-available;
    }
}

/* Firefox specific optimizations */
@-moz-document url-prefix() {
    .card {
        background-clip: padding-box;
    }
}

/* Edge/IE specific fixes */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .card {
        border: 1px solid #ddd;
    }
    
    .btn-primary {
        border: 1px solid var(--primary-color);
    }
} 