/* Additional responsive design improvements - Updated with specific color palette */

/* Ensure proper spacing on smaller screens */
@media screen and (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .about-content, 
  .contact-content {
    gap: 2rem;
  }
  
  .footer-content {
    gap: 2rem;
  }
  
  /* Improve mobile navigation */
  .nav-links {
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
  }
  
  /* Adjust character cards for better mobile display */
  .character-card {
    max-width: 350px;
    margin: 0 auto;
  }
  
  /* Adjust map cards for better mobile display */
  .map-card {
    max-width: 350px;
    margin: 0 auto;
  }
  
  /* Improve form elements on mobile */
  .form-input, 
  .form-textarea {
    padding: 0.7rem;
  }
  
  /* Adjust timeline for mobile */
  [style*="timeline"] [style*="flex-end"],
  [style*="timeline"] [style*="flex-start"] {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
}

/* Small mobile screens */
@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .section-title {
    margin-bottom: 1.5rem;
  }
  
  .character-img {
    height: 250px;
  }
  
  /* Adjust team grid for very small screens */
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  /* Ensure footer is readable on small screens */
  .footer-bottom p {
    font-size: 0.8rem;
  }
}

/* Tablet-specific adjustments */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .characters-grid,
  .maps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Ensure proper display on large screens */
@media screen and (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 6rem;
  }
  
  .hero-subtitle {
    font-size: 1.8rem;
  }
}

/* Touch device optimizations */
@media (hover: none) {
  .btn:hover {
    transform: none;
    box-shadow: none;
  }
  
  .character-card:hover {
    transform: none;
  }
  
  .map-card:hover .map-img {
    transform: none;
  }
  
  .map-info {
    transform: translateY(0);
  }
  
  .nav-links a::after {
    display: none;
  }
}

/* Print styles */
@media print {
  header, 
  footer, 
  .hero, 
  .contact-form,
  .btn {
    display: none;
  }
  
  body {
    background-color: white;
    color: black;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black;
  }
  
  a {
    color: #4A1E7F;
    text-decoration: underline;
  }
  
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }
}
