/* ============================================
   ATX — New Notch Navbar + Framed Hero Banner
   Prefixed .atx- to avoid collisions with style.css
   ============================================ */

/* Fonts are loaded via <link rel="stylesheet"> in header+nav.php for better performance */

/* ============================================
   GLOBAL — switch entire site background to white
   ============================================ */
body:not(.dark) {
  background-image: none !important;
  background-color: #ffffff !important;
}

body:not(.dark) .section {
  background-color: #ffffff;
}

:root {
  --atx-white: #ffffff;
  --atx-gray-50: #f9fafb;
  --atx-gray-100: #f3f4f6;
  --atx-gray-400: #9ca3af;
  --atx-gray-500: #6b7280;
  --atx-gray-600: #4b5563;
  --atx-gray-800: #1f2937;
  --atx-gray-900: #111827;
  --atx-purple: #6D33FF;
  --atx-blue: #2563eb;
  --atx-radius-full: 9999px;
  --atx-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   NAVBAR — Dynamic Island / Notch style
   Overrides old header rules via selector header.atx-navbar
   ============================================ */
header.atx-navbar,
.atx-navbar {
  position: fixed;
  top: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: auto;
  max-width: none;
  height: auto;
  max-height: none;
  overflow: visible;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 1000;
  padding: 20px 0 0;
  transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--atx-font);
}

header.atx-navbar.scrolled {
  padding-top: 12px;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.atx-nav-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--atx-white);
  padding: 6px 8px 5px 20px;
  border-radius: 0 0 24px 24px;
  position: relative;
  transition: border-radius 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.15s,
    backdrop-filter 0.3s ease 0.15s,
    box-shadow 0.3s ease 0.15s,
    border 0.3s ease 0.15s;
}

.atx-navbar.scrolled .atx-nav-container {
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: border-radius 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
    background 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
    backdrop-filter 0.3s ease 0.1s,
    box-shadow 0.3s ease 0.1s,
    border 0.3s ease 0.1s;
}

/* Notch — left */
.atx-nav-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -16px;
  width: 16px;
  height: 16px;
  background: transparent;
  border-top-right-radius: 16px;
  box-shadow: 6px -5px 0 5px var(--atx-white);
  opacity: 1;
  transition: opacity 0.2s ease 0.2s, box-shadow 0.1s ease 0.2s;
}

/* Notch — right */
.atx-nav-container::after {
  content: '';
  position: absolute;
  top: 0;
  right: -16px;
  width: 16px;
  height: 16px;
  background: transparent;
  border-top-left-radius: 16px;
  box-shadow: -6px -5px 0 5px var(--atx-white);
  opacity: 1;
  transition: opacity 0.2s ease 0.2s, box-shadow 0.1s ease 0.2s;
}

.atx-navbar.scrolled .atx-nav-container::before,
.atx-navbar.scrolled .atx-nav-container::after {
  opacity: 0;
  box-shadow: none;
  transition: opacity 0.1s ease, box-shadow 0.05s ease;
}

.atx-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--atx-gray-800);
  font-weight: 600;
  font-size: 0.9rem;
  padding-right: 8px;
  height: auto;
  line-height: normal;
  text-decoration: none;
}

.atx-logo img {
  height: 25px;
  width: auto;
  object-fit: contain;
  display: block;
}

.atx-nav-links {
  display: flex;
  gap: 20px;
  padding: 0 8px;
  list-style: none;
  margin: 0;
}

.atx-nav-links li {
  margin: 0;
}

/* Hide Kontakt CTA li on desktop (appears only in mobile drawer) */
.atx-nav-links > li.atx-nav-cta { display: none; }

.atx-nav-links a.nav-link,
.atx-nav-links a {
  color: var(--atx-gray-600);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  opacity: 1;
  transition: color 0.3s ease;
  display: inline-block;
  margin: 0;
  padding: 0;
  position: relative;
  white-space: nowrap;
}

