/* === m00labs — Design System === */
/* Dark bg: #0F172A | Primary: #3B82F6 | Secondary: #10B981 */
/* Text: #E2E8F0 | Muted: #94A3B8 | Card: #1E293B | Border: #334155 */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 100%;
  background: #0F172A;
  color: #E2E8F0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background: #0F172A;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 { line-height: 1.18; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(36px, 7vw, 52px); }
h2 { font-size: clamp(26px, 4.5vw, 34px); }
h3 { font-size: clamp(20px, 3vw, 23px); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

section { padding: 80px 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 8px; font-weight: 600;
  font-size: 16px; cursor: pointer; border: none;
  transition: all 0.2s ease; font-family: inherit;
}
.btn-primary { background: #2563EB; color: #fff; }
.btn-primary:hover { background: #2563EB; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(59,130,246,0.35); }
.btn-outline { background: transparent; color: #E2E8F0; border: 1.5px solid #334155; }
.btn-outline:hover { border-color: #3B82F6; color: #3B82F6; }

.section-label { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #10B981; margin-bottom: 12px; }
.section-heading { margin-bottom: 16px; color: #F1F5F9; }
.section-sub { color: #94A3B8; font-size: 17px; max-width: 600px; line-height: 1.6; }

/* --- Nav --- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(15,23,42,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(51,65,85,0.5); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: #F1F5F9; letter-spacing: -0.01em; }
.nav-logo svg,.nav-logo img { height: 28px; width: auto; flex-shrink: 0; }
.logo-img.logo-dark{display:inline}
.logo-img.logo-light{display:none}
[data-theme="light"] .logo-img.logo-dark{display:none}
[data-theme="light"] .logo-img.logo-light{display:inline}
.nav-links { display: none; align-items: center; gap: 32px; }
.nav-links a { font-size: 15px; font-weight: 500; color: #94A3B8; transition: color 0.2s; }
.nav-links a:hover { color: #E2E8F0; }
.nav-cta { display: none; }
.hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: #E2E8F0; border-radius: 2px; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile menu dropdown */
.mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; background: #0F172A; border-bottom: 1px solid #1E293B; padding: 24px 20px; flex-direction: column; gap: 16px; z-index: 99; }
.mobile-menu.active { display: flex; }
.mobile-menu a { font-size: 17px; font-weight: 500; color: #E2E8F0; padding: 10px 0; border-bottom: 1px solid #1E293B; }
.mobile-menu a:last-child { border-bottom: none; }

/* --- Hero --- */
.hero { padding-top: 144px; padding-bottom: 80px; position: relative; overflow: hidden; }
.hero .container { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; position: relative; z-index: 2; }
.hero-content { max-width: 640px; }
.hero h1 { margin-bottom: 20px; color: #F8FAFC; }
.hero .hero-sub { font-size: 18px; color: #94A3B8; line-height: 1.6; margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero abstract illustration */
.hero-graphic { position: absolute; right: -60px; top: 120px; width: 500px; height: 500px; z-index: 1; opacity: 0.6; pointer-events: none; }
.hero-graphic svg { width: 100%; height: 100%; }

/* --- Services --- */
.services { background: #0F172A; }
.services .section-label, .services .section-heading, .services .section-sub { text-align: center; margin-left: auto; margin-right: auto; }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
.service-card { background: #1E293B; border: 1px solid #334155; border-radius: 12px; padding: 32px 28px; transition: border-color 0.2s, transform 0.2s; }
.service-card:hover { border-color: #3B82F6; transform: translateY(-2px); }
.service-icon { width: 48px; height: 48px; margin-bottom: 20px; }
.service-card h3 { margin-bottom: 10px; color: #F1F5F9; }
.service-card p { color: #94A3B8; font-size: 15px; line-height: 1.6; }

/* --- About --- */
.about { background: #0F172A; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
.about-text p { color: #94A3B8; font-size: 17px; line-height: 1.65; margin-bottom: 16px; }
.about-text p:last-child { margin-bottom: 0; }
.about-points { display: flex; flex-direction: column; gap: 16px; }
.about-point { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; background: #1E293B; border-radius: 8px; border: 1px solid #1E293B; }
.about-point-icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; color: #10B981; }
.about-point strong { display: block; color: #E2E8F0; font-size: 15px; margin-bottom: 2px; }
.about-point span { font-size: 14px; color: #94A3B8; }

/* --- Contact --- */
.contact { background: #0F172A; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
.contact-info h3 { margin-bottom: 8px; color: #F1F5F9; }
.contact-info p { color: #94A3B8; font-size: 15px; line-height: 1.6; margin-bottom: 24px; }
.contact-email { display: inline-flex; align-items: center; gap: 8px; color: #3B82F6; font-weight: 500; font-size: 15px; }
.contact-email:hover { text-decoration: underline; }

.contact-form { background: #1E293B; border: 1px solid #334155; border-radius: 12px; padding: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: #E2E8F0; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px; background: #0F172A; border: 1px solid #334155;
  border-radius: 8px; color: #E2E8F0; font-size: 15px; font-family: inherit;
  transition: border-color 0.2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: #3B82F6; }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit { width: 100%; justify-content: center; }

.form-success { display: none; text-align: center; padding: 48px 20px; }
.form-success.active { display: block; }
.form-success svg { width: 48px; height: 48px; margin: 0 auto 16px; color: #10B981; }
.form-success h3 { color: #F1F5F9; margin-bottom: 8px; }
.form-success p { color: #94A3B8; font-size: 15px; }

/* --- Footer --- */
.footer { border-top: 1px solid #1E293B; padding: 32px 0; }
.footer .container { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: #94A3B8; }
.footer-logo svg { width: 24px; height: 24px; }
.footer p { font-size: 14px; color: #64748B; }
.footer a { color: #3B82F6; font-weight: 500; }
.footer a:hover { text-decoration: underline; }

/* ===== ANIMATIONS (legacy pages) ===== */
@keyframes revealUp{0%{opacity:0;transform:translateY(32px)}100%{opacity:1;transform:translateY(0)}}
@keyframes glowPulse{0%,100%{opacity:.6}50%{opacity:.85}}
.btn-primary{position:relative;overflow:hidden}
.btn-primary::after{content:'';position:absolute;top:0;left:-100%;width:60%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.12),transparent);transition:left .5s}
.btn-primary:hover::after{left:200%}
.nav-links a{position:relative}
.nav-links a::after{content:'';position:absolute;bottom:-2px;left:0;width:0;height:2px;background:#3B82F6;transition:width .25s cubic-bezier(.16,1,.3,1)}
.nav-links a:hover::after{width:100%}
.card-3d{transition:transform .15s ease-out,border-color .25s,box-shadow .25s;transform-style:preserve-3d}
.reveal-legacy{opacity:0;transform:translateY(32px)}
.reveal-legacy.visible{animation:revealUp .7s cubic-bezier(.16,1,.3,1) both}
.hero-graphic{animation:glowPulse 4s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.reveal-legacy{opacity:1;transform:none}}

/* ===== RESPONSIVE ===== */

/* Tablet: 768px+ */
@media (min-width: 768px) {
  .container { padding: 0 32px; }
  section { padding: 100px 0; }

  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .hamburger { display: none; }

  .hero { padding-top: 180px; padding-bottom: 100px; }
  .hero-graphic { right: -40px; top: 100px; width: 550px; height: 550px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .about-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .about-points { margin-top: 0; }

  .contact-grid { grid-template-columns: 1fr 1.2fr; align-items: start; }

  .footer .container { flex-direction: row; justify-content: space-between; }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .hero-graphic { right: -20px; top: 80px; width: 650px; height: 650px; opacity: 0.7; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.5fr; }
}
