/* ==========================================================================
   M90 TECHNOLOGIES — COMPONENTS & UI KIT
   ========================================================================== */

/* Container & Layout Helpers */
.hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

.section-py {
  padding-top: clamp(3.5rem, 7vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
}

.section-header {
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

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

.section-header.text-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  background: var(--bg-tag);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glow);
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.6;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -5px rgba(0, 102, 255, 0.5);
}

/* ==========================================================================
   AUTO-SLIDING CAROUSEL / SHOWCASE (3s TIMER)
   ========================================================================== */
.project-slider-wrapper {
  position: relative;
  width: 100%;
}

.slider-header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.slider-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-blue-500);
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.slider-nav-btns {
  display: flex;
  gap: 0.5rem;
}

.slider-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-btn:hover {
  background: var(--brand-blue-500);
  border-color: var(--brand-blue-500);
  color: #ffffff;
  transform: translateY(-2px);
}

.slider-btn svg {
  width: 18px;
  height: 18px;
}

.project-slider-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
  touch-action: pan-y;
}

.project-slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.project-slide-item {
  flex: 0 0 100%;
  padding: 0.4rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .project-slide-item {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .project-slide-item {
    flex: 0 0 33.3333%;
  }
}

.project-slider-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.card-footer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.slider-dots-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-dot.active {
  width: 28px;
  border-radius: var(--radius-full);
  background: var(--brand-blue-500);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary) !important;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-card-subtle);
  border-color: var(--accent-primary);
  color: var(--accent-primary) !important;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--bg-card-subtle);
  color: var(--accent-primary);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

.btn-icon-circle {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-base), border-color var(--transition-base);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo svg,
.brand-logo img {
  height: 38px;
  width: auto;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-tag-pill {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  background: var(--bg-tag);
  color: var(--accent-primary);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-glow);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 992px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-card-subtle);
}

.nav-link.active {
  color: var(--accent-primary);
  background: var(--bg-tag);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}



/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: var(--bg-page);
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
  z-index: 999;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  background: var(--bg-tag);
  color: var(--accent-primary);
}

/* ==========================================================================
   Cards & Glassmorphism
   ========================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.card-interactive {
  cursor: pointer;
}

.card-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card-glow:hover::before {
  opacity: 1;
}

.card-subtle {
  background: var(--bg-card-subtle);
  border-color: var(--border-subtle);
}

/* ==========================================================================
   Domain / Service Cards
   ========================================================================== */
.domain-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all var(--transition-smooth);
  position: relative;
}

.domain-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-xl);
}

.domain-badge {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: var(--bg-tag);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-glow);
}

.domain-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.domain-card:hover .domain-title {
  color: var(--accent-primary);
}

.domain-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.domain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.tag-pill {
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--bg-card-subtle);
  color: var(--text-secondary);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.tag-pill:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--bg-tag);
}

/* ==========================================================================
   Stats & Highlight Counters
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition-base);
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-glow);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.stat-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ==========================================================================
   Interactive Forms & Inputs
   ========================================================================== */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-label span.req {
  color: #EF4444;
}

.form-control {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted);
}

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

.file-dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  background: var(--bg-card-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.file-dropzone:hover,
.file-dropzone.drag-over {
  border-color: var(--accent-primary);
  background: var(--bg-tag);
}

.file-dropzone svg {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem auto;
  color: var(--accent-primary);
}

/* Form Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
}

[data-theme="dark"] .alert-success {
  color: #34D399;
}

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #DC2626;
}

[data-theme="dark"] .alert-error {
  color: #F87171;
}

/* ==========================================================================
/* ==========================================================================
   Footer (Reference UI - Compact)
   ========================================================================== */
.site-footer {
  background: var(--bg-card-subtle);
  border-top: 1px solid var(--border-strong);
  padding-top: clamp(1.5rem, 2.5vw, 2.25rem);
  padding-bottom: 1.25rem;
  margin-top: auto;
}

.footer-grid-ref {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1.15fr 1.35fr 0.85fr;
  gap: 0;
  margin-bottom: 1.5rem;
}

.footer-col-ref {
  padding: 0 1.25rem;
}

.footer-col-ref:first-child {
  padding-left: 0;
}

.footer-col-ref:last-child {
  padding-right: 0;
}

@media (min-width: 992px) {
  .footer-col-ref + .footer-col-ref {
    border-left: 1px solid var(--border-strong);
  }
}

@media (max-width: 991px) and (min-width: 641px) {
  .footer-grid-ref {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .footer-col-ref {
    padding: 0;
  }
}

@media (max-width: 640px) {
  .footer-grid-ref {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-col-ref {
    padding: 0;
  }
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 220px;
  margin-top: 0.6rem;
  margin-bottom: 0;
}

.footer-col-title-blue {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0066FF;
  margin-bottom: 0.75rem;
}

.footer-links-ref {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-link-ref {
  font-size: 0.875rem;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.4;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: block;
}

.footer-link-ref:hover {
  color: #0066FF;
  transform: translateX(2px);
  text-decoration: none;
}

.footer-contact-block {
  margin-bottom: 0.6rem;
}

.footer-contact-block:last-child {
  margin-bottom: 0;
}

.footer-sub-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
  display: block;
}

.footer-contact-text {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-primary);
}

.footer-contact-val-link {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  transition: color var(--transition-fast);
}

.footer-contact-val-link:hover {
  color: #0066FF;
  text-decoration: none;
}

.footer-connect-icons {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.footer-icon-link {
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
}

.footer-icon-link:hover {
  color: #0066FF;
  transform: translateY(-2px);
}

.footer-icon-link svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.footer-bottom-centered {
  padding-top: 1rem;
  border-top: 1px solid var(--border-strong);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Social Action Buttons (Contact Page & General UI)
   ========================================================================== */
.social-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: #0066FF;
  border-color: #0066FF;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  stroke: currentColor;
}


/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 {
  transition-delay: 100ms;
}

.stagger-2 {
  transition-delay: 200ms;
}

.stagger-3 {
  transition-delay: 300ms;
}

.stagger-4 {
  transition-delay: 400ms;
}