.atx-nav-links a.nav-link::after,
.atx-nav-links a::after {
  display: block !important;
  content: '' !important;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--atx-purple, #6D33FF), hsl(47, 100%, 55%));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.atx-nav-links a:hover,
.atx-nav-links a.active {
  color: var(--atx-gray-900);
}

.atx-nav-links a:hover::after,
.atx-nav-links a.active::after {
  transform: scaleX(1);
}

.atx-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 15px;
  z-index: 1001;
}

.atx-mobile-toggle .atx-bar {
  width: 100%;
  height: 2px;
  background: var(--atx-gray-800);
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

.atx-mobile-toggle.active .atx-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.atx-mobile-toggle.active .atx-bar:nth-child(2) {
  opacity: 0;
}

.atx-mobile-toggle.active .atx-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.atx-nav-actions {
  display: flex;
  align-items: center;
}

.atx-nav-demo {
  background: var(--atx-purple);
  color: var(--atx-white);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  display: inline-block;
}

.atx-nav-demo:hover {
  background: var(--atx-gray-800);
  transform: scale(1.02);
}

/* ============================================
   HERO — Framed banner with sky background
   ============================================ */
.atx-hero-wrapper {
  background: var(--atx-white);
  padding: 21px;
  padding-bottom: 120px;
  font-family: var(--atx-font);
}

.atx-hero-frame {
  position: relative;
  background: var(--atx-white);
  border-radius: 40px;
  overflow: visible;
  aspect-ratio: 16 / 9;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Rezerva na fixný nav + 'safe center' aby obsah na nízkych oknách nepretiekol pod nav */
  padding-top: clamp(132px, 13vh, 160px);
  padding-bottom: 32px;
  justify-content: safe center;
}

.atx-sky-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 40px;
  overflow: hidden;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 0%, #fef6ff 0%, #f4ecff 35%, #e9deff 100%);
  isolation: isolate;
}

/* Hero pozadie – video (nahrádza gradient/orby) */
.atx-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

/* Tmavý gradient dole – čitateľnosť textu na videu */
.atx-sky-background::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.35) 35%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* Soft noise-grain overlay for that organic, antigravity-like texture */
.atx-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.12) 0.5px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(0,0,0,0.06) 0.5px, transparent 1px);
  background-size: 3px 3px, 4px 4px;
  z-index: 5;
}

/* Flowing animated colour orbs — Antigravity-style */
.atx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.85;
  will-change: transform;
  pointer-events: none;
  z-index: 1;
}

.atx-orb-1 {
  width: 60%;
  height: 60%;
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, #ffb4d8 0%, rgba(255,180,216,0) 65%);
  animation: atx-orb-float-1 24s ease-in-out infinite alternate;
}

.atx-orb-2 {
  width: 55%;
  height: 55%;
  top: 10%;
  right: -15%;
  background: radial-gradient(circle, #ffd9a8 0%, rgba(255,217,168,0) 65%);
  animation: atx-orb-float-2 28s ease-in-out infinite alternate;
}

.atx-orb-3 {
  width: 70%;
  height: 70%;
  bottom: -25%;
  left: 5%;
  background: radial-gradient(circle, #b8a4ff 0%, rgba(184,164,255,0) 65%);
  animation: atx-orb-float-3 32s ease-in-out infinite alternate;
}

.atx-orb-4 {
  width: 50%;
  height: 50%;
  bottom: -10%;
  right: -5%;
  background: radial-gradient(circle, #a4e4ff 0%, rgba(164,228,255,0) 65%);
  animation: atx-orb-float-4 26s ease-in-out infinite alternate;
}

.atx-orb-5 {
  width: 45%;
  height: 45%;
  top: 35%;
  left: 30%;
  background: radial-gradient(circle, #c8ffd6 0%, rgba(200,255,214,0) 65%);
  animation: atx-orb-float-5 36s ease-in-out infinite alternate;
  opacity: 0.65;
}

@keyframes atx-orb-float-1 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40%, 25%) scale(1.15); }
  66%  { transform: translate(20%, 50%) scale(0.9); }
  100% { transform: translate(60%, 10%) scale(1.1); }
}
@keyframes atx-orb-float-2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-50%, 40%) scale(1.2); }
  100% { transform: translate(-25%, 15%) scale(0.95); }
}
@keyframes atx-orb-float-3 {
  0%   { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(35%, -30%) scale(1.1); }
  80%  { transform: translate(-15%, -45%) scale(1.25); }
  100% { transform: translate(20%, -20%) scale(1); }
}
@keyframes atx-orb-float-4 {
  0%   { transform: translate(0, 0) scale(1); }
  45%  { transform: translate(-40%, -35%) scale(1.3); }
  100% { transform: translate(-20%, -10%) scale(1.05); }
}
@keyframes atx-orb-float-5 {
  0%   { transform: translate(0, 0) scale(1); }
  30%  { transform: translate(-30%, 25%) scale(1.2); }
  60%  { transform: translate(40%, -20%) scale(0.85); }
  100% { transform: translate(15%, 30%) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .atx-orb { animation: none; }
}

.atx-hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  width: 100%;
  margin-top: auto;
}

