/* Prevent horizontal scroll and right-side black band at all viewports */
html,
body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

/* Logo: no background, responsive with shadows for visibility on light/dark */
.navbar-brand img,
.offCanvas__logo img {
  height: 36px;
  width: auto;
  max-height: 36px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3)) drop-shadow(0 0 1px rgba(255,255,255,0.2));
}
#preloader .loader .loader-icon img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}
/* Footer logo-dark on yellow: subtle shadow for depth */
.section-footer .container-fluid a img[src*="logo-dark"],
.section-footer img[src*="logo-dark"] {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

/* Dark sections: make stroke + text-transparent and headings visible (no black-on-black) */
.bg-black-1 .stroke.text-transparent,
.bg-black-2 .stroke.text-transparent,
.section-testimonials-3 .stroke.text-transparent,
.section-faqs-1 .stroke.text-transparent,
.section-faqs-2 .stroke.text-transparent,
.section-video-2 .stroke.text-transparent {
  color: var(--tc-system-white) !important;
  -webkit-text-stroke-color: var(--tc-system-white) !important;
  -webkit-text-stroke-width: 1px !important;
  background: none !important;
  -webkit-background-clip: unset !important;
}
.bg-black-1 .tg-element-title,
.bg-black-2 .tg-element-title,
.section-testimonials-3 .tg-element-title,
.section-faqs-1 .tg-element-title,
.section-faqs-2 .tg-element-title,
.section-video-2 .tg-element-title {
  color: var(--tc-system-white) !important;
}

/* Portfolio section: smaller fonts so title and "Google Play / Mobile" are fully visible */
/* Hover reveal image: fit within 400×500px box, cover to fill */
.section-portfolio-3 .tg-img-reveal-wrapper .tg-img-reveal-wrapper__img {
  background-size: cover !important;
  background-position: center !important;
}
.section-portfolio-3 .single-portfolio-card-3 .portfolio-card-title {
  font-size: 44px !important;
  line-height: 1.15 !important;
}
.section-portfolio-3 .single-portfolio-card-3 .portfolio-card-title span {
  font-size: 44px !important;
}
.section-portfolio-3 .single-portfolio-card-3 .portfolio-card-text {
  font-size: 0.7rem !important;
  padding-top: 0.6rem !important;
  line-height: 1.4 !important;
}
@media (max-width: 1399px) {
  .section-portfolio-3 .single-portfolio-card-3 .portfolio-card-title {
    font-size: 32px !important;
  }
  .section-portfolio-3 .single-portfolio-card-3 .portfolio-card-title span {
    font-size: 32px !important;
  }
}
@media (max-width: 1399.98px) {
  .section-portfolio-3 .single-portfolio-card-3 .portfolio-card-title {
    font-size: 26px !important;
  }
  .section-portfolio-3 .single-portfolio-card-3 .portfolio-card-title span {
    font-size: 26px !important;
  }
}
@media (max-width: 767.98px) {
  .section-portfolio-3 .single-portfolio-card-3 .portfolio-card-title {
    font-size: 20px !important;
  }
  .section-portfolio-3 .single-portfolio-card-3 .portfolio-card-title span {
    font-size: 20px !important;
  }
}

/* Portfolio section: circular logo text - smaller so "_ Jamil Parvez - Game Developer -" fits */
.section-portfolio-3 .circle-text {
  font-size: 9px !important;
}
.section-portfolio-3 .circle-text span {
  transform-origin: 0 74px;
}

/* Video section: "My work" button - bold, visible text on yellow */
.section-video-1 .video-section-btn-mywork {
  font-weight: 700 !important;
  font-size: 1rem !important;
  color: #111 !important;
  white-space: nowrap;
  text-align: center;
  min-width: 6rem;
}

/* Video section: progress bar inside video area (always visible); "Jamil Parvez" banner not clipped */
.section-video-1 {
  overflow-x: hidden;
  overflow-y: visible; /* do not clip scroll-move-right "Jamil Parvez" text */
  padding-bottom: 0rem !important;
}
.section-video-1 .position-relative.z-1 {
  overflow-x: hidden;
  overflow-y: visible;
}
.section-video-1 .scroll-move-right {
  overflow-x: hidden;
  max-width: 100%;
  z-index: 2; /* above video so "Lead Developer / Jamil Parvez" is visible */
}
.section-video-1 .scroll-move-right .video-scroll-banner {
  z-index: 2;
}

/* Video section: progress bar at bottom of video (always visible with video, no scroll needed) */
.section-video-1 .video-progress {
  bottom: 0rem;
  left: 16%;
  right: 15%;
  width: 76%;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
  margin: 0 auto;
}
.section-video-1 .video-progress__track {
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: visible;
  cursor: pointer;
  position: relative;
}
.section-video-1 .video-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--tc-theme-primary, #E3FF04);
  border-radius: 3px;
  transition: width 0.15s ease;
}
/* Small round circle (thumb) showing current play position */
.section-video-1 .video-progress__thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  margin-left: -7px;
  background: var(--tc-theme-primary, #E3FF04);
  border: 2px solid #111;
  border-radius: 50%;
  pointer-events: none;
  transition: left 0.15s ease;
  z-index: 1;
}

