/* DevSynt heading polish: balanced hero titles, cleaner section labels, and consistent spacing. */

.heading1 {
  --heading-max-width: 980px;
}

.heading1.text-center,
.heading1.space-margin60.text-center,
.portfolio-header.heading1,
.service-header.heading1,
.about-header.heading1 {
  max-width: var(--heading-max-width);
  margin-left: auto;
  margin-right: auto;
}

.heading1 h5 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  color: #c0f037;
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.2;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-align: center;
}

.heading1:not(.text-center) h5 {
  margin-left: 0;
}

.heading1 h5 img {
  flex: 0 0 auto;
  margin: 0;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.heading1 h2 {
  max-width: var(--heading-max-width);
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.08;
  letter-spacing: -1.4px;
  text-wrap: balance;
}

.heading1:not(.text-center) h2 {
  margin-left: 0;
}

.heading1 p {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.72;
}

.heading1:not(.text-center) p {
  margin-left: 0;
}

.space-margin60 {
  margin-bottom: clamp(34px, 5vw, 58px);
}

.service1-section-area .service-header,
.service3-section-area .service-header {
  --heading-max-width: 1120px;
}

.service1-section-area .service-header h2,
.service3-section-area .service-header h2 {
  max-width: 1080px;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -1.15px;
}

.service1-section-area .service-header h5,
.service3-section-area .service-header h5 {
  margin-bottom: 2px;
}

.service1-section-area .service-header .space20,
.service3-section-area .service-header .space20 {
  height: clamp(12px, 1.6vw, 18px);
}

.about1-section-area .about-header {
  --heading-max-width: 900px;
  max-width: 900px;
}

.about1-section-area .about-header h2 {
  max-width: 860px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.06;
  letter-spacing: -1.15px;
  text-wrap: balance;
}

.about1-section-area .about-header p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.72;
}

.about1-section-area .about-header .space20 {
  height: clamp(12px, 1.6vw, 18px);
}

.about1-section-area .bg-progress {
  max-width: 760px;
}

body:has(.careers-hero-heading) .inner-section-area .hero-header-area h1 {
  max-width: 680px;
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 1;
}

body:has(.careers-hero-heading) .about1-section-area .about-header h2 {
  max-width: 920px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
}

body:has(.careers-hero-heading) .heading1.text-center h2 {
  max-width: 900px;
  font-size: clamp(34px, 4.3vw, 58px);
  line-height: 1.08;
}

.inner-section-area {
  padding: clamp(112px, 10vw, 150px) 0 clamp(28px, 4vw, 50px);
}

.inner-section-area .row.align-items-center {
  min-height: clamp(260px, 34vw, 430px);
}

.inner-section-area .hero-header-area {
  max-width: 1100px;
  position: relative;
  z-index: 2;
}

.inner-section-area .hero-header-area h1 {
  max-width: 100%;
  color: #ffffff;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -2px;
  text-transform: uppercase;
  text-wrap: wrap;
  overflow-wrap: normal;
  word-break: normal;
}

.inner-section-area .hero-header-area h1.is-long-title {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -1.6px;
}

.inner-section-area .hero-header-area h1.is-extra-long-title {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.04;
  letter-spacing: -1.2px;
  max-width: 100%;
}

