:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #0891b2;
  
  --bg-main: #eef2f6;          
  --surface: #ffffff;          
  --surface-alt: #f8fafc;      
  --surface-border: rgba(15, 23, 42, 0.08); 
  
  --text-dark: #0f172a;
  --text-muted: #475569;
  
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  
  --shadow-soft: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-depth: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  --shadow-hover: 0 25px 45px -12px rgba(37, 99, 235, 0.22);
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  scroll-behavior: smooth;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 40%);
}

.container { 
  width: min(1180px, calc(100% - 3rem)); 
  margin: 0 auto; 
}

/* Header Elements */
.site-header {
  position: sticky; 
  top: 0; 
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.header-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 0.75rem 0; 
}

.brand { 
  display: flex; 
  align-items: center; 
}

.brand-logo { 
  height: 42px; 
  width: auto; 
}

.site-nav { 
  display: flex; 
  gap: 2rem; 
}

.site-nav a { 
  text-decoration: none; 
  color: var(--text-muted); 
  font-weight: 600; 
  font-size: 0.95rem; 
  transition: color 0.2s; 
  padding: 0.5rem 0;
}

.site-nav a:hover { 
  color: var(--primary); 
}

/* Mobile Toggle Button */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-dark);
}

/* Mobile nav overlay that dims the page when nav is open */
.mobile-nav-overlay {
  display: none;
}
.mobile-nav-overlay.active {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1400;
}

/* Mobile nav open state */
.site-nav.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 86%);
  background: var(--surface);
  padding: 2.5rem 1.5rem;
  gap: 1rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.18);
  z-index: 1500;
}

/* Make nav links large and tappable in mobile open state */
.site-nav.mobile-open a { 
  font-size: 1.05rem; 
  padding: 0.6rem 0; 
}

/* Buttons */
.button {
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 0.5rem;
  padding: 0.85rem 1.8rem; 
  border-radius: 99px; 
  font-weight: 700; 
  font-size: 0.95rem;
  text-decoration: none; 
  transition: all 0.25s ease; 
  cursor: pointer; 
  border: none;
}

.button.primary { 
  background: linear-gradient(135deg, var(--primary), var(--accent)); 
  color: #fff; 
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.25); 
}

.button.primary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35); 
}

.button.outline { 
  background: var(--surface); 
  border: 1px solid var(--surface-border); 
  color: var(--text-dark); 
  box-shadow: var(--shadow-soft); 
}

.button.outline:hover { 
  border-color: var(--primary); 
  transform: translateY(-2px); 
}

/* Hero Section */
.hero { 
  padding: 6rem 0; 
}

.hero-grid { 
  display: grid; 
  grid-template-columns: 1.1fr 0.9fr; 
  gap: 4rem; 
  align-items: center; 
}

.badge-pill {
  display: inline-flex; 
  align-items: center; 
  gap: 0.5rem;
  background: rgba(37, 99, 235, 0.08); 
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: var(--primary); 
  padding: 0.4rem 1rem; 
  border-radius: 99px; 
  font-size: 0.825rem; 
  font-weight: 700; 
  margin-bottom: 1.25rem;
}

.badge-dot { 
  width: 8px; 
  height: 8px; 
  background: var(--primary); 
  border-radius: 50%; 
}

.hero h1 { 
  font-size: clamp(2.4rem, 4vw, 3.6rem); 
  line-height: 1.15; 
  letter-spacing: -0.03em; 
  margin-bottom: 1.25rem; 
}

.hero-lead { 
  font-size: 1.15rem; 
  color: var(--text-muted); 
  margin-bottom: 2rem; 
}

.hero-actions { 
  display: flex; 
  gap: 1rem; 
}

/* Rotator Banner Viewport */
.hero-media { 
  position: relative; 
}

.photo-frame {
  padding: 12px; 
  background: var(--surface);
  border-radius: var(--radius-lg); 
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-depth); 
  position: relative;
}

.photo-scroll { 
  height: 350px; 
  position: relative; 
  border-radius: var(--radius-md); 
  overflow: hidden; 
  background: #e2e8f0; 
}

.photo-card { 
  position: absolute; 
  inset: 0; 
  opacity: 0; 
  transition: opacity 0.8s ease; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: 10px; 
  cursor: pointer; 
  pointer-events: none;
}

