/* ============================================================
   FONTS
   ============================================================ */
@font-face { font-display:swap; font-family:'Jost'; font-style:normal; font-weight:400; src:url('fonts/jost-v20-latin-regular.woff2') format('woff2'), url('fonts/jost-v20-latin-regular.woff') format('woff'); }
@font-face { font-display:swap; font-family:'Jost'; font-style:normal; font-weight:500; src:url('fonts/jost-v20-latin-500.woff2') format('woff2'), url('fonts/jost-v20-latin-500.woff') format('woff'); }
@font-face { font-display:swap; font-family:'Jost'; font-style:normal; font-weight:600; src:url('fonts/jost-v20-latin-600.woff2') format('woff2'), url('fonts/jost-v20-latin-600.woff') format('woff'); }
@font-face { font-display:swap; font-family:'Jost'; font-style:normal; font-weight:700; src:url('fonts/jost-v20-latin-700.woff2') format('woff2'), url('fonts/jost-v20-latin-700.woff') format('woff'); }
@font-face { font-display:swap; font-family:'Jost'; font-style:normal; font-weight:800; src:url('fonts/jost-v20-latin-800.woff2') format('woff2'), url('fonts/jost-v20-latin-800.woff') format('woff'); }
@font-face { font-display:swap; font-family:'Jost'; font-style:normal; font-weight:900; src:url('fonts/jost-v20-latin-900.woff2') format('woff2'), url('fonts/jost-v20-latin-900.woff') format('woff'); }
@font-face { font-display:swap; font-family:'Space Grotesk'; font-style:normal; font-weight:300; src:url('fonts/space-grotesk-v22-latin-300.woff2') format('woff2'), url('fonts/space-grotesk-v22-latin-300.woff') format('woff'); }
@font-face { font-display:swap; font-family:'Space Grotesk'; font-style:normal; font-weight:400; src:url('fonts/space-grotesk-v22-latin-regular.woff2') format('woff2'), url('fonts/space-grotesk-v22-latin-regular.woff') format('woff'); }
@font-face { font-display:swap; font-family:'Space Grotesk'; font-style:normal; font-weight:500; src:url('fonts/space-grotesk-v22-latin-500.woff2') format('woff2'), url('fonts/space-grotesk-v22-latin-500.woff') format('woff'); }
@font-face { font-display:swap; font-family:'Space Grotesk'; font-style:normal; font-weight:600; src:url('fonts/space-grotesk-v22-latin-600.woff2') format('woff2'), url('fonts/space-grotesk-v22-latin-600.woff') format('woff'); }
@font-face { font-display:swap; font-family:'Space Grotesk'; font-style:normal; font-weight:700; src:url('fonts/space-grotesk-v22-latin-700.woff2') format('woff2'), url('fonts/space-grotesk-v22-latin-700.woff') format('woff'); }

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --brand:   #22d3ee;
  --brand-2: #a855f7;
  --bg:      #0b0b0b;
  --muted:   rgba(255,255,255,.6);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Jost', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background-color: var(--bg);
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

.heading-font, h1, h2, h3, .outer-nav > li,
.jm-logo, .header--logo p, .device-notification--logo p {
  font-family: 'Space Grotesk', sans-serif;
}

/* ============================================================
   CURSOR  –  Fixed: no media query, always attached in JS
   ============================================================ */
.cursor {
  position: fixed;
  top: -20px;   /* start off-screen until first mousemove */
  left: -20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22d3ee;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: width .12s ease, height .12s ease, background .12s ease;
  will-change: left, top;
}
.cursor--hover {
  width: 22px !important;
  height: 22px !important;
  background: rgba(34,211,238,.3) !important;
  border: 1.5px solid #22d3ee;
}

/* Hide system cursor everywhere */
*, *::before, *::after { cursor: none !important; }

/* ============================================================
   SPACE BG CANVAS
   ============================================================ */
#space-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.perspective { position: relative; z-index: 1; }

/* ============================================================
   ACCENT COLOR  (override #0f33ff → cyan)
   ============================================================ */
.header--cta { display: none !important; }           /* Remove CTA button globally */

