/* Responsive Design - Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  :root {
    --font-size-base: 0.9rem;
    --font-size-small: 0.8rem;
    --font-size-large: 1rem;
    --font-size-xl: 1.125rem;
    --font-size-2xl: 1.25rem;
    --font-size-3xl: 1.5rem;
    --font-size-4xl: 1.875rem;
    --section-padding: 3rem 0;
    --card-padding: 1.5rem;
  }
  
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-large);
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .section-subtitle {
    font-size: var(--font-size-large);
  }
  
  .navbar-brand {
    font-size: var(--font-size-large);
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .service-card img {
    height: 150px;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  .hero-section {
    padding-top: 100px;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-small);
  }
  
  .process-step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: var(--font-size-large);
  }
  
  .price-card .price {
    font-size: var(--font-size-2xl);
  }
  
  .page-header {
    padding: 6rem 0 3rem;
  }
  
  .page-section {
    padding: 3rem 0;
  }
  
  .blog-card img {
    height: 150px;
  }
  
  .coreinfo-card i,
  .feature-card i,
  .about-feature i {
    font-size: 2rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  :root {
    --font-size-base: 0.95rem;
    --font-size-small: 0.85rem;
    --font-size-large: 1.05rem;
    --font-size-xl: 1.2rem;
    --font-size-2xl: 1.375rem;
    --font-size-3xl: 1.625rem;
    --font-size-4xl: 2rem;
    --section-padding: 4rem 0;
    --card-padding: 1.75rem;
  }
  
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item img {
    height: 220px;
  }
  
  .service-card img {
    height: 180px;
  }
  
  .team-member img {
    width: 130px;
    height: 130px;
  }
  
  .hero-section {
    padding-top: 90px;
  }
  
  .page-header {
    padding: 7rem 0 3.5rem;
  }
  
  .page-section {
    padding: 3.5rem 0;
  }
  
  .blog-card img {
    height: 175px;
  }
  
  .coreinfo-card i,
  .feature-card i,
  .about-feature i {
    font-size: 2.5rem;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  .service-card img {
    height: 200px;
  }
  
  .hero-section {
    padding-top: 80px;
  }
  
  .team-member img {
    width: 140px;
    height: 140px;
  }
  
  .blog-card img {
    height: 200px;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    color: var(--primary-1-dark);
    text-align: center;
    margin: 0.25rem 0;
  }
  
  .navbar-nav .nav-link:hover {
    color: var(--primary-1);
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .service-card img {
    height: 220px;
  }
  
  .team-member img {
    width: 150px;
    height: 150px;
  }
  
  .blog-card img {
    height: 220px;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .gallery-item img {
    height: 260px;
  }
  
  .service-card img {
    height: 240px;
  }
  
  .blog-card img {
    height: 240px;
  }
}

/* Navigation Responsive Styles */
@media (max-width: 991.98px) {
  .navbar-toggler {
    border: 2px solid white;
    color: white;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
  }
  
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    color: var(--primary-1-dark);
    text-align: center;
    margin: 0.25rem 0;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
  }
  
  .navbar-nav .nav-link:hover {
    color: white;
    background: var(--primary-1);
  }
}

