/* ===================================================
   AHRAR STUDIO — Comprehensive Responsive Stylesheet
   Device Breakdown:
   - Ultra-wide & Desktop (>= 1440px)
   - Laptops & Small Desktops (1025px - 1439px)
   - Tablets Landscape (769px - 1024px)
   - Tablets Portrait & Large Mobile (481px - 768px)
   - Small Mobile Phones (<= 480px)
   - Special handling: iOS Safe Areas & Reduced Motion
   =================================================== */


/* ===================================================
   1. LAPTOPS & SMALL DESKTOPS (<= 1440px)
   =================================================== */
@media (max-width: 1440px) {
  .navbar__inner {
    padding: 0 35px;
  }

  .parallax-banner__content.bottom-left {
    bottom: 40px;
    left: 35px;
  }

  .badge-tagline__line {
    font-size: 26px;
    padding: 11px 22px;
  }

  .parallax-content__inner {
    padding: 110px 30px;
  }

  .about-container,
  .project-gallery-container,
  .footer__container {
    padding: 0 35px;
  }
}


/* ===================================================
   2. TABLETS LANDSCAPE / SMALL LAPTOPS (<= 1024px)
   =================================================== */
@media (max-width: 1024px) {
  .navbar__inner {
    height: 74px;
    padding: 0 28px;
  }

  .navbar__right {
    gap: 24px;
  }

  /* Hide right dot navigation on tablets and mobile to avoid touching interference */
  #parallax-nav {
    display: none;
  }

  .parallax-banner {
    height: 72vh;
    min-height: 440px;
  }

  .parallax-banner__content.bottom-left {
    bottom: 32px;
    left: 28px;
  }

  #hero-block .parallax-banner__content.bottom-left {
    bottom: 60px;
  }

  .scroll-arrow {
    bottom: 18px;
  }

  .badge-tagline__line {
    font-size: 22px;
    padding: 9px 18px;
    letter-spacing: 1.5px;
  }

  .parallax-content__inner {
    padding: 90px 28px;
  }

  .content-heading {
    font-size: 23px;
    margin-bottom: 14px;
  }

  .content-paragraph,
  .philosophy__text {
    font-size: 20px;
    line-height: 1.72;
  }

  /* About Page */
  .about-section {
    padding: 70px 0 90px;
  }

  .about-container {
    padding: 0 28px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .about-info-col {
    padding-right: 0;
  }

  .about-text {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 45px;
    max-width: 100%;
  }

  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
    column-gap: 20px;
  }

  .about-stat-item {
    border-left: 1px solid #e2e2e2;
    padding: 0 18px;
  }

  .about-stat-item:nth-child(odd) {
    border-left: none;
    padding-left: 0;
  }

  .about-stat-number {
    font-size: 36px;
  }

  .about-image-col {
    justify-content: flex-start;
  }

  .about-image-wrapper {
    max-width: 360px;
    margin: 0 auto;
  }

  /* Projects & Detail Pages */
  .project-content .parallax-content__inner {
    padding: 80px 28px;
  }

  .project-detail-intro {
    padding: 80px 28px 50px;
  }

  .project-detail-description {
    font-size: 15.5px;
  }

  .project-gallery-container {
    padding: 0 28px 90px;
  }

  .project-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  /* Contact Modal */
  .contact-modal__dialog {
    grid-template-columns: 1fr;
    max-height: 94vh;
    overflow-y: auto;
    width: 480px;
  }

  .contact-modal__image-side {
    display: none;
  }

  .contact-modal__form-side {
    padding: 30px 26px;
  }

  /* Footer */
  .footer {
    padding: 75px 28px 35px;
  }

  .footer__top {
    padding-bottom: 50px;
  }
}


/* ===================================================
   3. TABLETS PORTRAIT & LARGE MOBILE (<= 768px)
   =================================================== */
