/*
  Amleintek Mekatronik Systems — Premium UI
  Modern dark-tech design system
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES
============================================ */
:root {
  --bg:          #06080F;
  --bg-2:        #0C1122;
  --bg-card:     #0F1628;
  --bg-glass:    rgba(12, 17, 34, 0.85);
  --primary:     #0057FF;
  --primary-lt:  #3A80FF;
  --accent:      #00CFFF;
  --gold:        #F5A800;
  --text:        #EEF2FF;
  --text-2:      #8A9BC5;
  --text-3:      #4E5D80;
  --border:      rgba(255,255,255,0.07);
  --border-b:    rgba(0,87,255,0.45);
  --grad:        linear-gradient(135deg,#0057FF 0%,#00CFFF 100%);
  --grad-dark:   linear-gradient(135deg,#06080F 0%,#0C1122 100%);
  --shadow:      0 8px 40px rgba(0,0,0,0.45);
  --glow:        0 0 40px rgba(0,87,255,0.28);
  --r-sm:        10px;
  --r-md:        18px;
  --r-lg:        28px;
  --ease:        cubic-bezier(0.4,0,0.2,1);
}

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  color: var(--text);
  overflow-x: hidden;
  padding-top: 72px;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
}
h1 { font-size: clamp(2.4rem,5vw,3.8rem); }
h2 { font-size: clamp(1.8rem,3vw,2.6rem); }
h3 { font-size: 1.35rem; color: var(--text); }

p {
  color: var(--text-2);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 0;
}

a {
  color: var(--primary-lt);
  text-decoration: none !important;
  transition: color 0.3s var(--ease);
}
a:hover, a:focus { color: var(--accent); outline: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

section { position: relative; padding: 100px 0; }

/* ============================================
   UTILITY — GRADIENT TEXT
============================================ */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   SECTION TITLE
============================================ */
.section-title { padding-bottom: 56px; }
.section-title h2 {
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--grad);
  border-radius: 2px;
  margin-top: 14px;
}
.section-title small {
  display: block;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ============================================
   BUTTONS
============================================ */
.section-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  border: 2px solid rgba(255,255,255,0.55);
  color: #ffffff;
  background: transparent;
}
.section-btn:hover {
  background: var(--grad);
  border-color: transparent;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--glow);
}
.section-btn.btn-primary-solid {
  background: var(--grad);
  border-color: transparent;
}
.section-btn.btn-primary-solid:hover {
  box-shadow: 0 8px 32px rgba(0,87,255,0.45);
  transform: translateY(-3px);
}

