/* Hamburg Skill Swap Cafe - Responsive Styles */

/* Mobile First Approach */
/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: var(--font-size-2xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .hero-desc {
    font-size: var(--font-size-base);
  }
  
  .section-title {
    font-size: var(--font-size-xl);
  }
  
  .section-subtitle {
    font-size: var(--font-size-base);
  }
  
  .feature-card,
  .service-card,
  .team-card {
    margin-bottom: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  .navbar-brand {
    font-size: var(--font-size-base) !important;
  }
  
  .service-image {
    height: 150px;
  }
  
  /* Hide autoplay/effects on mobile for Swiper */
  .swiper-wrapper {
    -webkit-transform: translate3d(0px, 0, 0) !important;
    transform: translate3d(0px, 0, 0) !important;
  }
  
  .swiper-slide {
    transition: none !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-image {
    height: 180px;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .service-image {
    height: 200px;
  }
  
  .team-photo {
    width: 200px;
    height: 200px;
  }
  
  /* Enable Swiper effects on larger screens */
  .swiper-slide {
    transition: transform 0.3s ease;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-content {
    padding-right: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .contact-form {
    padding: 4rem;
  }
  
  .feature-card:hover,
  .service-card:hover {
    transform: translateY(-10px);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container-xxl {
    max-width: 1400px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-title {
    font-size: var(--font-size-xl);
    margin-bottom: 0.5rem;
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base);
    margin-bottom: 0.5rem;
  }
  
  .hero-desc {
    font-size: var(--font-size-small);
    margin-bottom: 1rem;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  button {
    display: none !important;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 2rem 0;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black;
    page-break-after: avoid;
  }
  
  .service-card,
  .feature-card,
  .team-card {
    border: 1px solid #ccc;
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-1: #000000;
    --primary-2: #0066cc;
    --primary-3: #cc6600;
    --dark-1: #000000;
    --light-1: #ffffff;
  }
  
  .btn-primary {
    background: #0066cc;
    border: 2px solid #000000;
  }
  
  .form-control {
    border: 2px solid #000000;
  }
}

/* Focus management for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    animation: fadeInUp 0.6s ease forwards;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .navbar-nav {
    text-align: center;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .service-card {
    max-width: 350px;
    margin: 0 auto 2rem;
  }
  
  .team-card {
    max-width: 300px;
    margin: 0 auto 2rem;
  }
}

/* Mobile navigation adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 62, 80, 0.95);
    margin-top: 1rem;
    border-radius: 10px;
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
  font-size: 12px !important;
    text-align: center;
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Ultra-wide screen adjustments */
@media (min-width: 1920px) {
  .container-xxl {
    max-width: 1600px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

/* Accessibility improvements */
@media (max-width: 767.98px) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
  font-size: 12px !important;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Reduced motion for mobile devices */
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  .swiper-wrapper,
  .owl-carousel {
    transform: none !important;
    transition: none !important;
  }
  
  .swiper-slide,
  .owl-item {
    transform: none !important;
    transition: none !important;
  }
}

/* High DPI screen adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-size: cover;
    background-position: center;
  }
  
  .service-image,
  .team-photo,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
} 