
/* Enhancements: section dividers + form validation + toast (non-destructive) */

:root {
  --divider-a: rgba(34, 211, 238, 0.55);
  --divider-b: rgba(56, 189, 248, 0.25);
  --divider-c: rgba(15, 23, 42, 0.0);
}

/* Soft gradient dividers between sections */
section { position: relative; }
section:not(#hero)::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--divider-c), var(--divider-a), var(--divider-c));
  opacity: 0.9;
  pointer-events: none;
}
section:not(#hero)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.10), rgba(15, 23, 42, 0));
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.7;
}

/* Invalid field styling (works with Tailwind classes too) */
.is-invalid {
  outline: none !important;
  border-color: rgba(248, 113, 113, 0.75) !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15) !important;
}

/* Toasts */
.toast-container {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(420px, calc(100vw - 36px));
}

.toast {
  background: rgba(2, 6, 23, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  overflow: hidden;
  transform: translateY(8px);
  opacity: 0;
  animation: toast-in 200ms ease-out forwards;
}
.toast-inner {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px 12px;
}
.toast-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.8);
  box-shadow: 0 0 0 6px rgba(148, 163, 184, 0.12);
}
.toast-text {
  color: rgba(226, 232, 240, 0.95);
  font-size: 14px;
  line-height: 1.35;
}
.toast-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(226, 232, 240, 0.75);
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.toast-close:hover {
  background: rgba(148, 163, 184, 0.12);
  color: rgba(226, 232, 240, 0.95);
}

.toast-success { border-color: rgba(34, 211, 238, 0.35); }
.toast-success .toast-dot { background: rgba(34, 211, 238, 0.95); box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.14); }

.toast-error { border-color: rgba(248, 113, 113, 0.35); }
.toast-error .toast-dot { background: rgba(248, 113, 113, 0.95); box-shadow: 0 0 0 6px rgba(248, 113, 113, 0.14); }

.toast-hide { animation: toast-out 200ms ease-in forwards; }

@keyframes toast-in { to { opacity: 1; transform: translateY(0); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ============================================
   PROFESSIONAL ICON & LINK ANIMATIONS
   ============================================ */

/* Icon hover animations - unified */
.service-card i[data-lucide],
.package-card i[data-lucide],
.portfolio-card i[data-lucide],
.training-card i[data-lucide],
.impact-card i[data-lucide],
.deliverable-card i[data-lucide],
.process-card i[data-lucide],
.pentesting-item i[data-lucide],
.programming-item i[data-lucide],
.training-service-item i[data-lucide] {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon animations - subtil, keine Text-Beeinträchtigung */
.service-card:hover i[data-lucide],
.package-card:hover i[data-lucide],
.portfolio-card:hover i[data-lucide],
.training-card:hover i[data-lucide] {
  transform: scale(1.08);
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.3));
}

.impact-card:hover i[data-lucide],
.deliverable-card:hover i[data-lucide],
.process-card:hover i[data-lucide],
.pentesting-item:hover i[data-lucide],
.programming-item:hover i[data-lucide],
.training-service-item:hover i[data-lucide] {
  transform: scale(1.05);
  filter: drop-shadow(0 0 4px rgba(6, 182, 212, 0.25));
}

/* Link arrow animations */
a[href] i[data-lucide="arrow-right"],
a[href] i[data-lucide="chevron-right"] {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover i[data-lucide="chevron-right"],
.portfolio-card:hover i[data-lucide="arrow-right"],
a:hover i[data-lucide="arrow-right"] {
  transform: translateX(4px);
}

/* Tag hover effects */
span[class*="border"]:not([class*="rounded-full"]) {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

span[class*="border"]:not([class*="rounded-full"])::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(56, 189, 248, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

span[class*="border"]:not([class*="rounded-full"]):hover::before {
  opacity: 1;
}

span[class*="border"]:not([class*="rounded-full"]):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

/* ============================================
   PROFESSIONAL NAVIGATION HOVER
   ============================================ */

.nav-link,
.mobile-nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after,
.mobile-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.9), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.mobile-nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link:hover,
.mobile-nav-link:hover {
  color: #06b6d4 !important;
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* ============================================
   PROFESSIONAL FORM INPUT HOVER
   ============================================ */

input[type="text"],
input[type="email"],
textarea,
select {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="text"]:hover:not(:focus),
input[type="email"]:hover:not(:focus),
textarea:hover:not(:focus),
select:hover:not(:focus) {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.05);
}

/* ============================================
   PROFESSIONAL CONTACT INFO CARDS
   ============================================ */

.bg-slate-900[class*="border"]:not(.service-card):not(.package-card) {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.bg-slate-900[class*="border"]:not(.service-card):not(.package-card)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.bg-slate-900[class*="border"]:not(.service-card):not(.package-card):hover::before {
  opacity: 1;
}

.bg-slate-900[class*="border"]:not(.service-card):not(.package-card):hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(6, 182, 212, 0.3);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; opacity: 1; transform: none; }
  .toast-hide { animation: none; }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Loading spinner animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-spinner {
  animation: spin 1s linear infinite;
}

/* Button loading state */
.contact-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.contact-btn.loading .contact-btn-text::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============================================
   PROFESSIONAL HERO BADGE HOVER
   ============================================ */

.hero-badge {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-badge:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.25);
}

/* ============================================
   PROFESSIONAL SECTION TITLES
   ============================================ */

h2[class*="-title"],
h3[class*="-title"] {
  position: relative;
  display: inline-block;
}

h2[class*="-title"]::after,
h3[class*="-title"]::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.8), transparent);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

