/* Local Fonts Setup */

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* =============================================
   VARIABLES & RESET
============================================= */
:root {
  --dark: #0A1A2A;
  --light: #ffffff;
  --accent: #1E7FC0;
  --accent2: #0FD4A8;
  --mid: #EBF2F8;
  --text-muted: #5C7A8A;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius: 4px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow: 0 8px 40px rgba(10, 26, 42, 0.12);
  --shadow-lg: 0 20px 60px rgba(10, 26, 42, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--light);
  overflow-x: hidden;
  line-height: 1.7;
}

img,
picture {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =============================================
   ACCESSIBILITY
============================================= */
:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =============================================
   SKIP LINK
============================================= */
.skip-link {
  position: fixed;
  top: -100%;
  left: 0;
  z-index: 9999;
  background: var(--accent2);
  color: var(--dark);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-family: var(--font-head);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* =============================================
   HEADER / NAV
============================================= */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--dark);
  padding: 0 5%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow var(--transition);
}

#header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--light);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon img {
  width: auto;
  height: 72px;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

nav a {
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent2);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

nav a:hover {
  color: var(--light);
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

nav a.cta {
  background: var(--accent2);
  color: var(--dark);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
}

nav a.cta::after {
  display: none;
}

nav a.cta:hover {
  background: #12f0be;
  color: var(--dark);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.lang-switcher span {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  user-select: none;
}

.lang-switcher a {
  min-width: unset;
}

.lang-switcher a.active {
  color: var(--accent2);
}

.lang-switcher a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--light);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
#mobile-nav {
  display: none;
  position: fixed;
  inset: 100px 0 0 0;
  z-index: 999;
  background: var(--dark);
  flex-direction: column;
  padding: 2rem 5%;
  gap: 1.5rem;
}

#mobile-nav.open {
  display: flex;
}

#mobile-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

#mobile-nav a:hover {
  color: var(--accent2);
}

.mobile-lang-switcher {
  display: flex;
  gap: 1.5rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-lang-switcher a {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.mobile-lang-switcher a.active {
  color: var(--accent2);
}

/* =============================================
   SECTION LABELS
============================================= */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--dark);
  color: var(--light);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent2);
  border-radius: 50%;
}

/* =============================================
   VISUAL DIVIDERS
============================================= */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0;
}

.divider-thick {
  width: 60px;
  height: 3px;
  background: var(--accent2);
  border-radius: 2px;
  margin: 1.5rem 0;
}

/* =============================================
   HERO / WELCOME
============================================= */
#welcome {
  background: var(--dark);
  padding: 160px 5% 100px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(30, 127, 192, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(15, 212, 168, 0.07) 0%, transparent 60%);
}

/* Grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(var(--light) 1px, transparent 1px),
    linear-gradient(90deg, var(--light) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent2);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--accent2);
}

.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--light);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-h1 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent2);
  color: var(--dark);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 2px solid var(--accent2);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent2);
}

.btn-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--light);
}

/* Floating stat cards */
.hero-stats {
  position: absolute;
  right: 5%;
  bottom: 80px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  backdrop-filter: blur(10px);
  min-width: 180px;
}

.stat-card .num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent2);
  line-height: 1;
}

.stat-card .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* =============================================
   SECTIONS – GENERAL LAYOUT
============================================= */
section {
  padding: 100px 5%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-top: 1rem;
  line-height: 1.7;
}

/* =============================================
   SKILLS SECTION
============================================= */
#skills {
  background: var(--light);
}

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.skills-text p {
  font-size: 0.95rem;
  color: #3a5060;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--mid);
  color: var(--dark);
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  border: 1px solid rgba(10, 26, 42, 0.08);
  transition: var(--transition);
}

.pill:hover {
  background: var(--dark);
  color: var(--accent2);
  border-color: var(--dark);
}

.skills-visual {
  position: relative;
  width: 100%;
}

/* =============================================
   CAROUSEL
============================================= */
.carousel-container {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--dark);
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
}

.carousel-track::-webkit-scrollbar {
  display: none;
  /* Safari and Chrome */
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 16 / 9;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

/* Carousel Controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 26, 42, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  opacity: 0;
}

.carousel-container:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: var(--accent2);
  color: var(--dark);
  border-color: var(--accent2);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dots .dot.active {
  background: var(--accent2);
  transform: scale(1.2);
}

/* =============================================
   SERVICES SECTION
============================================= */
#services {
  background: var(--mid);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.service-block:nth-child(even) .service-text {
  order: 2;
}

.service-block:nth-child(even) .service-img {
  order: 1;
}

.service-text {
  padding: 3rem;
  background: var(--light);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-text:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
}

.service-icon {
  margin-bottom: 1.25rem;
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
}

.service-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.service-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.service-img {
  overflow: hidden;
  position: relative;
  min-height: 260px;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
}

.service-img-inner {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}

.service-img:hover .service-img-inner {
  transform: scale(1.05);
}

/* SVG Illustrations for service slots */
.si-consulting {
  background: linear-gradient(135deg, #0d2035 0%, #0A1A2A 100%);
}

.si-modelling {
  background: linear-gradient(135deg, #0c2840 0%, #0e3350 100%);
}

.si-templates {
  background: linear-gradient(135deg, #081828 0%, #0d2235 100%);
}

.si-training {
  background: linear-gradient(135deg, #091522 0%, #0A1A2A 100%);
}

/* =============================================
   ABOUT SECTION
============================================= */
#about {
  background: var(--light);
}

.about-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 5rem;
  align-items: center;
}

.about-text p {
  font-size: 0.95rem;
  color: #3a5060;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.about-credentials {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.credential {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent2);
  background: var(--mid);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.credential-icon {
  font-size: 1.2rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.credential-label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.credential-val {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-photo {
  position: relative;
}

.about-photo-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: zoom-in;
}

.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--dark) 0%, #112233 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.about-photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 40% 30%, rgba(30, 127, 192, 0.2), transparent 60%);
}

.about-initials {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
  letter-spacing: -0.05em;
  position: relative;
  z-index: 1;
}

.about-role-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent2);
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}

.about-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  text-align: center;
  line-height: 1.4;
  background: var(--accent2);
  color: var(--dark);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(15, 212, 168, 0.4);
}

