/* Responsive Styles for Dark Modern UI */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .section-header h2 {
    font-size: 2.2rem;
  }
  
  .about-grid,
  .project-details .container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-step:not(:last-child)::after {
    left: 30px;
  }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  section {
    padding: 80px 0;
  }
  
  .hero {
    min-height: 600px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .project-gallery {
    grid-template-columns: 1fr;
  }
  
  .contact-form-container {
    padding: 40px 30px;
  }
  
  .service-card,
  .workforce-card,
  .benefit-card,
  .feature-card {
    padding: 30px 25px;
  }
  
  .process-step {
    margin-bottom: 40px;
  }
  
  .process-step:not(:last-child)::after {
    bottom: -40px;
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--darker-bg);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    transition: right 0.5s ease;
    z-index: 1000;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: 20px 0;
  }
  
  .hamburger {
    display: block;
    z-index: 1001;
  }
  
  .hamburger.active .line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .hamburger.active .line:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  .hero {
    min-height: 500px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .services-grid,
  .projects-grid,
  .features-grid,
  .workforce-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .contact-form-container {
    padding: 30px 20px;
  }
  
  .testimonials-slider {
    grid-template-columns: 1fr;
  }
  
  .cta-content h2 {
    font-size: 1.8rem;
  }
  
  .page-header h1 {
    font-size: 2.2rem;
  }
  
  .project-header h1 {
    font-size: 2rem;
  }
  
  .project-meta {
    flex-direction: column;
    gap: 15px;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .section-header h2::before {
    width: 40px;
    bottom: -10px;
  }
  
  .sidebar-widget {
    margin-top: 30px;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .about-content h2 {
    font-size: 1.8rem;
  }
  
  .page-header h1 {
    font-size: 1.8rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    width: 85%;
  }
  
  .cta-content h2 {
    font-size: 1.6rem;
  }
  
  .project-navigation .nav-links {
    flex-direction: column;
    position: static;
    height: auto;
    width: 100%;
    box-shadow: none;
    background-color: transparent;
    gap: 20px;
  }
  
  .project-nav {
    width: 100%;
    justify-content: space-between;
  }
  
  .back-to-projects,
  .prev-project,
  .next-project {
    font-size: 0.9rem;
    padding: 8px 15px;
  }
  
  .form-header h2 {
    font-size: 1.6rem;
  }
  
  .project-overview h2,
  .project-scope h2,
  .project-challenges h2,
  .project-results h2 {
    font-size: 1.6rem;
  }
  
  .stat-item .number {
    font-size: 2rem;
  }
  
  .service-card .icon,
  .workforce-card .icon,
  .benefit-card .icon,
  .contact-card .icon,
  .feature-card .icon {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
  
  .service-card h3,
  .workforce-card h3,
  .benefit-card h3,
  .contact-card h3,
  .feature-card h3 {
    font-size: 1.3rem;
  }
  
  .scroll-to-top,
  .dark-mode-toggle {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .toast {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}