/* ============================================
   OVERLAY
============================================ */
.overlay {
  background: rgba(6,8,15,0.55);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============================================
   PRE LOADER
============================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg);
}
.spinner {
  position: relative;
  width: 56px;
  height: 56px;
}
.spinner::before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}
.spinner-rotate { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   NAVBAR
============================================ */
.custom-navbar {
  background: rgba(6,8,15,0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: none;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  margin-bottom: 0;
  min-height: 72px !important;
  padding: 0 !important;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.top-nav-collapse {
  background: rgba(6,8,15,0.97) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5) !important;
  border-bottom-color: var(--border-b) !important;
}
.custom-navbar .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.custom-navbar .navbar-header { margin: 0 !important; }
.custom-navbar .navbar-brand {
  height: 72px !important;
  padding: 0 15px !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
}
.custom-navbar .navbar-brand .logo-image {
  height: 40px;
  width: auto;
  display: block;
}
.custom-navbar .navbar-collapse {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.custom-navbar .navbar-nav.navbar-nav-first {
  margin-left: 4em;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.custom-navbar .nav li a {
  color: var(--text-2) !important;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 72px !important;
  padding: 0 20px !important;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.custom-navbar .nav li a:hover {
  color: var(--text) !important;
  background: transparent !important;
}
.custom-navbar .nav li.active > a {
  color: var(--accent) !important;
  background: transparent !important;
}
.custom-navbar .navbar-nav > li > a:hover,
.custom-navbar .navbar-nav > li > a:focus { background-color: transparent; }
.custom-navbar .navbar-nav.navbar-right li a {
  padding-right: 12px;
  padding-left: 12px;
}
.custom-navbar .navbar-nav.navbar-right li a .fa {
  background: var(--grad);
  border-radius: 50%;
  color: #fff;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  display: inline-block;
  margin-right: 6px;
  font-size: 12px;
}
.custom-navbar .navbar-toggle {
  border: none;
  padding-top: 20px;
  background: transparent;
}
.custom-navbar .navbar-toggle .icon-bar {
  background: var(--text);
  border-color: transparent;
  height: 2px;
  width: 22px;
  border-radius: 1px;
}

/* ============================================
   HERO / HOME SLIDER
============================================ */
#home { padding: 0; }
#home h1 {
  color: #ffffff;
  font-size: clamp(2.2rem,5vw,4rem);
  line-height: 1.15;
  margin-bottom: 20px;
}
#home h3 {
  color: rgba(255,255,255,0.72);
  font-size: clamp(14px,2vw,17px);
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  margin: 0;
  padding: 0 0 40px;
}
.home-slider .item {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 620px;
  min-height: 500px;
}
.home-slider .item-first,
.home-slider .item-second,
.home-slider .item-third {
  background-image: url(../images/slider.png);
  background-position: center;
}
.home-slider .caption {
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: left;
  background: linear-gradient(90deg,rgba(6,8,15,0.82) 0%,rgba(6,8,15,0.45) 60%,transparent 100%);
  height: 100%;
  color: #fff;
  cursor: default;
}
.caption h3 a { color: #fff; }
.caption h3 a:hover { color: var(--accent); }

/* hero headline accent word */
.hero-accent { color: var(--accent); }

/* ============================================
   ABOUT
============================================ */
#about {
  background: var(--bg-2);
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-intro-row {
  align-items: flex-start;
  margin-bottom: 0;
}
.about-logo-wrap { padding: 10px 10px 10px 0; }
.about-logo {
  width: 110px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.about-intro-text p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 16px;
  text-align: left;
}

/* about feature cards */
.about-cards-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
}
.about-cards-row > [class*="col-"] { display: flex; }
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 36px 28px;
  margin-bottom: 30px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--border-b);
}
.about-card:hover::before { opacity: 1; }
.about-card-icon {
  background: rgba(0,87,255,0.15);
  border: 1px solid rgba(0,87,255,0.3);
  border-radius: 14px;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.about-card-icon i { color: var(--accent); font-size: 24px; }
.about-card h3 { color: var(--text); font-size: 17px; margin-bottom: 12px; }
.about-card p { color: var(--text-2); font-size: 14px; line-height: 1.75; }

/* ============================================
   STATS BAR
============================================ */
.stats-bar {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
}
.stat-item { text-align: center; padding: 20px; }
.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem,4vw,3.2rem);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================
   CONTACT
============================================ */
#contact {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
#contact h2 { color: var(--text); }
#contact .section-title { padding-bottom: 28px; }
#contact h2 > small { color: var(--text-2); }
#contact-form { padding: 1em 0; }
#contact-form .col-md-12,
#contact-form .col-md-4 { padding-left: 0; }
#contact-form .form-control {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: none;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  height: auto;
  margin-bottom: 14px;
  padding: 14px 18px;
  transition: border-color 0.3s var(--ease);
}
#contact-form .form-control:focus {
  background: var(--bg-card);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,87,255,0.15);
  color: var(--text);
  outline: none;
}
#contact-form .form-control::placeholder { color: var(--text-3); }
#contact-form textarea.form-control {
  min-height: 140px;
  resize: vertical;
}
#contact-form input[type='submit'] {
  background: var(--grad);
  border: none;
  border-radius: 50px;
  color: #fff;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 14px 38px;
  height: auto;
  text-transform: uppercase;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  width: auto;
}
#contact-form input[type='submit']:hover {
  box-shadow: 0 8px 30px rgba(0,87,255,0.45);
  transform: translateY(-2px);
}
.contact-image { padding-top: 20px; }
.contact-image img {
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  width: 100%;
}

/* ============================================
   SOLUTIONS PAGE
============================================ */
#solutions { padding: 80px 0; }
#solutions .solution-item {
  margin-bottom: 80px;
  align-items: center;
}
#solutions .solution-item:last-child { margin-bottom: 0; }
#solutions .solution-image { padding: 20px; }
#solutions .solution-image img {
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  width: 100%;
}
#solutions .solution-image img:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
#solutions .solution-info { padding: 20px 30px; }
#solutions .solution-info h3 {
  color: var(--text);
  font-size: 1.8rem;
  margin-bottom: 16px;
}
#solutions .solution-info p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 22px;
}
#solutions .solution-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
#solutions .solution-features li {
  color: var(--text-2);
  font-size: 14px;
  line-height: 2;
  padding-left: 28px;
  position: relative;
}
#solutions .solution-features li::before {
  content: "\f00c";
  font-family: 'FontAwesome';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-size: 14px;
  top: 3px;
}

