* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Grid Pattern */
.grid-pattern {
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 18s linear infinite;
}

@keyframes gridMove {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 50px 50px, 50px 50px; }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseSlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-pulse-slow {
    animation: pulseSlow 4s ease-in-out infinite;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* ============================================
   PROFESSIONAL CARD HOVER SYSTEM
   ============================================ */

/* Base card styles - ALL card types */
.service-card,
.impact-card,
.deliverable-card,
.package-card,
.process-card,
.training-card,
.portfolio-card,
.team-card,
.pentesting-item,
.programming-item,
.training-service-item {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow, border-color;
    overflow: hidden;
}

/* Main theme cards - Professional hover (keine Text-Color-Änderungen) */
.service-card,
.package-card,
.portfolio-card,
.training-card {
    transform: translateY(0);
}

.service-card:hover,
.package-card:hover,
.portfolio-card:hover,
.training-card:hover {
    transform: translateY(-6px);
    z-index: 10;
}

/* Sub-theme items - Subtle hover */
.pentesting-item,
.programming-item,
.training-service-item,
.impact-card,
.deliverable-card,
.process-card {
    transform: translateY(0);
}

.pentesting-item:hover,
.programming-item:hover,
.training-service-item:hover,
.impact-card:hover,
.deliverable-card:hover,
.process-card:hover {
    transform: translateY(-3px);
    z-index: 5;
}

/* Accordion */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.active {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}


/* Home teaser RTL helpers */
@media (min-width: 768px){
  [dir="rtl"] .home-row{ flex-direction: row-reverse; }
}
[dir="rtl"] .home-bullet{ flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .home-step .flex{ flex-direction: row-reverse; }

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
}

[dir="rtl"] .space-x-2 > * + *,
[dir="rtl"] .space-x-4 > * + *,
[dir="rtl"] .space-x-8 > * + * {
    margin-left: 0;
}

[dir="rtl"] .space-x-2 > * {
    margin-right: 0.5rem;
}

[dir="rtl"] .space-x-4 > * {
    margin-right: 1rem;
}

[dir="rtl"] .space-x-8 > * {
    margin-right: 2rem;
}

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Form Success/Error Messages */
.form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.form-message.success {
    background-color: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #06b6d4;
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

/* Smooth Transitions */
a, button {
    transition: all 0.2s ease;
}

/* Focus States */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

/* Team Member Social Icons */
.team-social {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.team-card:hover .team-social {
    opacity: 1;
    transform: translateY(0);
}

/* Header Scroll Effect */
.header-scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ============================================
   PROFESSIONAL SMOOTH SCROLLING
   ============================================ */

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

/* ============================================
   PROFESSIONAL SELECTION
   ============================================ */

::selection {
  background: rgba(6, 182, 212, 0.35);
  color: white;
}

::-moz-selection {
  background: rgba(6, 182, 212, 0.35);
  color: white;
}
/* ----------------------------------------
   Aesthetic upgrades (keep existing content)
----------------------------------------- */

:root {
  --bg: #020617; /* slate-950 */
  --card: rgba(15, 23, 42, 0.85); /* slate-900 */
  --border: rgba(51, 65, 85, 0.45); /* slate-700/?? */
  --cyan: #06b6d4;
}

/* Subtle background depth + noise */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 700px at 15% 10%, rgba(6, 182, 212, 0.12), transparent 55%),
    radial-gradient(900px 600px at 85% 20%, rgba(56, 189, 248, 0.10), transparent 55%),
    radial-gradient(900px 650px at 50% 90%, rgba(99, 102, 241, 0.08), transparent 60%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

::selection {
  background: rgba(6, 182, 212, 0.35);
}

/* Hero title: gradient text for a more "wow" look */
.hero-title {
  background: linear-gradient(90deg, #ffffff 0%, rgba(6, 182, 212, 0.95) 35%, #ffffff 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 35px rgba(6, 182, 212, 0.12);
}

/* Header scrolled state (JS already toggles this class) */
.header-scrolled {
  background: rgba(2, 6, 23, 0.92) !important;
  border-bottom-color: rgba(51, 65, 85, 0.55) !important;
  box-shadow:
    0 10px 35px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(6, 182, 212, 0.10) inset;
}

/* Nav links: underline glow */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.9), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

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

/* ============================================
   PROFESSIONAL GLOW & SHADOW SYSTEM
   ============================================ */

/* Enhanced glass effect for all cards */
.service-card,
.impact-card,
.deliverable-card,
.package-card,
.process-card,
.training-card,
.portfolio-card,
.team-card,
.pentesting-item,
.programming-item,
.training-service-item {
  position: relative;
  overflow: hidden;
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Animated gradient overlay - Main themes */
.service-card::before,
.package-card::before,
.portfolio-card::before,
.training-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(800px 300px at 20% 0%, rgba(6, 182, 212, 0.25), transparent 65%),
    radial-gradient(700px 350px at 80% 20%, rgba(56, 189, 248, 0.18), transparent 65%),
    radial-gradient(600px 400px at 50% 100%, rgba(99, 102, 241, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

/* Animated gradient overlay - Sub themes */
.impact-card::before,
.deliverable-card::before,
.process-card::before,
.pentesting-item::before,
.programming-item::before,
.training-service-item::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(500px 200px at 30% 0%, rgba(6, 182, 212, 0.15), transparent 60%),
    radial-gradient(450px 250px at 70% 10%, rgba(56, 189, 248, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

/* Hover state - Main themes */
.service-card:hover::before,
.package-card:hover::before,
.portfolio-card:hover::before,
.training-card:hover::before {
  opacity: 1;
}

/* Hover state - Sub themes */
.impact-card:hover::before,
.deliverable-card:hover::before,
.process-card:hover::before,
.pentesting-item:hover::before,
.programming-item:hover::before,
.training-service-item:hover::before {
  opacity: 0.8;
}

/* Professional shadow system - Main themes (subtiler, Text bleibt lesbar) */
.service-card:hover,
.package-card:hover,
.portfolio-card:hover,
.training-card:hover {
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    0 8px 25px rgba(6, 182, 212, 0.12),
    0 0 0 1px rgba(6, 182, 212, 0.25) inset;
}

/* Professional shadow system - Sub themes */
.impact-card:hover,
.deliverable-card:hover,
.process-card:hover,
.pentesting-item:hover,
.programming-item:hover,
.training-service-item:hover {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.25),
    0 4px 15px rgba(6, 182, 212, 0.1),
    0 0 0 1px rgba(6, 182, 212, 0.2) inset;
}

/* Border glow effect on hover (subtiler) */
.service-card:hover,
.package-card:hover,
.portfolio-card:hover,
.training-card:hover {
  border-color: rgba(6, 182, 212, 0.4) !important;
}

.impact-card:hover,
.deliverable-card:hover,
.process-card:hover,
.pentesting-item:hover,
.programming-item:hover,
.training-service-item:hover {
  border-color: rgba(6, 182, 212, 0.3) !important;
}

/* ============================================
   PROFESSIONAL BUTTON SYSTEM
   ============================================ */

.cta-primary,
.contact-btn {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 18px 50px rgba(6, 182, 212, 0.18),
    0 0 0 1px rgba(6, 182, 212, 0.15) inset;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-primary::before,
.contact-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.cta-primary:hover::before,
.contact-btn:hover::before {
  width: 300px;
  height: 300px;
}

.cta-primary:hover,
.contact-btn:hover {
  box-shadow:
    0 25px 70px rgba(6, 182, 212, 0.35),
    0 0 0 1px rgba(6, 182, 212, 0.25) inset,
    0 0 40px rgba(6, 182, 212, 0.2);
  transform: translateY(-2px);
}

.cta-primary:active,
.contact-btn:active {
  transform: translateY(0);
}

/* Secondary button hover */
a[class*="border-2"]:not(.cta-primary):not(.contact-btn) {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

a[class*="border-2"]:not(.cta-primary):not(.contact-btn)::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.4s ease;
  z-index: -1;
}

a[class*="border-2"]:not(.cta-primary):not(.contact-btn):hover::before {
  opacity: 1;
}

/* Inputs: nicer focus */
input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
}

/* Mobile menu entrance animation */
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-menu-in {
  animation: menuIn 220ms ease-out;
}

/* Scroll progress + Back-to-top */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.0), rgba(6, 182, 212, 0.95), rgba(56, 189, 248, 0.95));
  z-index: 60;
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.35);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(51, 65, 85, 0.6);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #e2e8f0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease, border-color 220ms ease;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: rgba(6, 182, 212, 0.55);
  box-shadow: 0 18px 60px rgba(6, 182, 212, 0.18);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800; letter-spacing:.2px;
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes menuOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}

.animate-menu-in  { animation: menuIn 180ms ease-out both; }
.animate-menu-out { animation: menuOut 180ms ease-in  both; }
