/* ===========================================
   Responsive CSS for RohitWebCo.com
   Consolidated Media Queries
   =========================================== */

/* ---------------------------------------------
   Mobile First - Under 768px
   --------------------------------------------- */
@media (max-width: 767px) {
  /* Text Responsive */
  .text-responsive-xl { font-size: 1.25rem; }
  .text-responsive-lg { font-size: 1.125rem; }
  
  /* Services Preview - Stack vertically */
  .section__services-preview .row {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .section__services-preview .col-12,
  .section__services-preview .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Navigation - Mobile */
  .header__nav {
    flex-direction: column;
    padding-top: 20px;
  }

  .header__nav-list.main__nav .sub__nav-icon {
    top: 5px;
    right: 0px;
  }

  .header__nav-link {
    display: block;
    padding: 8px 0 8px 16px;
    width: 200px;
    /* border-bottom: 1px solid #828282; */
  }
}

/* ---------------------------------------------
   Desktop - 768px and above
   --------------------------------------------- */
@media (min-width: 768px) {
  /* Text Responsive */
  .text-responsive-xl { font-size: 2rem; }
  .text-responsive-lg { font-size: 1.75rem; }
  
  /* Services Preview - Single row */
  .section__services-preview .row {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    justify-content: center;
  }
  
  .section__services-preview .col-12,
  .section__services-preview .col-md-4 {
    flex: 0 0 calc(33.333% - 1.33rem);
    max-width: calc(33.333% - 1.33rem);
    margin-bottom: 0;
  }
  
  /* Navigation - Desktop */
  .header__nav-list.main__nav {
    /* padding-right: 20px; */
  }
  
  .header__nav-list.main__nav .sub__nav-icon {
    top: 0px;
    right: -15px;
  }

  .header__nav-link{
    margin-left: 20px;
  }

  .sub__nav {
    width: 200px;
    position: absolute;
    top: 45px;
    left: 0;
    background-color: var(--secondary-color);
    border: 1px solid #333333;
  }

  .sub__nav-link:hover {
    background-color: var(--bg-light);
    color: var(--secondary-color);
  }
}

/* ---------------------------------------------
   Skills Section Responsive
   --------------------------------------------- */
@media (max-width: 768px) {
  .skills-grid-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .skill-item-modern {
    padding: 1rem 0.5rem;
  }
  
  .skill-icon-wrapper {
    width: 48px;
    height: 48px;
  }
  
  .skill-icon-wrapper i {
    font-size: 1.5rem;
  }
  
  .skills-category-modern {
    padding: 1.5rem 1rem;
  }
  
  .category-icon-wrapper {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
}

/* ---------------------------------------------
   CTA Section Responsive
   --------------------------------------------- */
@media (max-width: 768px) {
  .section__cta {
    padding: 3rem 0 !important;
  }
  
  .cta-button {
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
  }
}

/* ---------------------------------------------
   Service Hero Section Responsive
   --------------------------------------------- */
@media (max-width: 767px) {
  .section__service-hero {
    padding-top: 3rem !important;
    padding-bottom: 2.5rem !important;
  }

  .section__service-hero .primary__header {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .section__service-hero .secondary__header {
    font-size: 1rem;
    width: 100% !important;
  }

  .section__service-hero .text-responsive-lg {
    width: 100% !important;
    font-size: 1rem;
  }
}

/* ---------------------------------------------
   Contact Page Responsive
   --------------------------------------------- */
@media (max-width: 768px) {
  .section__contact-hero,
  .section__contact,
  .section__faq {
    padding: 2rem 0 !important;
  }
  
  .contact-form-card {
    padding: 1.5rem;
  }
  
}