
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* 1. CSS Custom Properties / Tokens */
:root {
  /* Brand Color Tokens */
  --primary: #1E3A8A;
  --primary-hover: #172554;
  --primary-light: #EFF6FF;
  --secondary: #2563EB;
  --secondary-hover: #1D4ED8;
  --accent: #F59E0B;
  --accent-hover: #D97706;

  /* Neutral Theme Tokens */
  --bg-main: #F8FAFC;
  --surface: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.2);
  --text-dark: #111827;
  --text-muted: #4B5563;
  --border: #E2E8F0;

  /* Material Elevation & Glassmorphism Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(30, 58, 138, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Radius & Motion */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Structure */
  --max-width: 1280px;
  --header-height: 80px;
}

/* 2. Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

/* 3. Dark Mode Theme Variables */
body.dark-mode {
  --bg-main: #0F172A;
  --surface: #1E293B;
  --surface-glass: rgba(30, 41, 59, 0.85);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-dark: #F8FAFC;
  --text-muted: #94A3B8;
  --border: #334155;
  --primary-light: #1E293B;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

/* 4. Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p { font-size: 1rem; color: var(--text-muted); }

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--primary-light);
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.text-center { text-align: center; }

/* 5. Layout & Containers */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section {
  padding: 90px 0;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }

/* 6. Buttons & Glass Cards */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: #FFFFFF;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--secondary);
  color: var(--secondary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--secondary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(37, 99, 235, 0.4);
}

.glass-card {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* 7. Glass Navigation Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--secondary);
  font-weight: 600;
}

/* Dark Mode Toggle Button */
.theme-toggle {
  background: var(--bg-main);
  border: 1px solid var(--border);
  color: var(--text-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background-color: var(--border);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* 8. Industrial Hero Banner */
.hero {
  position: relative;
  min-height: 85vh;
  margin-top: var(--header-height);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.88) 0%, rgba(30, 58, 138, 0.82) 100%),
              url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: #FFFFFF;
  border-bottom-right-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-content {
  max-width: 760px;
}

.hero-tag {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-title {
  color: #FFFFFF;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* 9. Product & Feature Layouts */
.media-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.media-card:hover img {
  transform: scale(1.05);
}

.stat-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--glass-border);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
}

/* Brand Display Grid */
.brand-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.brand-card:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* 10. FAQ Accordions & Form Controls */
.faq-item {
  background: var(--surface);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  background: none;
  border: none;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  padding: 0 24px 20px 24px;
  display: none;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
  background-color: var(--bg-main);
  color: var(--text-dark);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background-color: var(--surface);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

/* 11. Custom Gallery Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.lightbox.show {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #FFFFFF;
  font-size: 2.5rem;
  cursor: pointer;
}

/* 12. Footer Section */
.footer {
  background-color: #0B0F19;
  color: #9CA3AF;
  padding: 80px 0 30px 0;
  border-top: 1px solid #1F2937;
}

.footer-brand h3 {
  color: #FFFFFF;
  margin-bottom: 16px;
}

.footer-links h4, .footer-contact h4 {
  color: #FFFFFF;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 60px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Back to Top Floating Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background-color: var(--secondary);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 900;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary);
  transform: translateY(-4px);
}