/* Responsive Design - Mobile First Approach */

/* Large Screens (Desktop) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Medium Screens (Tablet) */
@media (max-width: 991.98px) {
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  #hero-title-1 {
    font-size: 2.5rem;
  }
  
  #hero-subtitle-1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-section {
    height: 80vh;
    text-align: center;
  }
  
  .service-card img {
    height: 180px;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
}

/* Small Screens (Mobile Landscape) */
@media (max-width: 767.98px) {
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  #hero-title-1 {
    font-size: 2rem;
  }
  
  #hero-subtitle-1 {
    font-size: 1.3rem;
  }
  
  #hero-desc-1 {
    font-size: 1rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .hero-section {
    height: 70vh;
    padding: 2rem 0;
  }
  
  .hero-section::before {
    display: none;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .feature-card, .service-card, .element-card {
    margin-bottom: 2rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .service-card img {
    height: 160px;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  /* Disable autoplay and effects on mobile for Swiper */
  .swiper {
    --swiper-autoplay-delay: 0;
  }
  
  .swiper-slide {
    transition: none !important;
  }
}

/* Extra Small Screens (Mobile Portrait) */
@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  #hero-title-1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }
  
  #hero-subtitle-1 {
    font-size: 1.2rem;
  }
  
  #hero-desc-1 {
    font-size: 0.95rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  h4 {
    font-size: 1.1rem;
  }
  
  p {
    font-size: 0.95rem;
  }
  
  .hero-section {
    height: 60vh;
    padding: 1.5rem 0;
  }
  
  section {
    padding: 2.5rem 0;
  }
  
  .feature-card, .service-card, .element-card, .team-member {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .service-card img {
    height: 140px;
  }
  
  .team-member img {
    width: 80px;
    height: 80px;
  }
  
  .btn-primary {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }
  
  /* Stack navigation items */
  .navbar-nav {
    text-align: center;
    margin-top: 1rem;
  }
  
  .nav-item {
    margin: 0.3rem 0;
  }
  
  /* Adjust spacing for mobile */
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  
  .col-md-6, .col-lg-4, .col-lg-3, .col-lg-6 {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Ultra Small Screens */
@media (max-width: 320px) {
  .navbar-brand {
    font-size: 1rem;
  }
  
  #hero-title-1 {
    font-size: 1.5rem;
  }
  
  #hero-subtitle-1 {
    font-size: 1.1rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  h3 {
    font-size: 1.1rem;
  }
  
  .hero-section {
    height: 50vh;
  }
  
  .feature-card, .service-card, .element-card, .team-member {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 1rem;
  }
  
  .service-card img {
    height: 120px;
  }
}

/* Print Styles */
@media print {
  .navbar, .btn, .contact-form, footer {
    display: none !important;
  }
  
  .hero-section {
    height: auto;
    padding: 2rem 0;
    background: none !important;
    color: black !important;
  }
  
  section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black !important;
    break-after: avoid;
  }
  
  .feature-card, .service-card, .element-card {
    border: 1px solid #ddd;
    box-shadow: none;
    background: white !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-orange: #FF6600;
    --primary-green: #009900;
    --primary-blue: #0066CC;
    --primary-yellow: #FFCC00;
    --primary-red: #CC0000;
  }
  
  .navbar, .hero-section, #contacts, footer {
    background: var(--black) !important;
    color: var(--white) !important;
  }
  
  .feature-card, .service-card, .element-card, .team-member, .contact-form {
    border: 2px solid var(--dark-gray);
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #1a1a1a;
    --light-gray: #2d2d2d;
    --gray: #a0a0a0;
    --dark-gray: #e0e0e0;
    --black: #ffffff;
  }
  
  body {
  overflow-x: hidden;
    background-color: var(--white);
    color: var(--dark-gray);
  }
  
  .feature-card, .service-card, .element-card, .team-member, .contact-form {
    background-color: var(--light-gray);
    color: var(--dark-gray);
  }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-section::before {
    animation: none;
    transform: none;
  }
  
  .feature-card:hover, .service-card:hover, .element-card:hover, .team-member:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  .nav-link:hover {
    transform: none;
  }
  
  /* Disable Swiper autoplay and effects */
  .swiper-slide {
    transition: none !important;
  }
  
  .swiper {
    --swiper-autoplay-delay: 0;
  }
} 