/* --- VARIABLES & RESET --- */
:root {
  --bg-color: #0e0e0e;
  --text-main: #e0e0e0;
  --text-muted: #888888;
  --accent-color: #ccff00; /* Neon Lime */
  --border-color: #333333;
  --white: #ffffff;

  --font-main: "Inter", sans-serif;
  --font-head: "Space Grotesk", sans-serif;

  --spacing-container: 2rem;
  --max-width: 1400px;

  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* --- TYPOGRAPHY (Swiss Style) --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* --- LAYOUT UTILITIES --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-container);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(14, 14, 14, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-container);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.header__logo-img {
  height: 32px;
  width: 32px;
}

.header__logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Desktop Nav */
.header__nav {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.header__list {
  display: flex;
  gap: 2.5rem;
}

.header__link {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  color: var(--text-muted);
}

/* Creative Hover: Underline slide + Color change */
.header__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.header__link:hover {
  color: var(--accent-color);
}

.header__link:hover::after {
  width: 100%;
}

.header__cta {
  padding: 0.8rem 1.8rem;
  border: 1px solid var(--border-color);
  font-family: var(--font-head);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  background: transparent;
}

/* CTA Button Hover: Fill effect */
.header__cta:hover {
  background-color: var(--accent-color);
  color: var(--bg-color);
  border-color: var(--accent-color);
}

.header__burger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  z-index: 1001;
}

/* --- FOOTER --- */
.footer {
  background-color: #050505;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 3rem;
  margin-top: auto;
}

.footer__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-container);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 4rem;
}

.footer__title {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  opacity: 0.6;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer__link {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--accent-color);
  transform: translateX(5px); /* Micro-animation: shift right */
}

.footer__desc {
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 300px;
}

.footer__copyright {
  font-size: 0.8rem;
  color: #444;
  margin-top: 2rem;
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer__icon {
  width: 20px;
  height: 20px;
  color: var(--accent-color);
  flex-shrink: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .header__container {
    padding: 0 1.5rem;
  }

  .header__burger {
    display: block;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  }

  .header__nav.is-active {
    right: 0;
  }

  .header__list {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .header__link {
    font-size: 1.5rem; /* Larger font for mobile menu */
  }

  .footer__container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .footer__container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .header__logo-text {
    font-size: 1rem;
  }
}

/* --- BUTTONS (Global) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1rem 2rem;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Primary Button (Neon Fill) */
.btn--primary {
  background-color: var(--accent-color);
  color: var(--bg-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 20px rgba(204, 255, 0, 0.2);
}

.btn--primary:hover {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--bg-color);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Outline Button */
.btn--outline {
  background-color: transparent;
  color: var(--white);
  border-color: var(--border-color);
}

.btn--outline:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background-color: rgba(204, 255, 0, 0.05);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* Offset for fixed header */
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4; /* Dim canvas to keep text readable */
}

.hero__container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.hero__content {
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--accent-color);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.hero__badge-icon {
  width: 16px;
  height: 16px;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero__highlight {
  color: var(--accent-color);
  display: inline-block; /* Required for scramble effect */
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  border-left: 2px solid var(--accent-color);
  padding-left: 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.hero__stats {
  display: flex;
  gap: 3rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item__num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
}

.stat-item__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Geometric Lines Decor */
.hero__line {
  position: absolute;
  background-color: var(--border-color);
  z-index: 1;
}

.hero__line--v {
  top: 0;
  right: 15%;
  width: 1px;
  height: 100%;
}

.hero__line--h {
  bottom: 15%;
  left: 0;
  width: 100%;
  height: 1px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero__line {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .hero__stats {
    justify-content: space-between;
    gap: 1rem;
  }

  .stat-item__num {
    font-size: 1.4rem;
  }
}

/* --- GLOBAL SECTION STYLES --- */
.section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-color);
}

.section__header {
  margin-bottom: 4rem;
  max-width: 700px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.text-accent {
  color: var(--accent-color);
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- SOLUTIONS GRID (Swiss Style) --- */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
}

.grid-item {
  background-color: transparent;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 2.5rem;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.grid-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

/* Hover Effect: Neon Border Glow */
.grid-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background-color: var(--accent-color);
  transition: height 0.4s ease;
}

.grid-item:hover::before {
  height: 100%;
}

.grid-item__number {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 700;
  color: #222; /* Very dark grey for background feel */
  margin-bottom: 1.5rem;
  line-height: 1;
  transition: var(--transition);
}

.grid-item:hover .grid-item__number {
  color: var(--accent-color);
  opacity: 0.5;
}

.grid-item__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.grid-item__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.grid-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
}

.grid-item__tags li {
  font-size: 0.75rem;
  text-transform: uppercase;
  border: 1px solid #333;
  padding: 4px 10px;
  color: #888;
}

.grid-item__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
  margin-top: auto;
}

.grid-item__link i {
  width: 18px;
  height: 18px;
  transition: var(--transition);
}

.grid-item__link:hover {
  color: var(--accent-color);
}

.grid-item__link:hover i {
  transform: translate(3px, -3px);
}

/* --- TECHNOLOGY SECTION --- */
.technology {
  background: radial-gradient(circle at top right, #1a1a1a 0%, #0e0e0e 40%);
}

.tech-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.tech-alert {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(204, 255, 0, 0.1);
  border: 1px solid rgba(204, 255, 0, 0.3);
  padding: 10px 15px;
  margin-bottom: 2rem;
  color: var(--accent-color);
  font-size: 0.85rem;
}

.tech-alert i {
  width: 16px;
  height: 16px;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.tech-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 2rem;
  transition: var(--transition);
}

.tech-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
}

.tech-icon {
  color: var(--accent-color);
  width: 32px;
  height: 32px;
  margin-bottom: 1.2rem;
}

.tech-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.tech-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .tech-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .grid-layout {
    grid-template-columns: 1fr;
    border-left: none; /* Remove left border on mobile */
  }

  .grid-item {
    border-left: 1px solid var(--border-color); /* Add left border to item */
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }
}

/* --- CASES (Horizontal Scroll) --- */
.cases {
  overflow: hidden; /* Hide overflow from main body */
}

.cases-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 2rem;
  padding-left: max(
    2rem,
    calc((100vw - var(--max-width)) / 2 + 2rem)
  ); /* Smart padding for container alignment */
  padding-right: 2rem;
  /* Hide Scrollbar Firefox */
  scrollbar-width: none;
  cursor: grab;
}