.inner-section-area .hero-header-area h4 {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
  padding: 11px 14px;
  border: 1px solid rgba(192, 240, 55, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(10px);
}

.inner-section-area .hero-header-area h4 a,
.inner-section-area .hero-header-area h4 i {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.inner-section-area .hero-header-area h4 a:last-child {
  color: #c0f037;
}

.inner-section-area .hero-header-area h4 i {
  margin: 0;
  opacity: 0.8;
}

.inner-section-area .imges-header {
  opacity: 0.9;
}

.hero4-section-area .hero-header-area h5 {
  color: #c0f037;
  font-size: clamp(13px, 1vw, 16px);
  letter-spacing: 1.2px;
}

.hero4-section-area .hero-header-area h1 {
  text-wrap: balance;
}

/* Custom grid overrides removed to restore standard Bootstrap classes */

@media (max-width: 991px) {
  .inner-section-area .hero-header-area {
    max-width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .inner-section-area .hero-header-area h1 {
    margin-left: auto;
    margin-right: auto;
  }

  .inner-section-area .hero-header-area h4 {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .heading1 h2 {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.8px;
  }

  .inner-section-area .hero-header-area h1,
  .inner-section-area .hero-header-area h1.is-long-title,
  .inner-section-area .hero-header-area h1.is-extra-long-title {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.02;
    letter-spacing: -0.8px;
  }

  .inner-section-area .hero-header-area h4 {
    border-radius: 18px;
  }
}

/* Security Warning Modal Styles */
.devsynt-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 12, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.devsynt-modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.devsynt-modal-box {
  background: linear-gradient(135deg, #0b1016, #070b0f);
  border: 1px solid rgba(206, 241, 43, 0.22);
  border-radius: 16px;
  width: 92%;
  max-width: 580px;
  padding: 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 50px rgba(206, 241, 43, 0.04);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
  text-align: center;
}

.devsynt-modal-overlay.is-active .devsynt-modal-box {
  transform: translateY(0);
}

.devsynt-modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.devsynt-modal-close-btn:hover {
  color: #ffffff;
}

.devsynt-modal-icon {
  width: 64px;
  height: 64px;
  background: rgba(206, 241, 43, 0.1);
  border: 1px solid rgba(206, 241, 43, 0.25);
  color: #c0f037;
  font-size: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.devsynt-modal-title {
  color: #ffffff;
  font-family: var(--ztc-family-font1);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.devsynt-modal-text {
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--ztc-family-font2);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
  text-align: center;
}

.devsynt-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.devsynt-modal-btn {
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--ztc-family-font1);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.devsynt-modal-btn--cancel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
}

.devsynt-modal-btn--cancel:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.devsynt-modal-btn--proceed {
  background: #c0f037;
  border: 1px solid #c0f037;
  color: #0b1016;
}

.devsynt-modal-btn--proceed:hover {
  background: #d4f85e;
  border-color: #d4f85e;
  box-shadow: 0 0 15px rgba(206, 241, 43, 0.3);
}

.apply-scam-notice {
  background: rgba(206, 241, 43, 0.06);
  border: 1px solid rgba(206, 241, 43, 0.2);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 30px;
  text-align: left;
}

.apply-scam-notice .icon-area {
  color: #c0f037;
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.apply-scam-notice .content-area strong {
  display: block;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.apply-scam-notice .content-area p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 575px) {
  .apply-scam-notice {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .devsynt-modal-box {
    padding: 24px;
  }
  .devsynt-modal-actions {
    flex-direction: column;
    gap: 10px;
  }
  .devsynt-modal-btn {
    width: 100%;
  }
}



/* ===== PREMIUM IMAGE CARD & GLOW EFFECTS ===== */
.about1-section-area .images .elements8 {
  display: none !important; /* Hide old clunky overlapping shadow image */
}

.about1-section-area .images .img1 {
  border-radius: 20px !important;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 
              0 0 35px rgba(192, 240, 55, 0.03);
  background: rgba(255, 255, 255, 0.02);
  display: block !important;
  width: 100% !important;
  transition: box-shadow 0.5s ease, border-color 0.5s ease;
}

/* Enable transform transition only after GSAP reveal animation is complete */
.about1-section-area .images .img1.reveal-done {
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), 
              box-shadow 0.5s ease, 
              border-color 0.5s ease;
}

.about1-section-area .images .img1:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(192, 240, 55, 0.35); /* Subtle lime glowing border */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 
              0 0 45px rgba(192, 240, 55, 0.15); /* Sleek neon ambient glow */
}

.about1-section-area .images .img1 img {
  border-radius: 20px !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* Enable transform transition on image only after GSAP reveal is complete */
.about1-section-area .images .img1.reveal-done img {
  transition: transform 0.5s ease;
}

.about1-section-area .images .img1:hover img {
  transform: scale(1.03); /* Tiny internal scale effect */
}

/* Global reveal animation overrides to prevent circular layouts & collapse on first load */
.reveal {
  display: block !important;
  width: 100% !important;
}

.reveal img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}


/* ===== IMAGE SIZE & ALIGNMENT NUDGE ===== */
.about1-section-area .images {
  position: relative;
  z-index: 2;
  width: 106% !important; /* Make it just a bit bigger */
  left: 20px !important;   /* Shift it a little more to the right */
  margin-right: -30px !important; /* Pull adjacent text columns closer */
}


/* ===== PROJECT SINGLE VIDEO COMPACT DIMENSIONS ===== */
.project-detail-video-shell {
  aspect-ratio: 21 / 9 !important; /* Wide screen format */
  max-height: 440px !important;    /* Restrict vertical height so it fits in a single view */
  width: 100% !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  margin-left: auto;
  margin-right: auto;
  margin-top: 60px !important;
  margin-bottom: 60px !important;
}

.project-detail-video-shell .devsynt-loop-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

@media (max-width: 991px) {
  .project-detail-video-shell {
    aspect-ratio: 16 / 9 !important;
    max-height: 320px !important;
    margin-top: 40px !important;
    margin-bottom: 40px !important;
  }
}

/* ===== MOBILE: Reset about section image overflow ===== */
@media (max-width: 767px) {
  .about1-section-area .images {
    width: 100% !important;
    left: 0 !important;
    margin-right: 0 !important;
  }
}

/* ===== MOBILE: Fix video shell for small screens ===== */
@media (max-width: 767px) {
  .project-detail-video-shell {
    max-height: none !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    border-radius: 12px !important;
  }
  .about-others-area .img1.video-loop-shell {
    max-height: none !important;
  }
}