.atx-hero-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  animation: atxFadeInUp 0.8s ease-out;
}

.atx-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  padding: 8px 18px;
  border-radius: var(--atx-radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #4a2db0;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(80, 40, 160, 0.12);
}

.atx-hero-badge-star {
  color: #fff;
  font-size: 0.8rem;
}

/* AYTTEX title — aurora colors painted INSIDE letters via background-clip: text
   with animated radial-gradient positions (blob-like motion without black rectangle) */
@property --atx-x1 { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@property --atx-y1 { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@property --atx-x2 { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
@property --atx-y2 { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@property --atx-x3 { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@property --atx-y3 { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
@property --atx-x4 { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
@property --atx-y4 { syntax: '<percentage>'; inherits: false; initial-value: 100%; }

.atx-hero-title {
  font-size: clamp(5rem, 28vw, 13.16rem);
  font-weight: 800;
  line-height: 1.15;
  padding-bottom: 0.06em;
  margin: 0 auto 12px;
  text-transform: none;
  letter-spacing: clamp(-3.5px, -0.25vw, -1.75px);
  text-align: center;
  display: inline-block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  background-color: #ffffff;
  background-image:
    radial-gradient(ellipse 80% 100% at var(--atx-x1) var(--atx-y1), #00c2ff 0%, #00c2ff 12%, transparent 50%),
    radial-gradient(ellipse 80% 100% at var(--atx-x2) var(--atx-y2), #f4f451 0%, #f4f451 12%, transparent 50%),
    radial-gradient(ellipse 80% 100% at var(--atx-x3) var(--atx-y3), #33ff8c 0%, #33ff8c 12%, transparent 50%),
    radial-gradient(ellipse 80% 100% at var(--atx-x4) var(--atx-y4), #e54cff 0%, #e54cff 12%, transparent 50%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;

  animation:
    atxFadeInUp 0.8s ease-out 0.1s both,
    atx-aurora-1 22s ease-in-out infinite alternate,
    atx-aurora-2 22s ease-in-out infinite alternate,
    atx-aurora-3 16s ease-in-out infinite alternate,
    atx-aurora-4 40s ease-in-out infinite alternate;
}

/* Aurora child divs only serve CodePen-style structure — hide them
   because the blob effect is now drawn via background-image above */
.atx-hero-title .aurora,
.atx-hero-title .aurora__item {
  display: none;
}

@keyframes atx-aurora-1 {
  0%   { --atx-x1: 0%;    --atx-y1: 0%; }
  50%  { --atx-x1: 75%;   --atx-y1: 100%; }
  75%  { --atx-x1: 25%;   --atx-y1: 100%; }
  100% { --atx-x1: 0%;    --atx-y1: 0%; }
}
@keyframes atx-aurora-2 {
  0%   { --atx-x2: 100%;  --atx-y2: 0%; }
  60%  { --atx-x2: 25%;   --atx-y2: 100%; }
  85%  { --atx-x2: 75%;   --atx-y2: 100%; }
  100% { --atx-x2: 100%;  --atx-y2: 0%; }
}
@keyframes atx-aurora-3 {
  0%   { --atx-x3: 0%;    --atx-y3: 100%; }
  40%  { --atx-x3: 75%;   --atx-y3: 0%; }
  65%  { --atx-x3: 50%;   --atx-y3: 60%; }
  100% { --atx-x3: 0%;    --atx-y3: 100%; }
}
@keyframes atx-aurora-4 {
  0%   { --atx-x4: 100%;  --atx-y4: 100%; }
  50%  { --atx-x4: 40%;   --atx-y4: 0%; }
  90%  { --atx-x4: 25%;   --atx-y4: 50%; }
  100% { --atx-x4: 100%;  --atx-y4: 100%; }
}

.atx-hero-title span {
  display: inline-block;
  animation: atxFadeInUp 0.8s ease-out 0.1s both, atxLevitate 4s ease-in-out infinite;
}

.atx-hero-title span:nth-child(1) { animation-delay: 0.10s, 0.0s; }
.atx-hero-title span:nth-child(2) { animation-delay: 0.15s, 0.2s; }
.atx-hero-title span:nth-child(3) { animation-delay: 0.20s, 0.4s; }
.atx-hero-title span:nth-child(4) { animation-delay: 0.25s, 0.6s; }
.atx-hero-title span:nth-child(5) { animation-delay: 0.30s, 0.8s; }
.atx-hero-title span:nth-child(6) { animation-delay: 0.35s, 1.0s; }

/* Hero mockup image — replaces the old AYTTEX wordmark, centered */
.atx-hero-mockup {
  margin: -24px auto -16px;
  width: min(86vw, 520px);
  line-height: 0;
  animation:
    atxFadeInUp 0.8s ease-out 0.1s both,
    atxLevitate 6s ease-in-out infinite;
}

.atx-hero-mockup img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 1;
  transition: opacity 0.6s ease;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.28));
}

.atx-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.62rem);
  color: var(--atx-white);
  text-transform: uppercase;
  letter-spacing: 0.8em;
  margin: 0 0 16px 0.8em;
  opacity: 0.95;
  animation: atxFadeInUp 0.8s ease-out 0.2s both;
  font-family: var(--atx-font);
}

.atx-hero-subtitle .w-light { font-weight: 300; }
.atx-hero-subtitle .w-bold { font-weight: 800; }

/* Typewriter subtitle — types/deletes cyklicky cez rôzne služby */
.atx-hero-typewriter {
  font-size: clamp(1.2rem, 2.4vw, 1.94rem);   /* +20% oproti základnému subtitle */
  text-transform: none;
  letter-spacing: 0.04em;
  margin-left: 0;
  min-height: 1.6em;            /* drží výšku aj keď je text prázdny počas mazania */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  white-space: nowrap;
}

.atx-hero-typewriter .atx-tw-text { font-weight: 400; }
.atx-hero-typewriter .atx-tw-text strong { font-weight: 800; }

.atx-hero-typewriter .atx-tw-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 0.14em;
  background: var(--atx-white);
  transform: translateY(0.08em);
  animation: atxTwBlink 1s step-end infinite;
}

@keyframes atxTwBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .atx-hero-typewriter .atx-tw-caret { animation: none; }
}

.atx-hero-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.atx-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--atx-purple);
  color: var(--atx-white);
  padding: 14px 28px;
  border-radius: var(--atx-radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  text-decoration: none;
  animation: atxFadeInUp 0.8s ease-out 0.3s both;
  font-family: var(--atx-font);
}

.atx-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(109, 51, 255, 0.3);
  background: #5a29d6;
}

.atx-btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.3);
  color: var(--atx-gray-800);
  padding: 12px 24px;
  border-radius: var(--atx-radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  animation: atxFadeInUp 0.8s ease-out 0.3s both;
  font-family: var(--atx-font);
}

.atx-btn-outline-light:hover {
  background: var(--atx-gray-50);
  border-color: var(--atx-gray-400);
}

/* Floating stat cards */
.atx-hero-cards {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 20;
}

.atx-hero-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.6);
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: atxFloat 4s ease-in-out infinite;
  font-family: var(--atx-font);
}

