/* Hand Lettering Course - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  
  /* Hero section mobile */
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section h2 {
    font-size: 1.25rem;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Cards and containers */
  .service-card,
  .price-card,
  .feature-item,
  .feature-box,
  .team-member,
  .case-study-card,
  .blog-card,
  .info-card,
  .career-card {
    margin-bottom: 1.5rem;
  }
  
  /* Process steps mobile layout */
  .process-step {
    margin-bottom: 2rem;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Timeline mobile */
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: calc(100% - 40px);
    margin-left: 40px !important;
    margin-bottom: 2rem;
  }
  
  .timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 20px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
  }
  
  /* Element cards for additional pages */
  .element-card {
    margin-bottom: 1rem;
  }
  
  /* Contact info mobile */
  .contact-info {
    margin-top: 2rem;
  }
  
  /* Gallery mobile spacing */
  #gallery .col-md-3 {
    margin-bottom: 1rem;
  }
  
  /* Accordion mobile */
  .accordion-button {
    padding: 1rem;
    font-size: 0.95rem;
  }
  
  .accordion-body { overflow-x: hidden;
    padding: 1rem;
  }
  
  /* Footer mobile */
  footer .col-md-3,
  footer .col-md-6 {
    margin-bottom: 2rem;
  }
  
  /* Swiper mobile adjustments */
  .testimonials-swiper {
    padding: 1rem 0;
  }
  
  .testimonial-card {
    margin: 0.5rem;
    padding: 1.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero adjustments */
  .hero-section h1 {
    font-size: 2.75rem;
  }
  
  /* Timeline adjustments */
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }
  
  .timeline-item::before {
    left: -40px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Disable autoplay and effects on mobile for Swiper */
  .swiper-slide {
    opacity: 1 !important;
  }
  
  /* Process steps tablet layout */
  .process-step {
    margin-bottom: 1.5rem;
  }
  
  /* Team member adjustments */
  .team-member {
    margin-bottom: 2rem;
  }
  
  /* Service cards tablet */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Timeline tablet - still single column */
  .timeline::before {
    left: 50px;
  }
  
  .timeline-item {
    width: calc(100% - 100px);
    margin-left: 100px !important;
  }
  
  .timeline-item::before {
    left: -60px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Timeline desktop - two columns */
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .timeline-item {
    width: calc(50% - 2rem);
    margin-left: 0 !important;
  }
  
  .timeline-item:nth-child(odd) {
    margin-left: 0;
  }
  
  .timeline-item:nth-child(even) {
    margin-left: calc(50% + 2rem);
  }
  
  .timeline-item::before {
    display: none;
  }
  
  /* Hover effects enabled on desktop */
  .service-card:hover,
  .price-card:hover,
  .feature-item:hover,
  .feature-box:hover,
  .team-member:hover,
  .case-study-card:hover,
  .blog-card:hover,
  .info-card:hover,
  .career-card:hover,
  .element-card:hover {
    transform: translateY(-5px);
  }
  
  .price-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
  }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  /* Hero section on large screens */
  .hero-section h1 {
    font-size: 3.5rem;
  }
  
  .hero-section h2 {
    font-size: 1.75rem;
  }
  
  /* Larger cards spacing */
  .service-card,
  .price-card,
  .case-study-card,
  .blog-card {
    margin-bottom: 2.5rem;
  }
}

/* Extra Extra Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Even larger hero text */
  .hero-section h1 {
    font-size: 4rem;
  }
  
  .hero-section h2 {
    font-size: 2rem;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  /* Reduce hero section height on landscape mobile */
  .hero-section {
    min-height: 70vh;
  }
  
  /* Adjust navbar on landscape */
  .navbar {
    padding: 0.5rem 0;
  }
  
  /* Reduce spacing on landscape mobile */
  .py-5 {
    padding: 2rem 0;
  }
}

/* Swiper responsive settings */
@media (max-width: 767.98px) {
  /* Disable autoplay and effects on mobile as per requirements */
  .swiper {
    --swiper-navigation-size: 24px;
  }
  
  .swiper-slide {
    transition: none !important;
  }
}

/* Print styles */
@media print {
  .navbar,
  .breadcrumbs,
  footer,
  .btn,
  .swiper-pagination {
    display: none !important;
  }
  
  .hero-section {
    background: none !important;
    color: var(--text-dark) !important;
  }
  
  .hero-section::before {
    display: none;
  }
  
  .service-card,
  .price-card,
  .feature-item,
  .feature-box,
  .team-member,
  .case-study-card,
  .blog-card,
  .info-card,
  .career-card,
  .element-card {
    box-shadow: none !important;
    border: 1px solid var(--border-color) !important;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  /* Remove animations for users who prefer reduced motion */
  .service-card,
  .price-card,
  .feature-item,
  .feature-box,
  .team-member,
  .case-study-card,
  .blog-card,
  .info-card,
  .career-card,
  .element-card,
  .btn-primary,
  #gallery img {
    transition: none !important;
  }
  
  .service-card:hover,
  .price-card:hover,
  .feature-item:hover,
  .feature-box:hover,
  .team-member:hover,
  .case-study-card:hover,
  .blog-card:hover,
  .info-card:hover,
  .career-card:hover,
  .element-card:hover,
  .btn-primary:hover,
  #gallery img:hover {
    transform: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --secondary-color: #ff8c00;
    --text-color: #000000;
    --background-color: #ffffff;
    --border-color: #000000;
  }
  
  .service-card,
  .price-card,
  .feature-item,
  .feature-box,
  .team-member,
  .case-study-card,
  .blog-card,
  .info-card,
  .career-card,
  .element-card {
    border: 2px solid var(--border-color) !important;
  }
}

/* Focus improvements for keyboard navigation */
.nav-link:focus,
.btn:focus,
.form-control:focus,
.accordion-button:focus {
  outline: 2px solid var(--primary-color) !important;
  outline-offset: 2px !important;
}

/* Ensure sufficient color contrast */
.text-light {
  color: #555555 !important;
}

/* Make sure images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Additional mobile navigation improvements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 6px var(--shadow-color);
  }
  
  .nav-link {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
} 