.intro--banner button .btn-background,
.intro--banner::after,
.work-request input[type="submit"],
.side-nav li.is-active {
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
}

.work-request--options input[type="checkbox"]:checked + label {
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
}

.container { outline-color: rgba(34,211,238,.25) !important; }
.effect-rotate-left--animate .container { outline-color: rgba(34,211,238,.25) !important; }

/* ============================================================
   GRADIENT TEXT
   ============================================================ */
.gradient-text {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   HERO TITLE  –  Bigger
   ============================================================ */
.hero-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: clamp(72px, 9vw, 120px) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  margin: 0 0 30px !important;
}

/* ============================================================
   LOADER
   ============================================================ */
.loader-container {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
.loader-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.loader-ring { width: 60px; height: 60px; border-radius: 50%; border: 3px solid rgba(255,255,255,.1); border-top-color: var(--brand); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(32px, 6vw, 56px); }
.l-char { color: #fff; display: inline-block; opacity: 0; animation: charPop .6s ease forwards; }
.l-char:nth-child(1) { animation-delay: .1s; }
.l-char:nth-child(2) { animation-delay: .25s; }
.l-dot  { color: var(--brand); display: inline-block; opacity: 0; animation: charPop .6s .4s ease forwards; }
@keyframes charPop { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* ============================================================
   LOGO
   ============================================================ */
.jm-logo { font-weight: 700; font-size: clamp(38px,4vw,56px); margin: 0; line-height: 1; }
.logo__a  { color: #fff; }
.logo__dot{ color: var(--brand); }
.header--logo { text-decoration: none; }

/* ============================================================
   SERVICES – bigger boxes, square corners
   ============================================================ */
.work h2 {
  font-size: clamp(42px, 5.5vw, 72px) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  margin-bottom: 28px !important;
}

.services-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 22px;
  margin-top: 24px; max-width: 820px; margin-inline: auto;
}
.service-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 0;
  padding: 26px 24px;
  transition: border-color .3s, box-shadow .3s;
}
.service-item:hover { border-color: var(--brand); box-shadow: 0 0 24px rgba(34,211,238,.08); }
.service-icon {
  width: 46px; height: 46px; background: var(--brand); border-radius: 0;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.service-icon svg { color: #000; }
.service-item h3 { font-family: 'Space Grotesk',sans-serif; font-size: 1.05rem; font-weight: 700; color: #fff; margin: 0 0 8px; }
.service-item p  { font-size: .88rem; color: var(--muted); margin: 0 0 12px; line-height: 1.55; }
.service-item ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.service-item ul li { font-size: .75rem; color: rgba(255,255,255,.5); background: rgba(34,211,238,.07); border: 1px solid rgba(34,211,238,.18); padding: 3px 9px; border-radius: 0; }
.badge-soon { font-size: .68rem; color: var(--brand); font-weight: 600; margin-left: 4px; }

@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SECTION 3 – ÜBER MICH (split layout, no shapes)
   ============================================================ */

/* Remove ALL geometric decorations from about--banner */
.about--no-deco .about--banner::before,
.about--no-deco .about--banner::after,
.about--no-deco .about--banner h2::before,
.about--no-deco .about--banner h2::after { display: none !important; content: none !important; }

.about--no-deco .about--options { display: none !important; }

/* Split layout */
.about-split {
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: 860px;
  height: 100%;
  margin: auto;
}

.about-split__text { flex: 1; }

.about-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 900 !important;
  font-size: clamp(36px, 4.5vw, 60px) !important;
  line-height: 1.1 !important;
  margin: 0 0 22px !important;
}

.about-split__text p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 14px;
  max-width: 42ch;
}

.about-split__img {
  flex: 0 0 280px;
  height: 370px;
  overflow: hidden;
  border: 2px solid rgba(34,211,238,.3);
  position: relative;
}
.about-split__img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  border-radius: 0;
}
/* Cyan glow corner accent */
.about-split__img::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 0 30px rgba(34,211,238,.07);
  pointer-events: none;
}

@media (max-width: 767px) {
  .about-split { flex-direction: column; gap: 28px; }
  .about-split__img { flex: none; width: 160px; height: 200px; }
}

.about-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill {
  display: inline-block; padding: 5px 14px;
  border: 1px solid rgba(34,211,238,.35);
  color: var(--brand); font-size: .8rem; font-weight: 500;
  letter-spacing: .05em; border-radius: 0;
  background: rgba(34,211,238,.06);
}

/* ============================================================
   PORTFOLIO – square images
   ============================================================ */
.slider--item-image { border-radius: 0 !important; overflow: hidden; }
.slider--item-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }

