@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');

:root {
    --accent: #a855f7;
    --bg: #0b0c1a;
    --glass: rgba(255, 255, 255, 0.04);
    --text: #eee;
    --fade: rgba(255, 255, 255, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    background: radial-gradient(circle at top left, #1a1a2e, #0b0c1a);
    font-family: 'Orbitron', sans-serif;
    color: var(--text);
    overflow-x: hidden;
}

/* 💜 Mouse Glow Effect */
.mouse-effect {
    position: fixed;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2), transparent 80%);
    pointer-events: none;
    border-radius: 50%;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: transform 0.07s ease;
}

/* 💎 Main Card */
.card {
    position: relative;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    margin: 4rem auto;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
    z-index: 1;
    text-align: center;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 💠 Profilbild */
.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    margin-bottom: 1rem;
    box-shadow: 0 0 15px var(--accent);
}

/* 🎯 Buttons */
.glow-buttons {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.glow-buttons button {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.glow-buttons button:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 10px var(--accent);
}

/* ℹ️ Info Panel */
.info-box {
    position: fixed;
    top: 10%;
    right: -400px;
    width: 320px;
    background: #161625;
    padding: 1.5rem;
    border-left: 2px solid var(--accent);
    box-shadow: -5px 0 20px rgba(168, 85, 247, 0.2);
    transition: right 0.4s ease, opacity 0.3s ease;
    z-index: 999;
    height: auto;
    max-height: 80%;
    border-radius: 8px 0 0 8px;
    display: flex;
    flex-direction: column;
    opacity: 0;
}

.info-box.active {
    right: 10px;
    opacity: 1;
}

.info-header {
    display: flex;
    justify-content: space-between;
    color: var(--accent);
    margin-bottom: 1rem;
}

.close-btn {
    cursor: pointer;
    color: #aaa;
    font-size: 1.2rem;
}

.close-btn:hover {
    color: #f87171;
}

/* 🧠 Typing Text */
.typewriter-text {
    font-family: 'Courier New', monospace;
    color: #ccc;
    line-height: 1.6;
    white-space: normal;
}

/* 🕒 Uhrzeit */
#liveTime {
    font-weight: bold;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: var(--accent);
    text-shadow: 0 0 5px var(--accent);
    animation: glowTime 2s ease-in-out infinite alternate;
}

@keyframes glowTime {
    from {
        text-shadow: 0 0 5px var(--accent);
    }
    to {
        text-shadow: 0 0 15px var(--accent);
    }
}

/* 🖼️ Gallery */
.gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.preview {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 6px #111;
}

.preview:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--accent);
}

/* 🧩 Projekt Cards */
#projects {
    padding: 2rem;
}

.section-container {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 1.5rem;
}

.card-small {
    background: var(--glass);
    border-radius: 10px;
    padding: 1rem;
    width: 260px;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.1);
    transition: transform 0.3s ease;
}

.card-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--accent);
}

.card-small h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.card-small p {
    font-size: 0.85rem;
    color: #bbb;
}

.card-small .btn {
    display: inline-block;
    margin-top: 0.8rem;
    background: var(--accent);
    color: #000;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.card-small .btn:hover {
    background: #fff;
}

/* 🦶 Footer */
footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    color: #666;
    margin-top: 2rem;
}

/* 🖤 Custom Scrollbar (dark & smooth) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0b0c1a;
}

::-webkit-scrollbar-thumb {
    background: #3f3f5a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* 🖼️ Lightbox Overlay */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease forwards;
}

/* 💫 Image mit Zoom-Effekt */
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 25px var(--accent);
    transform: scale(0.7);
    opacity: 0;
    animation: zoomIn 0.35s ease forwards;
}

/* 📸 Animationen */
@keyframes zoomIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        background: rgba(10, 10, 20, 0);
    }
    to {
        background: rgba(10, 10, 20, 0.9);
    }
}

@keyframes zoomOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.7);
        opacity: 0;
    }
}

.lightbox.hide {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    from {
        background: rgba(10, 10, 20, 0.9);
    }
    to {
        background: rgba(10, 10, 20, 0);
    }
}