/* 
 * Lernwerkstatt Technology & Systems
 * PREMIUM Starry Night Sky - Live & Animated
 */

/* =============================================
   DEEP SPACE NIGHT SKY WITH STARS
   ============================================= */
.tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at top, #0f1729 0%, #000000 100%),
        radial-gradient(ellipse at bottom, #0a0f1e 0%, #000000 100%);
    background-blend-mode: normal;
}

/* Animated star field */
.star-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Small distant stars */
.star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle ease-in-out infinite;
}

.star-small {
    width: 1px;
    height: 1px;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
}

.star-medium {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.9);
}

.star-large {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 1);
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% { 
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Premium glowing stars with color */
.glow-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%;
    filter: blur(0.5px);
}

.glow-star-blue {
    box-shadow: 
        0 0 20px rgba(135, 206, 250, 1),
        0 0 40px rgba(59, 130, 246, 0.8),
        0 0 60px rgba(59, 130, 246, 0.6),
        0 0 80px rgba(59, 130, 246, 0.4);
    animation: glowPulseBlue 4s ease-in-out infinite;
}

.glow-star-white {
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 1),
        0 0 40px rgba(255, 255, 255, 0.8),
        0 0 60px rgba(200, 220, 255, 0.6);
    animation: glowPulseWhite 3s ease-in-out infinite;
}

.glow-star-purple {
    box-shadow: 
        0 0 20px rgba(200, 180, 255, 1),
        0 0 40px rgba(139, 92, 246, 0.8),
        0 0 60px rgba(139, 92, 246, 0.6);
    animation: glowPulsePurple 5s ease-in-out infinite;
}

@keyframes glowPulseBlue {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

@keyframes glowPulseWhite {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

@keyframes glowPulsePurple {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.4);
        opacity: 1;
    }
}

/* Shooting/Falling stars */
.shooting-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ffffff;
    border-radius: 50%;
    filter: blur(1px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 1);
    opacity: 0;
}

@keyframes shootingStar {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateX(-20px) translateY(20px) scale(1);
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateX(-400px) translateY(400px) scale(0.5);
    }
}

/* Premium star trail */
.shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 1) 30%, 
        rgba(135, 206, 250, 0.8) 60%,
        rgba(255, 255, 255, 0) 100%);
    transform: translate(-50%, -50%) rotate(-45deg);
    filter: blur(2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* Nebula clouds - colorful */
.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: nebulaDrift ease-in-out infinite;
}

@keyframes nebulaDrift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(40px, 25px) scale(1.15);
        opacity: 0.5;
    }
}

/* Aurora effect */
.aurora {
    position: absolute;
    width: 100%;
    height: 300px;
    filter: blur(100px);
    opacity: 0.15;
    animation: auroraFlow 30s ease-in-out infinite;
}

@keyframes auroraFlow {
    0%, 100% {
        transform: translateY(0) scaleX(1);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-30px) scaleX(1.1);
        opacity: 0.2;
    }
}

/* =============================================
   CONTENT ENHANCEMENTS - PREMIUM
   ============================================= */

body {
    background: transparent !important;
}

/* Elegant title glow with color */
.hero-title {
    text-shadow: 
        0 0 30px rgba(135, 206, 250, 0.6),
        0 0 60px rgba(59, 130, 246, 0.4),
        0 0 90px rgba(59, 130, 246, 0.2);
    animation: titleGlow 3s ease-in-out infinite;
}

.section-title {
    text-shadow: 
        0 0 20px rgba(135, 206, 250, 0.4),
        0 0 40px rgba(59, 130, 246, 0.3);
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 
            0 0 30px rgba(135, 206, 250, 0.6),
            0 0 60px rgba(59, 130, 246, 0.4),
            0 0 90px rgba(59, 130, 246, 0.2);
    }
    50% {
        text-shadow: 
            0 0 40px rgba(135, 206, 250, 0.8),
            0 0 80px rgba(59, 130, 246, 0.6),
            0 0 120px rgba(59, 130, 246, 0.4);
    }
}

/* Premium card effects */
.competency-card,
.value-card,
.project-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.competency-card:hover,
.value-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(135, 206, 250, 0.3),
        inset 0 0 30px rgba(135, 206, 250, 0.1);
    border-color: rgba(135, 206, 250, 0.5);
}

/* Premium button with glow */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 
        0 4px 20px rgba(59, 130, 246, 0.4),
        0 0 30px rgba(135, 206, 250, 0.2);
}

.btn-primary:hover {
    box-shadow: 
        0 8px 40px rgba(59, 130, 246, 0.6),
        0 0 50px rgba(135, 206, 250, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

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

.btn-primary:hover::before {
    width: 500px;
    height: 500px;
}

/* Smooth page entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 1s ease-out;
}

/* Navigation premium glow */
.navbar {
    transition: all 0.4s ease;
}

.navbar.scrolled {
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(135, 206, 250, 0.15);
}