/* Video section: smaller pan + green border; margin below so video (and border) stop above progress bar */
.section-video-1 .section-video-1__bg-video {
  display: block;
  width: 100%;
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
  object-fit: cover;
  border: 3px solid var(--tc-theme-primary, #E3FF04);
  border-radius: 0.5rem;
  box-sizing: border-box;
  position: relative;
  z-index: 0;
}

/* Text block between video and testimonials (Lead Developer / Jamil Parvez) - scroll-move-right for GSAP animation */
.section-video-1-banner .scroll-move-right {
  text-align: center;
}
.section-video-1-banner .video-scroll-banner {
  font-size: 2.5rem !important;
  color: #fff;
}
@media (min-width: 768px) {
  .section-video-1-banner .video-scroll-banner {
    font-size: 3.5rem !important;
  }
}
@media (min-width: 1200px) {
  .section-video-1-banner .video-scroll-banner {
    font-size: 4rem !important;
  }
}

/* Video section: smaller scrolling banner text (Lead Developer / Jamil Parvez) */
.section-video-1 .scroll-move-right .video-scroll-banner {
  font-size: 2.5rem !important;
}
@media (min-width: 768px) {
  .section-video-1 .scroll-move-right .video-scroll-banner {
    font-size: 3.5rem !important;
  }
}
@media (min-width: 1200px) {
  .section-video-1 .scroll-move-right .video-scroll-banner {
    font-size: 4rem !important;
  }
}

/* About page: ensure "Jamil Parvez" stroke text is fully visible (no clipping) */
.section-hero-4,
.section-hero-4 .container,
.section-hero-4 .row,
.section-hero-4 .col-lg-6 {
  overflow: visible;
}
.section-hero-4 .d-flex.align-items-center {
  overflow: visible;
  flex-wrap: wrap;
}
.section-hero-4 h2.stroke {
  overflow: visible;
  white-space: nowrap;
  font-size: 3.5rem !important;
}
@media (min-width: 1200px) {
  .section-hero-4 h2.stroke {
    font-size: 4rem !important;
  }
}
@media (max-width: 1199.98px) {
  .section-hero-4 h2.stroke {
    font-size: 3rem !important;
  }
}
@media (max-width: 767.98px) {
  .section-hero-4 h2.stroke {
    font-size: 2rem !important;
  }
}

/* About page: large decorative "Jamil Parvez" in video-2 section - allow it to show */
.section-video-2.scroll-move-right,
.section-video-2 .scroll-move-right {
  overflow: visible;
}
.section-video-2 {
  overflow: visible;
}
.section-video-2 .scroll-move-right h3.stroke {
  overflow: visible;
  white-space: nowrap;
  pointer-events: none;
}

/* Contact page: map in a pan with same green border as video section, Chicago default */
.contact-map-wrapper {
  width: 100%;
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.contact-map-pan {
  width: 100%;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  border: 3px solid var(--tc-theme-primary, #E3FF04);
  border-radius: 0.5rem;
  overflow: hidden;
  box-sizing: border-box;
  background: #111;
}
.contact-map-pan iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}
@media (max-width: 767.98px) {
  .contact-map-pan {
    max-width: 95%;
  }
  .contact-map-pan iframe {
    height: 300px;
  }
}

/* Testimonials section: padding top */
.section-testimonials-3.section-padding.bg-black-1 {
  padding-top: 10px !important;
}

/* Responsive refinements: preserve desktop look while preventing tablet/mobile overflow */
@media (max-width: 1199.98px) {
  html,
  body,
  main,
  section,
  header,
  footer {
    width: 100%;
    max-width: 100%;
  }
  .container,
  .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
  }
  .navbar .align-items-lg-center.me-auto.ms-10.d-none.d-lg-flex {
    display: none !important;
  }
  .navbar > .d-flex.justify-content-between.align-items-center.w-100 {
    padding-left: 1rem !important;
    gap: 0.75rem;
  }
  .navbar-brand,
  .offCanvas__logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
  }
  .navbar-brand span,
  .offCanvas__logo span {
    white-space: normal;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .square-100 {
    width: 84px;
    height: 84px;
  }
  .menu-tigger {
    padding: 1rem !important;
  }
  .section-hero-3 {
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
  .section-hero-3 > .container.position-absolute.top-50.start-50.translate-middle.z-1 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-top: 7rem;
    padding-bottom: 5rem;
    z-index: 2;
  }
  /* Background as overlay so content shows in first viewport (no full-screen image push) */
  .section-hero-3 .bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }
  .section-hero-3 .figure-group {
    display: none;
  }
  .section-hero-3 .row.position-relative.z-2 > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
  .section-hero-3 .d-flex.align-items-center {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .section-hero-3 .d-flex.align-items-center .stroke {
    margin-left: 0 !important;
    white-space: normal;
    line-height: 1.05;
  }
  .section-hero-3 .btn {
    width: 100%;
    justify-content: center;
  }
  .section-hero-4 .row.flex-nowrap {
    flex-wrap: wrap;
  }
  .section-hero-4 .container {
    width: 100% !important;
    max-width: 100% !important;
  }
  .section-hero-4 .row.flex-nowrap > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
  .section-hero-4 .img-bg {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    min-height: 420px;
    width: 100% !important;
    margin-top: 2rem !important;
  }
  .section-video-1 .section-video-1__bg-video {
    max-width: 84%;
  }
  .section-video-1 .video-progress {
    left: 8%;
    right: 8%;
    width: auto;
  }
  .section-pricing-1 .tg-element-title.text-nowrap,
  .section-video-2 h2.text-nowrap,
  .section-works-1 h5.text-nowrap {
    white-space: normal !important;
  }
  .section-contact-1 .row > [class*="col-"],
  .section-contact-1 form .col-md-6,
  .section-contact-1 form .col-12,
  .section-about-3 .row.pt-3 > [class*="col-"],
  .section-services-3 .row.mt-8 > [class*="col-"],
  .section-why-choose-us-2 .row.mt-8 > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  .section-works-1 .masonary-active {
    height: auto !important;
    width: 100% !important;
  }
  .section-works-1 .grid-sizer,
  .section-works-1 .filter-item,
  .section-works-1 .filter-item[class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  .section-works-1 .filter-item {
    position: relative !important;
    left: auto !important;
    top: auto !important;
  }
  .section-works-1 .card-review {
    flex-wrap: wrap;
  }
  .section-works-1 .card-review > * {
    flex: 1 1 140px;
  }
}

@media (max-width: 991.98px) {
  .section-hero-4 .img-bg {
    min-height: 360px;
  }
  .section-hero-4 .icon_185 {
    width: 140px;
    height: 140px;
  }
  .section-video-2 .position-relative.z-1 {
    overflow: hidden;
  }
  .section-video-2 h2.text-nowrap {
    width: calc(100% - 2rem);
    padding: 0 1rem;
    font-size: clamp(2rem, 8vw, 3.5rem) !important;
    line-height: 1.05;
    text-align: center;
    top: 1.75rem !important;
    transform: translateX(-50%) !important;
  }
  .section-video-2 .icon-xxxl {
    width: 5rem;
    height: 5rem;
    line-height: 5rem;
  }
  .section-footer .row > [class*="col-"] {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 767.98px) {
  body {
    overflow-x: hidden;
  }
  .container,
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .row > * {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .navbar > .d-flex.justify-content-between.align-items-center.w-100 {
    padding-right: 0 !important;
    padding-left: 0.75rem !important;
  }
  .navbar-brand img,
  .offCanvas__logo img {
    height: 32px;
    max-height: 32px;
  }
  .navbar-brand span,
  .offCanvas__logo span {
    font-size: 1rem !important;
    max-width: 8rem;
  }
  .square-100 {
    width: 68px;
    height: 68px;
  }
  .menu-tigger {
    padding: 0.75rem !important;
  }
  .menu-tigger svg {
    width: 14px;
    height: 14px;
  }
  .menu-tigger span {
    margin-top: 0.35rem !important;
    font-size: 0.75rem !important;
    line-height: 1.1;
  }
  .section-portfolio-3 .icon_160 {
    width: 120px;
    height: 120px;
    line-height: 120px;
  }
  .section-portfolio-3 .circle-text span {
    transform-origin: 0 58px;
  }
  .section-portfolio-3 .single-portfolio-card-3 .portfolio-card-title a {
    overflow-wrap: anywhere;
  }
  .section-portfolio-3 .single-portfolio-card-3 .portfolio-card-text {
    position: static !important;
    margin-top: 0.75rem !important;
    padding-top: 0.75rem !important;
  }
  .section-hero-3 .bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }
  .section-video-1 .section-video-1__bg-video {
    max-width: calc(100% - 2rem);
    margin-bottom: 4.5rem;
  }
  .section-video-1 .video-progress {
    left: 1rem;
    right: 1rem;
    width: auto;
    padding: 0.25rem 0;
  }
  .section-video-1 .video-progress__thumb {
    width: 12px;
    height: 12px;
    margin-top: -6px;
    margin-left: -6px;
  }
  .section-video-1 .position-absolute.top-0.start-0.z-2 {
    margin: 0.75rem !important;
  }
  .section-video-1 .video-section-btn-mywork {
    min-width: 0;
    font-size: 0.875rem !important;
    padding: 0.75rem 1rem !important;
  }
  .section-video-1 .scroll-move-right,
  .section-video-1-banner .scroll-move-right {
    padding-top: 1rem;
  }
  .section-video-1 .scroll-move-right .video-scroll-banner,
  .section-video-1-banner .video-scroll-banner {
    position: static !important;
    transform: none !important;
    display: block;
    padding: 0 1rem;
    white-space: normal !important;
    text-align: center;
    line-height: 1.05;
    font-size: clamp(1.75rem, 9vw, 2.5rem) !important;
  }
  .section-hero-4 .d-flex.align-items-center {
    align-items: flex-start !important;
    gap: 1rem;
  }
  .section-hero-4 h2.stroke {
    white-space: normal;
    line-height: 1.05;
  }
  .section-hero-4 .icon_185 {
    width: 120px;
    height: 120px;
    font-size: 1rem !important;
  }
  .section-works-1 .card-work .card-work-content {
    padding: 1.25rem 1rem;
  }
  .section-works-1 .card-work-content .d-flex.gap-3 {
    flex-wrap: wrap;
  }
  .section-works-1 .card-review {
    padding: 1rem !important;
    gap: 1rem !important;
  }
  .section-contact-1 .d-flex.align-items-center.mb-2 {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .section-contact-1 a.d-flex.align-items-center {
    align-items: flex-start !important;
  }
  .contact-map-wrapper {
    padding-top: 1rem;
  }
  .page-header .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
  }
}

@media (max-width: 575.98px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }
  .navbar-brand span {
    display: none;
  }
  .square-100 {
    width: 56px;
    height: 56px;
  }
  .section-hero-3 .bg {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
  }
  .section-hero-3 .btn,
  .section-hero-4 .btn,
  .section-video-2 .btn {
    width: 100%;
    justify-content: center;
  }
  .section-about-3 .row > [class*="col-"],
  .section-services-3 .row.mt-8 > [class*="col-"],
  .section-why-choose-us-2 .row.mt-8 > [class*="col-"],
  .section-contact-1 .row > [class*="col-"],
  .section-hero-4 .row.flex-nowrap > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  .section-about-3 .row.pt-3 > [class*="col-"],
  .section-contact-1 form .col-md-6,
  .section-contact-1 form .col-12 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  .section-services-3 .card,
  .section-why-choose-us-2 .card {
    margin-bottom: 1rem;
  }
  .section-works-1 .masonary-active,
  .section-works-1 .masonary-active .row {
    width: 100%;
  }
  .section-works-1 .grid-sizer,
  .section-works-1 .filter-item,
  .section-works-1 .filter-item[class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  .section-works-1 .filter-item {
    left: 0 !important;
  }
  .section-footer .row.mt-lg-0.mt-5.ms-lg-10 > [class*="col-"] {
    width: 100%;
  }
  .section-footer .row.mt-lg-0.mt-5.ms-lg-10 .pt-5 {
    padding-top: 1.5rem !important;
  }
  .section-video-2 .icon-xxxl {
    width: 4.25rem;
    height: 4.25rem;
    line-height: 4.25rem;
    font-size: 0.8rem;
  }
}
