/* Digital Scrapbooking Platform - Responsive CSS */

/* Mobile-first approach */

/* Extra Large devices (xl) */
@media (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 3.13rem;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
    }
    
    .timeline::before {
        left: 2rem;
    }
    
    .timeline-item::after {
        left: 1rem !important;
    }
}

/* Large devices (lg) */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.55rem;
    }
    
    .hero-section {
  padding-top: 50px;
        padding: 6rem 0 3rem;
        text-align: center;
    }
    
    .team-member {
        margin-bottom: 2.11rem;
    }
    
    .process-step {
        margin-bottom: 2.11rem;
    }
    
    .timeline-item {
        padding: 1rem;
        margin-bottom: 2.11rem;
    }
    
    .timeline-date {
        font-size: 0.98rem;
    }
    
    .price-card.featured {
        transform: none;
        margin-bottom: 2.11rem;
    }
}

/* Medium devices (md) */
@media (max-width: 767.98px) {
    /* Typography adjustments */
    h1 { font-size: 2.02rem; }
    h2 { font-size: 1.81rem; }
    h3 { font-size: 1.60rem; }
    h4 { font-size: 1.30rem; }
    
    .hero-section h1 {
        font-size: 2.02rem;
    }
    
    .hero-section h2 {
        font-size: 1.30rem;
    }
    
    .hero-section p {
        font-size: 1.05rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.30rem !important;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        text-align: center;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    .hero-section {
  padding-top: 50px;
        padding: 5rem 0 2rem;
    }
    
    /* Cards and components */
    .feature-card, .service-card, .price-card, .info-card {
        padding: 1.5rem;
        margin-bottom: 1.59rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Timeline for mobile */
    .timeline {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .timeline::before {
        left: 1rem;
    }
    
    .timeline-item {
        width: calc(100% - 2rem);
        margin-left: 2rem;
        left: 0 !important;
    }
    
    .timeline-item::after {
        left: -2rem !important;
    }
    
    /* Process steps mobile layout */
    .process-step {
        margin-bottom: 3.10rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.30rem;
    }
    
    /* Team section mobile */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Gallery responsive */
    .gallery-section .col-lg-3 {
        margin-bottom: 1.21rem;
    }
    
    /* Blog grid mobile */
    .blog-card {
        margin-bottom: 2.11rem;
    }
    
    /* Footer mobile */
    .footer {
        padding: 2rem 0 1rem;
        text-align: center;
    }
    
    .footer .col-lg-4 {
        margin-bottom: 2.11rem;
    }
    
    /* Breadcrumbs mobile */
    .breadcrumb-nav {
        padding: 5rem 0 1rem;
        text-align: center;
    }
    
    /* Additional pages mobile */
    .feature-item, .template-category, .collaboration-feature, .export-option, .storage-feature,
    .learning-item, .video-tutorial, .workshop-item, .resource-item, .certification-level {
        padding: 1.25rem;
        margin-bottom: 1.59rem;
    }
}

/* Small devices (sm) */
@media (max-width: 575.98px) {
    /* Typography for small screens */
    h1 { font-size: 1.81rem; }
    h2 { font-size: 1.60rem; }
    h3 { font-size: 1.30rem; }
    h4 { font-size: 1.18rem; }
    
    .hero-section h1 {
        font-size: 1.81rem;
    }
    
    .hero-section h2 {
        font-size: 1.18rem;
    }
    
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    .hero-section {
  padding-top: 50px;
        padding: 4rem 0 2rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.18rem !important;
    }
    
    /* Cards */
    .feature-card, .service-card, .price-card, .info-card {
        padding: 1.25rem;
    }
    
    .service-card img {
        height: 150px;
    }
    
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .contact-form {
        padding: 1.25rem;
    }
    
    /* Timeline mobile optimization */
    .timeline-item {
        padding: 0.75rem;
        margin-left: 1.5rem;
        width: calc(100% - 1.5rem);
    }
    
    .timeline::before {
        left: 0.75rem;
    }
    
    .timeline-item::after {
        left: -1.5rem !important;
        width: 15px;
        height: 15px;
    }
    
    .timeline-date {
        font-size: 0.77rem;
        padding: 0.25rem 0.75rem;
    }
    
    /* Process steps small mobile */
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }
    
    /* Team images small */
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Button adjustments */
    .btn-primary {
        padding: 0.625rem 1.5rem;
        font-size: 0.98rem;
    }
    
    /* Form elements */
    .form-control {
        padding: 0.625rem 0.875rem;
        font-size: 0.98rem;
    }
    
    /* Accordion mobile */
    .accordion-button {
        padding: 0.75rem 1rem;
        font-size: 0.98rem;
    }
    
    /* Price display */
    .service-card .price, .price-card .price {
        font-size: 1.30rem;
    }
    
    /* Contact info mobile */
    .contact-section .row.mt-5 .col-lg-4 {
        margin-bottom: 2.11rem;
    }
    
    /* Space page mobile */
    #space h1 {
        font-size: 2.02rem;
    }
    
    #space p {
        font-size: 1.05rem;
    }
}

