/* CSS Variables & Theme Tokens */
:root {
  /* Colors */
  --bg-dark: #07070a;
  --bg-card: rgba(20, 20, 25, 0.4);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  
  --brand-primary: #4F46E5; /* Indigo */
  --brand-secondary: #06B6D4; /* Cyan */
  --brand-accent: #8B5CF6; /* Violet */
  
  --gradient-text: linear-gradient(135deg, var(--brand-secondary), var(--brand-accent));
  --gradient-bg: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.05));
  
  /* Glassmorphism */
  --glass-bg: rgba(18, 18, 24, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section[id], header[id] {
  scroll-margin-top: 5rem;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Typography Scale */
h1 { font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  gap: 0.5rem;
}

.btn.sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 1rem 0;
  background: rgba(7, 7, 10, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-icon {
  height: 32px;
  width: auto;
  object-fit: contain;
  margin-right: 0.75rem;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dot {
  color: var(--brand-secondary);
}

.nav-links {
  display: none;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .nav-links { display: flex; align-items: center; }
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-highlight {
  color: var(--brand-secondary) !important;
}

/* Language Switcher */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

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

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: -0.5rem;
  margin-top: 0.5rem;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  min-width: 120px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.lang-switcher:hover .lang-dropdown,
.lang-switcher.active .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  text-align: left;
}

.lang-dropdown a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.lang-dropdown a.active {
  color: var(--brand-secondary);
  background: rgba(6, 182, 212, 0.1);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

/* Cinematic Ken Burns Effect Backgrounds */
.ken-burns-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.ken-burns-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transform: scale(1.05); /* Start slightly zoomed */
  animation: kenburns 25s ease-in-out infinite alternate;
}

@keyframes kenburns {
  0% { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.15) translate(-1%, -1%); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(7, 7, 10, 0.3) 0%, var(--bg-dark) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--brand-secondary);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 700px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Trust Metrics Section */
.metrics-section {
  padding: 4rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  text-align: center;
}

.section-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-weight: 600;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.metric-number {
  font-size: 3.5rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.metric-label {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
}

/* Values Section */
.values-section {
  padding: 8rem 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: var(--transition-smooth);
}

.value-card:hover {
  transform: translateY(-5px);
  background: rgba(30, 30, 40, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}

.icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--gradient-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-secondary);
  margin-bottom: 1.5rem;
}

/* Products Section */
.products-section {
  padding: 8rem 0;
}

.product-showcase {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.product-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .product-row { grid-template-columns: 1fr 1fr; }
  .product-row.reverse .product-content { order: 2; }
  .product-row.reverse .product-visual { order: 1; }
}

.product-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

.product-tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
  margin-bottom: 2rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--brand-secondary);
}

.feature-list li strong {
  color: var(--text-main);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-secondary);
  font-weight: 600;
}

.link-arrow span {
  transition: transform 0.3s ease;
}

.link-arrow:hover span {
  transform: translateX(4px);
}

.glass-panel {
  aspect-ratio: 4/3;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Realistic Media Panels (Applied Intuition Style) */
.realistic-panel {
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.realistic-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-row:hover .realistic-media {
  transform: scale(1.05); /* Subtle zoom effect on hover */
}


/* Solutions Section */
.solutions-section {
  padding: 8rem 0;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.solution-card {
  position: relative;
  height: 450px;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--glass-border);
  cursor: pointer;
}

.solution-card.logisitcs-bg {
  background-image: linear-gradient(to top, rgba(7,7,10,0.95), rgba(7,7,10,0.2)), url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?q=80&w=2070&auto=format&fit=crop');
}

.solution-card.construction-bg {
  background-image: linear-gradient(to top, rgba(7,7,10,0.95), rgba(7,7,10,0.2)), url('https://images.unsplash.com/photo-1541888086225-ee599b4ae9c9?q=80&w=2070&auto=format&fit=crop');
}

.solution-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem 2rem;
}

.solution-overlay h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.solution-overlay p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.solution-overlay ul {
  list-style-type: none;
  margin-bottom: 1.5rem;
}

.solution-overlay ul li {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.solution-overlay ul li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-secondary);
}

/* CTA & Footer */
.cta-section {
  padding: 6rem 0;
  text-align: center;
}

.cta-box {
  background: var(--gradient-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 5rem 2rem;
}

.cta-box h2 {
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  font-size: 1.125rem;
}

.mt-4 { margin-top: 1rem; }

footer {
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
  background: rgba(0,0,0,0.3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 300px;
  font-size: 0.9rem;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-links {
  display: flex;
  gap: 1.5rem;
}

/* Background Patterns */
.pattern-bg {
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpAnim 0.8s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.delay-1 { animation-delay: 0.2s; }
.fade-up.delay-2 { animation-delay: 0.4s; }

@keyframes fadeUpAnim {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