/* Hero Section Responsive */
@media (max-width: 991.98px) {
  .hero-section {
    text-align: center;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
}

/* Form Responsive */
@media (max-width: 767.98px) {
  .contact-form .row {
    margin: 0;
  }
  
  .contact-form .col-md-6 {
    padding: 0;
    margin-bottom: 1rem;
  }
  
  .form-control {
    padding: 0.6rem;
    font-size: var(--font-size-small);
  }
  
  .btn-primary {
    width: 100%;
    padding: 0.75rem;
  }
}

/* Cards Responsive Spacing */
@media (max-width: 575.98px) {
  .service-card,
  .team-member,
  .review-card,
  .price-card,
  .blog-card,
  .casestudy-card,
  .timeline-item,
  .career-card,
  .coreinfo-card,
  .feature-card,
  .about-feature {
    margin-bottom: 1.5rem;
  }
}

/* FAQ Responsive */
@media (max-width: 575.98px) {
  .faq-question {
    font-size: var(--font-size-small);
    padding: 0.75rem;
  }
  
  .faq-answer {
    padding: 0.75rem;
    font-size: var(--font-size-small);
  }
}

/* Footer Responsive */
@media (max-width: 767.98px) {
  footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-content {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
  
  .footer-section h4 {
    font-size: var(--font-size-large);
  }
  
  .copyright {
    font-size: var(--font-size-small);
  }
}

/* Process Steps Responsive */
@media (max-width: 767.98px) {
  .process-step {
    margin-bottom: 1.5rem;
  }
  
  .process-step-number {
    margin-bottom: 0.75rem;
  }
}

/* Price Cards Responsive */
@media (max-width: 575.98px) {
  .price-card {
    padding: 1.5rem;
  }
  
  .price-card .features {
    margin-bottom: 1.5rem;
  }
  
  .price-card .features li {
    font-size: var(--font-size-small);
  }
}

/* Page Header Responsive */
@media (max-width: 575.98px) {
  .page-header h1 {
    font-size: var(--font-size-2xl);
  }
  
  .page-header h2 {
    font-size: var(--font-size-xl);
  }
}

/* Timeline Responsive */
@media (max-width: 575.98px) {
  .timeline-item::before {
    left: -5px;
    width: 10px;
    height: 10px;
    top: 15px;
  }
}

/* Career Cards Responsive */
@media (max-width: 575.98px) {
  .career-title {
    font-size: var(--font-size-large);
  }
  
  .career-role {
    font-size: var(--font-size-small);
  }
}

/* Blog Cards Responsive */
@media (max-width: 575.98px) {
  .blog-card-content {
    padding: 1rem;
  }
  
  .blog-card-title {
    font-size: var(--font-size-large);
  }
  
  .blog-card-excerpt {
    font-size: var(--font-size-small);
  }
}

/* Case Study Cards Responsive */
@media (max-width: 575.98px) {
  .casestudy-title {
    font-size: var(--font-size-large);
  }
  
  .casestudy-card {
    padding: 1.5rem;
  }
}

/* Core Info Cards Responsive */
@media (max-width: 575.98px) {
  .coreinfo-title {
    font-size: var(--font-size-large);
  }
  
  .coreinfo-card {
    padding: 1.5rem;
  }
}

/* Feature Cards Responsive */
@media (max-width: 575.98px) {
  .feature-name {
    font-size: var(--font-size-large);
  }
  
  .feature-card {
    padding: 1.5rem;
  }
}

/* About Features Responsive */
@media (max-width: 575.98px) {
  .about-feature {
    padding: 1.5rem;
  }
}

/* Breadcrumb Responsive */
@media (max-width: 575.98px) {
  .breadcrumb-item img {
    width: 20px;
    height: 20px;
  }
}

/* Space Page Responsive */
@media (max-width: 575.98px) {
  #space {
    min-height: 60vh;
    font-size: var(--font-size-xl);
    padding: 2rem;
  }
}

/* Print Styles */
@media print {
  * {
    background: transparent;
    color: #000;
    box-shadow: none;
    text-shadow: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  .hero-section,
  .gallery-section,
  .reviews-section,
  .team-section {
    display: none;
  }
  
  .contact-form,
  .services-section,
  .about-section,
  .faq-section {
    page-break-inside: avoid;
  }
  
  a {
    text-decoration: underline;
  }
  
  .btn-primary {
    border: 2px solid #000;
    background: transparent;
    color: #000;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-1: #E60026;
    --primary-2: #00B4A6;
    --primary-3: #0066CC;
    --primary-4: #4CAF50;
    --primary-5: #FF9800;
    --primary-1-dark: #B30000;
    --primary-2-dark: #008A7B;
    --primary-3-dark: #0052A3;
    --primary-4-dark: #2E7D32;
    --primary-5-dark: #E65100;
  }
  
  .form-control {
    border: 3px solid #000;
  }
  
  .form-control:focus {
    border-color: var(--primary-1);
    box-shadow: 0 0 0 0.25rem rgba(230, 0, 38, 0.5);
  }
  
  .btn-primary {
    border: 3px solid #000;
  }
  
  .card,
  .service-card,
  .team-member,
  .review-card,
  .price-card,
  .blog-card,
  .casestudy-card,
  .timeline-item,
  .career-card,
  .coreinfo-card,
  .feature-card,
  .about-feature {
    border: 2px solid #000;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero-section::before,
  .gallery-item img,
  .service-card,
  .team-member,
  .review-card,
  .price-card,
  .blog-card,
  .casestudy-card,
  .timeline-item,
  .career-card,
  .coreinfo-card,
  .feature-card,
  .about-feature,
  .faq-item,
  .btn-primary,
  .navbar-nav .nav-link {
    transition: none;
    transform: none;
  }
  
  .hero-section::before {
    animation: none;
  }
  
  .animate-fade-in {
    animation: none;
  }
}

/* Dark Mode Support (if needed in future) */

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding-top: 60px;
  }
  
  .hero-title {
    font-size: var(--font-size-2xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-large);
  }
  
  .section-padding {
    padding: 3rem 0;
  }
}

/* Portrait Orientation */
@media (orientation: portrait) and (max-width: 768px) {
  .hero-section {
    padding-top: 100px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card img {
    height: 180px;
  }
}

/* Ultra-wide Screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .service-card img {
    height: 260px;
  }
  
  .team-member img {
    width: 180px;
    height: 180px;
  }
}

/* Hover States for Touch Devices */
@media (hover: none) {
  .service-card:hover,
  .team-member:hover,
  .review-card:hover,
  .price-card:hover,
  .blog-card:hover,
  .casestudy-card:hover,
  .timeline-item:hover,
  .career-card:hover,
  .coreinfo-card:hover,
  .feature-card:hover,
  .about-feature:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .navbar-nav .nav-link:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
  *:focus {
    outline: 3px solid var(--primary-1);
    outline-offset: 2px;
  }
  
  .btn-primary:focus {
    outline: 3px solid var(--primary-5);
    outline-offset: 2px;
  }
} 

.hero-content {
    padding-top: 225px;
}