/*--------------------------------------------------------------
# Responsive Design - Mobile, Tablet, Desktop
# Breakpoints:
# - Mobile/Smartphone: < 576px
# - Small Tablet: 576px - 767px
# - Tablet: 768px - 991px
# - Desktop: 992px - 1199px
# - Large Desktop: >= 1200px
--------------------------------------------------------------*/

/* Ensure all images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Ensure containers are responsive */
.container,
.container-fluid {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}

/*--------------------------------------------------------------
# Mobile First - Base Styles (Mobile < 576px)
--------------------------------------------------------------*/

/* Extra Small Devices (phones, < 576px) */
@media (max-width: 575.98px) {
  /* Hero Section */
  .hero {
    min-height: auto;
    padding: 80px 0 60px 0;
  }

  .hero .container {
    min-height: auto;
  }

  .hero .row {
    flex-direction: column-reverse;
  }

  .hero-title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 15px;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 25px;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    justify-content: center;
  }

  .hero .btn-get-started,
  .hero .btn-watch-video {
    width: 100%;
    padding: 12px 25px;
    font-size: 14px;
  }

  .hero-image-wrapper {
    margin-bottom: 30px;
  }

  .hero-content-image {
    max-width: 100%;
  }

  /* Header */
  .header {
    padding: 12px 0;
  }

  .header .logo img {
    max-height: 30px;
  }

  .header .cta-btn {
    padding: 6px 12px;
    font-size: 12px;
    margin: 0 5px 0 0;
  }

  /* About Section */
  .about {
    padding: 60px 0;
  }

  .about h3 {
    font-size: 28px;
  }

  .about img {
    margin-bottom: 20px;
  }

  /* Services Section */
  .services {
    padding: 60px 0;
  }

  .services .details {
    padding: 40px 20px 30px 20px;
    margin: -60px 10px 0 10px;
  }

  .services .details .icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
    top: -30px;
    left: calc(50% - 30px);
  }

  .services .details h3 {
    font-size: 20px;
  }

  /* Section Titles */
  .section-title p {
    font-size: 24px;
  }

  /* Portfolio */
  .portfolio {
    padding: 60px 0;
  }

  .portfolio .portfolio-filters {
    flex-wrap: wrap;
    gap: 10px;
  }

  .portfolio .portfolio-filters li {
    padding: 8px 16px;
    font-size: 13px;
  }

  /* Contact Section */
  .contact {
    padding: 60px 0;
  }

  .contact .info-item {
    padding: 20px;
    margin-bottom: 20px;
  }

  /* Footer */
  .footer {
    padding: 40px 0 20px 0;
    text-align: center;
  }

  .footer .footer-links {
    margin-bottom: 20px;
  }

  /* Why Choose Us, Vision & Mission, Values, Social Impact */
  .why-choose-title,
  .vision-mission-title,
  .values-title,
  .social-impact-title {
    font-size: 28px;
  }

  .why-choose-intro,
  .vision-mission-intro,
  .values-intro,
  .social-impact-intro {
    font-size: 14px;
  }

  .why-choose-item,
  .vision-mission-card,
  .value-item,
  .social-impact-item {
    padding: 20px;
  }

  .why-choose-icon,
  .vision-mission-icon,
  .value-icon,
  .social-impact-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  /* Container adjustments */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Grid adjustments for mobile */
  .row {
    margin-left: -15px;
    margin-right: -15px;
  }

  .row > * {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Testimonials */
  .testimonials {
    padding: 60px 0;
  }

  .testimonials .testimonial-item {
    padding: 20px;
  }

  /* Clients */
  .clients {
    padding: 40px 0;
  }

  .clients .client-logo {
    padding: 15px;
  }

  /* Contact Form */
  .contact .php-email-form {
    padding: 20px;
  }

  .contact .php-email-form input,
  .contact .php-email-form textarea {
    padding: 12px 15px;
    font-size: 14px;
  }

  /* Features Tabs */
  .features .nav-link {
    padding: 15px;
    font-size: 14px;
  }

  .features .nav-link i {
    font-size: 24px;
  }

  .features .nav-link h4 {
    font-size: 16px;
  }
}