/* Extra small devices (xs) - phones in landscape */
@media (max-width: 479.98px) {
    /* Extreme mobile optimization */
    h1 { font-size: 1.60rem; }
    h2 { font-size: 1.30rem; }
    h3 { font-size: 1.18rem; }
    
    .hero-section h1 {
        font-size: 1.60rem;
    }
    
    .hero-section {
  padding-top: 50px;
        padding: 3rem 0 1.5rem;
    }
    
    section {
        padding: 1.5rem 0;
    }
    
    .feature-card, .service-card, .price-card, .info-card {
        padding: 1rem;
    }
    
    .testimonial-card {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    /* Navigation extreme mobile */
    .navbar-brand {
        font-size: 1.05rem !important;
    }
    
    /* Timeline extreme mobile */
    .timeline-item {
        padding: 0.5rem;
        margin-left: 1rem;
        width: calc(100% - 1rem);
    }
    
    .timeline::before {
        left: 0.5rem;
    }
    
    .timeline-item::after {
        left: -1rem !important;
        width: 12px;
        height: 12px;
    }
    
    /* Service cards extreme mobile */
    .service-card img {
        height: 120px;
    }
    
    .service-card ul li {
        font-size: 0.98rem;
    }
}

/* Tablet landscape specific */
@media (min-width: 768px) and (max-width: 991.98px) and (orientation: landscape) {
    .hero-section {
  padding-top: 50px;
        padding: 4rem 0 2rem;
    }
    
    .hero-section h1 {
        font-size: 2.29rem;
    }
}

/* Disable Swiper autoplay and effects on mobile as specified */
@media (max-width: 767.98px) {
    .swiper {
        --swiper-navigation-color: transparent;
        --swiper-pagination-color: var(--primary-purple);
    }
    
    /* Disable autoplay effects for mobile - will be handled in JS */
    .testimonials-swiper .swiper-slide {
        transition: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-card img,
    .blog-card img,
    .case-card img,
    .gallery-section img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced motion support for all elements */
@media (prefers-reduced-motion: reduce) {
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .info-card:hover,
    .blog-card:hover,
    .case-card:hover,
    .btn-primary:hover {
        transform: none;
    }
    
    .gallery-section img:hover {
        transform: none;
    }
    
    .timeline-item,
    .process-step,
    .testimonial-card {
        transition: none;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .breadcrumb-nav {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    .hero-section {
  padding-top: 50px;
        padding: 2rem 0;
        background: white !important;
        color: black !important;
    }
    
    .hero-section h1,
    .hero-section h2,
    .hero-section p {
        color: black !important;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .info-card {
        border: 1px solid #d1c2c3;
        box-shadow: none;
        page-break-inside: avoid;
    }
} 