.photo-card.active { 
  opacity: 1; 
  pointer-events: auto; 
}

.photo-card img { 
  max-width: 100%; 
  max-height: 100%; 
  object-fit: contain; 
  border-radius: var(--radius-sm); 
  transition: transform 0.3s ease; 
}

.photo-card:hover img { 
  transform: scale(1.02); 
}

.rotator-dots { 
  display: flex; 
  justify-content: center; 
  gap: 0.5rem; 
  margin-top: 1rem; 
}

.rotator-dot {
  width: 10px; 
  height: 10px; 
  border-radius: 50%; 
  background: #94a3b8; 
  cursor: pointer; 
  transition: all 0.3s ease;
}

.rotator-dot.active { 
  background: var(--primary); 
  width: 24px; 
  border-radius: 99px; 
}

/* Global Section Scaffolding */
.section { 
  padding: 5rem 0; 
  scroll-margin-top: 20px; 
}

.section-tag { 
  color: var(--primary); 
  font-size: 0.825rem; 
  font-weight: 800; 
  text-transform: uppercase; 
  letter-spacing: 0.1em; 
  display: block; 
  margin-bottom: 0.5rem; 
}

.section-header h2 { 
  font-size: 2.25rem; 
  letter-spacing: -0.02em; 
  margin-bottom: 0.75rem; 
}

.text-center { 
  text-align: center; 
}

.section-lead {
  margin: 0 auto 2.5rem; 
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Technology Showcase Workflow Section */
.workflow-section {
  background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.02) 50%, transparent);
}

.tech-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.tech-video-frame {
  position: relative;
  width: 100%;
  min-height: 320px;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-depth);
  overflow: hidden;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.tech-video-frame video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  background: #0f172a;
}

.video-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.video-control-btn {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.video-seek {
  flex: 1;
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

.workflow-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem; 
}

.workflow-card {
  background: var(--surface);
  padding: 1.5rem; 
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-soft);

}

.workflow-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 
    0 15px 30px -10px rgba(15, 23, 42, 0.08), 
    0 0 0 1px rgba(37, 99, 235, 0.05) inset;
}

.workflow-badge {
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  font-family: monospace, sans-serif;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);

}

.workflow-card:hover .workflow-badge {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.workflow-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.workflow-card h3 {
  font-size: 1.1rem; 
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.workflow-card p {
  font-size: 0.9rem; 
  color: var(--text-muted);
  line-height: 1.5;
}

/* Solutions Grid */
.solutions-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 2rem; 
}

.solution-card {
  background: var(--surface); 
  padding: 2.25rem; 
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border); 
  box-shadow: var(--shadow-soft); 
  transition: all 0.3s ease;
}

.solution-card:hover { 
  transform: translateY(-6px); 
  box-shadow: var(--shadow-hover); 
  border-color: rgba(37, 99, 235, 0.3); 
}

.solution-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.icon-box { 
  font-size: 2rem; 
  margin-bottom: 1rem; 
}

/* Gallery Component */
.gallery-wrapper { 
  position: relative; 
  display: flex; 
  align-items: center; 
}

.gallery-scroll-container {
  display: flex; 
  gap: 1.5rem; 
  overflow-x: auto; 
  padding: 1rem 0.25rem;
  scroll-snap-type: x mandatory; 
  scroll-behavior: smooth; 
  scrollbar-width: none;
}

.gallery-scroll-container::-webkit-scrollbar { 
  display: none; 
}

.scroll-btn {
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%); 
  width: 44px; 
  height: 44px;
  border-radius: 50%; 
  background: var(--surface); 
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-depth); 
  color: var(--text-dark); 
  font-size: 1.5rem; 
  font-weight: 700;
  cursor: pointer; 
  z-index: 10; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  transition: all 0.2s ease;
}

.scroll-btn:hover { 
  background: var(--primary); 
  color: #fff; 
  border-color: var(--primary); 
}

.prev-btn { left: -22px; }
.next-btn { right: -22px; }

