* 
{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0f0f0f;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(77,163,255,0.08), transparent 50%);
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: auto;
}

.navbar {
  position: fixed;
  will-change: transform;
  transform: translateZ(0);
  top: 20px;
  left: 50%;
  transform: translateX(-50%);

  width: 90%;
  max-width: 1200px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 14px 30px;

  background: rgba(15,15,15,0.55);
  border: 1px solid rgba(255,255,255,0.08);

  border-radius: 20px;

  z-index: 9999;
}

.navbar nav {
  display: flex;
  gap: 30px;
}

.navbar nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.3s;
}

.navbar nav a:hover {
  color: #4da3ff;
}

.logo {
  height: clamp(28px, 5vw, 42px);
  width: auto;
}
/* HERO SECTION */
.hero {
  position: relative;
  min-height: 100vh;
  background:
  linear-gradient(to bottom,
  rgba(0,0,0,0.65),
  rgba(0,0,0,0.55)),
  url("/lm-its/images/cover_photo.jpg") center/cover no-repeat;

  display: flex;
  align-items: center;

  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background:
  radial-gradient(circle at top right,
  rgba(77,163,255,0.18),
  transparent 35%);
}

.hero-container {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 1300px;

  margin: auto;

  padding: 120px 10%;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;

  align-items: center;
}

.hero-left {
  color: white;
}

.hero-tag {
  color: #4da3ff;
  margin-bottom: 20px;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

.hero-left h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  margin-bottom: 25px;
}

.hero-description {
  color: #d0d0d0;
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 14px 28px;
  border-radius: 14px;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 500;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(77,163,255,0.2);
}

.primary-btn {
  background: #4da3ff;
  color: white;
}

.primary-btn:hover {
  transform: translateY(-3px);
}

.secondary-btn {
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  background: rgba(255,255,255,0.05);
}

.secondary-btn:hover {
  background: rgba(255,255,255,0.1);
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-card {
  padding: 28px;

  background: rgba(255,255,255,0.06);

  border: 1px solid rgba(255,255,255,0.08);

  border-radius: 24px;
  color: white;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.hero-card:hover {
  transform: translateY(-5px);
  transition: transform 0.25s ease, border-color 0.25s ease;
  border-color: rgba(77,163,255,0.4);
}

.hero-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.hero-card p {
  color: #bdbdbd;
}


/* =========================
   SERVICES SECTION
========================= */

#services {
  background: #0f0f0f;
  color: white;
}

section {
  padding: 120px 10%;
}

.section-title {
  color: white;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 70px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
}

.service-card {
  background: #181818;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 40px 30px;
  transition: transform 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  contain: layout style;
  transform: translateZ(0);
}

.service-card::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
  radial-gradient(circle at top right,
  rgba(77,163,255,0.12),
  transparent 40%);

  opacity: 0;

  transition: 0.4s;
}

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

.service-card:hover {
  transform: translateY(-6px);
  transition: transform 0.25s ease, border-color 0.25s ease;
  border-color: rgba(77,163,255,0.3);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 25px;
}

.service-card h3 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.service-card p {
  color: #a9a9a9;
  line-height: 1.8;
  margin-bottom: 30px;
}

.service-link {
  color: #4da3ff;
  font-size: 0.95rem;
}

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

@media (max-width: 900px) {

  .hero-container {
    grid-template-columns: 1fr;
  }

  .hero-right {
    margin-top: 20px;
  }

  .navbar {
    padding: 12px 20px;
  }

  .navbar nav {
    gap: 15px;
  }

}

@media (max-width: 600px) {

  .navbar nav a {
    font-size: 0.8rem;
  }

  .hero-left h1 {
    line-height: 1.1;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-btn {
    width: 100%;
    text-align: center;
  }

}

/* ANIMATION */
.fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  padding: 20px;
  transform: translateZ(0);
}

.modal-content {
  width: 100%;
  max-width: 850px;
  max-height: 90vh;
  overflow-y: auto;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 30px;
  padding: 50px;
  position: relative;
  animation: modalFade 0.25s ease;
  color: white;
  will-change: transform, opacity;
  transform: translateZ(0);
  overscroll-behavior: contain;
}


/* Smooth animation */

