/* ============================================================
   ECOSSISTEMA VEZETIV.DEV — Design System & Styles
   ============================================================ */

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

/* ── Tokens ── */
:root {
  /* Core palette (from SVG assets) */
  --navy-deep: #080d1a;
  --navy-mid: #0c1428;
  --blue-core: #0025CE;
  --indigo-glow: #667ED2;
  --violet: #5764DB;
  --cyan-electric: #00EAFF;
  --ice-blue: #7BB8D9;
  --ice-blue-soft: #a0d0ea;
  --white: #FFFFFF;
  --white-alpha-10: rgba(255, 255, 255, 0.08);
  --white-alpha-20: rgba(255, 255, 255, 0.15);
  --white-alpha-40: rgba(255, 255, 255, 0.35);
  --white-alpha-60: rgba(255, 255, 255, 0.55);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Sizing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 200ms var(--ease-out-expo);
  --transition-mid: 400ms var(--ease-out-expo);
  --transition-slow: 700ms var(--ease-out-expo);
}

/* ── Reset ── */
*,
*::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: var(--font-primary);
  background: var(--navy-deep);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Hero Section ── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Animated gradient background */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(102, 126, 210, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 70% 60%, rgba(0, 37, 206, 0.3) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 30%, rgba(0, 234, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 80%, rgba(87, 100, 219, 0.15) 0%, transparent 60%),
    var(--navy-deep);
  animation: bgPulse 12s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% { opacity: 1; filter: hue-rotate(0deg); }
  50% { opacity: 0.9; filter: hue-rotate(5deg); }
  100% { opacity: 1; filter: hue-rotate(-3deg); }
}

/* Particle canvas */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Signature in center */
.hero__signature {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: scale(0.92);
  animation: signatureIn 1.2s var(--ease-out-expo) 0.3s forwards;
}

@keyframes signatureIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Glow ring removed */

/* ── Explore Button (bottom-right corner) ── */
.explore-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  color: var(--ice-blue-soft);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition-mid);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 0.8s var(--ease-out-expo) 1.5s forwards;
}

.explore-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(123, 184, 217, 0.3);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 234, 255, 0.15);
}

.explore-btn__icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.explore-btn:hover .explore-btn__icon {
  transform: rotate(45deg);
}

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

/* ── Scroll indicator ── */
.scroll-hint {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: slideUpFade 0.8s var(--ease-out-expo) 2s forwards;
}

.scroll-hint__text {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-alpha-40);
}

.scroll-hint__arrow {
  width: 20px;
  height: 20px;
  color: var(--white-alpha-40);
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================================
   GALLERY OVERLAY
   ============================================================ */
.gallery-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 13, 26, 0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
  overflow-y: auto;
}

.gallery-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.gallery-overlay__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 40px;
  border-bottom: 1px solid var(--white-alpha-10);
  flex-shrink: 0;
}

.gallery-overlay__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ice-blue);
}

.gallery-overlay__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--white-alpha-20);
  background: var(--white-alpha-10);
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.gallery-overlay__close:hover {
  background: rgba(255, 80, 80, 0.2);
  border-color: rgba(255, 80, 80, 0.4);
  transform: rotate(90deg);
}

.gallery-overlay__content {
  padding: 40px;
  flex: 1;
}

/* Category */
.gallery-category {
  margin-bottom: 48px;
}

.gallery-category__title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-alpha-60);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--white-alpha-10);
}

.gallery-category__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Gallery Card */
.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--white-alpha-10);
  background: var(--white-alpha-10);
  cursor: pointer;
  transition: all var(--transition-mid);
  aspect-ratio: 16 / 9;
}

.gallery-card:hover {
  border-color: rgba(123, 184, 217, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 37, 206, 0.2);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-mid);
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(8, 13, 26, 0.95) 40%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-card__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--white);
}

.gallery-card__actions {
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-fast);
}