.atx-hero-card:nth-child(2) { animation-delay: 0.5s; }
.atx-hero-card:nth-child(3) { animation-delay: 1s; }

.atx-hero-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.atx-hero-card.highlighted {
  background: rgba(109, 51, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.3);
}

.atx-hero-card.highlighted .atx-stat-big,
.atx-hero-card.highlighted .atx-stat-label,
.atx-hero-card.highlighted .atx-stat-icon {
  color: var(--atx-white);
}

.atx-stat-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(109, 51, 255, 0.1);
  border-radius: 12px;
  color: var(--atx-purple);
  flex-shrink: 0;
}

.atx-hero-card.highlighted .atx-stat-icon {
  background: rgba(255, 255, 255, 0.2);
}

.atx-stat-icon svg {
  width: 24px;
  height: 24px;
}

.atx-stat-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.atx-stat-big {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--atx-gray-900);
  line-height: 1;
  margin-bottom: 4px;
}

.atx-stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--atx-gray-500);
  white-space: nowrap;
}

/* ============================================
   Animations
   ============================================ */
@keyframes atxFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes atxLevitate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes atxFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1018px) {
  header.atx-navbar,
  .atx-navbar {
    width: 100%;
    padding-top: 0;
    left: 0;
    right: 0;
    transform: none;
    display: flex;
    justify-content: center;
  }

  header.atx-navbar.scrolled {
    padding-top: 12px;
  }

  .atx-nav-container {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 12px 25px;
    border-radius: 0 0 24px 24px;
    background: var(--atx-white);
    backdrop-filter: none;
    box-shadow: none;
    border: none;
  }

  .atx-navbar.scrolled .atx-nav-container {
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 25px;
  }

  /* Body lock when mobile menu is open — position:fixed freezes scroll without visual jump */
  body.atx-menu-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
  }

  /* Remove backdrop-filter from nav-container while menu is open —
     backdrop-filter creates a containing block that would trap the fixed
     menu inside the navbar's bounds instead of the viewport. */
  body.atx-menu-open .atx-nav-container,
  body.atx-menu-open .atx-navbar.scrolled .atx-nav-container {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Backdrop — soft blur layer, mostly decorative since drawer is full-screen */
  .atx-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 10, 40, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 999;
  }
  .atx-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  /* Full-screen overlay menu — simple and reliable at any viewport */
  .atx-nav-links {
    display: flex !important;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 100px 32px 40px;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    border-radius: 0;
    box-shadow: none;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                visibility 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    list-style: none;
    overflow-y: auto;
    box-sizing: border-box;
  }
  .atx-nav-links.active {
    opacity: 1;
    visibility: visible;
  }

  /* Decorative gradient accent behind links */
  .atx-nav-links::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -30%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(109, 51, 255, 0.12), transparent 65%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
  }

  .atx-nav-links li {
    margin: 0;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(15, 10, 40, 0.06);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .atx-nav-links > li.atx-nav-cta { display: block; }
  .atx-nav-links li:first-child { border-top: none; }

  .atx-nav-links.active li { opacity: 1; transform: translateY(0); }
  .atx-nav-links.active li:nth-child(1) { transition-delay: 0.18s; }
  .atx-nav-links.active li:nth-child(2) { transition-delay: 0.24s; }
  .atx-nav-links.active li:nth-child(3) { transition-delay: 0.30s; }
  .atx-nav-links.active li:nth-child(4) { transition-delay: 0.36s; }
  .atx-nav-links.active li:nth-child(5) { transition-delay: 0.46s; }

  .atx-nav-links a.nav-link,
  .atx-nav-links a {
    display: flex !important;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    font-family: var(--atx-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: color 0.3s ease, transform 0.3s ease, padding-left 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    white-space: normal;
  }

  .atx-nav-links a.nav-link::before {
    content: attr(data-num);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #9c9ab5;
    min-width: 28px;
    transition: color 0.3s ease;
  }

  .atx-nav-links a.nav-link::after {
    content: '';
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    height: auto;
    margin-left: auto;
    padding-left: 0;
    background: none !important;
    transform: none !important;
    transition: none;
    display: inline-block;
    color: #6D33FF;
    opacity: 0;
    font-family: 'unicons-line', sans-serif;
  }

  .atx-nav-links a.nav-link:hover {
    color: #6D33FF;
    padding-left: 10px;
  }
  .atx-nav-links a.nav-link:hover::before { color: #6D33FF; }

  /* Kontakt CTA item */
  .atx-nav-links .atx-nav-cta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(15, 10, 40, 0.08);
  }
  .atx-nav-links .atx-nav-cta a {
    justify-content: center;
    gap: 10px;
    padding: 18px 24px;
    background: linear-gradient(120deg, #6D33FF, #8b5cf6);
    color: #ffffff;
    border-radius: 14px;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 10px 28px rgba(109, 51, 255, 0.35);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  }
  .atx-nav-links .atx-nav-cta a::before,
  .atx-nav-links .atx-nav-cta a::after { display: none !important; }
  .atx-nav-links .atx-nav-cta a:hover {
    color: #ffffff;
    padding-left: 24px;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(109, 51, 255, 0.45);
  }
  .atx-nav-links .atx-nav-cta a i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
  }
  .atx-nav-links .atx-nav-cta a:hover i { transform: translateX(4px); }

  .atx-nav-actions { display: none; }

  /* Burger — cleaner, above drawer */
  .atx-mobile-toggle {
    display: flex;
    margin-left: 0;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1003;
    transition: transform 0.3s ease;
  }

  .atx-mobile-toggle .atx-bar {
    height: 2.5px;
    background: #1a1a2e;
  }

  .atx-mobile-toggle.active {
    position: fixed;
    top: 30px;
    right: 24px;
  }

  .atx-mobile-toggle.active .atx-bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
    background: #1a1a2e;
  }
  .atx-mobile-toggle.active .atx-bar:nth-child(2) {
    opacity: 0;
  }
  .atx-mobile-toggle.active .atx-bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
    background: #1a1a2e;
  }

  .atx-logo { padding-right: 0; }
  .atx-logo img { height: 30px; }
}