@keyframes modalFade {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Close button */
.close, .close-project, .close-company, .close-contact, .close-erp, .close-api, .close-auto {
   position: absolute;

  top: 20px;
  right: 25px;

  font-size: 28px;

  cursor: pointer;

  color: #ffffff;

  transition: 0.3s;
}

.modal-content h2 {

  font-size: 2.3rem;

  margin-bottom: 15px;
}

.modal-content h3 {

  margin-top: 35px;

  margin-bottom: 15px;

  color: #4da3ff;

  font-size: 1.2rem;
}

.modal-content p {

  color: #c2c2c2;

  line-height: 1.9;
}

.modal-content ul {

  margin-top: 15px;

  padding-left: 25px;
}

.modal-content li {

  color: #bdbdbd;

  margin-bottom: 10px;

  line-height: 1.7;
}


/* Divider */

.modal-divider {

  margin: 30px 0;

  border-top: 1px solid rgba(255,255,255,0.08);
}


/* Scrollbar */

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {

  background: rgba(255,255,255,0.15);

  border-radius: 20px;
}

.timeline {
  position: relative;
  margin-top: 60px;
  padding-left: 30px;
  border-left: 2px solid var(--timeline-line);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-dot {
  position: absolute;
  left: -38px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4da3ff;
  box-shadow: 0 0 15px rgba(77,163,255,0.5);
}

.timeline-content {
  background: var(--card-bg);
  padding: 20px 25px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.timeline-content:hover {
  transform: translateY(-4px);
  border-color: rgba(77,163,255,0.3);
}

.date {
  font-size: 0.85rem;
  color: #888;
}

.timeline-content h3 {
  margin-top: 10px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.timeline-content h3:hover {
  color: #4da3ff;
}

.content-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}

.timeline-item.active .content-wrapper {
  grid-template-rows: 1fr;
}

.content {
  overflow: hidden;
  color: #bbb;
  min-height: 0;
}

.timeline-item.active .content {
  margin-top: 10px;
}

/* =========================
   CONTACT CTA
========================= */

.contact-cta {
  text-align: center;
  padding: 140px 10%;
}

.contact-description {
  color: #888;
}

.contact-open-btn {
  margin-top: 30px;

  padding: 16px 34px;

  border: none;

  border-radius: 14px;

  background: #4da3ff;

  color: white;

  font-size: 1rem;

  cursor: pointer;

}

.contact-open-btn:hover {
  transform: translateY(-3px);

  box-shadow: 0 10px 25px rgba(77,163,255,0.3);
}


/* =========================
   CONTACT MODAL
========================= */

.contact-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transform: translateZ(0);
}

.contact-modal-content {
  width: 90%;
  max-width: 550px;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 50px 40px;
  position: relative;
  animation: modalFade 0.25s ease;
  will-change: transform, opacity;
  transform: translateZ(0);
  overscroll-behavior: contain;
}

/* modalFade defined above */

.contact-modal-content h2 {
  color: white;
  margin-bottom: 10px;
}

.modal-subtitle {
  color: #999;
  margin-bottom: 35px;
}

.contact-close {
  position: absolute;
  top: 20px;
  right: 25px;

  font-size: 28px;

  color: white;

  cursor: pointer;
}


/* =========================
   INPUTS
========================= */

.input-group {
  position: relative;
  margin-bottom: 28px;
}

.input-group input,
.input-group textarea {
  width: 100%;

  padding: 18px 15px;

  background: rgba(255,255,255,0.04);

  border: 1px solid rgba(255,255,255,0.08);

  border-radius: 14px;

  color: white;

  outline: none;

  font-size: 1rem;
}

.input-group label {
  position: absolute;

  left: 16px;
  top: 18px;

  color: #888;

  pointer-events: none;

  transition: 0.3s;

  background: transparent;
}

.input-group input:focus + label,
.input-group input:valid + label,
.input-group textarea:focus + label,
.input-group textarea:valid + label {

  top: -10px;

  left: 12px;

  font-size: 0.8rem;

  color: #4da3ff;

  background: #141414;

  padding: 0 6px;
}

.send-btn {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 14px;

  border: none;

  border-radius: 14px;

  background: #4da3ff;

  color: white;

  font-size: 0.95rem;
  font-weight: 500;

  cursor: pointer;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.send-btn i {
  font-size: 18px;
}

.send-btn:hover {
  transform: translateY(-2px);

  box-shadow: 0 10px 25px rgba(77,163,255,0.25);
}

.footer {

  background: #0b0b0b;

  border-top: 1px solid rgba(255,255,255,0.08);

  padding: 80px 10% 30px;

  margin-top: 120px;
}

.footer-container {

  display: grid;

  grid-template-columns:
  1.5fr
  1fr
  1fr;

  gap: 60px;

  margin-bottom: 50px;
}


/* Brand */

.footer-brand p {

  color: #999;

  margin-top: 20px;

  line-height: 1.8;

  max-width: 300px;
}

.footer-logo {

  height: 45px;

  width: auto;
}


/* Links */

.footer-links h3,
.footer-contact h3 {

  color: white;

  margin-bottom: 20px;

  font-size: 1.1rem;
}

.footer-links {

  display: flex;

  flex-direction: column;
}

.footer-links a {

  color: #999;

  text-decoration: none;

  margin-bottom: 14px;

  transition: 0.3s;
}

.footer-links a:hover {

  color: #4da3ff;

  transform: translateX(4px);
}


/* Contact */

.footer-contact p {

  color: #999;

  margin-bottom: 12px;

  line-height: 1.7;
}


/* Bottom */

.footer-bottom {

  padding-top: 25px;

  border-top: 1px solid rgba(255,255,255,0.08);

  display: flex;

  justify-content: space-between;

  align-items: center;

  flex-wrap: wrap;

  gap: 20px;
}

.footer-bottom p {

  color: #777;

  font-size: 0.9rem;
}

.footer-bottom a {

  color: #999;

  text-decoration: none;

  transition: 0.3s;
}

.footer-bottom a:hover {

  color: #4da3ff;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

  .footer-container {

    grid-template-columns: 1fr;

    gap: 40px;
  }

  .footer-bottom {

    flex-direction: column;

    align-items: flex-start;
  }

}

#toast {
  position: fixed;
  top: 30px;
  right: 30px;

  display: flex;
  align-items: center;
  gap: 12px;

  min-width: 280px;
  max-width: 360px;

  padding: 14px 18px;

  border-radius: 14px;

  border: 0.5px solid transparent;

  z-index: 999999;

  opacity: 0;

  transform: translateY(-20px);

  transition: opacity 0.3s ease, transform 0.3s ease;

  pointer-events: none;
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid transparent;
}

.toast-icon-wrap i {
  font-size: 16px;
}

.toast-text {
  flex: 1;
  min-width: 0;
}

#toast-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 2px;
}

#toast-sub {
  font-size: 12px;
  margin: 0;
  color: rgba(255,255,255,0.75);
}

