/* ==============================================
   Lythos Team v2 – Complete Website Styles
   ============================================== */

/* --- CSS Variables --- */
:root {
  /* Blues – Quality */
  --blue:        #3b82f6;
  --blue-dark:   #1d4ed8;
  --blue-light:  #60a5fa;
  --blue-glow:   rgba(59, 130, 246, 0.14);
  --blue-border: rgba(59, 130, 246, 0.25);

  /* Purple – Software */
  --purple:        #8b5cf6;
  --purple-dark:   #6d28d9;
  --purple-light:  #a78bfa;
  --purple-glow:   rgba(139, 92, 246, 0.14);
  --purple-border: rgba(139, 92, 246, 0.25);

  /* Teal – Engineering */
  --teal:        #14b8a6;
  --teal-dark:   #0f766e;
  --teal-light:  #2dd4bf;
  --teal-glow:   rgba(20, 184, 166, 0.14);
  --teal-border: rgba(20, 184, 166, 0.25);

  /* Accent */
  --accent:  #06b6d4;
  --accent2: #f59e0b;

  /* Backgrounds */
  --bg-base:        #080e1a;
  --bg-hero:        #0a1020;
  --bg-highlights:  #0d1528;
  --bg-quality:     #0b1626;
  --bg-software:    #0d0a1e;
  --bg-engineering: #081918;
  --bg-founder:     #0e1626;
  --bg-contact:     #0b1220;
  --bg-footer:      #060c14;

  /* Neutral */
  --dark-card: #111d30;
  --dark-card-2: #141a2e;
  --dark-line: rgba(255,255,255,0.07);

  /* Text */
  --text:       #e2e8f0;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --white: #ffffff;

  /* Fonts */
  --font-main:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;

  /* Misc */
  --radius:    12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 4px 30px rgba(0,0,0,0.35);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: var(--font-main);
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(8, 14, 26, 0);
  backdrop-filter: blur(0px);
  transition: all 0.4s ease;
  padding: 20px 0;
}
#navbar.scrolled {
  background: rgba(8, 14, 26, 0.96);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--dark-line);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-heading);
}
.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--white);
}
.logo-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 7px 14px;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-switch {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  padding: 2px;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  padding: 4px 10px;
  border-radius: 6px;
  transition: all var(--transition);
}
.lang-btn.active {
  background: var(--blue);
  color: var(--white);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-hero);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(59,130,246,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(139,92,246,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(20,184,166,0.1) 0%, transparent 60%);
}
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  animation: particleRise linear infinite;
}
@keyframes particleRise {
  0%   { bottom: -10px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.5; }
  100% { bottom: 110%; opacity: 0; }
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  padding: 0 24px;
  padding-top: 80px;
}
.hero-logo-wrap {
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.hero-logo-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.07) 20%,
    rgba(255,255,255,0.52) 50%,
    rgba(255,255,255,0.07) 80%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
  animation: logoShimmer 9.6s ease-in-out 0.8s both;
}
/* 2× átfutó fénycsillanás, majd elhalványul.
   „both" fill-mode: delay alatt is az 1. keyframe aktív → nem látható a sáv indulásnál.
   A reset mindig opacity:0 állapotban történik, hogy ne legyen látható visszafutás. */