@media (max-width: 768px) {
  .atx-hero-frame {
    justify-content: flex-start;
    padding-top: 120px;
    padding-bottom: 16px;
    aspect-ratio: auto;
    min-height: 55vh;
  }

  .atx-hero-content {
    padding-top: 20px;
    padding-bottom: 12px;
  }

  .atx-hero-cards {
    flex-direction: column;
    align-items: center;
    bottom: -150px;
  }

  .atx-hero-card {
    width: 100%;
    max-width: 280px;
  }

  .atx-hero-subtitle {
    letter-spacing: 0.5em;
    margin-left: 0.5em;
  }
}

@media (max-width: 480px) {
  .atx-hero-wrapper {
    padding: 12px;
    padding-bottom: 40px;
  }

  .atx-hero-title {
    font-size: clamp(4.5rem, 26vw, 8rem);
  }

  .atx-hero-subtitle {
    letter-spacing: 0.3em;
    margin-left: 0.3em;
  }
}

/* Typewriter musí prebiť mobilné .atx-hero-subtitle overridy (letter-spacing/margin)
   a na úzkych displejoch radšej zalomiť dlhú vetu než pretiecť */
@media (max-width: 768px) {
  .atx-hero-typewriter {
    letter-spacing: 0.03em;
    margin-left: 0;
    white-space: normal;
    display: block;
    min-height: 3.2em;
  }
  .atx-hero-typewriter .atx-tw-caret { vertical-align: text-bottom; }
}