/* ============================================
   TECHNOLOGIES PAGE
============================================ */
.tech-page-header {
  background: linear-gradient(135deg, #0a1030 0%, var(--bg-2) 100%);
  padding: 100px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.tech-page-header h1 { color: #fff; margin-bottom: 16px; }
.tech-page-header p {
  color: rgba(255,255,255,0.65);
  font-size: 16px;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}
#technologies-page { padding: 80px 0; }
.tech-item { margin-bottom: 90px; align-items: center; }
.tech-item:last-child { margin-bottom: 0; }
.tech-image { padding: 20px; }
.tech-image img {
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  width: 100%;
}
.tech-image img:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.tech-info { padding: 20px 30px; }
.tech-info h2 { color: var(--text); font-size: 1.9rem; margin-bottom: 16px; }
.tech-tags { margin-bottom: 20px; }
.tech-tags span {
  display: inline-block;
  background: rgba(0,87,255,0.12);
  color: var(--accent);
  border: 1px solid rgba(0,207,255,0.25);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  margin: 0 6px 8px 0;
  letter-spacing: 0.04em;
}
.tech-info p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: left;
}
.tech-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tech-features li {
  color: var(--text-2);
  font-size: 14px;
  line-height: 2.1;
  padding-left: 28px;
  position: relative;
}
.tech-features li::before {
  content: "\f00c";
  font-family: 'FontAwesome';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-size: 14px;
  top: 3px;
}

/* ============================================
   FEATURE THUMB (homepage)
============================================ */
.feature-thumb {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 44px 32px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  height: 100%;
}
.feature-thumb:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--border-b);
}
.feature-thumb span {
  background: rgba(0,87,255,0.15);
  border: 1px solid rgba(0,87,255,0.3);
  border-radius: 14px;
  color: var(--accent);
  font-size: 22px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
}
.feature-thumb h3 { color: var(--text); margin: 0 0 10px; font-size: 1.1rem; }
.feature-thumb p { color: var(--text-2); font-size: 14px; }

/* ============================================
   FOOTER
============================================ */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 70px 0 40px;
}
footer .section-title { padding-bottom: 10px; }
footer h2 { font-size: 16px; color: var(--text); padding: 0; font-family: 'Space Grotesk', sans-serif; }
footer a, footer p { color: var(--text-3); font-size: 14px; }
footer a:hover { color: var(--accent); }
footer strong { color: var(--text-2); }
footer address p { margin-bottom: 0; }
footer .social-icon { margin-top: 20px; }
.footer-info { margin-right: 2em; }
.footer-info h2 { color: var(--text); padding: 0; margin-bottom: 14px; }
.footer-logo { height: 36px; width: auto; filter: brightness(0) invert(1); opacity: 0.8; margin-bottom: 16px; }
.footer-divider { border: none; border-top: 1px solid var(--border); margin: 40px 0 24px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { color: var(--text-3); font-size: 13px; }

/* ============================================
   SOCIAL ICON
============================================ */
.social-icon { position: relative; padding: 0; margin: 0; }
.social-icon li { display: inline-block; list-style: none; margin: 0 6px 0 0; }
.social-icon li a {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-2);
  font-size: 14px;
  width: 38px;
  height: 38px;
  line-height: 36px;
  text-align: center;
  display: block;
  transition: all 0.3s var(--ease);
}
.social-icon li a:hover {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--glow);
}

/* ============================================
   PAGE HERO HEADER (solutions / tech pages)
============================================ */
.page-hero {
  background: linear-gradient(135deg, #060f22 0%, var(--bg-2) 100%);
  padding: 100px 0 70px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,87,255,0.15) 0%, transparent 70%);
  top: -200px; left: -100px;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,207,255,0.1) 0%, transparent 70%);
  bottom: -150px; right: -50px;
  pointer-events: none;
}
.page-hero h1 { color: #fff; margin-bottom: 16px; position: relative; }
.page-hero .hero-badge {
  display: inline-block;
  background: rgba(0,87,255,0.15);
  border: 1px solid rgba(0,87,255,0.35);
  border-radius: 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  margin-bottom: 20px;
}
.page-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
  position: relative;
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glow-pulse {
  0%,100% { box-shadow: 0 0 20px rgba(0,87,255,0.2); }
  50%      { box-shadow: 0 0 40px rgba(0,87,255,0.5); }
}

/* ============================================
   RESPONSIVE
============================================ */
@media screen and (max-width: 1170px) {
  .custom-navbar .navbar-nav.navbar-nav-first { margin-left: 2em; }
}

@media only screen and (max-width: 992px) {
  section, footer { padding: 70px 0; }
  .home-slider .item { height: 520px; }
  .feature-thumb, .about-logo-wrap, .footer-info { margin-bottom: 40px; }
  .contact-image { margin-top: 40px; }
  #solutions .solution-info,
  .tech-info { padding: 20px 0; }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .custom-navbar .nav li a { padding: 0 10px !important; }
}

@media only screen and (max-width: 767px) {
  body { padding-top: 62px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  .custom-navbar {
    background: rgba(6,8,15,0.97) !important;
    padding: 8px 0 !important;
    min-height: 62px !important;
  }
  .custom-navbar .navbar-brand { height: 62px !important; }
  .custom-navbar .nav li a {
    line-height: normal !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--border);
  }
  .home-slider .item { height: 480px; min-height: 400px; }
  .home-slider .caption { background: rgba(6,8,15,0.75); }
  .section-btn { padding: 12px 26px; font-size: 13px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-info { margin-right: 0; }
}

@media only screen and (max-width: 580px) {
  h2 { font-size: 1.5rem; }
  .home-slider .item { height: 420px; }
  #home h1 { font-size: 1.9rem; }
  #home h3 { font-size: 14px; }
  .stat-item { padding: 12px 8px; }
}

@media only screen and (max-width: 480px) {
  #home h1 { font-size: 1.7rem; }
  .page-hero { padding: 80px 0 50px; }
}
