/* ==========================================================================
   Digikore Originals - Dedicated Page Stylesheet (style.css)
   Card Design: Glass Panel (.effect-card.glass-panel)
   Heading Typography: Space Grotesk (.sec-title)
   Body Typography: Plus Jakarta Sans (.sec-desc)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CRITICAL MOBILE TOUCH & SCROLLING RESET (iOS Safari Compliant)
   -------------------------------------------------------------------------- */
html,
body {
  -webkit-overflow-scrolling: touch;
  -webkit-text-size-adjust: 100%;
  touch-action: pan-y;
}

/* Grids, Sliders, and Section Wrappers */
.contact-page-hero,
.collab-section,
.locations-section,
.email-section,
.locations-grid,
.collab-box,
.office-card,
.email-box,
.about-hero-section,
.about-cards-section,
.about-team-grid,
.about-card {
  touch-action: pan-y pinch-zoom;
}

/* Interactive Buttons, Cards, and Tiles */
.btn,
.office-card,
.collab-box,
.email-box,
.email-lead-link,
.about-card,
.mobile-nav-toggle,
.form-modal-close,
.form-modal-external-link {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

/* Zero-Tolerance for Closed Overlay Touch Blocking */
.nav-mobile-overlay:not(.active),
.video-modal:not(.active),
.form-modal:not(.active) {
  pointer-events: none !important;
  visibility: hidden !important;
}

.nav-mobile-overlay.active,
.form-modal.active {
  pointer-events: auto !important;
  visibility: visible !important;
}

/* --------------------------------------------------------------------------
   2. ACTIVE NAVIGATION ITEM
   -------------------------------------------------------------------------- */
nav ul li a.active,
.nav-mobile-overlay ul li a.active {
  color: var(--accent-orange, #FF7B3A) !important;
}

nav ul li a.active::after {
  width: 100% !important;
  background: var(--accent-orange, #FF7B3A) !important;
}

/* --------------------------------------------------------------------------
   3. CONTACT US PAGE STYLES
   -------------------------------------------------------------------------- */
/* Hero Section */
.contact-page-hero {
  position: relative;
  padding: 160px 0 50px 0;
  text-align: center;
  background: radial-gradient(circle at 50% 15%, rgba(255, 123, 58, 0.12) 0%, rgba(5, 8, 22, 0) 70%),
    radial-gradient(circle at 85% 25%, rgba(124, 92, 255, 0.08) 0%, rgba(5, 8, 22, 0) 60%),
    var(--bg-primary, #050816);
}

.contact-page-hero .sec-title {
  margin-bottom: 20px;
}

.contact-page-hero .sec-desc {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary, rgba(255, 255, 255, 0.72));
}

/* Collaboration Box */
.collab-section {
  padding: 40px 0 50px 0;
  background: var(--bg-primary, #050816);
}

.collab-box {
  max-width: 1000px;
  margin: 0 auto;
  background: rgba(14, 16, 36, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: clamp(40px, 5.5vw, 56px) 30px;
  text-align: center;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.collab-box:hover {
  transform: translateY(-3px);
  background: rgba(20, 24, 52, 0.6);
  border-color: rgba(255, 123, 58, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 25px rgba(255, 123, 58, 0.1);
}

.collab-box .sec-title {
  margin-bottom: 28px;
}

/* Locations Section */
.locations-section {
  padding: 50px 0 60px 0;
  background: var(--bg-primary, #050816);
  text-align: center;
}

.locations-section .sec-title {
  margin-bottom: 46px;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  align-items: stretch;
}

.office-card {
  background: rgba(14, 16, 36, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px 28px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.office-card:hover {
  transform: translateY(-3px);
  background: rgba(20, 24, 52, 0.6);
  border-color: rgba(255, 123, 58, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 25px rgba(255, 123, 58, 0.1);
}

.office-card.featured-card {
  border: 1px solid rgba(255, 123, 58, 0.5);
  background: rgba(20, 24, 52, 0.6);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 25px rgba(255, 123, 58, 0.18);
}

.office-card.featured-card:hover {
  border-color: rgba(255, 123, 58, 0.7);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 30px rgba(255, 123, 58, 0.25);
}

.office-pin-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 123, 58, 0.1);
  border: 1.5px solid rgba(255, 123, 58, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--accent-orange, #FF7B3A);
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.office-card:hover .office-pin-icon {
  transform: scale(1.08);
  border-color: var(--accent-orange, #FF7B3A);
  background: rgba(255, 123, 58, 0.18);
}

.office-city {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.office-address {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.95rem;
  color: var(--text-secondary, rgba(255, 255, 255, 0.72));
  line-height: 1.65;
  margin: 0;
}

/* Email Showcase Box */
.email-section {
  padding: 40px 0 110px 0;
  background: var(--bg-primary, #050816);
}

.email-box {
  max-width: 1000px;
  margin: 0 auto;
  background: rgba(14, 16, 36, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: clamp(38px, 5vw, 52px) 30px;
  text-align: center;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  box-sizing: border-box;
  overflow: hidden;
}

.email-box:hover {
  transform: translateY(-3px);
  background: rgba(20, 24, 52, 0.6);
  border-color: rgba(255, 123, 58, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 25px rgba(255, 123, 58, 0.1);
}

.email-box .sec-title {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  margin-bottom: 16px;
}

.email-lead-link {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: clamp(1.15rem, 3.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.email-lead-link:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

/* --------------------------------------------------------------------------
   4. ABOUT US PAGE STYLES
   -------------------------------------------------------------------------- */
.about-hero-section {
  position: relative;
  padding: 160px 0 50px 0;
  text-align: center;
  background: radial-gradient(circle at 50% 15%, rgba(255, 123, 58, 0.12) 0%, rgba(5, 8, 22, 0) 70%),
    radial-gradient(circle at 85% 25%, rgba(124, 92, 255, 0.08) 0%, rgba(5, 8, 22, 0) 60%),
    var(--bg-primary, #050816);
}

.about-hero-section .sec-title {
  margin-bottom: 20px;
}

.about-hero-section .sec-desc {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.55;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: -0.01em;
}

.about-cards-section {
  padding: 40px 0 110px 0;
  background: var(--bg-primary, #050816);
}

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1240px;
  margin: 0 auto;
  align-items: stretch;
}

.about-card {
  background: rgba(14, 16, 36, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-3px);
  background: rgba(20, 24, 52, 0.6);
  border-color: rgba(255, 123, 58, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 25px rgba(255, 123, 58, 0.1);
}

.about-card.card-centered-single {
  grid-column: 2;
}

.about-card-visual {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(8, 10, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.4s ease;
}

.about-card:hover .about-card-img {
  transform: scale(1.03);
}

.about-card-body {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.about-card-name {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin: 0 0 6px 0;
}

.about-card-role {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-orange, #FF7B3A);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.about-card-bio {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary, rgba(255, 255, 255, 0.72));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-card-bio p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {

  .locations-grid,
  .about-team-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    gap: 24px;
  }

  .office-card.featured-card,
  .about-card.card-centered-single {
    grid-column: 1 / span 2;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {

  .contact-page-hero,
  .about-hero-section {
    padding: 110px 0 35px 0;
  }

  .about-hero-section .sec-desc {
    font-size: clamp(1.1rem, 4.4vw, 1.35rem);
    line-height: 1.5;
    padding: 0 12px;
  }

  .collab-box,
  .email-box,
  .about-card,
  .office-card {
    border-radius: 20px;
  }

  .collab-box {
    padding: 32px 20px;
  }

  .email-box {
    padding: 30px 16px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .email-box .sec-title {
    font-size: clamp(1.15rem, 4.8vw, 1.45rem);
    margin-bottom: 12px;
  }

  .email-lead-link {
    font-size: clamp(0.92rem, 4.3vw, 1.25rem) !important;
    word-break: break-all;
    overflow-wrap: anywhere;
    max-width: 100%;
    line-height: 1.35;
    display: inline-block;
  }

  .locations-grid,
  .about-team-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 20px;
  }

  .office-card.featured-card,
  .about-card.card-centered-single {
    grid-column: auto;
    max-width: 100%;
    margin: 0;
  }

  .office-card,
  .about-card {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .email-box {
    padding: 24px 14px;
    border-radius: 18px;
  }

  .email-box .sec-title {
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .email-lead-link {
    font-size: clamp(0.82rem, 4.1vw, 1rem) !important;
    letter-spacing: -0.01em;
    word-break: break-all;
    overflow-wrap: anywhere;
  }
}