/* ============================================================
   Automation Factory — Global Stylesheet
   Used by: index.html, case.html
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple: #9355ff;
  --purple-hover: #a674ff;
  --bg-dark: #050506;
  --bg-section: #0A0A0B;
  --bg-hero: #0d0816;
  --text-muted: #a6a4b3;
  --font-geo: 'Geologica', sans-serif;
  --font-inter: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  font-family: var(--font-inter);
  color: #fff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--purple); color: #fff; }

/* ========== NAVBAR ========== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 71px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-bottom 0.3s, backdrop-filter 0.3s;
}

/* index.html: nav becomes visible on scroll */
nav.scrolled {
  background: rgba(13,8,22,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* case.html: nav is always visible */
nav.solid {
  background: rgba(13,8,22,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-inner {
  width: 100%;
  max-width: 1300px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { height: 46px; width: 179px; position: relative; display: block; }
.nav-logo:hover { opacity: 0.8; }
.nav-logo svg { position: absolute; width: 100%; height: 100%; }

.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  font-family: var(--font-geo);
  letter-spacing: -0.36px;
  line-height: 1.1;
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--purple);
  transition: width 0.3s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

/* ========== LANGUAGE SWITCHER ========== */
.nav-lang-wrapper {
  position: relative;
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  height: 41px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, border-color 0.2s;
}
.nav-lang:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.12);
}
.nav-lang-wrapper.open .nav-lang {
  background: rgba(255,255,255,0.2);
  border-color: rgba(147,85,255,0.4);
  border-radius: 8px 8px 0 0;
}
.nav-lang span {
  font-size: 20px;
  font-weight: 300;
  font-family: var(--font-geo);
  letter-spacing: -0.6px;
  line-height: 1.1;
  color: #fff;
  min-width: 22px;
}
.nav-lang .chevron {
  color: rgba(255,255,255,0.4);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.nav-lang-wrapper.open .nav-lang .chevron {
  transform: rotate(180deg);
}

/* Dropdown panel */
.nav-lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 100%;
  background: rgba(22,14,36,0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(147,85,255,0.25);
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  z-index: 200;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-lang-wrapper.open .nav-lang-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.nav-lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 300;
  font-family: var(--font-geo);
  letter-spacing: -0.3px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-lang-dropdown a:hover {
  background: rgba(147,85,255,0.15);
  color: #fff;
}
.nav-lang-dropdown a.lang-current {
  color: var(--purple);
  pointer-events: none;
}
.nav-lang-dropdown a .lang-flag {
  font-size: 16px;
  line-height: 1;
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  height: 41px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
}
.nav-lang span { font-size: 20px; font-weight: 300; font-family: var(--font-geo); letter-spacing: -0.6px; line-height: 1.1; }
.nav-lang svg { color: rgba(255,255,255,0.4); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.btn-hamburger {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  padding: 8px;
}
.btn-hamburger:hover { color: #fff; }

/* ========== MOBILE MENU ========== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--bg-hero);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 48px; }
.mobile-menu-logo { height: 36px; width: 140px; position: relative; }
.mobile-menu-logo svg { position: absolute; width: 100%; height: 100%; }

.btn-close { background: none; border: none; color: rgba(255,255,255,0.6); cursor: pointer; padding: 8px; }
.btn-close:hover { color: #fff; }

.mobile-nav-links { display: flex; flex-direction: column; gap: 32px; }
.mobile-nav-links a {
  font-size: 30px;
  font-family: var(--font-geo);
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}
.mobile-nav-links a:hover { color: var(--purple); }

.mobile-menu-footer { margin-top: auto; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.05); }
.mobile-menu-footer button {
  width: 100%;
  background: var(--purple);
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-inter);
  color: #fff;
  cursor: pointer;
}

/* ========== SHARED BUTTONS ========== */
.btn-primary {
  background: var(--purple);
  border: none;
  padding: 20px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
  font-family: var(--font-inter);
  letter-spacing: -0.36px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 4px 20px rgba(147,85,255,0.2);
}
.btn-primary:hover { background: var(--purple-hover); }

.btn-outline {
  position: relative;
  background: transparent;
  border: 2px solid var(--purple);
  padding: 20px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
  font-family: var(--font-inter);
  letter-spacing: -0.36px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-outline:hover { background: rgba(147,85,255,0.1); }

.btn-submit {
  background: var(--purple);
  border: none;
  border-radius: 12px;
  padding: 18px 32px;
  font-size: 17px;
  font-weight: 500;
  font-family: var(--font-inter);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 24px rgba(147,85,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.btn-submit:hover { background: var(--purple-hover); }
.btn-submit:active { transform: scale(0.98); }
.btn-submit svg { width: 18px; height: 18px; }

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-1 { animation: fadeUp 0.7s ease 0.1s  both; }
.anim-2 { animation: fadeUp 0.7s ease 0.25s both; }
.anim-3 { animation: fadeUp 0.7s ease 0.4s  both; }
.anim-4 { animation: fadeUp 0.7s ease 0.55s both; }

/* ========== SHARED SECTION PATTERNS ========== */
.section-inner { width: 100%; max-width: 1300px; }

.section-header { text-align: center; margin-bottom: 80px; }
.section-title {
  font-size: 44px;
  font-weight: 500;
  color: #fff;
  font-family: var(--font-geo);
  letter-spacing: -1.32px;
  margin-bottom: 16px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 500;
  font-family: var(--font-inter);
  letter-spacing: -0.36px;
}

/* ========== FOOTER ========== */
footer {
  background: var(--bg-dark);
  padding: 64px 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.footer-left { display: flex; flex-direction: column; gap: 16px; }
.footer-brand { font-size: 18px; font-weight: 500; font-family: var(--font-geo); letter-spacing: -0.36px; color: #fff; }
.footer-tagline { color: rgba(255,255,255,0.4); font-size: 14px; font-family: var(--font-inter); max-width: 280px; line-height: 1.6; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 24px; }
.footer-links { display: flex; gap: 40px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 15px; font-family: var(--font-inter); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--purple); }
.footer-copy { color: rgba(255,255,255,0.2); font-size: 13px; font-family: var(--font-geo); }

/* ========== SHARED FORM COMPONENTS ========== */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { color: rgba(255,255,255,0.7); font-size: 14px; font-family: var(--font-inter); font-weight: 500; letter-spacing: -0.1px; }
.form-group input,
.form-group textarea,
.form-group select {
  background: #1A1A1E;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 18px;
  color: #fff;
  font-family: var(--font-inter);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
  appearance: none;
	width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(147,85,255,0.5);
  box-shadow: 0 0 0 3px rgba(147,85,255,0.08);
}
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.3)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.form-group select option { background: #1A1A1E; color: #fff; }

.form-fields { display: flex; flex-direction: column; gap: 20px;    margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-note { color: rgba(255,255,255,0.3); font-size: 13px; font-family: var(--font-inter); line-height: 1.6; }

/* ========== CONTACT BOX (shared shell) ========== */
.contact-box {
  display: flex;
  border-radius: 20px;
  background: #111114;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  min-height: 500px;
}
.contact-form-side {
  flex: 1;
  padding: 56px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.contact-form-side.visible { opacity: 1; transform: translateX(0); }

.contact-form-header { display: flex; flex-direction: column; gap: 8px; }
.contact-form-header h2 {
  font-size: 36px;
  font-weight: 500;
  font-family: var(--font-geo);
  letter-spacing: -1.08px;
  color: #fff;
}
.contact-form-header p { font-size: 16px; font-family: var(--font-inter); color: var(--text-muted); line-height: 1.6; }

/* case.html right trust panel */
.contact-right-side {
  width: 380px;
  flex-shrink: 0;
  background: rgba(147,85,255,0.04);
  border-left: 1px solid rgba(255,255,255,0.06);
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease 0.1s, transform 0.8s ease 0.1s;
}
.contact-right-side.visible { opacity: 1; transform: translateX(0); }

.contact-trust-item { display: flex; flex-direction: column; gap: 6px; }
.contact-trust-num {
  font-size: 42px;
  font-weight: 500;
  font-family: var(--font-geo);
  letter-spacing: -1.26px;
  color: var(--purple);
  line-height: 1;
}
.contact-trust-label { font-size: 15px; font-family: var(--font-inter); color: var(--text-muted); line-height: 1.4; }
.contact-divider { height: 1px; background: rgba(255,255,255,0.06); }

.contact-badges { display: flex; flex-direction: column; gap: 12px; }
.contact-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}
.contact-badge-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(147,85,255,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-badge-icon svg { width: 16px; height: 16px; color: var(--purple); }
.contact-badge-text { font-size: 14px; font-family: var(--font-inter); color: rgba(255,255,255,0.6); line-height: 1.4; }

/* index.html map side */
.contact-map-side {
  flex: 1;
  position: relative;
  min-height: 400px;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.contact-map-side.visible { opacity: 1; transform: translateX(0); }
.contact-map-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.contact-map-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #111114, transparent);
  pointer-events: none;
}
.contact-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: rgba(17,17,20,0.8);
  backdrop-filter: blur(12px);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}
.contact-pin-icon { background: var(--purple); padding: 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.contact-pin-icon svg { color: #fff; width: 24px; height: 24px; }
.contact-pin-text { text-align: center; }
.contact-pin-text .city { font-size: 18px; font-weight: 500; font-family: var(--font-geo); color: #fff; }
.contact-pin-text .addr { color: var(--text-muted); font-size: 16px; font-family: var(--font-inter); }

/* Form success state */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 48px 0;
  flex: 1;
}
.form-success.show { display: flex; }
.form-success-icon {
  width: 64px; height: 64px;
  background: rgba(147,85,255,0.15);
  border: 1px solid rgba(147,85,255,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.form-success-icon svg { width: 28px; height: 28px; color: var(--purple); }
.form-success h3 { font-size: 24px; font-family: var(--font-geo); font-weight: 500; color: #fff; }
.form-success p { font-size: 15px; font-family: var(--font-inter); color: var(--text-muted); max-width: 280px; line-height: 1.6; }

/* ========================================
   INDEX.HTML — PAGE-SPECIFIC STYLES
   ======================================== */

/* Hero section */
#hero {
  position: relative;
  height: 760px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: var(--bg-hero);
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.hero-glow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.hero-glow-1 {
  position: absolute; top: 20%; left: -10%;
  width: 500px; height: 500px;
  background: rgba(147,85,255,0.10);
  filter: blur(150px); border-radius: 50%;
}
.hero-glow-2 {
  position: absolute; bottom: -10%; right: -10%;
  width: 600px; height: 600px;
  background: rgba(147,85,255,0.05);
  filter: blur(150px); border-radius: 50%;
}
.hero-content {
  position: relative; z-index: 10;
  width: 100%; max-width: 1300px; height: 100%;
  display: flex; flex-direction: column; align-items: center;
/*   padding-top: 71px; */
}
.hero-center {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
/*   padding-top: 80px; */
}

/* Sheets input */
.hero-input-wrap {
  margin-bottom: 64px;
  width: 100%; max-width: 640px; padding: 0 16px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}
.hero-input-outer { position: relative; }
.hero-input-glow {
  position: absolute; inset: -4px;
  background: linear-gradient(to right, rgba(147,85,255,0.5), transparent);
  border-radius: 16px; filter: blur(4px); opacity: 0.2; transition: opacity 0.5s;
}
.hero-input-outer:focus-within .hero-input-glow { opacity: 0.4; }
.hero-input-box {
  position: relative;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 8px;
  display: flex; align-items: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.hero-input-box:focus-within {
  border-color: rgba(147,85,255,0.5);
  box-shadow: 0 0 0 1px rgba(147,85,255,0.3);
}
.hero-input-icon {
  background: rgba(34,197,94,0.2); padding: 12px;
  border-radius: 12px; margin-right: 8px;
  display: flex; align-items: center; justify-content: center;
}
.hero-input-icon svg { color: #22c55e; }
.hero-input-box input {
  flex: 1; background: transparent; border: none; outline: none;
  color: rgba(255,255,255,0.9); font-size: 18px;
  font-family: var(--font-geo); font-weight: 300; padding: 0 8px;
}
.hero-input-box input::placeholder { color: rgba(255,255,255,0.3); }
.hero-input-btn {
  background: var(--purple); border: none; border-radius: 12px;
  padding: 12px; margin-left: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 20px rgba(147,85,255,0.2);
}
.hero-input-btn:hover { background: var(--purple-hover); }
.hero-input-btn:active { transform: scale(0.95); }
.hero-input-btn svg { color: #fff; }
.hero-input-hint {
  margin-top: 12px; display: flex; align-items: center;
  gap: 8px; justify-content: center;
  color: rgba(255,255,255,0.2); font-size: 12px; font-family: var(--font-inter);
}
.hero-input-hint svg { color: rgba(255,255,255,0.2); }

/* Hero text */
.hero-text-group { display: flex; flex-direction: column; gap: 32px; align-items: center; text-align: center; }
.hero-headings { display: flex; flex-direction: column; gap: 24px; align-items: center; }
.hero-h1 {
  font-size: 52px; font-weight: 500; line-height: 1.1;
  font-family: var(--font-geo); letter-spacing: -1.56px; color: #fff;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.2s forwards;
}
.hero-p {
  color: #a6a4b3; font-size: 18px; font-weight: 500; line-height: 1.1;
  font-family: var(--font-inter); letter-spacing: -0.36px; max-width: 480px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.4s forwards;
}
.hero-btns {
  display: flex; gap: 20px; flex-wrap: wrap; justify-content: center;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.6s forwards;
}

/* Index sections */
section {
  background: var(--bg-section);
  padding: 80px 32px;
  display: flex; flex-direction: column; align-items: center;
}

/* Results */
.results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.result-card {
  background: rgba(147,85,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 261px;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.result-card.visible { opacity: 1; transform: translateY(0); }
.result-icon {
  width: 66px; height: 66px; border-radius: 12px; overflow: hidden;
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05);
  padding: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.result-icon img { width: 100%; height: 100%; object-fit: contain; }
.result-card h3 { font-size: 27px; font-weight: 500; color: #fff; line-height: 1.15; font-family: var(--font-geo); letter-spacing: -0.81px; }
.result-card p { color: var(--text-muted); font-size: 16px; font-family: var(--font-inter); letter-spacing: -0.32px; line-height: 1.2; }

/* Portfolio */
.portfolio-cols { display: flex; gap: 40px; }
.portfolio-col { flex: 1; display: flex; flex-direction: column; gap: 40px; }
.project-card {
  display: flex; flex-direction: column; gap: 24px;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.project-card.visible { opacity: 1; transform: translateY(0); }
.project-img { width: 100%; border-radius: 12px; overflow: hidden; position: relative; cursor: pointer; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; display: block; }
.project-img:hover img { transform: scale(1.1); }
.project-img-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.4);
  opacity: 0; transition: opacity 0.5s;
  display: flex; align-items: center; justify-content: center;
}
.project-img:hover .project-img-overlay { opacity: 1; }
.project-img-overlay span {
  background: rgba(255,255,255,0.1); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2); padding: 12px 24px;
  border-radius: 999px; color: #fff; font-weight: 500;
}
.project-info { display: flex; flex-direction: column; gap: 8px; }
.project-cat { color: var(--purple); font-size: 18px; font-weight: 500; font-family: var(--font-inter); letter-spacing: -0.36px; }
.project-title { font-size: 32px; font-weight: 500; color: #fff; line-height: 1.15; font-family: var(--font-geo); letter-spacing: -0.96px; }
.h-360 { height: 360px; }
.h-700 { height: 700px; }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 40px; }
.process-step {
  display: flex; flex-direction: column; gap: 32px;
  opacity: 0; transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.process-step.visible { opacity: 1; transform: translateX(0); }
.process-step-top { display: flex; align-items: center; gap: 16px; }
.process-num-circle { position: relative; width: 80px; height: 80px; flex-shrink: 0; }
.process-num-bg {
  position: absolute; inset: 0;
  background: rgba(147,85,255,0.2); border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1); transition: background 0.5s;
}
.process-step:hover .process-num-bg { background: rgba(147,85,255,0.3); }
.process-num-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 500; color: var(--purple);
  font-family: var(--font-geo); letter-spacing: -0.96px;
}
.process-connector { flex: 1; height: 1px; background: rgba(147,85,255,0.4); position: relative; }
.process-connector::after {
  content: ''; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%); width: 8px; height: 8px;
  border-radius: 50%; background: var(--purple);
}
.process-step-body { display: flex; flex-direction: column; gap: 16px; }
.process-step-body h3 { font-size: 26px; font-weight: 500; color: #fff; font-family: var(--font-geo); letter-spacing: -0.78px; line-height: 1.15; }
.process-step-body p { color: var(--text-muted); font-size: 16px; font-family: var(--font-inter); letter-spacing: -0.32px; }

/* Benefits */
.benefits-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
.benefit-card {
  background: rgba(147,85,255,0.1); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 32px;
  width: calc(33.33% - 27px); min-height: 220px;
  display: flex; flex-direction: column; gap: 24px;
  opacity: 0; transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.benefit-card.visible { opacity: 1; transform: scale(1); }
.benefit-icon {
  background: rgba(0,0,0,0.3); width: fit-content; padding: 16px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,0.05);
  color: var(--purple); display: flex; align-items: center; justify-content: center;
}
.benefit-icon svg { width: 32px; height: 32px; }
.benefit-card h3 { font-size: 26px; font-weight: 500; color: #fff; font-family: var(--font-geo); letter-spacing: -0.78px; }
.benefit-card p { color: var(--text-muted); font-size: 16px; font-family: var(--font-inter); letter-spacing: -0.32px; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.team-card {
  display: flex; flex-direction: column; gap: 24px;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.team-card.visible { opacity: 1; transform: translateY(0); }
.team-img { height: 432px; border-radius: 12px; overflow: hidden; filter: grayscale(1); transition: filter 0.5s; }
.team-img:hover { filter: grayscale(0); }
.team-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-info { display: flex; flex-direction: column; gap: 8px; }
.team-name { font-size: 26px; font-weight: 500; color: #fff; font-family: var(--font-geo); letter-spacing: -0.78px; }
.team-role { color: var(--purple); font-size: 18px; font-weight: 500; font-family: var(--font-inter); letter-spacing: -0.36px; }
.team-desc { color: var(--text-muted); font-size: 16px; font-family: var(--font-inter); letter-spacing: -0.32px; }

/* ========================================
   CASE.HTML — PAGE-SPECIFIC STYLES
   ======================================== */

.page { padding-top: 71px; }

/* Case hero header */
.case-hero {
  background: var(--bg-hero);
  padding: 60px 32px 80px;
  display: flex; justify-content: center;
  position: relative; overflow: hidden;
}
.case-hero::before {
  content: ''; position: absolute; top: -20%; left: -10%;
  width: 600px; height: 600px; background: rgba(147,85,255,0.08);
  filter: blur(150px); border-radius: 50%; pointer-events: none;
}
.case-hero::after {
  content: ''; position: absolute; bottom: -30%; right: -5%;
  width: 500px; height: 500px; background: rgba(147,85,255,0.05);
  filter: blur(120px); border-radius: 50%; pointer-events: none;
}
.case-hero-inner { width: 100%; max-width: 1300px; position: relative; z-index: 1; }

/* Breadcrumbs */
.breadcrumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.breadcrumbs a { color: rgba(255,255,255,0.4); font-size: 14px; font-family: var(--font-inter); text-decoration: none; transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--purple); }
.breadcrumbs-sep { color: rgba(255,255,255,0.2); font-size: 14px; display: flex; align-items: center; }
.breadcrumbs-sep svg { width: 14px; height: 14px; }
.breadcrumbs-current { color: rgba(255,255,255,0.6); font-size: 14px; font-family: var(--font-inter); }

/* Case title block */
.case-header-grid { display: grid; grid-template-columns: 1fr 380px; gap: 80px; align-items: start; }
.case-tag {
  display: inline-flex; align-items: center;
  background: rgba(147,85,255,0.15); border: 1px solid rgba(147,85,255,0.3);
  border-radius: 999px; padding: 6px 16px;
  font-size: 13px; font-family: var(--font-inter); color: var(--purple);
  letter-spacing: 0.02em; margin-bottom: 20px;
}
.case-h1 {
  font-size: 56px; font-weight: 500; font-family: var(--font-geo);
  letter-spacing: -1.68px; line-height: 1.05; color: #fff; margin-bottom: 24px;
}
.case-lead {
  font-size: 18px; font-weight: 400; font-family: var(--font-inter);
  color: var(--text-muted); letter-spacing: -0.36px; line-height: 1.65; max-width: 620px;
}

/* Case meta sidebar */
.case-meta {
  display: flex; flex-direction: column; gap: 0;
  background: rgba(147,85,255,0.07); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; overflow: hidden; margin-top: 8px;
}
.case-meta-item { padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; flex-direction: column; gap: 4px; }
.case-meta-item:last-child { border-bottom: none; }
.case-meta-label { font-size: 12px; font-family: var(--font-inter); color: rgba(255,255,255,0.3); letter-spacing: 0.08em; text-transform: uppercase; }
.case-meta-value { font-size: 16px; font-family: var(--font-inter); font-weight: 500; color: #fff; }
.case-meta-value.purple { color: var(--purple); }

/* Case content sections */
.case-content { background: var(--bg-section); padding: 80px 32px; display: flex; justify-content: center; }
.case-content-inner { width: 100%; max-width: 1300px; }

.case-section { margin-bottom: 72px; }
.case-section:last-child { margin-bottom: 0; }
.case-section-label {
  font-size: 12px; font-family: var(--font-inter); color: var(--purple);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.case-section-label::after { content: ''; flex: 1; height: 1px; background: rgba(147,85,255,0.2); max-width: 80px; }
.case-section h2 { font-size: 36px; font-weight: 500; font-family: var(--font-geo); letter-spacing: -1.08px; color: #fff; margin-bottom: 24px; line-height: 1.15; }
.case-section p,
.case-section ul,
.case-section ol { font-size: 17px; font-family: var(--font-inter); color: var(--text-muted); line-height: 1.75; letter-spacing: -0.2px; max-width: 820px; }
.case-section p + p { margin-top: 16px; }
.case-desc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

/* Result chips */
.result-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.result-chip {
  display: flex; align-items: center; gap: 10px;
  background: rgba(147,85,255,0.1); border: 1px solid rgba(147,85,255,0.2);
  border-radius: 12px; padding: 14px 20px;
}
.result-chip-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(147,85,255,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.result-chip-icon svg { width: 18px; height: 18px; color: var(--purple); }
.result-chip-text { display: flex; flex-direction: column; gap: 2px; }
.result-chip-num { font-size: 20px; font-weight: 500; font-family: var(--font-geo); color: #fff; letter-spacing: -0.6px; }
.result-chip-desc { font-size: 13px; font-family: var(--font-inter); color: var(--text-muted); }

/* Gallery */
.gallery-section { background: var(--bg-dark); padding: 80px 32px; display: flex; justify-content: center; }
.gallery-inner { width: 100%; max-width: 1300px; }
.gallery-header { margin-bottom: 48px; }
.gallery-header h2 { font-size: 36px; font-weight: 500; font-family: var(--font-geo); letter-spacing: -1.08px; color: #fff; margin-bottom: 8px; }
.gallery-header p { font-size: 16px; font-family: var(--font-inter); color: var(--text-muted); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
  border-radius: 12px; overflow: hidden; position: relative; cursor: pointer; background: #111;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.gallery-item.visible { opacity: 1; transform: translateY(0); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0);
  transition: background 0.4s; display: flex; align-items: center; justify-content: center;
}
.gallery-item:hover .gallery-item-overlay { background: rgba(0,0,0,0.35); }
.gallery-item-overlay-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.8); transition: opacity 0.3s, transform 0.3s;
}
.gallery-item:hover .gallery-item-overlay-icon { opacity: 1; transform: scale(1); }
.gallery-item-overlay-icon svg { color: #fff; width: 20px; height: 20px; }

.gallery-item:nth-child(1) { grid-column: span 2; height: 420px; }
.gallery-item:nth-child(2) { grid-column: span 1; height: 420px; }
.gallery-item:nth-child(3) { grid-column: span 1; height: 300px; }
.gallery-item:nth-child(4) { grid-column: span 1; height: 300px; }
.gallery-item:nth-child(5) { grid-column: span 1; height: 300px; }
.gallery-item:nth-child(6) { grid-column: span 2; height: 340px; }
.gallery-item:nth-child(7) { grid-column: span 1; height: 340px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img {
  max-width: 90vw; max-height: 85vh; border-radius: 12px; object-fit: contain;
  transform: scale(0.95); transition: transform 0.3s;
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(147,85,255,0.3); }
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-counter { position: absolute; bottom: 24px; font-size: 14px; font-family: var(--font-inter); color: rgba(255,255,255,0.5); }

/* Contact section wrapper (case.html) */
.contact-section { background: var(--bg-section); padding: 80px 32px; display: flex; justify-content: center; }
.contact-inner { width: 100%; max-width: 1300px; }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .nav-links      { display: none; }
  .btn-hamburger  { display: flex; }
  .nav-lang       { display: none; }

  /* index */
  .results-grid     { grid-template-columns: repeat(2, 1fr); }
  .process-grid     { grid-template-columns: repeat(3, 1fr); }
  .team-grid        { grid-template-columns: repeat(2, 1fr); }
  .benefit-card     { width: calc(50% - 20px); }
  .portfolio-cols   { flex-direction: column; }
  .portfolio-col .h-700 { height: 400px; }
  .portfolio-col .h-360 { height: 300px; }

  /* case */
  .case-header-grid   { grid-template-columns: 1fr; gap: 40px; }
  .case-meta          { max-width: 100%; }
  .contact-right-side { display: none; }
  .case-desc-grid     { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .case-h1 { font-size: 36px; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(1) { grid-column: span 2; height: 260px; }
  .gallery-item:nth-child(2) { grid-column: span 2; height: 220px; }
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) { grid-column: span 1; height: 180px; }
  .gallery-item:nth-child(6) { grid-column: span 2; height: 220px; }
  .gallery-item:nth-child(7) { grid-column: span 2; height: 200px; }

  .form-row           { grid-template-columns: 1fr; }
  .contact-form-side  { padding: 32px; }
  .footer-inner       { flex-direction: column; align-items: center; }
  .footer-right       { align-items: center; }
  .case-hero          { padding: 40px 20px 60px; }
  .case-content, .gallery-section, .contact-section { padding: 60px 20px; }
}

@media (max-width: 640px) {
  .hero-h1      { font-size: 36px; }
  .section-title { font-size: 32px; }
  .results-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .team-grid    { grid-template-columns: 1fr; }
  .benefit-card { width: 100%; }
  .contact-box  { flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: center; }
  .footer-right { align-items: center; }
  .hero-btns    { flex-direction: column; align-items: center; }
  .process-connector { display: none; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item,
  .gallery-item:nth-child(n) { grid-column: span 1 !important; height: 220px; }
}