/* SENDING — blue */
#toast.sending {
  background: #0d2b4f;
  border-color: #4da3ff;
}
#toast.sending .toast-icon-wrap {
  background: rgba(77,163,255,0.15);
  border-color: #4da3ff;
}
#toast.sending .toast-icon-wrap i,
#toast.sending #toast-title {
  color: #7cc0ff;
}

/* SUCCESS — green */
#toast.success {
  background: #0f3322;
  border-color: #22c55e;
}
#toast.success .toast-icon-wrap {
  background: rgba(34,197,94,0.15);
  border-color: #22c55e;
}
#toast.success .toast-icon-wrap i,
#toast.success #toast-title {
  color: #4ade80;
}

/* ERROR — red */
#toast.error {
  background: #3a1414;
  border-color: #ef4444;
}
#toast.error .toast-icon-wrap {
  background: rgba(239,68,68,0.15);
  border-color: #ef4444;
}
#toast.error .toast-icon-wrap i,
#toast.error #toast-title {
  color: #f87171;
}

/* NETWORK — amber */
#toast.network {
  background: #3a2a0d;
  border-color: #f59e0b;
}
#toast.network .toast-icon-wrap {
  background: rgba(245,158,11,0.15);
  border-color: #f59e0b;
}
#toast.network .toast-icon-wrap i,
#toast.network #toast-title {
  color: #fbbf24;
}

body.light #toast-sub {
  color: rgba(0,0,0,0.6);
}

body.light #toast.sending   { background: #e6f1fb; }
body.light #toast.success   { background: #eafaf0; }
body.light #toast.error     { background: #fdecea; }
body.light #toast.network   { background: #fef6e6; }


/* =========================
   THEME VARIABLES
========================= */

:root {
  --bg:           #0f0f0f;
  --bg-secondary: #181818;
  --card-bg:      #181818;
  --modal-bg:     #141414;
  --text:         #ffffff;
  --text-muted:   #a9a9a9;
  --text-subtle:  #bdbdbd;
  --border:       rgba(255,255,255,0.08);
  --accent:       #4da3ff;
  --navbar-bg:    rgba(15,15,15,0.85);
  --hero-overlay: rgba(0,0,0,0.65);
  --hero-overlay2:rgba(0,0,0,0.55);
  --glow:         rgba(77,163,255,0.08);
  --footer-bg:    #0b0b0b;
  --input-bg:     rgba(255,255,255,0.04);
  --input-border: rgba(255,255,255,0.08);
  --overlay-bg:   rgba(0,0,0,0.82);
  --timeline-line: rgba(255,255,255,0.15);
}