.gallery-card {
  min-width: 300px; 
  max-width: 320px; 
  flex: 0 0 auto; 
  scroll-snap-align: start;
  background: var(--surface); 
  border-radius: var(--radius-md); 
  overflow: hidden;
  border: 1px solid var(--surface-border); 
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover { 
  transform: translateY(-6px); 
  box-shadow: var(--shadow-hover); 
  border-color: rgba(37, 99, 235, 0.3); 
}

.gallery-img-container {
  height: 200px;
  padding: 10px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.gallery-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gallery-info h4 {
  font-size: 1rem;
  margin: 0;
  color: var(--text-dark);
}

.gallery-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.gallery-source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.gallery-source-link:hover {
  text-decoration: underline;
}

/* Modals */
.modal-overlay {
  position: fixed; 
  inset: 0; 
  z-index: 1000; 
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px); 
  display: flex; 
  align-items: center; 
  justify-content: center;
  padding: 1.5rem; 
  opacity: 0; 
  pointer-events: none; 
  transition: opacity 0.3s ease;
}

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

.modal-card {
  background: var(--surface); 
  border-radius: var(--radius-lg); 
  max-width: 650px; 
  width: 100%;
  border: 1px solid var(--surface-border); 
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden; 
  position: relative; 
  transform: translateY(20px); 
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card { 
  transform: translateY(0); 
}

.modal-close { 
  position: absolute; 
  top: 1rem; 
  right: 1rem; 
  width: 36px; 
  height: 36px; 
  border-radius: 50%; 
  background: var(--surface-alt); 
  border: 1px solid var(--surface-border); 
  font-size: 1.25rem; 
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 10; 
}

.modal-visual-wrapper { 
  min-height: 220px; 
  background: var(--surface-alt); 
  padding: 1rem; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  border-bottom: 1px solid var(--surface-border); 
}

.modal-visual-wrapper.abstract-mode {
  align-items: flex-start;
}

.modal-img-wrapper img { 
  max-width: 100%; 
  max-height: 100%; 
  object-fit: contain; 
  border-radius: var(--radius-sm); 
}

.modal-abstract-wrapper {
  width: 100%;
  max-height: 280px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.modal-abstract-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.modal-abstract-wrapper p {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.92rem;
  line-height: 1.65;
}

.modal-body { 
  padding: 1.75rem; 
}

.modal-body h3 { 
  font-size: 1.1rem; 
  margin-bottom: 0.5rem; 
}

.modal-tag { 
  display: inline-block; 
  background: rgba(37, 99, 235, 0.1); 
  color: var(--primary); 
  font-size: 0.75rem; 
  font-weight: 800; 
  padding: 0.25rem 0.75rem; 
  border-radius: 99px; 
  margin-bottom: 1rem; 
  text-transform: uppercase; 
}

/* Founders / Team Section */
.team-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 2.5rem; 
  margin-top: 1.5rem; 
  max-width: 950px; 
  margin-left: auto; 
  margin-right: auto;
}

.team-profile-card {
  background: var(--surface); 
  border-radius: var(--radius-md); 
  border: 1px solid var(--surface-border); 
  box-shadow: var(--shadow-soft); 
  display: flex; 
  flex-direction: column;
  justify-content: space-between; 
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
  overflow: hidden; 
  height: 100%;
}

.team-profile-card:hover { 
  transform: translateY(-6px); 
  box-shadow: var(--shadow-hover); 
  border-color: rgba(37, 99, 235, 0.3); 
}

.profile-main { 
  padding: 1rem 1rem 1rem; 
  text-align: center; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
}

.avatar-frame {
  width: 100px; 
  height: 100px; 
  margin: 0 0 1.25rem 0; 
  padding: 5px;
  background: var(--surface-alt); 
  border: 1px solid var(--surface-border); 
  border-radius: 50%; 
  box-shadow: var(--shadow-depth);
}

.avatar-frame img { 
  width: 100%; 
  height: 100%; 
  border-radius: 50%; 
  object-fit: cover; 
}

.profile-main h3 { 
  font-size: 1.35rem; 
  color: var(--text-dark); 
  margin-bottom: 0.35rem; 
  font-weight: 700; 
}

.role-group { 
  display: flex; 
  flex-direction: column; 
  gap: 0.15rem; 
  margin-bottom: 1.25rem; 
  text-transform: uppercase; 
  letter-spacing: 0.05em; 
}

.role-main { 
  color: var(--primary); 
  font-weight: 800; 
  font-size: 0.8rem; 
  display: block; 
}

.role-sub { 
  color: var(--text-muted); 
  font-weight: 600; 
  font-size: 0.75rem; 
  font-style: italic; 
  display: block; 
}

.profile-main .bio { 
  font-size: 0.925rem; 
  color: var(--text-muted); 
  line-height: 1.6; 
  text-align: justify; 
}

.profile-footer { 
  padding: 0 2rem 2.5rem; 
  text-align: center; 
  background: transparent; 
}

.profile-link-btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 0.4rem; 
  text-decoration: none; 
  font-size: 0.85rem; 
  font-weight: 700; 
  color: var(--primary); 
  transition: color 0.2s ease; 
}

.profile-link-btn:hover { 
  color: var(--primary-dark); 
}

.link-icon { 
  width: 14px; 
  height: 14px; 
  transition: transform 0.2s ease; 
}

.profile-link-btn:hover .link-icon { 
  transform: translate(2px, -2px); 
}

/* Contact Section */
.contact-card-redesign {
  background: var(--surface); 
  border-radius: var(--radius-lg); 
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-depth); 
  max-width: 850px; 
  margin: 0 auto; 
  overflow: hidden;
  display: grid; 
  grid-template-columns: 280px 1fr; 
  align-items: stretch; 
}

