/* ==========================================
   RESPONSIVE STYLES - Mobile First Approach
   Bootstrap 5 Compatible Responsive Design
   ========================================== */

/* === SMALL DEVICES (576px and up) === */
@media (min-width: 576px) {
  .container-sm {
    max-width: 540px;
  }
  
  .hero-content {
    padding: 2rem 0;
    padding-top: 250px;
}
  
  .section-title h2 {
    font-size: 2.25rem;
  }
}

/* === MEDIUM DEVICES (768px and up) === */
@media (min-width: 768px) {
  .container-md {
    max-width: 720px;
  }
  
  /* Hero Section */
  #hero {
    padding-top: 120px;
  }
  
  .hero-content {
    padding: 3rem 0;
    padding-top: 250px;
}
  
  /* Navigation */
  .navbar-nav .nav-link {
    padding: 0.75rem 1.25rem !important;
  }
  
  /* Typography */
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  .section-title h2 {
    font-size: 2.75rem;
  }
  
  /* Cards and Components */
  .feature-card,
  .service-card,
  .team-card {
    margin-bottom: 2rem;
  }
  
  /* Process Steps */
  .process-step::after {
    display: block;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Contact */
  .contact-form,
  .contact-info {
    padding: 2.5rem;
  }
}

/* === LARGE DEVICES (992px and up) === */
@media (min-width: 992px) {
  .container-lg {
    max-width: 960px;
  }
  
  /* Typography */
  h1 {
    font-size: 3.5rem;
  }
  
  h2 {
    font-size: 3rem;
  }
  
  .section-title h2 {
    font-size: 3.25rem;
  }
  
  /* Hero Section */
  .hero-content {
    padding: 4rem 0;
    padding-top: 250px;
}
  
  .hero-decorative {
    width: 400px;
    height: 400px;
  }
  
  .hero-decorative::before {
    width: 250px;
    height: 250px;
    top: 75px;
    left: 75px;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Services */
  .service-card {
    transition: all 0.4s ease;
  }
  
  .service-card:hover {
    transform: translateY(-10px);
  }
  
  /* Team Cards */
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  /* Contact */
  .contact-form,
  .contact-info {
    padding: 3.5rem;
  }
}

/* === EXTRA LARGE DEVICES (1200px and up) === */
@media (min-width: 1200px) {
  .container-xl {
    max-width: 1140px;
  }
  
  /* Typography */
  h1 {
    font-size: 4rem;
  }
  
  .section-title h2 {
    font-size: 3.5rem;
  }
  
  /* Hero Section */
  .hero-content {
    padding: 5rem 0;
    padding-top: 250px;
}
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Services Layout */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Team Grid */
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* === EXTRA EXTRA LARGE DEVICES (1400px and up) === */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  /* Hero Section */
  .hero-decorative {
    width: 500px;
    height: 500px;
  }
  
  .hero-decorative::before {
    width: 300px;
    height: 300px;
    top: 100px;
    left: 100px;
  }
  
  /* Typography */
  h1 {
    font-size: 4.5rem;
  }
  
  .section-title h2 {
    font-size: 4rem;
  }
}

/* === MOBILE SPECIFIC STYLES === */
@media (max-width: 767px) {
  /* Disable animations on mobile for performance */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .casestudy-card:hover,
  .career-card:hover,
  .coreinfo-card:hover {
    transform: none;
  }
  
  /* Mobile Navigation */
  .navbar-collapse {
    background: white;
    box-shadow: var(--box-shadow-medium);
    border-radius: 10px;
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding: 1rem !important;
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  /* Mobile Hero */
  #hero {
    min-height: 80vh;
    padding-top: 80px;
    text-align: center;
  }
  
  .hero-content {
    padding: 2rem 0;
    padding-top: 250px;
}
  
  /* Mobile Typography */
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  /* Mobile Sections */
  section {
    padding: 60px 0;
  }
  
  /* Mobile Cards */
  .feature-card,
  .service-card,
  .team-card,
  .review-card,
  .casestudy-card,
  .career-card,
  .coreinfo-card,
  .blog-card {
    margin-bottom: 1.5rem;
  }
  
  /* Mobile Forms */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .contact-info {
    padding: 2rem 1.5rem;
    margin-top: 2rem;
  }
  
  /* Mobile Buttons */
  .btn-primary,
  .btn-outline-primary {
    width: 100%;
    margin-bottom: 1rem;
    padding: 1rem;
    font-size: 1rem;
  }
  
  /* Mobile Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-item {
    height: 250px;
  }
  
  /* Mobile Footer */
  #footer {
    text-align: center;
    padding: 40px 0 20px;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
  
  /* Mobile Process Steps */
  .process-step {
    margin-bottom: 2rem;
  }
  
  .process-step::after {
    display: none;
  }
  
  /* Mobile Timeline */
  .timeline-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  /* Mobile FAQ */
  .faq-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  /* Mobile Team Photos */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Mobile Price Cards */
  .price-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .price-amount {
    font-size: 2.5rem;
  }
}

/* === TABLET SPECIFIC STYLES === */
@media (min-width: 768px) and (max-width: 991px) {
  /* Tablet Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* Tablet Services */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Tablet Team */
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Tablet Process */
  .process-step {
    padding: 2rem 0.5rem;
  }
  
  /* Tablet Typography */
  h1 {
    font-size: 3rem;
  }
  
  .section-title h2 {
    font-size: 2.5rem;
  }
}

/* === PRINT STYLES === */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .navbar,
  #footer,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* === HIGH CONTRAST MODE === */
@media (prefers-contrast: high) {
  :root {
    --primary-sage: #2d5a2d;
    --primary-cream: #ffffff;
    --primary-terracotta: #8b0000;
    --primary-lavender: #4b0082;
    --primary-sage-dark: #1a331a;
  }
  
  .btn-primary {
    border: 2px solid black;
  }
  
  .card,
  .feature-card,
  .service-card {
    border: 1px solid black;
  }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .gallery-item:hover {
    transform: none !important;
  }
}

/* === LANDSCAPE ORIENTATION === */
@media (orientation: landscape) and (max-height: 600px) {
  #hero {
    min-height: 100vh;
    padding-top: 60px;
  }
  
  .hero-content {
    padding: 1rem 0;
    padding-top: 250px;
}
  
  h1 {
    font-size: 2.5rem;
  }
} 

body {
    overflow-x: hidden;
}