/* Mobile First Responsive Design */

/* All animations and transitions disabled globally in responsive design */
* {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-xl);
  }
  
  .section-title {
    font-size: var(--font-size-3xl);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .navbar-nav {
    flex-direction: row;
  }
  
  .navbar-nav .nav-link {
    margin: 0 var(--spacing-sm);
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    padding: 0 var(--spacing-lg);
  }
  
  .hero-content {
  padding-top: 50px !important;
    max-width: 600px;
  }
  
  .service-card {
    margin-bottom: var(--spacing-lg);
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  .contact-form {
    padding: var(--spacing-2xl);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-title {
    font-size: 3.64rem;
  }
  
  .hero-subtitle {
    font-size: var(--font-size-2xl);
  }
  
  .hero-desc {
    font-size: var(--font-size-xl);
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .section-title {
    font-size: 2.54rem;
  }
  
  .service-card {
    padding: var(--spacing-2xl);
  }
  
  .price-card {
    padding: var(--spacing-2xl);
  }
  
  .team-photo {
    width: 200px;
    height: 200px;
  }
  
  .gallery-item img {
    height: 300px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    padding: 0 var(--spacing-2xl);
  }
  
  .hero-content {
  padding-top: 50px !important;
    max-width: 700px;
  }
  
  .section-desc {
    max-width: 700px;
  }
  
  .service-card {
    padding: 3rem;
  }
  
  .contact-form {
    padding: 3rem;
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
}

/* Mobile devices (phones, up to 767px) */
@media (max-width: 767px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 80vh;
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
  }
  
  .hero-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-sm);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
  }
  
  .hero-desc {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-lg);
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
  }
  
  .section-subtitle {
    font-size: var(--font-size-sm);
  }
  
  .service-card {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
  }
  
  .service-icon {
    font-size: 2.62rem;
  }
  
  .service-price {
    font-size: var(--font-size-xl);
  }
  
  .team-card {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .review-card {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
  }
  
  .review-card::before {
    font-size: 3rem;
    top: -5px;
    left: var(--spacing-md);
  }
  
  .faq-question {
    padding: var(--spacing-md);
    font-size: var(--font-size-sm);
  }
  
  .faq-answer {
    padding: var(--spacing-md);
    font-size: var(--font-size-sm);
  }
  
  .contact-form {
    padding: var(--spacing-lg);
    margin: var(--spacing-md);
  }
  
  .price-card {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
  }
  
  .price-value {
    font-size: var(--font-size-3xl);
  }
  
  .gallery-item {
    margin-bottom: var(--spacing-md);
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .blog-card {
    margin-bottom: var(--spacing-md);
  }
  
  .footer {
    padding: var(--spacing-xl) 0 var(--spacing-md);
  }
  
  .footer .row > div {
    margin-bottom: var(--spacing-lg);
  }
  
  /* Mobile Navigation */
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--border-radius-lg);
    margin-top: var(--spacing-sm);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
  }
  
  .navbar-nav .nav-link {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-gray-light);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  /* Mobile Buttons */
  .btn {
    width: 100%;
    margin-bottom: var(--spacing-sm);
  }
  
  .btn:last-child {
    margin-bottom: 0;
  }
  
  /* Mobile Cards */
  .card {
    margin-bottom: var(--spacing-md);
  }
  
  .card-body {
    padding: var(--spacing-md);
  }
  
  /* Mobile Form */
  .form-control {
    margin-bottom: var(--spacing-md);
  }
  
  .form-label {
    font-size: var(--font-size-sm);
  }
}

/* Very small devices (phones in portrait, up to 575px) */
@media (max-width: 575px) {
  .hero-title {
    font-size: var(--font-size-2xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base);
  }
  
  .section-title {
    font-size: var(--font-size-xl);
  }
  
  .service-card {
    padding: var(--spacing-md);
  }
  
  .service-icon {
    font-size: 2rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .contact-form {
    padding: var(--spacing-md);
    margin: var(--spacing-sm);
  }
  
  .price-card {
    padding: var(--spacing-md);
  }
  
  .price-value {
    font-size: var(--font-size-2xl);
  }
  
  .review-card {
    padding: var(--spacing-md);
  }
  
  .review-card::before {
    font-size: 2.64rem;
  }
  
  .gallery-item img {
    height: 180px;
  }
  
  /* Very small mobile adjustments */
  .container-fluid {
    padding: 0 var(--spacing-sm);
  }
  
  .blob-1, .blob-2 {
    display: none;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 100vh;
    padding: var(--spacing-md) 0;
  }
  
  .hero-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-xs);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-sm);
  }
  
  .hero-desc {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
  }
}

/* Print styles */
@media print {
  .navbar,
  .btn,
  .footer,
  .blob,
  .gallery-item:hover,
  .card:hover,
  .service-card:hover,
  .team-card:hover {
    display: none !important;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: auto;
    background: none !important;
    color: var(--color-black) !important;
  }
  
  .section {
    padding: var(--spacing-md) 0;
  }
  
  * {
    color: var(--color-black) !important;
    background: var(--color-white) !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --color-primary-1: #0027f2;
    --color-primary-2: #7f0098;
    --color-primary-3: #069fff;
    --color-primary-4: #f9000d;
    --color-primary-5: #eb4f00;
    --color-gray-medium: #000000;
    --color-gray-dark: #000000;
  }
  
  .card,
  .service-card,
  .team-card,
  .price-card,
  .review-card,
  .faq-item,
  .contact-form {
    border: 2px solid var(--color-black);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-section::before,
  .blob,
  .gallery-item:hover,
  .card:hover,
  .service-card:hover,
  .team-card:hover,
  .price-card:hover,
  .btn:hover {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
  
  .fade-in,
  .slide-in-left,
  .slide-in-right {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus,
.faq-question:focus {
  outline: 3px solid var(--color-primary-1);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-primary-1);
  color: var(--color-white);
  padding: 8px;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

/* Grid adjustments for different screen sizes */
@media (max-width: 1199px) {
  .col-xl-2 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 991px) {
  .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: var(--spacing-lg);
  }
  
  .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: var(--spacing-lg);
  }
}

@media (max-width: 767px) {
  .col-md-6,
  .col-lg-4,
  .col-lg-3,
  .col-xl-2 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: var(--spacing-md);
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .card,
  .service-card,
  .team-card,
  .price-card,
  .gallery-item,
  .faq-question {
    transform: none !important;
  }
  
  .btn {
    padding: var(--spacing-md) var(--spacing-lg);
  }
  
  .nav-link,
  .faq-question {
    padding: var(--spacing-md);
  }
} 