/* Mobile Responsive Styles */

/* Tablets and below */
@media screen and (max-width: 1024px) {
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
}

/* Mobile devices */
@media screen and (max-width: 768px) {
  /* Typography */
  .hero .title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero .subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  /* Navigation */
  .navbar-menu {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: none;
  }
  
  .navbar-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  /* Hero section */
  .hero {
    min-height: 60vh;
    background-attachment: scroll;
  }
  
  .hero-body {
    padding: 2rem 1rem;
    text-align: center;
  }
  
  /* Forms */
  .bio-form {
    padding: 1.5rem;
    margin: 1rem 0;
  }
  
  .bio-input, .bio-textarea, .bio-select {
    padding: 0.7rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .bio-button {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
  }
  
  /* Content sections */
  .content-section {
    padding: 2rem 0;
  }
  
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .service-card h3 {
    font-size: 1.3rem;
  }
  
  /* Gallery */
  .gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Contact info */
  .contact-info {
    padding: 1.5rem;
  }
  
  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  
  .contact-item i {
    margin-bottom: 0.5rem;
    margin-right: 0;
  }
  
  /* Social links */
  .social-links {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .social-link {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  
  /* Company info */
  .company-info {
    padding: 1.5rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer .columns {
    flex-direction: column;
  }
  
  .footer .column {
    margin-bottom: 1.5rem;
  }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
  /* Typography */
  .hero .title {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  /* Spacing */
  .content-section {
    padding: 1.5rem 0;
  }
  
  .bio-form, .service-card, .contact-info, .company-info {
    padding: 1rem;
    margin: 0.5rem 0;
  }
  
  /* Buttons */
  .btn-cta {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Images */
  .gallery-item img {
    height: 180px;
  }
  
  /* Hero */
  .hero-body {
    padding: 1.5rem 0.5rem;
  }
}

/* Extra small devices */
@media screen and (max-width: 360px) {
  .hero .title {
    font-size: 1.6rem;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .bio-form, .service-card {
    padding: 0.8rem;
  }
  
  .gallery-item img {
    height: 160px;
  }
}

/* Landscape mobile orientation */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
  }
  
  .hero-body {
    padding: 1rem;
  }
  
  .hero .title {
    font-size: 1.8rem;
  }
  
  .hero .subtitle {
    font-size: 0.9rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize images and icons for retina displays */
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Touch-friendly improvements */
@media (pointer: coarse) {
  /* Larger touch targets */
  .navbar-item, .navbar-link {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  
  .bio-button, .btn-cta {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .social-link {
    min-width: 48px;
    min-height: 48px;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero {
    background-attachment: scroll;
  }
  
  .service-card:hover,
  .gallery-item:hover,
  .bio-button:hover,
  .btn-cta:hover,
  .social-link:hover {
    transform: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --dark-color: #e0e0e0;
    --light-color: #2a2a2a;
    --white-color: #1a1a1a;
  }
  
  body {
    background-color: #1a1a1a;
    color: #e0e0e0;
  }
  
  .bio-form, .service-card, .contact-info, .company-info {
    background-color: #2a2a2a;
    color: #e0e0e0;
  }
  
  .bio-input, .bio-textarea, .bio-select {
    background-color: #333;
    border-color: #555;
    color: #e0e0e0;
  }
  
  .bio-input:focus, .bio-textarea:focus, .bio-select:focus {
    border-color: var(--primary-color);
    background-color: #2a2a2a;
  }
}

/* Print styles */
@media print {
  .navbar, .footer, .social-links, .bio-form {
    display: none !important;
  }
  
  .hero {
    background: none !important;
    color: #000 !important;
    min-height: auto !important;
  }
  
  .content-section {
    padding: 1rem 0 !important;
  }
  
  .service-card, .contact-info, .company-info {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}