/* ==========================================================================
   NMIRSHAD.COM - RESPONSIVE STYLESHEET
   Comprehensive Mobile & Tablet Optimization (320px - 1280px)
   ========================================================================== */

/* Large Laptops / Desktops (max-width: 1280px) */
@media (max-width: 1280px) {
  .brand-title-large {
    font-size: 100px;
  }
  .motto-heading {
    font-size: 56px;
  }
  .quote-exact-text {
    font-size: 48px;
  }
}

/* Medium Laptops & Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-branding-section {
    min-height: auto;
    padding: 60px 20px 40px 20px;
  }

  .brand-title-large {
    font-size: 72px;
  }

  .hero-tagline-grid,
  .about-me-grid,
  .faq-exact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-boxes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta2-title {
    font-size: 48px;
  }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    overflow-x: clip;
  }

  body {
    padding-top: 66px;
  }

  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Fixed Mobile Top Bar */
  .mobile-top-bar {
    display: flex !important;
  }

  /* Hide Desktop Sticky Header on Mobile */
  .site-sticky-header {
    display: none !important;
  }

  /* Section 1: Hero Branding & Nav */
  .hero-branding-section {
    position: relative !important;
    top: 0 !important;
    z-index: 1;
    min-height: calc(100vh - 66px) !important;
    min-height: calc(100svh - 66px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 30px 20px !important;
    box-sizing: border-box !important;
    will-change: transform, opacity;
  }

  .brand-title-large {
    font-size: clamp(36px, 11vw, 56px);
    letter-spacing: -1px;
    margin-bottom: 15px;
  }

  .brand-subtitle-roles {
    font-size: 15px;
    gap: 10px;
    margin-bottom: 35px;
    flex-wrap: wrap;
  }

  .brand-subtitle-roles .bullet-dot {
    font-size: 18px;
  }

  /* Mobile: remove buttons from hero section */
  .hero-branding-section .irshad-nav {
    display: none !important;
  }

  /* Mobile: show down arrow below hero section, positioned at bottom so content is perfectly centered */
  .hero-down-arrow {
    display: flex !important;
    position: absolute !important;
    bottom: 25px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-top: 0 !important;
  }

  /* Section 2: Hero Tagline & Portrait (Place Image First) */
  .hero-tagline-section {
    padding: 50px 0;
    min-height: auto;
  }

  .hero-tagline-grid {
    display: flex !important;
    flex-direction: column !important;
  }

  .hero-tagline-grid .portrait-container {
    order: -1 !important;
    margin-bottom: 25px;
    padding: 15px;
  }

  .hero-tagline-content {
    text-align: center;
  }

  .hero-tagline-heading {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 20px;
  }

  .hero-tagline-desc {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
  }

  .btn-discussion {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 14px 20px;
  }

  .portrait-container img {
    max-width: 100%;
    height: auto;
  }

  /* Section 3: Motto & Stats */
  .stats-motto-section {
    padding: 50px 0 40px 0;
  }

  .motto-heading {
    font-size: 28px;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 40px;
  }

  .motto-line {
    display: block;
    white-space: normal;
  }

  .stats-boxes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 40px;
  }

  .stat-box {
    padding: 22px 12px;
  }

  .stat-box .number {
    font-size: 30px;
  }

  .stat-box .label {
    font-size: 13px;
  }

  /* Section 4: 3D Coverflow Carousel */
  .projects-carousel-section {
    padding: 30px 0 60px 0;
  }

  .projects-label-heading {
    font-size: 20px;
    margin-bottom: 25px;
  }

  .coverflow-carousel-wrapper {
    height: 280px;
  }

  .coverflow-card {
    width: 280px;
    height: 175px;
    border-radius: 10px;
  }

  .coverflow-card img {
    border-radius: 10px;
  }

  .coverflow-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .coverflow-nav-btn.prev-btn { left: 10px; }
  .coverflow-nav-btn.next-btn { right: 10px; }

  /* Section 5: About Me (Place Image First) */
  .about-me-section {
    padding: 50px 0;
  }

  .about-me-grid {
    display: flex !important;
    flex-direction: column !important;
  }

  .about-portrait-box {
    order: -1 !important;
    margin-bottom: 25px;
    padding: 15px;
  }

  .about-me-content {
    text-align: center;
  }

  .about-me-title {
    font-size: 32px !important;
    letter-spacing: -1px !important;
    line-height: 1.25 !important;
    text-align: center !important;
    margin-bottom: 20px;
  }

  .about-me-intro {
    font-size: 15px;
    margin-bottom: 15px;
  }

  .about-me-paragraph {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left;
  }

  .btn-know-more {
    width: 100%;
    justify-content: center;
  }

  /* Section 6: Services Widget */
  .services-heading-exact {
    font-size: 32px !important;
    letter-spacing: -1px !important;
    line-height: 1.25 !important;
    text-align: center !important;
    margin-bottom: 30px;
  }

  .irshad-services-section .container {
    padding-top: 40px !important;
    padding-bottom: 10px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .irshad-services-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .irshad-service-header {
    grid-template-columns: 35px 1fr !important;
    min-height: 70px !important;
    padding: 15px 0 !important;
  }

  .irshad-service-number {
    font-size: 14px !important;
  }

  .irshad-service-title {
    font-size: 20px !important;
    letter-spacing: -0.5px !important;
  }

  .irshad-service-content {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .irshad-service-note {
    font-size: 12px !important;
    align-self: start !important;
    padding-bottom: 0 !important;
    color: #ffb400 !important;
  }

  .irshad-service-description {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .irshad-service-button {
    width: 100% !important;
    justify-content: center !important;
    min-height: 44px !important;
  }

  /* Section 7: Testimonials */
  .testimonials-exact-section {
    padding: 50px 0;
  }

  .testimonials-title-exact {
    font-size: 32px !important;
    letter-spacing: -1px !important;
    line-height: 1.25 !important;
    text-align: center;
    margin-bottom: 35px;
  }

  .testimonials-grid-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testimonial-card-exact {
    padding: 24px;
    min-height: auto;
  }

  .testimonial-card-exact .quote-content {
    font-size: 14px;
    margin-bottom: 20px;
  }

  /* Section 8: Quote Banner */
  .quote-exact-section {
    padding: 60px 0;
  }

  .quote-exact-text {
    font-size: 24px;
    line-height: 1.35;
    letter-spacing: -0.5px;
  }

  /* Section 9: CTA 1 */
  .cta1-exact-section {
    padding: 50px 0;
  }

  .cta1-boxed-container {
    padding: 35px 20px;
  }

  .cta1-title {
    font-size: 32px !important;
    letter-spacing: -1px !important;
    line-height: 1.25 !important;
    margin-bottom: 10px;
  }

  .cta1-subtitle {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .cta1-buttons-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  .cta1-buttons-row .irshad-nav-link {
    width: 100%;
    justify-content: center;
    font-size: 14px;
    padding: 12px 15px !important;
  }

  /* Section 10: FAQ (Place Image First, then Heading, then FAQs) */
  .faq-exact-section {
    padding: 50px 0;
  }

  .faq-title {
    font-size: 32px !important;
    letter-spacing: -1px !important;
    line-height: 1.25 !important;
    margin-bottom: 25px;
  }

  .faq-exact-section .container {
    display: flex !important;
    flex-direction: column !important;
  }

  .faq-exact-section .faq-exact-grid {
    display: contents !important;
  }

  .faq-exact-section .faq-image-side {
    order: 1 !important;
    margin-bottom: 25px !important;
    text-align: center !important;
  }

  .faq-exact-section .faq-image-side img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    display: block !important;
    margin: 0 auto !important;
  }

  .faq-exact-section .faq-section-heading {
    order: 2 !important;
    margin-bottom: 25px !important;
    text-align: center !important;
  }

  .faq-exact-section .faq-content-side {
    order: 3 !important;
  }

  .faq-header-exact {
    font-size: 15px;
    padding: 16px 0;
  }

  .faq-content-exact p {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Section 11: CTA 2 */
  .cta2-exact-section {
    padding: 60px 0;
    text-align: center;
  }

  .cta2-title {
    font-size: 32px !important;
    letter-spacing: -1px !important;
    line-height: 1.25 !important;
    margin-bottom: 25px;
  }

  .cta2-actions-row {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .cta2-left-link {
    font-size: 16px;
  }

  .btn-say-hello {
    width: 100%;
    justify-content: center;
  }

  /* Section 12: Blog */
  .blogs-exact-section {
    padding: 50px 0;
  }

  .blogs-title-exact {
    font-size: 32px !important;
    letter-spacing: -1px !important;
    line-height: 1.25 !important;
    text-align: center;
    margin-bottom: 35px;
  }

  .blogs-grid-3col,
  .blog-cards-grid,
  .blog-cards-grid-4col,
  .also-read-grid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }

  /* Section 13: Footer */
  .footer-exact-section {
    padding: 50px 0 30px 0;
    text-align: center;
  }

  .footer-exact-branding .brand-title-large {
    font-size: 48px !important;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }

  .footer-links-col ul li {
    margin-bottom: 8px;
  }

  .footer-exact-copyright {
    font-size: 13px;
    padding-top: 25px;
  }

  /* Floating Controls & Chatbot */
  .fixed-scroll-top {
    bottom: 15px;
    left: 15px;
    width: 36px;
    height: 36px;
    font-size: 14px;
    z-index: 9999;
  }

  .chatbot-trigger-btn {
    bottom: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    font-size: 18px;
    z-index: 9999;
  }

  .chatbot-modal {
    bottom: 70px;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: calc(100vw - 20px);
    z-index: 10000;
  }
}

/* Extra Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
  .stats-boxes-grid {
    grid-template-columns: 1fr;
  }

  .coverflow-carousel-wrapper {
    height: 240px;
  }

  .coverflow-card {
    width: 230px;
    height: 145px;
  }

  .stat-box .number {
    font-size: 32px;
  }

  .brand-title-large {
    font-size: 38px;
  }
}

/* Keep the mobile header and footer layout consistent across every page. */
@media (max-width: 768px) {
  body { padding-top: 66px; }
  .footer-exact-section,
  .footer-exact-branding,
  .footer-links-grid,
  .footer-links-col,
  .footer-exact-copyright { text-align: center !important; }
  .footer-links-grid { justify-items: center; }
  .footer-links-col ul { padding-left: 0; list-style: none; }
  .policy-footer-section,
  .policy-footer-brand-col,
  .policy-footer-col,
  .policy-footer-copyright { text-align: center !important; }
  .policy-footer-grid { grid-template-columns: 1fr; justify-items: center; }
  .policy-footer-col ul { padding-left: 0; list-style: none; }
}

/* Match the service card and icon treatment used on the Performance Marketing page. */
.webdev-service-card,
.seo-service-card,
.home-service-card,
.service-card,
.service-box,
.feature-card,
.webdev-feature-card,
.seo-feature-card {
  border-radius: 6px !important;
}
.webdev-service-card .service-icon,
.seo-service-card .service-icon,
.home-service-card .service-icon,
.service-card .service-icon,
.service-box .service-icon,
.feature-card .feature-icon,
.webdev-feature-card .feature-icon,
.seo-feature-card .feature-icon {
  border-radius: 14px !important;
}

/* Homepage section headings use a consistent centered alignment. */
body.home-page main section h1,
body.home-page main section h2,
body.home-page main section h3,
body.home-page .projects-label-heading { text-align: center; }

.projects-disclaimer {
  margin: 12px 20px 0;
  color: #f0eee9;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
}

@media (max-width: 768px) {
  .home-page .hero-tagline-content { text-align: left; }
  .home-page .hero-tagline-content .btn-discussion {
    width: auto;
    align-self: flex-start;
    justify-content: flex-start;
  }
  .home-page .hero-tagline-grid .portrait-container {
    padding: 0 !important;
  }
  .home-page .about-me-title {
    text-align: center !important;
    font-size: 32px !important;
    letter-spacing: -1px !important;
    line-height: 1.25 !important;
  }
  .home-page .about-portrait-box { padding: 0 !important; }
  .home-page .services-heading-exact {
    font-size: 32px !important;
    letter-spacing: -1px !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }
  .faq-section-heading { margin-bottom: 28px; }
}
