/* =============================================================================
   SaaS Social Media Trend Analysis Template - Responsive Styles
   Template: 190 - Mobile First Responsive Design
   ============================================================================= */

/* Mobile First Base (up to 575px) */
.hero-content h1 {
  font-size: 2rem;
}

.hero-content .lead {
  font-size: 1.1rem;
}

.section-header h2 {
  font-size: 1.75rem;
}

.card-body {
  padding: 1.5rem;
    overflow-x: hidden;
}

.btn {
  padding: 0.625rem 1.5rem;
  font-size: 0.95rem;
}

.gallery-grid {
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

.gallery-overlay {
	font-size: 0.9rem;
	padding: 0.75rem;
}

.team-photo {
	width: 100px;
	height: 100px;
}

.case-study-card .card-body img {
	max-height: 150px;
}

.navbar-brand {
  font-size: 1rem;
}

/* No animations on mobile for better performance */
@media (max-width: 767px) {
	.card:hover,
	.btn:hover,
	.case-study-card:hover {
		transform: none;
		box-shadow: var(--shadow);
	}
	
	.price-card.featured {
		transform: none;
	}
	
	.gallery-item:hover img {
		transform: none;
	}
	
	.gallery-item:hover .gallery-overlay {
		transform: translateY(0);
	}
	
	.gallery-overlay {
		transform: translateY(0);
		background: rgba(0, 0, 0, 0.7);
	}
	
	* {
		transition-duration: 0.01ms !important;
	}
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .hero-content .lead {
    font-size: 1.15rem;
  }
  
  	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}
	
	.team-photo {
		width: 110px;
		height: 110px;
	}
	
	.case-study-card .card-body img {
		max-height: 180px;
	}
  
  .card-body {
    padding: 1.75rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content .lead {
    font-size: 1.2rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .navbar-brand {
    font-size: 1.125rem;
  }
  
  .card-body {
    padding: 2rem;
  }
  
  .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
  }
  
  	.gallery-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	
	.gallery-overlay {
		font-size: 1rem;
		padding: 0.875rem;
	}
	
	.case-study-card .card-body img {
		max-height: 200px;
	}
  
  /* Enable hover effects on tablet and up */
  .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }
  
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
  
  .case-study-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-content h1 {
    font-size: var(--font-size-3xl);
  }
  
  .hero-content .lead {
    font-size: 1.25rem;
  }
  
  .section-header h2 {
    font-size: var(--font-size-2xl);
  }
  
  	.gallery-grid {
		grid-template-columns: repeat(4, 1fr);
	}
	
	.gallery-overlay {
		font-size: 1.1rem;
		padding: 1rem;
	}
  
  /* Full hover effects on desktop */
  .price-card.featured {
    transform: scale(1.05);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl {
    max-width: 1140px;
  }
  
  	.gallery-grid {
		grid-template-columns: repeat(5, 1fr);
		gap: 1.25rem;
	}
	
	.gallery-overlay {
		font-size: 1.2rem;
		padding: 1.25rem;
	}
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1320px;
  }
}

/* Landscape Phone Adjustments */
@media (max-width: 767px) and (orientation: landscape) {
  #hero {
    min-height: 70vh;
  }
  
  .hero-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .navbar-collapse {
    max-height: 50vh;
    overflow-y: auto;
  }
}

/* Portrait Tablet Adjustments */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-content {
    text-align: center;
  }
  
  .team-member,
  .feature-item,
  .process-step {
    margin-bottom: 2rem;
  }
}

/* Navigation Responsive Styles */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Form Responsive Styles */
@media (max-width: 767px) {
  .form-control {
    padding: 0.875rem 0.75rem;
    font-size: 1rem; /* Prevent zoom on iOS */
  }
  
  .btn {
    width: 100%;
    margin-top: 0.5rem;
  }
  
  .contact-info {
    text-align: center;
    margin-top: 2rem;
  }
}

/* Card Responsive Adjustments */
@media (max-width: 575px) {
  .card {
    margin-bottom: 1.5rem;
  }
  
  	.service-icon,
	.feature-icon,
	.team-photo {
		width: 56px;
		height: 56px;
		font-size: 1.25rem;
	}
	
	.gallery-grid {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}
	
	.gallery-overlay {
		font-size: 0.85rem;
		padding: 0.5rem;
	}
	
	.case-study-card .card-body img {
		max-height: 120px;
	}
  
  .process-number {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }
}

/* Price Card Responsive */
@media (max-width: 991px) {
  .price-card {
    margin-bottom: 2rem;
  }
  
  .price-card.featured {
    transform: none;
    border: 2px solid var(--color-primary);
  }
}

/* Footer Responsive */
@media (max-width: 767px) {
  #footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
  
  .footer-section:last-child {
    margin-bottom: 0;
  }
}

/* Section Spacing Adjustments */
@media (max-width: 767px) {
  section {
    padding: 3rem 0;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  section {
    padding: 4rem 0;
  }
}

/* Hero Section Responsive */
@media (max-width: 991px) {
  .hero-decorative {
    display: none; /* Hide decorative elements on smaller screens */
  }
}

/* Team Grid Responsive */
@media (max-width: 767px) {
  .team-member {
    margin-bottom: 2.5rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .team-member {
    margin-bottom: 2rem;
  }
}

/* FAQ Responsive */
@media (max-width: 767px) {
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
}

/* Process Steps Responsive */
@media (max-width: 991px) {
  .process-step {
    margin-bottom: 2rem;
  }
  
  .process-step:last-child {
    margin-bottom: 0;
  }
}

/* Case Studies Responsive */
@media (max-width: 767px) {
  .case-study-card {
    margin-bottom: 1.5rem;
  }
}

/* Reviews Responsive */
@media (max-width: 767px) {
  .review-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
}

/* Typography Responsive Fine-tuning */
@media (max-width: 575px) {
  h1, .h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  h2, .h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  h3, .h3 {
    font-size: 1.25rem;
    line-height: 1.4;
  }
  
  .price-value {
    font-size: 2rem;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px; /* Touch-friendly button size */
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .form-control {
    min-height: 44px;
  }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-icon,
  .feature-icon,
  .team-photo,
  .process-number {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
} 