@charset "utf-8";

/* ============================================================
   1. GLOBAL SETTINGS & RESETS
   ============================================================ */
html {
    scroll-behavior: smooth;
}

/* Offset für Fixed Navbars */
section {
    scroll-margin-top: 80px;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Hintergrund-Fix für Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #05060a;
}

/* ============================================================
   2. CINEMATIC EFFECTS & ANIMATIONS
   ============================================================ */

/* Intro Animation */
.intro-stage {
    opacity: 0;
    transform: translateY(40px) scale(0.92);
    animation: cinematicIntro 1.8s cubic-bezier(.12, .85, .15, 1) forwards;
    animation-delay: 0.4s;
    will-change: opacity, transform;
}

@keyframes cinematicIntro {
    0% { opacity: 0; transform: translateY(40px) scale(0.92); }
    40% { opacity: 1; transform: translateY(12px) scale(1); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Parallax (Desktop Only) */
@media (pointer: fine) {
    .parallax-wrap { perspective: 1400px; }
    .parallax-item {
        transition: transform 0.12s ease-out;
        transform-style: preserve-3d;
    }
}

/* Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.35;
    animation: floatParticle 5s linear infinite;
    pointer-events: none;
}

@keyframes floatParticle {
    0% { transform: translateY(0px) scale(1); opacity: 0.2; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-160px) scale(1.4); opacity: 0; }
}

/* Section Title Shine */
h2.shine-title {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

h2.shine-title::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
    transform: skewX(-20deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { left: -120%; }
    50% { left: 120%; }
    100% { left: 120%; }
}

/* ============================================================
   3. NAVIGATION & MENU
   ============================================================ */

.anchor-menu-link {
    position: relative;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
    padding: 6px 2px;
    transition: color 0.3s ease;
}

.anchor-menu-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #22d3ee, #38bdf8, #22d3ee);
    border-radius: 999px;
    transform: translateX(-50%);
    transition: width 0.35s ease;
}

/* Hover & Active States */
#anchor-menu a:hover, 
.anchor-menu-link:hover {
    color: #38bdf8 !important;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.anchor-menu-link:hover::after,
.anchor-menu-link.active::after {
    width: 100%;
}

.anchor-menu-link.active {
    color: #08BAAC !important;
    border-bottom: 2px solid #08BAAC !important;
}

/* ============================================================
   4. CARDS & UI COMPONENTS
   ============================================================ */

/* Gateway Box */
.gateway-box {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(.2, .8, .2, 1), box-shadow 0.5s ease, border-color 0.5s ease;
}

.gateway-box:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 30px 80px rgba(0, 255, 255, 0.12), inset 0 0 0 1px rgba(56, 189, 248, 0.25);
    border-color: rgba(56, 189, 248, 0.45);
}

.gateway-box::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 1.25rem;
    background: linear-gradient(120deg, transparent 30%, rgba(56, 189, 248, 0.35), rgba(16, 185, 129, 0.25), transparent 70%);
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.gateway-box:hover::before { opacity: 1; }

/* Card Glow (Standard) */
.card-glow {
    transition: box-shadow 0.4s ease, transform 0.4s ease, border-color 0.4s ease;
}

.card-glow:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(8, 186, 172, 0.55);
    box-shadow: 0 0 30px rgba(8, 186, 172, 0.25);
}

/* Evaluation Link Fix */
.evaluation-link:hover span {
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
}

/* ============================================================
   5. SPECIAL SECTIONS (AI, NATO, FLOW)
   ============================================================ */

.ai-section-bg {
    position: relative;
    background: linear-gradient(rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.9)), url('images/anime.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: 24px;
    overflow: hidden;
}

/* NATO Badge */
.nato-badge {
    display: inline-flex;
    flex-direction: column;
    padding: 8px 12px;
    background: rgba(13, 17, 23, 0.9);
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
}

.nato-text {
    color: #2dd4bf;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-shadow: 0 0 8px rgba(45, 212, 191, 0.5);
}

/* Flow Box System */
.flow-box {
    position: relative;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    text-align: center;
    transition: transform .3s ease, border-color .3s ease;
}

.flow-box:hover {
    transform: translateY(-6px);
    border-color: #22d3ee;
}

.flow-line {
    position: absolute;
    top: 50%;
    width: calc(33.333% + 12px);
    height: 2px;
    background: linear-gradient(to right, transparent, #22d3ee, transparent);
    animation: flow 2.8s ease-in-out infinite;
}

@keyframes flow {
    0%, 100% { opacity: .2; }
    50% { opacity: 1; }
}

/* Marquee */
@keyframes marquee-infinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee-infinite {
    display: flex;
    width: max-content;
    animation: marquee-infinite 60s linear infinite;
}

.ticker-item {
    color: #cbd5f1;
    font-family: monospace;
    font-size: 0.875rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    padding: 0 3rem;
}

/* ============================================================
   6. MOBILE OPTIMIZATION & QUICK ACTION
   ============================================================ */

.quick-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: 0.6rem 0.5rem calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(2, 6, 23, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 9999;
}

@media (min-width: 768px) {
    .quick-action-bar { display: none; }
}

@media (max-width: 768px) {
    body { padding-bottom: 72px; }
    .flow-line { display: none; }
    #hero h1 { font-size: 2.5rem; }
    .grid { grid-template-columns: 1fr !important; }
}