section:hover h2[class*="-title"]::after,
section:hover h3[class*="-title"]::after {
  transform: translateX(-50%) scaleX(1);
}

/* ============================================
   PROFESSIONAL FOOTER LINKS
   ============================================ */

footer a {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

footer a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: rgba(6, 182, 212, 0.8);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

footer a:hover::before {
  width: 100%;
}

footer a:hover {
  transform: translateX(4px);
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}

/* ============================================
   PROFESSIONAL SOCIAL ICONS
   ============================================ */

footer a[aria-label] {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

footer a[aria-label]:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
}

/* ============================================
   PROFESSIONAL BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.4);
}

.back-to-top:active {
  transform: translateY(-2px) scale(1.05);
}

/* ============================================
   PROFESSIONAL ACCORDION ANIMATIONS
   ============================================ */

.accordion-content {
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.accordion-content.active {
  opacity: 1;
}

/* ============================================
   PROFESSIONAL DETAILS/SUMMARY STYLING
   ============================================ */

details {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

details:hover {
  border-color: rgba(6, 182, 212, 0.3) !important;
}

details[open] {
  border-color: rgba(6, 182, 212, 0.4) !important;
}

details summary {
  transition: all 0.3s ease;
}

details summary:hover {
  color: #06b6d4;
}

details[open] summary {
  color: #06b6d4;
}

/* ============================================
   PROFESSIONAL PRICE BADGES
   ============================================ */

span[class*="bg-cyan-500"]:not(.hero-badge):not([class*="rounded-full"]) {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

span[class*="bg-cyan-500"]:not(.hero-badge):not([class*="rounded-full"])::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

span[class*="bg-cyan-500"]:not(.hero-badge):not([class*="rounded-full"]):hover::before {
  opacity: 1;
}

/* ============================================
   PROFESSIONAL CHECKBOX STYLING
   ============================================ */

input[type="checkbox"] {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

input[type="checkbox"]:hover:not(:checked) {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

input[type="checkbox"]:checked {
  background-color: #06b6d4;
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

/* ============================================
   PROFESSIONAL IMAGE OVERLAY EFFECTS
   ============================================ */

.portfolio-card img,
.team-card img {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover img,
.team-card:hover img {
  transform: scale(1.15);
}

/* ============================================
   PROFESSIONAL GRADIENT TEXT EFFECTS
   ============================================ */

.text-gradient {
  background: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================
   PROFESSIONAL FOCUS RING IMPROVEMENTS
   ============================================ */

*:focus-visible {
  outline: 2px solid rgba(6, 182, 212, 0.6);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
  outline-offset: 4px;
}

/* ============================================
   PROFESSIONAL PROCESS PAGE CARDS
   ============================================ */

.bg-slate-900[class*="border"]:not(.service-card):not(.package-card):not(.portfolio-card):not(.training-card) {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.bg-slate-900[class*="border"]:not(.service-card):not(.package-card):not(.portfolio-card):not(.training-card)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(6, 182, 212, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.bg-slate-900[class*="border"]:not(.service-card):not(.package-card):not(.portfolio-card):not(.training-card):hover::before {
  opacity: 1;
}

.bg-slate-900[class*="border"]:not(.service-card):not(.package-card):not(.portfolio-card):not(.training-card):hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.3) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(6, 182, 212, 0.2);
}

.bg-slate-900[class*="border"]:not(.service-card):not(.package-card):not(.portfolio-card):not(.training-card) > * {
  position: relative;
  z-index: 1;
}

/* Process page pillar cards */
.bg-slate-900.border.border-slate-800.rounded-xl {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.bg-slate-900.border.border-slate-800.rounded-xl:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.4) !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(6, 182, 212, 0.25);
}

.bg-slate-900.border.border-slate-800.rounded-xl:hover span[class*="bg-cyan-500/10"] {
  background: rgba(6, 182, 212, 0.2) !important;
  border-color: rgba(6, 182, 212, 0.4) !important;
  transform: scale(1.1);
}

.bg-slate-900.border.border-slate-800.rounded-xl:hover i[data-lucide] {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.5));
}

.bg-slate-900.border.border-slate-800.rounded-xl:hover h3 {
  color: #06b6d4 !important;
}

/* Timeline cards */
.bg-slate-900.border.border-slate-800.rounded-xl.p-6 {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-slate-900.border.border-slate-800.rounded-xl.p-6:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.35) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(6, 182, 212, 0.2);
}

.bg-slate-900.border.border-slate-800.rounded-xl.p-6:hover h3 {
  color: #06b6d4 !important;
}

.bg-slate-900.border.border-slate-800.rounded-xl.p-6:hover span[class*="bg-cyan-500/10"] {
  background: rgba(6, 182, 212, 0.2) !important;
  border-color: rgba(6, 182, 212, 0.4) !important;
}

/* ============================================
   PROFESSIONAL LIST ITEM HOVER
   ============================================ */

ul li {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul li:hover {
  transform: translateX(4px);
}

ul li:hover i[data-lucide] {
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.4));
}

/* ============================================
   PROFESSIONAL CTA SECTION
   ============================================ */

.bg-gradient-to-r[class*="from-cyan-500"] {
  position: relative;
  overflow: hidden;
}

.bg-gradient-to-r[class*="from-cyan-500"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(99, 102, 241, 0.1));
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.bg-gradient-to-r[class*="from-cyan-500"]:hover::before {
  opacity: 1;
}

/* ============================================
   PROFESSIONAL SCROLL INDICATOR
   ============================================ */

#scroll-progress {
  transition: width 0.1s ease-out;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}
