/* ==========================================================================
   Responsive CSS - EcoMail Solutions
   ========================================================================== */

/* Bootstrap 5 Breakpoints:
   xs: <576px
   sm: ≥576px
   md: ≥768px
   lg: ≥992px
   xl: ≥1200px
   xxl: ≥1400px
*/

/* Extra Large Devices (≥1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 200px;
}
    
    .hero-section .lead {
        font-size: 1.5rem;
    }
}

/* Large Devices (≥992px) */
@media (min-width: 992px) {
    .timeline::before {
        display: block;
    }
    
    .timeline-item {
        margin-bottom: 4rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        padding-right: 3rem;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        padding-left: 3rem;
    }
}

/* Medium Devices (≥768px) */
@media (min-width: 768px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .navbar {
        padding: 1.5rem 0;
    }
    
    .contact-form {
        padding: 3rem;
    }
    
    .team-member img {
        width: 150px;
        height: 150px;
    }
    
    .feature-item {
        padding: 2rem 0;
    }
    
    .process-step {
        padding: 1.5rem;
    }
}

/* Small Devices (≥576px) */
@media (min-width: 576px) {
    .hero-section h1 {
        font-size: 2.5rem;
    padding-top: 200px;
}
    
    .hero-section .lead {
        font-size: 1.25rem;
    }
    
    .pricing-card {
        min-height: 400px;
    }
    
    .service-card {
        min-height: 350px;
    }
}

/* Extra Small Devices (<576px) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.25rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 200px;
}
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    /* Navbar */
    .navbar {
        padding: 1rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .career-card,
    .blog-card,
    .faq-card {
        margin-bottom: 1.5rem;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Timeline */
    .timeline::before {
        display: none;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        flex-direction: column;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: center;
        padding: 0;
        max-width: 100%;
        margin-top: 1rem;
    }
    
    .timeline-year {
        min-width: 80px;
        padding: 0.75rem;
    }
    
    /* Team Section */
    .team-member {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Feature Items */
    .feature-item {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .feature-icon {
        margin: 0 auto 1rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-form .btn {
        width: 100%;
    }
    
    /* Footer */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    footer .text-end {
        text-align: center !important;
    }
    
    /* Utility Classes for Mobile */
    .text-center-mobile {
        text-align: center !important;
    }
    
    .mb-mobile {
        margin-bottom: 1rem !important;
    }
    
    .mt-mobile {
        margin-top: 1rem !important;
    }
    
    /* Gallery */
    .gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        text-align: center;
    }
    
    /* Pricing Cards */
    .pricing-card .badge {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin-bottom: 1rem;
    }
    
    /* Additional Items for Pages */
    .process-item,
    .sustainability-item,
    .quality-item,
    .innovation-item,
    .future-item,
    .benefit-item,
    .waste-item,
    .lifecycle-item,
    .carbon-item,
    .conservation-item {
        margin-bottom: 2rem;
    }
    
    /* Icon Sizes */
    .fa-3x {
        font-size: 2rem !important;
    }
    
    .fa-2x {
        font-size: 1.5rem !important;
    }
}

/* Tablet Landscape (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.25rem;
    padding-top: 200px;
}
    
    .timeline-item {
        margin-bottom: 3rem;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    .process-step {
        margin-bottom: 1.5rem;
    }
    
    .pricing-card {
        min-height: 380px;
    }
    
    .service-card {
        min-height: 330px;
    }
}

/* Tablet Portrait (576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 200px;
}
    
    .timeline::before {
        display: none;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2.5rem;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        flex-direction: column;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: center;
        padding: 0;
        max-width: 100%;
        margin-top: 1rem;
    }
    
    .team-member {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .feature-item {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .feature-icon {
        margin: 0 auto 1rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .pricing-card {
        min-height: 350px;
    }
    
    .service-card {
        min-height: 320px;
    }
}

/* Landscape Phones (up to 767px) */
@media (max-width: 767.98px) {
    .hero-section .container {
        padding: 0 1rem;
    }
    
    .hero-section .btn {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        text-align: center;
        margin-top: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .feature-item {
        margin-bottom: 1.5rem;
    }
    
    .contact-form .form-control {
        margin-bottom: 1rem;
    }
    
    .stars {
        text-align: center;
    }
    
    .blog-card .btn {
        width: 100%;
    }
    
    .faq-card {
        margin-bottom: 1rem;
    }
    
    .info-card {
        margin-bottom: 1.5rem;
    }
}

/* Portrait Phones (up to 575px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-section {
        padding-top: 70px;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    padding-top: 200px;
}
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .pricing-card,
    .service-card,
    .review-card,
    .case-study-card,
    .career-card,
    .blog-card {
        margin-bottom: 1rem;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .timeline-year {
        min-width: 70px;
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .contact-form .form-control {
        padding: 0.5rem 0.75rem;
    }
    
    .fa-3x {
        font-size: 1.75rem !important;
    }
    
    .fa-2x {
        font-size: 1.25rem !important;
    }
    
    .footer .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    .footer h5 {
        font-size: 1.1rem;
    }
    
    .footer p {
        font-size: 0.9rem;
    }
    
    .gallery .col-lg-3 {
        margin-bottom: 0.75rem;
    }
    
    .breadcrumb {
        padding: 0.5rem 0;
    }
    
    .breadcrumb-item img {
        width: 16px;
        height: 16px;
    }
    
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .breadcrumb {
        display: none !important;
    }
    
    .hero-section {
        padding-top: 0;
    }
    
    .hero-section::before {
        display: none;
    }
    
    section {
        padding: 1rem 0;
    }
    
    .card,
    .contact-form {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
        padding: 0;
        max-width: 100%;
        margin-top: 0.5rem;
    }
    
    * {
        color: #000 !important;
        background: #fff !important;
    }
    
    .text-primary {
        color: #000 !important;
    }
    
    .bg-primary {
        background: #fff !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    .hero-section::before {
        background-size: 150%;
    }
    
    .card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }
    
    .navbar {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
}

/* Dark Mode Support */