/* ==========================================================================
   MEDIALAB ASIA - PAGE-SPECIFIC STYLES & LAYOUTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO SECTION (HOME)
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 90vh;
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-success);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, #ffffff 10%, #7dd3fc 60%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Partner & Client Marquee */
.marquee-wrapper {
  overflow: hidden;
  user-select: none;
  display: flex;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  padding: 20px 0;
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  min-width: 100%;
  gap: 40px;
  animation: scroll-marquee 30s linear infinite;
}

@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.partner-logo-item {
  height: 52px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.partner-logo-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.25);
  transform: translateY(-2px);
}

.partner-logo-item img {
  height: 28px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   2. ABOUT US: GLOBAL FOOTPRINT & TIMELINE
   -------------------------------------------------------------------------- */
.global-map-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 60px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 36px;
  padding: 36px 40px;
  transition: all var(--transition-normal);
}

.global-map-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.global-map-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.global-map-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.global-map-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 4px;
}

.global-map-location {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.global-map-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.global-map-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.global-map-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: all var(--transition-normal);
}

.global-map-highlight-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-medium);
}

.highlight-bullet {
  color: var(--accent-cyan);
  font-size: 0.9rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.global-map-highlight-item strong {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--text-main);
  display: block;
  margin-bottom: 2px;
}

.global-map-highlight-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.global-map-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow: hidden;
  position: relative;
}

.global-map-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 25px rgba(0, 102, 255, 0.2));
}

/* HQ Operational Command Widget */
.hq-command-widget {
  background: rgba(12, 16, 28, 0.85);
  border: 1px solid rgba(0, 102, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 0 30px rgba(0, 102, 255, 0.05);
}

.hq-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 18px;
}

.hq-widget-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #86efac;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hq-widget-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-subtle);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hq-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.hq-metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: all var(--transition-normal);
}

.hq-metric-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.hq-metric-val {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 4px;
}

.hq-metric-val.cyan {
  color: var(--accent-cyan);
}

.hq-metric-val.emerald {
  color: #34d399;
}

.hq-metric-val.gold {
  color: #fbbf24;
}

.hq-metric-val.purple {
  color: #c084fc;
}

.hq-metric-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.hq-metric-sub {
  font-size: 0.7rem;
  color: var(--text-subtle);
  line-height: 1.3;
}

.hq-telemetry-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hq-telemetry-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.telemetry-label {
  color: var(--text-muted);
}

.telemetry-badge.active {
  font-size: 0.72rem;
  font-weight: 700;
  color: #86efac;
  letter-spacing: 0.04em;
}

.location-item {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.location-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
}

.location-flag {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.location-country {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.location-city {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 6px;
}

.location-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Timeline */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary) 0%, var(--accent-cyan) 50%, rgba(255, 255, 255, 0.1) 100%);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  width: 50%;
  padding: 0 32px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 12px;
  width: 14px;
  height: 14px;
  background: var(--accent-cyan);
  border: 3px solid #070a12;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -7px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -7px;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: inline-block;
  text-align: inherit;
  transition: all var(--transition-fast);
}

.timeline-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.15);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Workforce Structure */
.workforce-section {
  margin-top: 60px;
}

.workforce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.workforce-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.workforce-count {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.workforce-dept {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.workforce-role {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   3. SERVICES & PROPRIETARY TECH SPOTLIGHT
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 80px;
}

/* 4 Columns Service Portfolio Grid */
.services-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

.services-portfolio-grid .service-card {
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
}

.services-portfolio-grid .service-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 12px;
}

.services-portfolio-grid .service-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.services-portfolio-grid .service-offerings-list {
  margin-top: auto;
  gap: 8px;
}

.services-portfolio-grid .service-offerings-list li {
  font-size: 0.82rem;
  line-height: 1.45;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition-normal);
}

.service-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.service-icon-box {
  width: 56px;
  height: 56px;
  background: rgba(0, 102, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--accent-cyan);
}

.service-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.service-offerings-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-offerings-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-main);
}

.service-offerings-list li::before {
  content: '✓';
  color: var(--accent-success);
  font-weight: 800;
}

/* Proprietary Tech Box */
.tech-spotlight-box {
  background: linear-gradient(180deg, rgba(12, 18, 32, 0.9) 0%, rgba(7, 10, 18, 0.95) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 0 50px rgba(0, 102, 255, 0.15);
  margin-bottom: 60px;
}

.tech-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.tech-badge-pill {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-success);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tech-diagrams-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.diagram-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.diagram-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #000;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.diagram-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.diagram-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tech-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.tech-feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.tech-feature-card h4 {
  color: var(--accent-cyan);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   4. NEWS & UPDATES (TABS & ARTICLE MODAL)
   -------------------------------------------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.news-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.news-img-box {
  width: 100%;
  height: 200px;
  background: #000;
  overflow: hidden;
}

.news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.news-card:hover .news-img {
  transform: scale(1.05);
}

.news-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.8rem;
}

.news-badge {
  background: rgba(0, 102, 255, 0.15);
  color: var(--accent-cyan);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.news-date {
  color: var(--text-subtle);
}

.news-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--text-main);
}

.news-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-weight: 600;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   5. CONTACT PAGE & FORM
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-direct-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.channel-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent-cyan);
}

.channel-info h4 {
  font-size: 0.88rem;
  color: var(--text-subtle);
  text-transform: uppercase;
}

.channel-info a, .channel-info p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Contact Form */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(7, 10, 18, 0.7);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.3);
  background: rgba(12, 16, 28, 0.9);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-success);
  color: #a7f3d0;
}

.form-feedback.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

/* Responsive Overrides */
@media (max-width: 1200px) {
  .services-portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .tech-diagrams-grid {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .services-portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .timeline-container::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
    text-align: left !important;
  }
  .timeline-item:nth-child(even) {
    left: 0;
  }
  .timeline-dot {
    left: 14px !important;
  }
  .tech-features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .global-map-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hq-metrics-grid {
    grid-template-columns: 1fr;
  }
}
