/* ============================================
   ISTOBAL HW'COMPAK — Landing Page
   ============================================ */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #070b17;
  color: #fff;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.loaded {
  opacity: 1;
}

::selection {
  background: rgba(0, 85, 255, 0.3);
  color: #fff;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #070b17;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 85, 255, 0.4);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 85, 255, 0.6);
}

/* --- Progress Bar --- */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0055ff, #00d4ff);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* --- Particles Background --- */
#particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

#particles-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- Canvas Container (model 3D) --- */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
}

#canvas-container canvas {
  display: block;
}

/* --- Header / Navigation --- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.2rem 2rem;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#header.header-solid {
  background: rgba(7, 11, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 0.8rem 2rem;
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo-text {
  color: #fff;
}

.logo-divider {
  color: rgba(255, 255, 255, 0.15);
  font-weight: 300;
}

.logo-sub {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  font-size: 0.9rem;
}

.cta-btn {
  background: rgba(0, 85, 255, 0.15);
  border: 1px solid rgba(0, 85, 255, 0.3);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.cta-btn:hover {
  background: rgba(0, 85, 255, 0.3);
  transform: translateY(-1px);
}

/* --- Sections Base --- */
.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
}

.section[data-bg] {
  background: transparent;
}

.section[data-bg]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 28, 0.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1;
  pointer-events: none;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 3;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #00d4ff;
  border: 1px solid rgba(0, 212, 255, 0.25);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  text-transform: uppercase;
  background: rgba(0, 212, 255, 0.05);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #88bbff 50%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

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

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #0055ff, #0077ff);
  color: #fff;
  padding: 0.9rem 2.5rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 85, 255, 0.35);
}

.btn-secondary {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0.9rem 2.5rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.3s ease, transform 0.3s ease;
}

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

.btn-large {
  padding: 1.1rem 3rem;
  font-size: 1.05rem;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.scroll-arrow span {
  display: block;
  width: 2px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  animation: scrollBounce 2s ease infinite;
}

.scroll-arrow span:nth-child(2) {
  animation-delay: 0.2s;
}

.scroll-arrow span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes scrollBounce {
  0%, 60%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(4px);
  }
}

/* --- Feature Cards --- */
.feature {
  min-height: 170vh;
  padding: 5rem 4rem;
}

.feature[data-align="left"] {
  justify-content: flex-start;
}

.feature[data-align="left"] .card {
  margin-left: max(2rem, 5vw);
}

.feature[data-align="right"] {
  justify-content: flex-end;
}

.feature[data-align="right"] .card {
  margin-right: max(2rem, 5vw);
}

.card {
  max-width: 520px;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  position: relative;
  z-index: 3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(0, 85, 255, 0.15), transparent 40%, transparent 60%, rgba(0, 212, 255, 0.1));
  z-index: -1;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 85, 255, 0.05);
}

.card-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(0, 212, 255, 0.4);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card-title {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #fff;
}

.card-text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
}

/* --- CTA Section --- */
.cta-section {
  min-height: 80vh;
  text-align: center;
}

.cta-section[data-bg]::before {
  background: rgba(5, 9, 18, 0.3);
  backdrop-filter: blur(3.5px);
  -webkit-backdrop-filter: blur(3.5px);
  z-index: 3;
}

.cta-content {
  max-width: 680px;
  position: relative;
  z-index: 4;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.cta-text {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  font-weight: 400;
}

/* --- Footer --- */
footer {
  position: relative;
  z-index: 3;
  background: rgba(7, 11, 23, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
  font-weight: 300;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  #header {
    padding: 0.8rem 1.2rem;
  }

  #header.header-solid {
    padding: 0.6rem 1.2rem;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .logo-sub {
    display: none;
  }

  .section {
    padding: 5rem 1.2rem;
  }

  .feature {
    padding: 4rem 1.2rem;
    justify-content: center !important;
  }

  .feature[data-align="left"] .card,
  .feature[data-align="right"] .card {
    margin-left: 0;
    margin-right: 0;
  }

  .card {
    max-width: 100%;
    padding: 2.5rem 1.8rem;
    border-radius: 18px;
  }

  .card::before {
    border-radius: 18px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .cta-features {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .scroll-indicator {
    bottom: 1.5rem;
  }

  .scroll-indicator span {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .card-title {
    font-size: 1.5rem;
  }

  .btn-primary, .btn-secondary {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    width: 100%;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
