/*
 * Responsive overrides for Creative Edge
 * --------------------------------------------------
 * This stylesheet layers adaptive spacing, typography,
 * and layout fixes on top of the base styles so that
 * pages render cleanly from large desktops down to
 * small mobile screens.
 */

/* ---------- Global helpers ---------- */
img,
video,
canvas,
iframe,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.container,
.container-fluid,
.auto-container {
  width: 100%;
  margin: 0 auto;
  padding-left: clamp(1.5rem, 4vw, 4rem);
  padding-right: clamp(1.5rem, 4vw, 4rem);
}

.smooth-scroll-container,
.smooth-scroll-container > * {
  width: 100%;
}

.text-panel {
  word-wrap: break-word;
}

.footer-social,
.social-links {
  gap: 0.75rem;
  display: flex;
  flex-wrap: wrap;
}

.footer-social li,
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}




/* ---------- >=1600px tweaks ---------- */
@media (max-width: 1600px) {
  :root {
    --heading1-font-size: 32px;
    --heading2-font-size: 30px;
    --heading3-font-size: 26px;
    --heading4-font-size: 22px;
  }

  .site-header {
    padding: 1.5rem 3.5rem;
  }

  .hero.hero-video {
    min-height: 85vh;
  }

  #portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    display: grid !important;
    height: max-content;
   
}
}

/* ---------- Large laptop breakpoint ---------- */
@media (max-width: 1366px) {
  :root {
    --heading1-font-size: 30px;
    --heading2-font-size: 28px;
    --heading3-font-size: 24px;
    --heading4-font-size: 20px;
    --body-font-size: 15.5px;
  }

  .site-header {
    padding: 1.25rem 3rem;
  }

  .hero.hero-video {
    min-height: 78vh;
  }

  .hero.hero-video .hero-bg-video video {
    object-fit: cover;
  }

  .multi-section .panel .text-panel {
    max-width: 700px;
  }
}

/* ---------- Tablet landscape / small desktop ---------- */
@media (max-width: 1200px) {
  :root {
    --heading1-font-size: 28px;
    --heading2-font-size: 26px;
    --heading3-font-size: 22px;
    --heading4-font-size: 19px;
    --p1-font-size: 16px;
  }

  .site-header {
    padding: 1.1rem 2.5rem;
  }

  .site-header .logo img {
    height: 2.75rem;
  }

  .hero.hero-video {
    min-height: 72vh;
  }

  .hero.hero-video .hero-bg-video {
    min-height: 60vh;
  }

  .des-about-text .text {
    max-width: 900px;
    margin: 0 auto;
  }

  .multi-section .panel {
    padding-left: clamp(2rem, 4vw, 4rem);
    padding-right: clamp(2rem, 4vw, 4rem);
  }

  .multi-section .panel .text-panel {
    max-width: 640px;
    margin: 0 auto;
  }

  .footer-btnarea {
    gap: 1rem;
    display: grid;
  }

  .project-details__top {
    display: grid;
    gap: 2.5rem;
  }

  .project-details__details-box {
    padding-left: 0;
  }

  #portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    display: grid !important;
    height: max-content;
   
}
}