/* ============================================
   ABOUT SECTION — modernized to match hero
   ============================================ */
body:not(.dark) .about {
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
}

/* Soft aurora orb accent — subtle, in spirit of hero */
body:not(.dark) .about::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at center,
    rgba(109, 51, 255, 0.18) 0%,
    rgba(0, 194, 255, 0.10) 40%,
    transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

body:not(.dark) .about::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle at center,
    rgba(229, 76, 255, 0.12) 0%,
    rgba(255, 198, 64, 0.08) 50%,
    transparent 75%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

/* Hide the existing decorative triangle PNG — we use CSS orbs instead */
body:not(.dark) .about .triangle {
  display: none;
}

body:not(.dark) .about .container {
  position: relative;
  z-index: 1;
}

/* Typography in the about info */
body:not(.dark) .about .sub-heading,
body:not(.dark) .services .sub-heading {
  color: #6D33FF;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.75rem;
  text-transform: uppercase;
  border-left-color: #6D33FF;
}

body:not(.dark) .about .heading,
body:not(.dark) .services .heading {
  font-family: 'Poppins', sans-serif;
  color: #111827;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
  padding-bottom: 0.12em;
}

body:not(.dark) .services .text {
  color: #4b5563;
  line-height: 1.75;
}

body:not(.dark) .about .text {
  color: #4b5563;
  line-height: 1.75;
}