@keyframes logoShimmer {
  0%   { transform: translateX(-280%) skewX(-15deg); opacity: 0; }
  3%   { transform: translateX(-280%) skewX(-15deg); opacity: 1; }
  20%  { transform: translateX(250%) skewX(-15deg);  opacity: 1; }
  23%  { transform: translateX(250%) skewX(-15deg);  opacity: 0; } /* előbb elfakul… */
  24%  { transform: translateX(-280%) skewX(-15deg); opacity: 0; } /* …aztán ugrik vissza */
  48%  { transform: translateX(-280%) skewX(-15deg); opacity: 0; }
  51%  { transform: translateX(-280%) skewX(-15deg); opacity: 0.45; }
  68%  { transform: translateX(250%) skewX(-15deg);  opacity: 0.45; }
  82%  { opacity: 0; }
  100% { transform: translateX(250%) skewX(-15deg);  opacity: 0; }
}
.hero-logo {
  height: 192px;
  width: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-highlight {
  background: linear-gradient(135deg, var(--blue-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.75;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(59,130,246,0.35);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59,130,246,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-2px);
}
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  animation: bounce 2s ease-in-out infinite;
  transition: all var(--transition);
}
.hero-scroll a:hover { border-color: var(--blue); color: var(--blue); }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}
/* Hero animate-in */
.animate-in { animation: fadeInUp 0.7s ease both; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   ACTIVITIES OVERVIEW
   ============================================================ */
.activities {
  background: var(--bg-highlights);
  padding: 90px 0;
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}
.section-intro {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  padding: 5px 16px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 50px;
  background: rgba(6, 182, 212, 0.07);
}
.section-intro h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.activity-card {
  display: block;
  background: var(--dark-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--dark-line);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.activity-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}
.activity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.activity-quality { border-color: var(--blue-border); }
.activity-quality::before { background: var(--blue-glow); }
.activity-quality:hover::before { opacity: 1; }
.activity-quality:hover { border-color: var(--blue); }

.activity-software { border-color: var(--purple-border); }
.activity-software::before { background: var(--purple-glow); }
.activity-software:hover::before { opacity: 1; }
.activity-software:hover { border-color: var(--purple); }

.activity-engineering { border-color: var(--teal-border); }
.activity-engineering::before { background: var(--teal-glow); }
.activity-engineering:hover::before { opacity: 1; }
.activity-engineering:hover { border-color: var(--teal); }

.activity-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.activity-quality  .activity-icon { background: var(--blue-glow);   color: var(--blue-light); border: 1px solid var(--blue-border); }
.activity-software .activity-icon { background: var(--purple-glow); color: var(--purple-light); border: 1px solid var(--purple-border); }
.activity-engineering .activity-icon { background: var(--teal-glow); color: var(--teal-light); border: 1px solid var(--teal-border); }

.activity-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.activity-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.activity-link {
  font-size: 0.84rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.activity-quality .activity-link    { color: var(--blue-light); }
.activity-software .activity-link   { color: var(--purple-light); }
.activity-engineering .activity-link { color: var(--teal-light); }

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.section-block {
  padding: 100px 0;
  border-bottom: 1px solid var(--dark-line);
}
.section-quality     { background: var(--bg-quality); }
.section-software    { background: var(--bg-software); }
.section-engineering { background: var(--bg-engineering); }

.section-header {
  margin-bottom: 60px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
}
.quality-label     { color: var(--blue-light); }
.quality-label::before     { background: var(--blue-light); }
.software-label    { color: var(--purple-light); }
.software-label::before    { background: var(--purple-light); }
.engineering-label { color: var(--teal-light); }
.engineering-label::before { background: var(--teal-light); }

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.75;
}

/* ============================================================
   SERVICE CARDS (Quality + Engineering)
   ============================================================ */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.svc-card {
  background: var(--dark-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--dark-line);
  transition: all var(--transition);
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

/* Quality variant */
.svc-card-blue { border-color: var(--blue-border); }
.svc-card-blue:hover {
  transform: scale(1.3);
  z-index: 10;
  border-color: var(--blue);
  background: var(--dark-card);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

/* Engineering variant */
.svc-card-teal { border-color: var(--teal-border); }
.svc-card-teal:hover { border-color: var(--teal); background: rgba(20,184,166,0.05); }

.svc-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.svc-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.svc-icon-blue { background: var(--blue-glow); color: var(--blue-light); border: 1px solid var(--blue-border); }
.svc-icon-teal { background: var(--teal-glow); color: var(--teal-light); border: 1px solid var(--teal-border); }

.svc-card h3 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  line-height: 1.2;
}
.svc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.svc-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}
.svc-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}
.svc-card-blue  .svc-list li::before { background: var(--blue); }
.svc-card-teal  .svc-list li::before { background: var(--teal); }