.map-frame-compact { 
  width: 100%; 
  height: 100%; 
  background: var(--surface-alt); 
  border-right: 1px solid var(--surface-border); 
}

.map-frame-compact iframe { 
  width: 100%; 
  height: 100%; 
  border: none; 
  display: block; 
}

.contact-hub { 
  padding: 2.5rem; 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  gap: 1.25rem; 
  background: linear-gradient(145deg, var(--surface), var(--surface-alt)); 
}

.modern-chip { 
  display: flex; 
  align-items: center; 
  gap: 1.25rem; 
  background: var(--surface); 
  border: 1px solid var(--surface-border); 
  padding: 1.25rem; 
  border-radius: var(--radius-md); 
  box-shadow: var(--shadow-soft); 
  text-decoration: none; 
  color: inherit; 
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
}

.modern-chip.interactive:hover { 
  transform: translateY(-4px); 
  border-color: var(--primary); 
  box-shadow: var(--shadow-hover); 
}

.chip-icon-box { 
  width: 46px; 
  height: 46px; 
  border-radius: 12px; 
  background: rgba(37, 99, 235, 0.08); 
  border: 1px solid rgba(37, 99, 235, 0.15); 
  color: var(--primary); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  flex-shrink: 0; 
}

.chip-icon-box svg { 
  width: 22px; 
  height: 22px; 
}

.chip-details { 
  flex-grow: 1; 
}

.chip-details strong { 
  display: block; 
  font-size: 0.85rem; 
  color: var(--text-muted); 
  text-transform: uppercase; 
  letter-spacing: 0.05em; 
  margin-bottom: 0.25rem; 
}

.chip-details span { 
  font-size: 0.95rem; 
  font-weight: 600; 
  color: var(--text-dark); 
}

.action-arrow { 
  font-size: 1.25rem; 
  color: var(--text-muted); 
  transition: transform 0.25s ease, color 0.25s ease; 
  font-weight: 700; 
}

.modern-chip.interactive:hover .action-arrow { 
  transform: translateX(4px); 
  color: var(--primary); 
}

/* Global Responsive Viewports */
@media (max-width: 991px) {
  .tech-showcase-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .tech-video-frame {
    height: 350px;
  }
}

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

@media (max-width: 900px) {
  .hero-grid, .solutions-grid { 
    grid-template-columns: 1fr; 
  }
  .site-nav { 
    display: none; 
  }
  .contact-card-redesign { 
    grid-template-columns: 1fr; 
  }
  .map-frame-compact { 
    height: 200px; 
    border-right: none; 
    border-bottom: 1px solid var(--surface-border); 
  }
  .contact-hub { 
    padding: 2rem 1.5rem; 
  }
}

/* Footer Section */
.site-footer { 
  padding: 2.5rem 0; 
  border-top: 1px solid var(--surface-border); 
  color: var(--text-muted); 
  font-size: 0.85rem; 
  background: var(--surface); 
}

.footer-content { 
  display: flex; 
  justify-content: space-between; 
}

@media (max-width: 480px) {
  .footer-content { 
    flex-direction: column; 
    text-align: center; 
    gap: 0.5rem; 
  }
}

@media (max-width: 900px) {
  .mobile-toggle { display: block; }
}