/* =============================================
   CONTACT SECTION
============================================= */
#contact {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

#contact .section-title {
  color: var(--light);
}

#contact .section-subtitle {
  color: rgba(255, 255, 255, 0.5);
}

.contact-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(15, 212, 168, 0.06), transparent);
}

.contact-bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(255, 255, 255, 1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 1) 1px, transparent 1px);
  background-size: 50px 50px;
}

.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-intro p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(15, 212, 168, 0.3);
}

.contact-item-icon {
  width: 38px;
  height: 38px;
  background: rgba(15, 212, 168, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

/* Anti-scraping pseudo-elements (CSS Obfuscation) */
.contact-item-val {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.contact-sub {
  display: flex;
  margin-bottom: 0.4rem;
}

.contact-sub:last-child {
  margin-bottom: 0;
}

.contact-sub-label {
  color: rgba(255, 255, 255, 0.4);
  width: 65px;
  display: inline-block;
  flex-shrink: 0;
}

.contact-item-val span[class^="part"] {
  display: inline-block;
  white-space: pre-wrap;
}

.obfuscate-phone-de .part1::before {
  content: "+49 1579 ";
}

.obfuscate-phone-de .part2::before {
  content: "231 ";
}

.obfuscate-phone-de .part3::before {
  content: "1324";
}

.obfuscate-phone-it .part1::before {
  content: "+39 3888 ";
}

.obfuscate-phone-it .part2::before {
  content: "690 ";
}

.obfuscate-phone-it .part3::before {
  content: "186";
}

.obfuscate-msg-signal .part1::before {
  content: "@ Safe";
}

.obfuscate-msg-signal .part2::before {
  content: "Office.99";
}

.obfuscate-msg-matrix .part1::before {
  content: "@ safeoffice";
}

.obfuscate-msg-matrix .part2::before {
  content: ":matrix.org";
}

.contact-item-val.obfuscate-email .part1::before {
  content: "hello";
}

.contact-item-val.obfuscate-email .part2::before {
  content: "@";
}

.contact-item-val.obfuscate-email .part3::before {
  content: "safeoffice.de";
}


/* =============================================
   FOOTER
============================================= */
#footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 5%;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
  flex: 1;
  text-align: left;
  min-width: 250px;
}

.footer-social {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 250px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.footer-social-link:hover {
  color: var(--accent2);
}

.footer-social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex: 1;
  justify-content: flex-end;
  min-width: 250px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent2);
}

/* =============================================
   SCROLL-TO-TOP BUTTON
============================================= */
#scroll-top {
  position: fixed;
  right: 1.5rem;
  bottom: 2rem;
  z-index: 900;
  width: 46px;
  height: 46px;
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--light);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

#scroll-top:hover {
  background: var(--accent2);
  color: var(--dark);
  transform: translateY(-3px);
}

/* =============================================
   COOKIE BANNER
============================================= */
.cookie-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 10000;
  width: 90%;
  max-width: 450px;
  background: var(--dark);
  border: 1px solid rgba(15, 212, 168, 0.2);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(15, 212, 168, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translate(-50%, -40%) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.cookie-banner.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: all;
}

.cookie-content {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cookie-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.cookie-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
}

.cookie-link {
  color: var(--accent2);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
  margin-top: 0.25rem;
}

.cookie-link:hover {
  text-decoration: none;
}

.cookie-btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .cookie-banner {
    width: 90%;
    padding: 1.5rem;
  }
}

/* =============================================
   EXTERNAL LINK MODAL
============================================= */
.ext-link-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.ext-link-modal.show {
  opacity: 1;
  pointer-events: all;
}

.ext-link-content {
  background: var(--dark);
  border: 1px solid rgba(15, 212, 168, 0.2);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ext-link-modal.show .ext-link-content {
  transform: translateY(0);
}

.ext-link-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.ext-link-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.ext-link-btn {
  flex: 1;
  padding: 0.75rem;
  font-size: 0.9rem;
}

/* =============================================
   LIGHTBOX
============================================= */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

#lightbox.open {
  display: flex;
}

#lightbox-content {
  width: 90vw;
  max-width: 1400px;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-content>* {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
  background: var(--dark);
  /* Give SVGs and DOM clones a background */
}

#lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* =============================================
   SVG ANIMATIONS / INLINE ILLUSTRATIONS
============================================= */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeUp 0.7s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.35s;
}

.delay-4 {
  animation-delay: 0.5s;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-stats {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-copy {
    text-align: center;
    order: 3;
  }

  .footer-social {
    order: 2;
  }

  .footer-links {
    justify-content: center;
    order: 1;
  }

  .service-block {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-block:nth-child(even) .service-text {
    order: unset;
  }

  .service-block:nth-child(even) .service-img {
    order: unset;
  }

  .service-img {
    min-height: 200px;
  }
}

@media (max-width: 768px) {

  #welcome {
    padding: 120px 5% 80px;
    min-height: auto;
  }

  .hero-h1 {
    font-size: 2rem;
  }

  .skills-layout {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  section {
    padding: 70px 5%;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-outline {
    text-align: center;
  }
}