@media (max-width: 768px) {
  .navbar__inner {
    height: 68px;
    padding: 0 20px;
    gap: 12px;
  }

  .navbar__logo img {
    height: 22px;
  }

  .navbar__right {
    gap: 16px;
  }

  .navbar__menu-btn {
    gap: 6px;
  }

  .navbar__menu-label {
    font-size: 12px;
    letter-spacing: 1.2px;
  }

  .navbar__contact-btn {
    height: 36px;
    padding: 0 16px;
    font-size: 11px;
    letter-spacing: 1.2px;
  }

  /* Menu Overlay */
  .menu-overlay__header {
    padding: 20px 24px;
  }

  .menu-overlay__body {
    padding: 20px 24px 40px;
  }

  .menu-overlay__link {
    font-size: clamp(3.2rem, 11vw, 5.5rem);
  }

  /* Parallax Banner */
  .parallax-banner {
    height: 64vh;
    min-height: 380px;
  }

  .parallax-banner__content.bottom-left {
    bottom: 24px;
    left: 20px;
  }

  #hero-block .parallax-banner__content.bottom-left {
    bottom: 58px;
  }

  .scroll-arrow {
    bottom: 16px;
  }

  .badge-tagline__line {
    font-size: 18px;
    padding: 8px 16px;
    letter-spacing: 1.2px;
  }

  /* Content Sections */
  .parallax-content__inner {
    padding: 70px 20px;
  }

  .content-heading {
    font-size: 21px;
    margin-bottom: 12px;
  }

  .content-paragraph,
  .philosophy__text {
    font-size: 17px;
    line-height: 1.75;
  }

  .project-title {
    font-size: 21px;
  }

  .project-subtitle {
    font-size: 14px;
    margin-bottom: 18px;
  }

  /* FAQ Section */
  .faq-section {
    padding: 80px 20px 70px;
  }

  .faq__title {
    font-size: 20px;
    margin-bottom: 35px;
  }

  .faq__question {
    padding: 18px 0;
  }

  .faq__question-text {
    font-size: 14.5px;
  }

  .faq__answer-inner p {
    font-size: 14.5px;
    line-height: 1.7;
  }

  /* About Page */
  .about-section {
    padding: 55px 0 75px;
  }

  .about-container {
    padding: 0 20px;
  }

  .about-text {
    font-size: 16px;
    line-height: 1.72;
    margin-bottom: 40px;
  }

  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 20px;
    column-gap: 16px;
    padding-top: 10px;
  }

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

  .about-stat-label {
    font-size: 10.5px;
  }

  .about-image-wrapper {
    max-width: 330px;
    margin: 0 auto;
  }

  /* Project Gallery */
  .project-detail-intro {
    padding: 65px 20px 40px;
  }

  .project-detail-description {
    font-size: 14.5px;
    line-height: 1.75;
  }

  .project-gallery-container {
    padding: 0 20px 75px;
  }

  .project-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .project-navigation-section {
    padding: 0 0 80px;
  }

  .project-back-link {
    padding: 12px 26px;
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  /* Contact Modal */
  .contact-modal__dialog {
    width: 92vw;
    max-width: 440px;
  }

  .contact-modal__form-side {
    padding: 24px 20px;
  }

  .contact-modal__header {
    margin-bottom: 18px;
  }

  /* Footer */
  .footer {
    padding: 65px 20px 30px;
  }

  .footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    padding-bottom: 45px;
  }

  .footer__nav {
    flex-wrap: wrap;
    gap: 22px;
  }

  .footer__nav-link {
    font-size: 12.5px;
    letter-spacing: 1.2px;
  }

  .footer__socials {
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer__contact-info {
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 12.5px;
  }

  .footer__copyright {
    font-size: 11.5px;
  }
}


/* ===================================================
   4. MOBILE PHONES (<= 480px / 360px)
   =================================================== */