.gallery-card:hover .gallery-card__actions {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card__btn {
  flex: 1;
  padding: 8px 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 11px;
  font-family: var(--font-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-card__btn:hover {
  background: rgba(0, 234, 255, 0.15);
  border-color: rgba(0, 234, 255, 0.3);
  color: var(--cyan-electric);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-mid);
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transform: scale(0.9);
  transition: transform var(--transition-slow);
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox__close:hover {
  background: rgba(255, 80, 80, 0.3);
  border-color: rgba(255, 80, 80, 0.5);
}

/* ============================================================
   CODE SNIPPET SECTION
   ============================================================ */
.snippet-section {
  position: relative;
  padding: 80px 40px;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  border-top: 1px solid var(--white-alpha-10);
}

.snippet-section__inner {
  max-width: 800px;
  margin: 0 auto;
}

.snippet-section__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 234, 255, 0.08);
  border: 1px solid rgba(0, 234, 255, 0.15);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-electric);
  margin-bottom: 20px;
}

.snippet-section__badge svg {
  width: 14px;
  height: 14px;
}

.snippet-section__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.snippet-section__subtitle {
  font-size: 15px;
  color: var(--white-alpha-60);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 600px;
}

/* Code Block */
.code-block {
  position: relative;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--white-alpha-10);
  background: rgba(12, 20, 40, 0.8);
}

.code-block__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--white-alpha-10);
}

.code-block__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-alpha-40);
}

.code-block__dots {
  display: flex;
  gap: 6px;
}

.code-block__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-block__dot--red { background: #ff5f57; }
.code-block__dot--yellow { background: #ffbd2e; }
.code-block__dot--green { background: #28c840; }

.code-block__body {
  padding: 20px 22px;
  overflow-x: auto;
}

.code-block__body pre {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ice-blue-soft);
  white-space: pre;
  tab-size: 2;
}

.code-block__body .tag { color: #e06c75; }
.code-block__body .attr { color: #d19a66; }
.code-block__body .string { color: #98c379; }
.code-block__body .comment { color: #5c6370; font-style: italic; }

/* Copy Button */
.code-block__copy {
  position: absolute;
  top: 52px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--white-alpha-10);
  background: var(--white-alpha-10);
  color: var(--white-alpha-60);
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.code-block__copy:hover {
  background: rgba(0, 234, 255, 0.1);
  border-color: rgba(0, 234, 255, 0.3);
  color: var(--cyan-electric);
}

.code-block__copy.copied {
  background: rgba(40, 200, 64, 0.15);
  border-color: rgba(40, 200, 64, 0.3);
  color: #28c840;
}

.code-block__copy svg {
  width: 14px;
  height: 14px;
}

/* Steps */
.snippet-steps {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.snippet-step {
  flex: 1;
  padding: 3px;
  background: linear-gradient(135deg, var(--white-alpha-10), transparent);
  border-radius: var(--radius-md);
}

.snippet-step__inner {
  padding: 20px;
  background: var(--navy-mid);
  border-radius: calc(var(--radius-md) - 3px);
  height: 100%;
}

.snippet-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo-glow), var(--violet));
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.snippet-step__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.snippet-step__desc {
  font-size: 12px;
  color: var(--white-alpha-40);
  line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 24px 40px;
  border-top: 1px solid var(--white-alpha-10);
  text-align: center;
}

.footer__text {
  font-size: 12px;
  color: var(--white-alpha-40);
  letter-spacing: 0.06em;
}

.footer__text a {
  color: var(--ice-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__text a:hover {
  color: var(--cyan-electric);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .explore-btn {
    bottom: 20px;
    right: 20px;
    padding: 12px 18px;
    font-size: 12px;
  }

  .scroll-hint {
    display: none;
  }

  .gallery-card__actions {
    opacity: 1;
    transform: translateY(0);
  }

  .gallery-overlay__header {
    padding: 20px 24px;
  }

  .gallery-overlay__content {
    padding: 24px;
  }

  .gallery-category__grid {
    grid-template-columns: 1fr;
  }

  .snippet-section {
    padding: 48px 20px;
  }

  .snippet-section__title {
    font-size: 22px;
  }

  .snippet-steps {
    flex-direction: column;
  }

  .code-block__body pre {
    font-size: 12px;
  }

  .code-block__copy {
    top: 8px;
    right: 8px;
    padding: 6px 10px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .gallery-overlay__title {
    font-size: 16px;
  }

  .snippet-section__title {
    font-size: 18px;
  }

  .snippet-section__subtitle {
    font-size: 13px;
  }
}
