:root {
    --bg-main: #050509;
    --bg-panel: rgba(9, 18, 40, 0.9);
    --neon: #0affff;
    --neon-soft: #0affff88;
    --accent: #ff00cc;
    --text-main: #e5e5ff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at top, #10152a 0%, #050509 55%, #000000 100%);
    color: var(--text-main);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* NAVBAR */
.navbar-glass {
    background: linear-gradient(90deg, rgba(5, 5, 20, 0.9), rgba(10, 10, 40, 0.95));
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(10, 255, 255, 0.3);
}

.navbar-dark .navbar-nav .nav-link {
    color: #b9c4ff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--neon);
}

.hero {
    min-height: 50vh;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

/* Hero Subtitle — Cyber Secure Pulse Animation */
.hero-subtitle {
    color: var(--neon);
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 0.03em;
    text-shadow:
        0 0 6px rgba(0,255,255,0.6),
        0 0 18px rgba(0,255,255,0.35),
        0 0 42px rgba(0,255,255,0.15);
    animation: securePulse 4.5s infinite ease-in-out;
}

@keyframes securePulse {
    0%, 100% {
        opacity: 0.82;
        text-shadow:
            0 0 6px rgba(0,255,255,0.5),
            0 0 18px rgba(0,255,255,0.25);
    }
    50% {
        opacity: 1;
        text-shadow:
            0 0 10px rgba(0,255,255,0.9),
            0 0 28px rgba(0,255,255,0.5),
            0 0 48px rgba(0,255,255,0.35);
    }
}

/* 🔥 Cyberpunk Multi-Color Pulse Animation */
.cyberpulse {
    font-weight: 600;
    letter-spacing: 0.05em;
    background: linear-gradient(
        90deg,
        #00faff,
        #bd00ff,
        #ff008c,
        #00faff
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientPulse 7s infinite ease-in-out,
               pulseGlow 4.2s infinite ease-in-out;
}

/* Farbverlauf fließt langsam durch das Wort */
@keyframes gradientPulse {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* zusätzlicher Glow basierend auf Neon-Cyberpunk */
@keyframes pulseGlow {
    0%, 100% {
        text-shadow: 0 0 6px rgba(0,255,255,0.6),
                     0 0 18px rgba(189,0,255,0.4),
                     0 0 28px rgba(255,0,140,0.25);
        opacity: 0.85;
    }
    50% {
        text-shadow: 0 0 10px rgba(0,255,255,0.9),
                     0 0 26px rgba(189,0,255,0.6),
                     0 0 40px rgba(255,0,140,0.45);
        opacity: 1;
    }
}

.section-padding {
    padding: 15rem 0;
}

/* Typography / Sections */
.section-padding {
    padding: 5rem 0 5rem;
}

.section-title {
    font-size: 1.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Neon Text & Accent */
.neon-text {
    color: var(--neon);
    text-shadow:
        0 0 6px var(--neon),
        0 0 18px var(--neon),
        0 0 32px rgba(0, 255, 255, 0.8);
}

.text-neon {
    color: var(--neon);
}

/* Buttons */
.btn-neon {
    background: transparent;
    border: 2px solid var(--neon);
    color: var(--neon);
    border-radius: 999px;
    padding: 0.6rem 1.8rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    font-weight: 600;
    transition: 0.25s;
}

.btn-neon:hover {
    background: var(--neon);
    color: #000;
    box-shadow: 0 0 16px var(--neon-soft);
}

.btn-outline-neon {
    background: transparent;
    border: 1px solid var(--neon-soft);
    color: var(--text-main);
    border-radius: 999px;
    padding: 0.5rem 1.6rem;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: 0.25s;
}

.btn-outline-neon:hover {
    border-color: var(--neon);
    color: #000;
    background: var(--neon);
    box-shadow: 0 0 14px var(--neon-soft);
}

/* Glow Panel */
.glow-panel {
    background: linear-gradient(145deg, rgba(7, 12, 36, 0.95), rgba(3, 6, 18, 0.95));
    border: 1px solid rgba(0, 255, 255, 0.25);
    box-shadow:
        0 0 10px rgba(0, 255, 255, 0.2),
        0 0 35px rgba(0, 0, 0, 0.8);
}

/* Features */
.feature-card {
    background: radial-gradient(circle at top, rgba(10, 255, 255, 0.12), rgba(2, 4, 18, 0.95));
    border: 1px solid rgba(0, 255, 255, 0.18);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.6);
}

.feature-icon {
    font-size: 2rem;
    color: var(--neon);
}

/* Repo Cards */
.repo-card {
    background: radial-gradient(circle at top left,
        rgba(0, 255, 255, 0.18),
        rgba(2, 5, 18, 0.96));
    border-radius: 1.25rem;
    border: 1px solid rgba(0, 255, 255, 0.25);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.85);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.repo-card h5 {
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.repo-card .badge {
    font-size: 0.7rem;
}

.repo-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon);
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.6);
}

.feature-card {
    cursor: default;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.03);
    border: 1px solid rgba(0,255,255,0.45);
    box-shadow: 0 0 28px rgba(0,255,255,0.35);
}

.feature-icon {
    font-size: 2.2rem;
    color: var(--neon);
    text-shadow: 0 0 6px rgba(0,255,255,0.8);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━
   REPO SECTION — Layout + Cards
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.repo-card {
    background: #10131A;
    border: 1px solid rgba(0,255,255,0.18);
    border-radius: 1.2rem;
    transition: 0.3s ease;
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.repo-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 0 12px rgba(0,255,255,0.7),
        0 0 30px rgba(0,255,255,0.25);
    border-color: var(--neon);
}

.repo-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--neon);
    margin-bottom: .35rem;
}