/* ============================================================
   PRODUCT CARDS (Software)
   ============================================================ */
.product-card {
  background: var(--dark-card);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  border: 1px solid var(--purple-border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 50px rgba(139,92,246,0.2);
  border-color: var(--purple);
  background: rgba(139,92,246,0.05);
}
.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}
.product-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--purple-glow);
  border: 1px solid var(--purple-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--purple-light);
}
.product-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  background: var(--purple-glow);
  color: var(--purple-light);
  border: 1px solid var(--purple-border);
}
.product-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.product-card .product-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.product-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.product-features li {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}
.product-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
  background: var(--purple);
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--purple-light);
  transition: gap var(--transition);
}
.product-link:hover { gap: 12px; }

/* ============================================================
   PRODUCT BOTTOM – Screenshots + Link wrapper
   ============================================================ */
.product-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ============================================================
   PRODUCT GALLERY – Carousel thumbnail strip
   ============================================================ */
.product-gallery {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gallery-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery-track {
  display: flex;
  gap: 10px;
  transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.gallery-thumb {
  flex: 0 0 calc(50% - 5px);
  aspect-ratio: 16 / 10;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid var(--purple-border);
  cursor: pointer;
  padding: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.gallery-thumb:hover {
  border-color: var(--purple-light);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(139, 92, 246, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  color: #fff;
  font-size: 1rem;
}
.gallery-thumb:hover .thumb-overlay { opacity: 1; }

.gallery-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid var(--purple-border);
  color: var(--purple-light);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), opacity var(--transition);
}
.gallery-arrow:hover:not(:disabled) {
  background: rgba(139, 92, 246, 0.28);
  border-color: var(--purple-light);
}
.gallery-arrow:disabled { opacity: 0.2; cursor: default; pointer-events: none; }

/* Teal override for engineering svc-cards */
.svc-gallery .gallery-arrow {
  background: rgba(20, 184, 166, 0.12);
  border-color: var(--teal-border);
  color: var(--teal-light);
}
.svc-gallery .gallery-arrow:hover:not(:disabled) {
  background: rgba(20, 184, 166, 0.28);
  border-color: var(--teal-light);
}
.svc-gallery .gallery-thumb {
  border-color: var(--teal-border);
}
.svc-gallery .gallery-thumb:hover {
  border-color: var(--teal-light);
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.3);
}
.svc-gallery .thumb-overlay {
  background: rgba(20, 184, 166, 0.45);
}

/* Engineering svc-card: push gallery to bottom */
.svc-card-teal {
  display: flex;
  flex-direction: column;
}
.svc-card-teal .svc-list { flex: 1; }
.svc-gallery { margin-top: 20px; }

/* ============================================================
   QUALITY CARD – hover reveal flip
   ============================================================ */
.svc-card-blue {
  display: flex;
  flex-direction: column;
  position: relative;
}
.quality-flip {
  position: relative;
  margin-top: 18px;
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 160px;
  border: 1px solid var(--blue-border);
}
.quality-flip-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.quality-flip-content {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 38, 0.80);
  padding: 20px 18px;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
}
.svc-card-blue:hover .quality-flip-content { opacity: 1; }

/* text + bullet color override inside flip content */
.quality-flip-content .svc-list li { color: #ffffff; }
.quality-flip-content .svc-list li::before { background: var(--blue-light); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9900;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.lightbox.active {
  visibility: visible;
  opacity: 1;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 18, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 1100px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 70px;
  box-sizing: border-box;
}
#lightboxImg {
  max-width: 100%;
  max-height: calc(88vh - 70px);
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.35);
  display: block;
  transition: opacity 0.2s ease;
}
#lightboxImg.fading { opacity: 0; }
.lightbox-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  letter-spacing: 0.03em;
}
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), opacity var(--transition);
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox-prev:disabled,
.lightbox-next:disabled { opacity: 0.2; cursor: default; pointer-events: none; }

