/* ============================================
   ETECHLOGS — Design System v3.0 (Pro Max)
   ============================================ */

:root {
  --bg-dark: #050810;
  --bg-card: rgba(20, 25, 40, 0.4);
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --accent-primary: #ea580c;
  --accent-secondary: #0284c7;
  --border-glass: rgba(255, 255, 255, 0.06);
  --gradient-accent: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  --shadow-glass: 0 10px 40px -10px rgba(0,0,0,0.7);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.4s var(--ease-out-expo);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-secondary);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.8;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.01em;
}

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

img { display: block; max-width: 100%; }

/* ---- Scroll Reveal Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays for children */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ---- Glassmorphism ---- */
.glass-panel {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  box-shadow: var(--shadow-glass);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 42px;
  border-radius: 60px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.btn-primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 10px 30px rgba(234, 88, 12, 0.25);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 50px rgba(234, 88, 12, 0.4);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-light);
}
.btn-outline:hover {
  border-color: var(--text-light);
  background: rgba(255,255,255,0.08);
  transform: translateY(-3px);
}

/* ---- Header ---- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 5%;
  height: 110px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(5, 8, 16, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: var(--transition-smooth);
  animation: slideDown 0.6s var(--ease-out-expo) forwards;
}

header.scrolled {
  background: rgba(5, 8, 16, 0.98);
  height: 90px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.logo { display: flex; align-items: center; }
.logo img { height: 75px; object-fit: contain; transition: var(--transition-smooth); }
header.scrolled .logo img { height: 60px; }

nav { display: flex; align-items: center; }
nav ul { list-style: none; display: flex; gap: 40px; align-items: center; }

nav ul li a {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  opacity: 0.8;
  position: relative;
  padding: 6px 0;
}
nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s var(--ease-out-expo);
}
nav ul li a:hover { opacity: 1; color: #fff; }
nav ul li a:hover::after { width: 100%; }

.lang-switch { display: flex; gap: 8px; margin-left: 20px; padding-left: 30px; border-left: 1px solid rgba(255,255,255,0.2); }
.lang-switch a {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
  transition: var(--transition-smooth);
}
.lang-switch a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.lang-switch a.active {
  background: var(--gradient-accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
}

/* ---- Hero ---- */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  padding: 0 8%;
  position: relative;
  background-image: url('../img/hero_bg.png');
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(5,8,16,0.97) 0%,
    rgba(5,8,16,0.85) 35%,
    rgba(5,8,16,0.4) 70%,
    rgba(5,8,16,0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  animation: fadeInUp 1s var(--ease-out-expo) 0.3s forwards;
  opacity: 0;
}

.hero-content h1 {
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 1.1;
  font-weight: 300;
  margin-bottom: 28px;
}

.hero-content h1 span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-content p {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  color: var(--text-light);
  opacity: 0.9;
  margin-bottom: 48px;
  max-width: 650px;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: fadeInUp 1s var(--ease-out-expo) 1.2s forwards;
  opacity: 0;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
  animation: pulse-line 2s ease-in-out infinite;
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%      { opacity: 1;   transform: scaleY(1.3); }
}

/* ---- Layout ---- */
.section-padding { padding: 160px 8%; }

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

.section-header { margin-bottom: 72px; }

.section-header h2 {
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
  margin-bottom: 20px;
  line-height: 1.1;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  line-height: 1.8;
}

/* ---- Bento Grid ---- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  grid-auto-rows: minmax(280px, auto);
}

.bento-item {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(30, 40, 60, 0.6);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition-smooth);
}

.bento-item:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.bento-1 {
  grid-column: span 7;
  background: linear-gradient(10deg, rgba(5,8,16,0.92) 0%, rgba(5,8,16,0.3) 60%, rgba(5,8,16,0) 100%),
              url('../img/warehouse.png') center/cover no-repeat;
  min-height: 420px;
}

.bento-2 {
  grid-column: span 5;
  background: linear-gradient(160deg, rgba(234,88,12,0.08) 0%, var(--bg-card) 100%);
  border-left: 2px solid rgba(234,88,12,0.2);
}

.bento-3 {
  grid-column: span 5;
  background: linear-gradient(160deg, rgba(2,132,199,0.08) 0%, var(--bg-card) 100%);
  border-left: 2px solid rgba(2,132,199,0.2);
}

.bento-4 {
  grid-column: span 7;
  background: linear-gradient(135deg, rgba(2,132,199,0.12), rgba(234,88,12,0.06));
}

.bento-icon {
  font-family: var(--font-primary);
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: auto;
  line-height: 1;
  letter-spacing: -3px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bento-item h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  z-index: 2;
  font-weight: 500;
}

.bento-item p {
  color: var(--text-light);
  opacity: 0.85;
  font-size: 1.05rem;
  z-index: 2;
  line-height: 1.7;
}

/* ---- Split Section ---- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.split-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid var(--border-glass);
  pointer-events: none;
}

/* ---- Timeline Modern ---- */
.timeline-modern { display: flex; flex-direction: column; gap: 48px; }

.timeline-step {
  display: flex;
  gap: 28px;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}
.timeline-step:hover {
  background: rgba(255,255,255,0.02);
  border-color: var(--border-glass);
}

.step-number {
  font-family: var(--font-primary);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  width: 60px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.4;
}

.step-content { flex: 1; }

.step-content h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ---- CTA Footer ---- */
.cta-footer {
  text-align: center;
  padding: 160px 8%;
  position: relative;
}

.cta-footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(234,88,12,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-footer h2 {
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  margin-bottom: 48px;
  position: relative;
}

.cta-footer .btn { position: relative; }

/* ---- Footer Bar ---- */
.footer-bar {
  padding: 32px 8%;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bar p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-bar a {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.footer-bar a:hover { color: var(--accent-primary); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .section-padding { padding: 100px 6%; }
  .bento-1, .bento-2, .bento-3, .bento-4 { grid-column: span 12; }
  .bento-1 { min-height: 300px; }
  .split-section { grid-template-columns: 1fr; gap: 48px; }
  .split-image { aspect-ratio: 16 / 9; }
  header { width: 95%; padding: 14px 20px; }
  nav ul { display: none; }
  .hero { padding: 0 6%; }
  .cta-footer { padding: 100px 6%; }
}

@media (max-width: 640px) {
  .section-padding { padding: 80px 5%; }
  .hero-content h1 { font-size: 2.2rem; }
  .btn { padding: 14px 28px; font-size: 0.78rem; }
  .timeline-step { flex-direction: column; gap: 12px; padding: 20px; }
  .step-number { font-size: 2.5rem; }
  .bento-item { padding: 28px; }
  .bento-icon { font-size: 3rem; }
  .bento-item h3 { font-size: 1.3rem; }
}