/* Hide Scrollbar Chrome/Safari/Edge */
.cases-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.cases-track {
  display: flex;
  gap: 2rem;
  width: max-content;
}

.case-card {
  min-width: 350px;
  max-width: 350px;
  background-color: #111;
  border: 1px solid var(--border-color);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  height: 400px; /* Fixed height for uniformity */
}

.case-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.case-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #222;
}

.case-card__id {
  font-family: var(--font-head);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.case-card__icon {
  color: var(--accent-color);
}

.case-card__title {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.case-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.case-card__result {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.case-card__result .value {
  color: var(--accent-color);
  font-weight: 700;
}

.case-card__footer {
  margin-top: 1.5rem;
  display: flex;
  gap: 10px;
}

.tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #666;
  border: 1px solid #333;
  padding: 4px 8px;
  border-radius: 4px;
}

/* Promo Card Style */
.case-card--promo {
  border: 1px dashed var(--accent-color);
  background: rgba(204, 255, 0, 0.02);
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* --- BLOG (List Style) --- */
.blog-list {
  display: flex;
  flex-direction: column;
}

.blog-item {
  display: grid;
  grid-template-columns: 150px 1fr 60px;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.blog-item:first-child {
  border-top: 1px solid var(--border-color);
}

.blog-item:hover {
  background-color: rgba(255, 255, 255, 0.02);
  padding-left: 1rem; /* Slight shift right */
  padding-right: 1rem;
}

.blog-item__date {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.blog-item__title a {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  transition: var(--transition);
}

.blog-item:hover .blog-item__title a {
  color: var(--accent-color);
}

.blog-item__excerpt {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
  max-width: 600px;
}

.blog-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.blog-item:hover .blog-btn {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--bg-color);
  transform: rotate(-45deg); /* Arrow points up-right */
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .cases-scroll-wrapper {
    padding-left: 1.5rem;
  }

  .blog-item {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem 0;
  }

  .blog-item__date {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .blog-item__action {
    display: none; /* Hide arrow on mobile to save space */
  }
}

/* --- CONTACT SECTION --- */
.contact__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact__details {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.detail-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.detail-value {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--white);
}

/* --- FORM STYLES --- */
.form {
  background: rgba(255, 255, 255, 0.02);
  padding: 3rem;
  border: 1px solid var(--border-color);
  position: relative;
}

.form__group {
  margin-bottom: 2rem;
  position: relative;
}

.form__label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.form__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #444;
  padding: 0.8rem 0;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
  border-radius: 0;
}

.form__input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form__error {
  display: none;
  font-size: 0.75rem;
  color: #ff4d4d;
  margin-top: 5px;
  position: absolute;
  bottom: -20px;
  left: 0;
}

.form__input.error {
  border-color: #ff4d4d;
}

.form__input.error + .form__error {
  display: block;
}

/* Checkbox Styles */
.form__checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2rem;
}

.custom-checkbox {
  accent-color: var(--accent-color);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.checkbox-label a {
  color: var(--white);
  text-decoration: underline;
}

/* Fake Captcha */
.form__captcha {
  background: #222;
  border: 1px solid #333;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: fit-content;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.captcha-box input {
  width: 24px;
  height: 24px;
  accent-color: #4a90e2; /* Google blueish */
}

.captcha-label {
  font-size: 0.9rem;
  color: #fff;
}

.captcha-img {
  height: 28px;
  width: auto;
  opacity: 0.7;
}

.form__submit {
  width: 100%;
}

/* Success Message */
.form__success {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0e0e0e;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 10;
  padding: 2rem;
  border: 1px solid var(--accent-color);
}

.success-icon {
  width: 64px;
  height: 64px;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: rgba(14, 14, 14, 0.95);
  border-top: 1px solid var(--accent-color);
  padding: 1.5rem 0;
  z-index: 2000;
  transition: bottom 0.5s ease;
  backdrop-filter: blur(10px);
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-container);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-content p {
  font-size: 0.9rem;
  color: var(--white);
}

.cookie-content a {
  color: var(--accent-color);
  text-decoration: underline;
}

/* --- POLICY PAGES STYLES (Standardized) --- */
.pages {
  padding: 8rem 0 4rem; /* Top padding for fixed header */
}

.pages h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--accent-color);
}

.pages p {
  margin-bottom: 1.5rem;
  color: #ccc;
  font-size: 1rem;
}

.pages h2 {
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.pages ul {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  list-style: disc;
  color: #ccc;
}

.pages li {
  margin-bottom: 0.5rem;
}

.pages strong {
  color: var(--white);
}

.pages a {
  color: var(--accent-color);
  text-decoration: underline;
}

/* --- RESPONSIVE CONTACT --- */
@media (max-width: 900px) {
  .contact__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form {
    padding: 2rem;
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cookie-btn {
    width: 100%;
  }
}