/* ---------- Tablet portrait & below ---------- */
@media (max-width: 1024px) {
  :root {
    --heading1-font-size: 26px;
    --heading2-font-size: 24px;
    --heading3-font-size: 21px;
    --heading4-font-size: 18px;
    --p1-font-size: 15px;
  }
  body {
    padding-top: 80px;
  }
  .site-header {
    padding: 1rem 2rem;
  }
  .menu-overlay nav {
    padding: 4rem 2rem;
  }
  .nav-links {
    gap: 1rem;
    flex-direction: column;
    align-items: center;
  }
  .nav-links li a {
    font-size: 1.15rem;
  }
  .hero.hero-video {
    min-height: 68vh;
  }
  .hero.hero-video .hero-bg-video {
    min-height: 55vh;
  }
  .multi-section {
    padding: 0;
  }
  .panel {
    min-height: 100vh;
    padding: 100px 0;
    align-items: center;
    text-align: center;
  }
  /* .panel span {
    position: static !important;
    display: inline-flex;
    margin-top: 2rem;
  } */
  .text-panel {
    margin-left: auto;
    margin-right: auto;
  }
  .text-panel h1,
  .text-panel h2,
  .text-panel h3,
  .text-panel h4,
  .text-panel p {
    text-align: center;
  }
  .aside-social {
    display: none;
  }
  .dgm-service-active {
    padding-bottom: 5rem;
  }
  .col-cards {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .project-details__top {
    grid-template-columns: 1fr;
  }

  .project-details__img img {
    width: 100%;
  }

  .project-details__details-box ul {
    gap: 1rem;
  }

  .project-pagination .project-paginvation-items {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
  }

  .project-pagination .project-previous,
  .project-pagination .project-next {
    max-width: 280px;
  }

  .footer .row,
  footer .row,
  .footergreen .row {
    row-gap: 2rem;
  }

  .footer .col-lg-4,
  .footer .col-lg-8,
  .footergreen .col-lg-4,
  .footergreen .col-lg-8 {
    width: 100%;
  }

  .footer-logo,
  .footer-social,
  .footer-btnarea,
  .site-title {
    text-align: center;
  }

  #portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    display: grid !important;
    height: max-content;
   
}
}

/* ---------- Large mobile ---------- */
@media (max-width: 900px) {
  body {
    padding-top: 70px;
  }

  .site-header {
    padding: 0.9rem 1.75rem;
  }

  .site-header .logo img {
    height: 2.5rem;
  }

  .hero.hero-video {
    min-height: 62vh;
  }

  .hero.hero-video .hero-bg-video {
    min-height: 50vh;
  }

  .des-about-text .text p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .brands-area .row,
  .contact-area .section-content-wrapper,
  .contact-area .section-content {
    row-gap: 2rem;
  }

  #portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    display: grid !important;
    height: max-content;
   
}
}

/* ---------- Tablet / phablet ---------- */
@media (max-width: 768px) {
  :root {
    --heading1-font-size: 24px;
    --heading2-font-size: 22px;
    --heading3-font-size: 20px;
    --heading4-font-size: 18px;
    --p1-font-size: 14.5px;
  }

  body {
    padding-top: 64px;
  }

  .site-header {
    padding: 0.85rem 1.5rem;
  }

  .menu-icon {
    width: 36px;
    height: 26px;
  }

  .hero.hero-video {
    min-height: 56vh;
  }

  .hero.hero-video .hero-bg-video {
    min-height: 45vh;
  }

  .hero.hero-video video {
    min-height: 45vh;
  }

  .des-about-text .text {
    padding: 0 0.5rem;
  }

  .multi-section .panel {
    padding: 80px 0;
  }
.multi-section .panel span img {
    max-width: 90%;
}
  .progress-dots {
    margin-top: 2rem;
  }

  .brands-area .site-title,
  .aboutpostitle,
  .contact-area .site-title {
    margin-bottom: 2rem;
  }

  .contact-area .section-content-wrapper {
    flex-direction: column;
  }

  .contact-formwrap {
    display: grid;
    gap: 1.5rem;
  }

  .contact-formwrap .message {
    grid-column: auto !important;
  }

  .submit-btn button {
    width: 100%;
  }

  .footergreen .site-title {
    text-align: center;
  }

  .footergreen .footer-btnarea {
    justify-items: center;
  }

  .porfoliosction {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: auto;
    left: 0;
    transform: none;
    overflow: visible;
  }

  .porfoliosction .col {
    width: 100%;
    flex: 0 0 100%;
  }

  #portfolio-grid {
    grid-template-columns: repeat(1, 1fr);
    display: grid !important;
    height: max-content;
   
}