/*--------------------------------------------------------------
# Small Devices (landscape phones, >= 576px)
--------------------------------------------------------------*/
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero {
    padding: 80px 0;
  }

  .hero .row {
    flex-direction: column-reverse;
  }

  .hero-title {
    font-size: 42px;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 18px;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image-wrapper {
    margin-bottom: 30px;
  }

  .about h3 {
    font-size: 32px;
  }

  .section-title p {
    font-size: 28px;
  }

  .services .details {
    padding: 50px 25px 35px 25px;
  }
}

/*--------------------------------------------------------------
# Medium Devices (tablets, >= 768px)
--------------------------------------------------------------*/
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 52px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .about h3 {
    font-size: 34px;
  }

  .section-title p {
    font-size: 32px;
  }

  /* Services - 2 columns on tablet */
  .services .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  /* Portfolio - 2 columns on tablet */
  .portfolio .portfolio-container {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Why Choose Us, Values - 2 columns */
  .why-choose-wrapper,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*--------------------------------------------------------------
# Large Devices (desktops, >= 992px)
--------------------------------------------------------------*/
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 58px;
  }

  .hero-subtitle {
    font-size: 21px;
  }

  /* Services - 3 columns */
  .services .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  /* Portfolio - 3 columns */
  .portfolio .portfolio-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*--------------------------------------------------------------
# Extra Large Devices (large desktops, >= 1200px)
--------------------------------------------------------------*/
@media (min-width: 1200px) {
  .hero-title {
    font-size: 64px;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  /* Services - Full width with proper spacing */
  .services .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  /* Portfolio - 4 columns on large screens */
  .portfolio .portfolio-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/*--------------------------------------------------------------
# Landscape Orientation (Mobile & Tablet)
--------------------------------------------------------------*/
@media (max-width: 991.98px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding: 40px 0;
  }

  .hero-title {
    font-size: 36px;
    margin-bottom: 10px;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }
}

/*--------------------------------------------------------------
# Touch Devices Optimizations
--------------------------------------------------------------*/
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn-get-started,
  .btn-watch-video,
  .cta-btn,
  .btn-hover {
    min-height: 44px;
    min-width: 44px;
  }

  /* Remove hover effects on touch devices */
  .services .service-item:hover,
  .portfolio .portfolio-item:hover {
    transform: none;
  }
}

/*--------------------------------------------------------------
# Print Styles
--------------------------------------------------------------*/
@media print {
  .header,
  .footer,
  .hero-buttons,
  .btn-get-started,
  .btn-watch-video,
  .cta-btn {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 20px 0;
  }

  .section {
    page-break-inside: avoid;
  }
}

/* Responsive styles for new hero section */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 48px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn-get-started,
  .hero-buttons .btn-watch-video {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .decoration-circle {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 36px;
  }
  
  .hero-title .text-accent {
    display: block;
    margin-top: 10px;
  }
  
  .hero-subtitle {
    font-size: 16px;
    padding: 0 20px;
  }
  
  .hero-content-wrapper {
    padding: 0 15px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 15px;
  }
  
  .hero-buttons .btn-get-started,
  .hero-buttons .btn-watch-video {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Responsive styles for modern service cards */
@media (max-width: 991.98px) {
  .service-card-modern {
    margin-bottom: 30px;
  }
}

@media (max-width: 767.98px) {
  .service-image-wrapper {
    height: 220px;
  }
  
  .service-content {
    padding: 25px 20px;
  }
  
  .service-title {
    font-size: 22px;
  }
  
  .service-description {
    font-size: 15px;
  }
}

@media (max-width: 575.98px) {
  .service-image-wrapper {
    height: 200px;
  }
  
  .service-icon-wrapper {
    width: 70px;
    height: 70px;
  }
  
  .service-icon-wrapper i {
    font-size: 28px;
  }
  
  .service-placeholder-icon {
    font-size: 50px;
  }
  
  .service-content {
    padding: 20px 15px;
  }
  
  .service-title {
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .service-description {
    font-size: 14px;
    margin-bottom: 15px;
  }
}