/* Cards — white with subtle border + shadow, purple accent on hover */
body:not(.dark) .about-card {
  background-color: #ffffff;
  border: 1px solid rgba(109, 51, 255, 0.08);
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.04);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body:not(.dark) .about-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 40px rgba(109, 51, 255, 0.12);
  border-color: rgba(109, 51, 255, 0.25);
}

body:not(.dark) .about-card h3 {
  color: #111827;
  font-family: 'Poppins', sans-serif;
}

/* Decorative ring behind grid — tint with brand purple */
body:not(.dark) .about-grid::before {
  border-color: #6D33FF;
  opacity: 0.06;
}

/* SVG icon colors — subtle purple tint instead of blue-green */
body:not(.dark) .about-card .st0 {
  fill: #f5f3ff;
}

body:not(.dark) .about-card .st1 {
  fill: #ddd6fe;
}

body:not(.dark) .about-card .st2 {
  fill: #111827;
}

body:not(.dark) .about-card:hover .st2 {
  fill: #6D33FF;
}

/* ============================================
   Services cards — modernized (match O mne aesthetic)
   ============================================ */
body:not(.dark) .services .srv-card {
  background-color: #ffffff;
  border: 1px solid rgba(109, 51, 255, 0.08);
  border-radius: 24px;
  padding: 32px 28px;
  min-height: 280px;
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.04);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
body:not(.dark) .services .srv-card:nth-child(2),
body:not(.dark) .services .srv-card:nth-child(3) {
  transform: none;
}
body:not(.dark) .services .srv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(109, 51, 255, 0.12);
  border-color: rgba(109, 51, 255, 0.25);
}

.srv-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(109, 51, 255, 0.12), rgba(109, 51, 255, 0.04));
  color: #6D33FF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.35s ease;
}

.srv-card-icon svg {
  width: 28px;
  height: 28px;
}

body:not(.dark) .services .srv-card:hover .srv-card-icon {
  transform: scale(1.08) rotate(-4deg);
  background: linear-gradient(135deg, #6D33FF, #8b5cf6);
  color: #ffffff;
}

body:not(.dark) .services .srv-card h3 {
  color: #111827;
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 10px 0;
}

body:not(.dark) .services .srv-card .text {
  color: #4b5563;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0 0 18px 0;
}

body:not(.dark) .services-grid::before {
  display: none;
}

/* Primary CTA button — match hero's purple button */
body:not(.dark) .about .btn,
body:not(.dark) .services .btn {
  background-color: #6D33FF;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(109, 51, 255, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

body:not(.dark) .about .btn:hover,
body:not(.dark) .services .btn:hover {
  background-color: #5a29d6;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(109, 51, 255, 0.3);
}

body:not(.dark) .about .btn.secondary-btn,
body:not(.dark) .services .btn.secondary-btn {
  background-color: transparent;
  color: #6D33FF;
  box-shadow: none;
  border-bottom-color: #ffc640;
}

body:not(.dark) .about .btn.secondary-btn::before,
body:not(.dark) .services .btn.secondary-btn::before {
  background-color: #6D33FF;
}