.career-details-page-banner-area .content .right-side {
    display: flex;
    margin-left: 0px !important;
    flex-direction: column;
    row-gap: 30px;
}

.career-details-page-banner-area .content .left-side h1 {
    font-size: 60px;
    line-height: 0.95;
    color: var(--white);
    padding-bottom: 30px;
}

.career-details-desc {
    padding-left: 3px;
    padding-top: 60px;
}

.footergreen .site-title h3 {
    font-size: 2rem;
    color: var(--white);
    text-transform: uppercase;
    font-family: var(--heading-font-family);
    margin-bottom: 30px;
}

.footergreen .site-title {
        text-align: center;
        padding: 0px;
    }

}

/* ---------- Small mobile ---------- */
@media (max-width: 640px) {
  :root {
    --body-font-size: 14.5px;
  }

  body {
    padding-top: 60px;
  }

  .container,
  .container-fluid,
  .auto-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero.hero-video {
    min-height: 52vh;
  }

  .hero.hero-video .hero-bg-video {
    min-height: 42vh;
  }

  .hero-bg-video video {
    min-height: 42vh;
  }

  .panel {
    padding: 70px 0;
  }

  .panel span img {
    max-width: 100px;
  }

  .project-pagination .project-paginvation-items {
    gap: 1rem;
  }

  .project-pagination .project-previous,
  .project-pagination .project-next {
    max-width: none;
    width: 100%;
  }

  .project-pagination .project-all {
    order: -1;
  }

  .footer-btnarea a {
    width: 100%;
  }

  #portfolio-grid {
    grid-template-columns: repeat(1, 1fr);
    display: grid !important;
    height: max-content;
   
}

.career-details-page-banner-area .content .right-side {
    display: flex;
    margin-left: 0px !important;
    flex-direction: column;
    row-gap: 30px;
}


}

/* ---------- Extra small phones ---------- */
@media (max-width: 480px) {
  :root {
    --heading1-font-size: 22px;
    --heading2-font-size: 20px;
    --heading3-font-size: 18px;
    --heading4-font-size: 17px;
    --p1-font-size: 14px;
  }

  body {
    padding-top: 56px;
  }

  .site-header {
    padding: 0.75rem 1.25rem;
  }
  .site-header .logo img {
      height: 25px;
  }
  .menu-icon {
    width: 32px;
    height: 24px;
  }

  .hero.hero-video {
    min-height: 48vh;
  }

  .hero.hero-video .hero-bg-video {
    min-height: 40vh;
  }

  .multi-section .panel {
    padding: 60px 0;
  }

  .multi-section .panel span {
    margin-top: 1.5rem;
  }

  .text-panel h1,
  .text-panel h2,
  .text-panel h3,
  .text-panel h4,
  .text-panel p {
    text-align: left;
  }

  .text-panel {
    max-width: 100%;
  }

  .project-details__details-box ul {
    gap: 0.75rem;
  }

  .page-breadcrumb {
    gap: 0.5rem;
  }

  footer .footer-social {
    justify-content: center;
  }

  #portfolio-grid {
    grid-template-columns: repeat(1, 1fr);
    display: grid !important;
    height: max-content;
   
}
.career-details-page-banner-area .content .right-side {
    display: flex;
    margin-left: 0px !important;
    flex-direction: column;
    row-gap: 30px;
}

}

/* ---------- Ultra small ---------- */
@media (max-width: 360px) {
  :root {
    --heading1-font-size: 20px;
    --heading2-font-size: 18px;
    --heading3-font-size: 17px;
    --heading4-font-size: 16px;
    --body-font-size: 14px;
  }

  .container,
  .container-fluid,
  .auto-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header {
    padding: 0.6rem 1rem;
  }

  .menu-overlay nav {
    padding: 3rem 1.5rem;
  }

  .hero.hero-video {
    min-height: 45vh;
  }
  #portfolio-grid {
    grid-template-columns: repeat(1, 1fr);
    display: grid !important;
    height: max-content;
   
}
}