/* ============================================================
   COMING SOON MODAL
   ============================================================ */
.cs-modal { position: fixed; inset: 0; z-index: 8000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.cs-modal.is-open { opacity: 1; visibility: visible; }
.cs-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.8); backdrop-filter: blur(10px); }
.cs-modal__box {
  position: relative; z-index: 1; background: #111214;
  border: 1px solid rgba(34,211,238,.22); border-radius: 0;
  padding: 48px 40px; max-width: 400px; width: 90%;
  text-align: center;
  box-shadow: 0 0 60px rgba(34,211,238,.08), 0 20px 60px rgba(0,0,0,.5);
  transform: translateY(16px) scale(.97); opacity: 0;
  transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .35s ease;
}
.cs-modal.is-open .cs-modal__box { transform: translateY(0) scale(1); opacity: 1; }
.cs-modal__close { position: absolute; top: 14px; right: 14px; background: none; border: none; color: rgba(255,255,255,.4); cursor: none; padding: 6px; transition: color .2s; }
.cs-modal__close:hover { color: #fff; }
.cs-modal__icon { margin-bottom: 20px; }
.cs-modal__title { font-family: 'Space Grotesk',sans-serif; font-size: 1.7rem; font-weight: 700; color: #fff; margin: 0 0 12px; }
.cs-modal__text  { color: var(--muted); font-size: .95rem; line-height: 1.6; margin: 0 0 28px; }
.cs-modal__btn   { display: inline-block; padding: 13px 30px; background: var(--brand); color: #000; font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; text-decoration: none; border: none; border-radius: 0; transition: opacity .2s, transform .2s; }
.cs-modal__btn:hover { opacity: .85; transform: translateY(-2px); }

/* ============================================================
   FORM POPUP FEEDBACK
   ============================================================ */
.form-popup {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  padding: 14px 22px; border-radius: 0;
  font-size: .9rem; font-weight: 600;
  pointer-events: none; opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
}
.form-popup.show { opacity: 1; transform: translateY(0); }
.form-popup.success { background: var(--brand); color: #000; }
.form-popup.error   { background: #ef4444; color: #fff; }

/* ============================================================
   OUTER NAV legal links
   ============================================================ */
.outer-nav__legal { font-size: 12px !important; font-weight: 400 !important; opacity: .38; margin-top: 2px !important; }
.outer-nav__legal a { color: inherit; text-decoration: none; }
.outer-nav__legal a:hover { opacity: 1; color: var(--brand); }

/* ============================================================
   CONTACT – info + legal
   ============================================================ */
.contact-info-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; font-size: .85rem; color: var(--muted); align-items: center; }
.contact-info-row a { color: var(--brand); text-decoration: none; transition: opacity .2s; }
.contact-info-row a:hover { opacity: .7; }
.legal-links-small { display: flex; gap: 20px; justify-content: center; margin-top: 12px; }
.legal-links-small a { font-size: .75rem; color: rgba(255,255,255,.28); text-decoration: none; letter-spacing: .04em; transition: color .2s; }
.legal-links-small a:hover { color: var(--brand); }

/* ============================================================
   OUTER-NAV ACTIVE ITEM – gradient strikethrough (cyan → purple)
   ============================================================ */
.outer-nav > li.is-active::before {
  background: linear-gradient(135deg, #22d3ee 0%, #a855f7 100%) !important;
  background-color: transparent !important;
}

/* ============================================================
   MOBILE LAYOUT  (≤ 767px)
   Ultra-clean, premium layout (no horizontal scrolling!)
   ============================================================ */
@media (max-width: 767px) {
  /* Logo */
  .jm-logo { font-size: clamp(28px, 8vw, 36px) !important; }

  /* Sections: Hide scrollbars, allow internal touch scroll if minimally needed */
  .l-section {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-top: 50px !important;
    padding-bottom: 20px !important;
    align-items: center !important;
    scrollbar-width: none; /* Firefox */
  }
  .l-section::-webkit-scrollbar { display: none; } /* Chrome/Safari */
  
  .l-wrapper, .l-viewport, .l-main-content { min-height: 100% !important; }

  /* --- SECTION 1: HERO --- */
  .hero-title { font-size: clamp(44px, 13vw, 64px) !important; margin-bottom: 20px !important; }
  .intro--banner { height: auto !important; padding-top: 10px !important; }
  .intro--banner::before, .intro--banner::after { display: none !important; }
  
  /* Hide intro options completely on mobile for a punchy, clean Hero */
  .intro--options { display: none !important; }

  /* --- SECTION 2: LEISTUNGEN --- */
  .work { width: 100% !important; max-width: 100% !important; padding: 0 16px !important; }
  .work h2 { font-size: clamp(32px, 9vw, 44px) !important; margin-bottom: 20px !important; padding: 0 !important; }
  
  /* Services 2x2 Compact Grid (No scrolling needed!) */
  .services-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .service-item {
    padding: 14px 12px !important;
  }
  .service-item p { display: none !important; } /* Hide description to save space */
  .service-item h3 { font-size: 0.95rem !important; margin-bottom: 6px !important; }
  .service-icon { width: 34px !important; height: 34px !important; margin-bottom: 10px !important; }
  .service-icon svg { width: 20px !important; height: 20px !important; }
  .service-item ul li { font-size: 0.65rem !important; padding: 2px 6px !important; }

  /* --- SECTION 3: ÜBER MICH --- */
  .about { width: 100% !important; max-width: 100% !important; padding: 0 20px !important; }
  .about-split {
    flex-direction: column-reverse !important;
    gap: 16px !important;
    height: auto !important;
    justify-content: center !important;
  }
  .about-split__img {
    flex: none !important;
    width: 140px !important;
    height: 180px !important;
    margin: 0 auto !important;
  }
  .about-title { font-size: clamp(32px, 9vw, 44px) !important; margin-bottom: 10px !important; }
  .about-split__text p { font-size: 0.9rem !important; line-height: 1.5 !important; }
  .about-pills { gap: 6px !important; }

  /* --- SECTION 4: PORTFOLIO --- */
  .slider--item-image { height: 260px !important; }
  .slider--item-title { font-size: 20px !important; }

  /* --- SECTION 5: KONTAKT --- */
  .hire { width: 100% !important; max-width: 100% !important; padding: 0 20px !important; }
  .hire h2 { font-size: clamp(32px, 9vw, 44px) !important; margin-bottom: 20px !important; }
  .work-request--options { flex-direction: column !important; gap: 12px !important; }
  .work-request--options .options-a, 
  .work-request--options .options-b {
    display: flex !important; flex-wrap: wrap !important; gap: 8px !important; width: 100% !important;
  }
  .work-request--options label { width: 110px !important; font-size: 0.75rem !important; }
  .work-request--information { flex-direction: column !important; gap: 15px !important; margin-bottom: 20px !important; }
  .work-request--information .information-name,
  .work-request--information .information-email { width: 100% !important; }
  
  /* --- MENU OVERRIDE (Template's Outer-Nav) --- */
  .outer-nav { padding-left: 10% !important; }
  .outer-nav > li { font-size: clamp(28px, 8vw, 36px) !important; margin-bottom: 12px !important; }
  .outer-nav__legal { font-size: 14px !important; margin-top: 15px !important; }
}

/* Extra small */
@media (max-width: 380px) {
  .hero-title { font-size: clamp(36px, 12vw, 48px) !important; }
  .services-grid { grid-template-columns: 1fr !important; } /* Stack on tiny phones */
}