@media (max-width: 640px) {
  .lightbox-inner { padding: 0 14px; }
  .lightbox-prev  { left: 6px; }
  .lightbox-next  { right: 6px; }
}

/* ============================================================
   FOUNDER
   ============================================================ */
.founder {
  background: var(--bg-founder);
  padding: 100px 0;
  border-bottom: 1px solid var(--dark-line);
}
.founder-card {
  background: var(--dark-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark-line);
  overflow: hidden;
  display: grid;
  grid-template-columns: 260px 1fr;
}
.founder-image {
  position: relative;
  background: var(--bg-base);
}
.founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.founder-image-accent {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--teal));
}
.founder-info {
  padding: 44px 48px;
}
.founder-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.founder-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
}
.founder-info h2 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.founder-role {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 28px;
}
.founder-bio {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  border-left: 2px solid rgba(255,255,255,0.1);
  padding-left: 20px;
  font-style: italic;
}
.founder-bio p { margin-bottom: 1em; }
.founder-bio p:last-child { margin-bottom: 0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--bg-contact);
  padding: 100px 0;
  border-bottom: 1px solid var(--dark-line);
}
.contact-wrapper {
  max-width: 640px;
  margin: 0 auto;
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg);
  padding: 44px 44px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.form-group:last-child { margin-bottom: 0; }
.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.form-group label span { color: var(--blue-light); }
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text);
  font-family: var(--font-main);
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2394a3b8' d='M8 10.5L2.5 5h11L8 10.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 40px;
  cursor: pointer;
}
.form-group select option {
  background: #1e293b;
  color: var(--text);
}
.form-group textarea {
  resize: vertical;
  min-height: 130px;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  background: rgba(59,130,246,0.06);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 28px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(59,130,246,0.3);
}
.form-submit:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59,130,246,0.4);
}
.form-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: center;
}
.form-success {
  display: none;
  text-align: center;
  padding: 32px 20px;
}
.form-success .success-icon {
  width: 56px;
  height: 56px;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #10b981;
  margin: 0 auto 16px;
}
.form-success h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.form-success p { font-size: 0.9rem; color: var(--text-muted); }
.form-error {
  display: none;
  font-size: 0.85rem;
  color: #f87171;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.25);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-footer);
  padding: 48px 0;
}
.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-heading);
}
.footer-contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-contact-item i { color: var(--blue-light); font-size: 0.9rem; }
.footer-contact-item:hover { color: var(--white); }
.footer-copy {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-faint);
}
.footer-copy a { color: var(--accent); }
.footer-copy a:hover { color: var(--white); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(59,130,246,0.4);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--blue-dark); transform: translateY(-3px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .activity-grid { grid-template-columns: 1fr; gap: 16px; }
  .founder-card { grid-template-columns: 200px 1fr; }
  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .footer-copy { text-align: center; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8,14,26,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; padding: 12px 32px; }
  .nav-toggle { display: flex; z-index: 1000; position: relative; }

  .hero-title { font-size: 2.2rem; }
  .hero-logo { height: 144px; }

  .cards-grid-3 { grid-template-columns: 1fr; }
  .cards-grid-2 { grid-template-columns: 1fr; }

  .founder-card { grid-template-columns: 1fr; }
  .founder-image { height: 280px; }
  .founder-info { padding: 32px 28px; }

  .contact-wrapper { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }

  .section-block { padding: 70px 0; }
  .activities { padding: 70px 0; }
  .founder, .contact { padding: 70px 0; }

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

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-content { padding-top: 100px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; max-width: 280px; }
  .contact-wrapper { padding: 24px 18px; }
  .footer-contacts { flex-direction: column; gap: 14px; }
}