.repo-meta {
    font-size: 0.78rem;
    opacity: 0.75;
}


/* Stars Icon */
.repo-star {
    color: var(--neon);
    opacity: 0.9;
    font-size: 0.85rem;
}


/* Always align repo cards smartly */
#repoContainer .col-lg-4 {
    display: flex;
}


/* Center the last row if < 3 items */
#repoContainer {
    justify-content: center !important;
}


/* CTA Button */
.btn-outline-neon {
    border: 1px solid var(--neon);
    color: var(--neon);
    transition: 0.3s ease;
}

.btn-outline-neon:hover {
    background: var(--neon);
    color: #000;
    box-shadow: 0 0 16px var(--neon);
}


/* Neon text highlight */
.text-neon {
    color: var(--neon);
}

/* Auto-Center last row if it has only 1 or 2 cards */
#features .row {
    justify-content: center;
}

/* Make sure all feature cards stretch equally */
#features .col-lg-4 {
    display: flex;
}


/* Borders */
.border-neon-subtle {
    border-color: rgba(0, 255, 255, 0.2) !important;
}

/* Sticky Footer */
.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    height: 52px;
    width: 100%;
    background: radial-gradient(circle at top, rgba(5, 7, 18, 0.95), rgba(0, 0, 0, 0.98));
    border-top: 1px solid rgba(0, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    z-index: 1030;
}

/* 🔥 Neon Pulse + Cyber Scan Animation */
.footer {
    animation: footerPulse 3.5s infinite ease-in-out;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: -20%;
    width: 40%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--neon), transparent);
    animation: scanFlow 2.5s linear infinite;
}

@keyframes footerPulse {
    0% {
        border-top-color: rgba(0,255,255,0.1);
        box-shadow: 0 -2px 14px rgba(0,255,255,0.15);
    }
    50% {
        border-top-color: rgba(0,255,255,0.45);
        box-shadow: 0 -2px 22px rgba(0,255,255,0.45);
    }
    100% {
        border-top-color: rgba(0,255,255,0.1);
        box-shadow: 0 -2px 14px rgba(0,255,255,0.15);
    }
}

.footer-text {
    letter-spacing: 0.05em;
    color: var(--neon);
    text-transform: uppercase;
    font-weight: 600;
}

.neon-animate {
    animation: neonGlow 3.2s infinite ease-in-out,
               neonFlicker 12s infinite steps(1);
    text-shadow:
        0 0 6px var(--neon),
        0 0 12px var(--neon),
        0 0 22px rgba(0,255,255,0.9);
}

@keyframes neonGlow {
    0%, 100% {
        text-shadow:
            0 0 6px var(--neon),
            0 0 18px var(--neon),
            0 0 28px rgba(0,255,255,0.6);
    }
    50% {
        text-shadow:
            0 0 12px var(--neon),
            0 0 28px rgba(0,255,255,0.9),
            0 0 42px rgba(0,255,255,1);
    }
}

@keyframes neonFlicker {
    0%, 92%, 100% { opacity: 1; }
    93%, 95%, 97% { opacity: 0.8; }
    94%, 96% { opacity: 0.55; }
}


@keyframes scanFlow {
    0% { left: -40%; opacity: 0.3; }
    50% { opacity: 1; }
    100% { left: 100%; opacity: 0.3; }
}

/* Prevent content overlap with footer */
body {
    padding-bottom: 70px;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
    .hero {
        min-height: 70vh;
        padding-top: 6rem;
    }
}

.logo-img {
    max-width: 780px;      /* kontrollierte Größe */
    border-radius: 25px;   /* abgerundete Ecken */
    padding: 6px;
    background: rgba(0,255,255,0.05);
    border: 2px solid rgba(0,255,255,0.35);
    box-shadow:
        0 0 10px rgba(0,255,255,0.5),
        0 0 25px rgba(0,0,0,0.8);
    transition: 0.3s ease-in-out;
}

.logo-img:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 22px rgba(0,255,255,0.8),
        0 0 35px rgba(0,0,0,0.85);
}

.powered-badge {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(0,255,255,0.45);
    background: rgba(0,255,255,0.08);
    color: var(--neon);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(0,255,255,0.7);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 12px rgba(0,255,255,0.35);
}

.powered-badge:hover {
    box-shadow: 0 0 20px rgba(0,255,255,0.8);
    transform: translateY(-3px);
    transition: all 0.25s ease-in-out;
}

#repos h2 {
    letter-spacing: 0.06em;
}
#repos p {
    opacity: 0.85;
}