@media (max-width: 480px) {
  .project-gallery-section {
    padding: 0 0 0px;
  }

  .navbar__inner {
    height: 60px;
    padding: 0 14px;
    gap: 8px;
  }

  .navbar__logo img {
    height: 19px;
  }

  .navbar__right {
    gap: 12px;
  }

  .navbar__hamburger {
    width: 14px;
    gap: 3px;
  }

  .navbar__hamburger span {
    height: 1.3px;
  }

  .navbar__menu-label {
    font-size: 10.5px;
    letter-spacing: 1px;
  }

  .navbar__contact-btn {
    height: 32px;
    padding: 0 12px;
    font-size: 10px;
    letter-spacing: 0.8px;
  }

  /* Preloader */
  .preloader__spinner {
    width: 54px;
  }

  /* Menu Overlay */
  .menu-overlay__header {
    padding: 16px 18px;
  }

  .menu-overlay__logo img {
    height: 20px;
  }

  .menu-overlay__close-btn {
    width: 28px;
    height: 28px;
  }

  .menu-overlay__close-btn span {
    width: 18px;
  }

  .menu-overlay__body {
    padding: 15px 18px 30px;
  }

  .menu-overlay__list {
    gap: 8px;
  }

  .menu-overlay__link {
    font-size: clamp(2.6rem, 11vw, 4rem);
    letter-spacing: -0.01em;
  }

  /* Parallax Banner */
  .parallax-banner {
    height: 52vh;
    min-height: 310px;
  }

  .parallax-banner__content.bottom-left {
    bottom: 16px;
    left: 14px;
    max-width: calc(100vw - 28px);
  }

  #hero-block .parallax-banner__content.bottom-left {
    bottom: 54px;
  }

  .badge-tagline__line {
    font-size: 13.5px;
    letter-spacing: 1px;
    padding: 6px 12px;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
  }

  .scroll-arrow {
    bottom: 12px;
    gap: 4px;
  }

  .scroll-arrow span {
    font-size: 8.5px;
    letter-spacing: 1.8px;
  }

  .scroll-arrow__icon {
    width: 10px;
    height: 10px;
  }

  /* Parallax Content */
  .parallax-content__inner {
    padding: 48px 16px;
  }

  .content-heading {
    font-size: 17.5px;
    margin-bottom: 10px;
  }

  .content-paragraph,
  .philosophy__text {
    font-size: 14px;
    line-height: 1.75;
    letter-spacing: 0.1px;
  }

  .project-content .parallax-content__inner {
    padding: 50px 16px;
  }

  .project-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .project-subtitle {
    font-size: 13px;
    margin-bottom: 14px;
    line-height: 1.45;
  }

  .project-link {
    font-size: 11.5px;
  }

  /* FAQ */
  .faq-section {
    padding: 60px 16px 50px;
  }

  .faq__title {
    font-size: 18px;
    letter-spacing: 1.5px;
    margin-bottom: 28px;
  }

  .faq__question {
    padding: 16px 0;
  }

  .faq__question-text {
    font-size: 13.5px;
    padding-right: 14px;
  }

  .faq__icon {
    width: 10px;
    height: 10px;
  }

  .faq__icon::before {
    top: 4.5px;
    width: 10px;
  }

  .faq__icon::after {
    left: 4.5px;
    height: 10px;
  }

  .faq__answer-inner p {
    font-size: 13.5px;
    line-height: 1.68;
  }

  .faq__question[aria-expanded="true"]+.faq__answer .faq__answer-inner {
    padding: 0 0 16px 0;
  }

  /* About Page */
  .about-section {
    padding: 45px 0 65px;
  }

  .about-container {
    padding: 0 16px;
  }

  .about-grid {
    gap: 35px;
  }

  .about-text {
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 32px;
  }

  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 18px;
    column-gap: 12px;
  }

  .about-stat-item {
    padding: 0 12px;
  }

  .about-stat-number {
    font-size: 26px;
    margin-bottom: 4px;
  }

  .about-stat-label {
    font-size: 10px;
    line-height: 1.3;
  }

  .about-image-wrapper {
    max-width: 280px;
  }

  /* Projects & Detail Pages */
  .project-detail-intro {
    padding: 48px 16px 30px;
  }

  .project-detail-description {
    font-size: 13.5px;
    line-height: 1.7;
  }

  .project-gallery-container {
    padding: 0 16px 65px;
  }

  .project-gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about-container,
  .project-gallery-container,
  .footer__container {
    padding: 0 15px;
  }

  .project-navigation-section {
    padding: 10px 0 10px;
  }

  .project-back-link {
    padding: 11px 22px;
    font-size: 10px;
    letter-spacing: 1.2px;
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  /* Contact Modal */
  .contact-modal__dialog {
    width: 95vw;
    max-width: 380px;
    max-height: 92vh;
  }

  .contact-modal__form-side {
    padding: 20px 16px;
  }

  .contact-modal__header {
    margin-bottom: 14px;
  }

  .contact-modal__logo {
    height: 30px;
  }

  .contact-modal__form {
    gap: 8px;
  }

  .contact-modal__form .form-control {
    padding: 11px 13px;
    font-size: 12.5px;
  }

  .contact-modal__form .form-control::placeholder {
    font-size: 12px;
  }

  .contact-modal__form textarea.form-control {
    min-height: 85px;
  }

  .contact-modal__submit-btn {
    padding: 12px 16px;
    font-size: 13px;
  }

  /* Footer */
  .footer {
    padding: 50px 16px 25px;
  }

  .footer__logo img {
    height: 32px;
  }

  .footer__top {
    gap: 24px;
    padding-bottom: 35px;
  }

  .footer__nav {
    gap: 16px;
  }

  .footer__nav-link {
    font-size: 11.5px;
    letter-spacing: 1px;
  }

  .footer__socials {
    gap: 10px;
  }

  .footer__social-btn svg {
    width: 25px;
    height: 25px;
  }

  .footer__bottom {
    gap: 14px;
  }

  .footer__contact-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
  }

  .footer__contact-label {
    font-size: 12px;
  }

  .footer__contact-link {
    font-size: 12px;
    word-break: break-all;
  }

  .footer__copyright {
    font-size: 11px;
    line-height: 1.5;
  }
}


/* ===================================================
   5. PREFERS REDUCED MOTION (ACCESSIBILITY)
   =================================================== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .parallax-banner__image-holder {
    transform: none !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .preloader__spinner {
    animation: none !important;
  }

  .scroll-arrow__icon {
    animation: none !important;
  }
}