body.light {
  --bg:           #f0f4f8;
  --bg-secondary: #ffffff;
  --card-bg:      #ffffff;
  --modal-bg:     #ffffff;
  --text:         #0d1117;
  --text-muted:   #4a5568;
  --text-subtle:  #5a6a7a;
  --border:       rgba(0,0,0,0.09);
  --accent:       #1a7fd4;
  --navbar-bg:    rgba(255,255,255,0.88);
  --hero-overlay: rgba(0,0,0,0.45);
  --hero-overlay2:rgba(0,0,0,0.35);
  --glow:         rgba(26,127,212,0.06);
  --footer-bg:    #e2e8f0;
  --input-bg:     rgba(0,0,0,0.04);
  --input-border: rgba(0,0,0,0.12);
  --overlay-bg:   rgba(0,0,0,0.6);
  --timeline-line: rgba(0,0,0,0.2);
}


/* =========================
   APPLY THEME VARS
========================= */

body {
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

body::before {
  background: radial-gradient(circle at top, var(--glow), transparent 50%);
}

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

.navbar nav a {
  color: var(--text);
}

#services,
.why-section,
.news-section {
  background: var(--bg);
}

.section-title {
  color: var(--text);
}

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

.service-card h3 {
  color: var(--text);
}

.service-card p {
  color: var(--text-muted);
}

.hero {
  background:
    linear-gradient(to bottom, var(--hero-overlay), var(--hero-overlay2)),
    url("/lm-its/images/cover_photo.jpg") center/cover no-repeat;
}

.hero-card {
  background: rgba(255,255,255,0.06);
  border-color: var(--border);
}

body.light .hero-card {
  background: rgba(255,255,255,0.18);
}

.hero-card p {
  color: var(--text-subtle);
}

.modal {
  background: var(--overlay-bg);
}

.modal-content {
  background: var(--modal-bg);
  border-color: var(--border);
  color: var(--text);
}

.modal-content p {
  color: var(--text-muted);
}

.modal-content li {
  color: var(--text-subtle);
}

.contact-modal {
  background: var(--overlay-bg);
}

.contact-modal-content {
  background: var(--modal-bg);
  border-color: var(--border);
}

.contact-modal-content h2 {
  color: var(--text);
}

.input-group input,
.input-group textarea {
  background: var(--input-bg);
  border-color: var(--input-border);
  color: var(--text);
}

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

.input-group input:focus + label,
.input-group input:valid + label,
.input-group textarea:focus + label,
.input-group textarea:valid + label {
  background: var(--modal-bg);
}

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

.timeline-content h3 {
  color: var(--text);
}

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

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

.footer-brand p,
.footer-links a,
.footer-contact p,
.footer-bottom p {
  color: var(--text-muted);
}

.footer-links h3,
.footer-contact h3 {
  color: var(--text);
}

.footer-bottom {
  border-color: var(--border);
}

.footer-bottom a {
  color: var(--text-muted);
}

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

.hero-description {
  color: var(--text-subtle);
}

.secondary-btn {
  border-color: var(--border);
  color: var(--text);
}

body.light .secondary-btn {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.15);
}

.contact-description {
  color: var(--text-muted);
}

.modal-subtitle {
  color: var(--text-muted);
}


/* =========================
   THEME TOGGLE BUTTON
========================= */

.theme-toggle {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

body.light .theme-toggle {
  color: #0d1117;
}

.theme-toggle:hover {
  border-color: var(--accent);
  transform: scale(1.1) rotate(15deg);
}

/* =========================
   HERO TEXT — always white (dark image overlay)
========================= */
.hero-left,
.hero-left h1,
.hero-card h3 {
  color: #ffffff !important;
}

.hero-tag {
  color: #6dbfff !important;
}

.hero-description {
  color: #e8e8e8 !important;
}

.hero-card p {
  color: #d4d4d4 !important;
}

body.light .hero-card {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.2);
}

body.light .secondary-btn {
  color: #ffffff;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
}

/* Timeline toggle text */
body.light .timeline-content h3 {
  color: var(--text);
}

/* Modal close button always visible */
.close, .close-project, .close-company,
.close-erp, .close-api, .close-auto {
  color: var(--text);
}

/* Section backgrounds */
body.light #services,
body.light .news-section,
body.light .contact-cta {
  background: var(--bg);
}

/* Footer links always readable */
body.light .footer-links a:hover,
body.light .footer-bottom a:hover,
body.light .navbar nav a:hover {
  color: var(--accent);
}
/* Remove number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}