/* =========================================
   1. VARIABLES & SETUP
   ========================================= */
:root {
    /* Farben: Deep Space Theme */
    --bg-dark: #050507;
    --card-surface: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(255, 255, 255, 0.2);
    
    /* Text */
    --text-main: #ffffff;
    --text-secondary: #b0b0c0;
    --text-accent: #64ffda; /* Ein modernes Mint/Cyan */

    /* Gradients & Glows */
    --primary-gradient: linear-gradient(135deg, #00f260 0%, #0575e6 100%);
    --glass-shine: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%);
    --neon-glow: 0 0 20px rgba(5, 117, 230, 0.4);
    
    /* Spacing */
    --radius-xl: 24px;
    --radius-m: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    /* Ein feines Rauschen im Hintergrund für Textur */
    background-image: radial-gradient(circle at 50% 0%, #1a1d29 0%, var(--bg-dark) 80%);
}

/* =========================================
   2. BACKGROUND FX (Der Wow-Faktor)
   ========================================= */
.background-glow {
    position: fixed;
    top: -30%;
    right: -10%;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(5, 117, 230, 0.15) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -1;
    animation: pulseGlow 10s infinite alternate ease-in-out;
    pointer-events: none;
}

/* Zweiter Glow Ball unten links */
.background-glow::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 150%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 242, 96, 0.1) 0%, transparent 60%);
    border-radius: 50%;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
    100% { transform: scale(1.1) translate(-20px, 20px); opacity: 1; }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

/* Profilbild Container mit rotierendem Rand */
.profile-container {
    position: relative;
    display: inline-block;
    padding: 5px; /* Abstand für den Rand */
    border-radius: 50%;
    background: linear-gradient(to right, #0575e6, #00f260);
    margin-bottom: 25px;
    box-shadow: 0 0 30px rgba(5, 117, 230, 0.3);
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-dark); /* Innenrand zur Trennung */
    display: block;
    filter: brightness(1.05);
}

/* Status Badge "Open for Work" */
.status-badge {
    position: absolute;
    bottom: 10px;
    right: 0;
    background: rgba(10, 20, 30, 0.9);
    color: #00f260;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(0, 242, 96, 0.3);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    animation: floatBadge 3s infinite ease-in-out;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -1.5px;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.subtitle {
    font-family: 'Inter', sans-serif;
    color: var(--text-secondary);
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

/* Button Design */
.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(5, 117, 230, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(5, 117, 230, 0.5);
}

.btn-primary:hover::before {
    left: 100%;
}

/* =========================================
   4. BENTO GRID LAYOUT
   ========================================= */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: auto auto;
    }
    
    /* Layout Aufteilung */
    .about { grid-column: span 5; }
    .resume { grid-column: span 7; grid-row: span 2; }
    .skills { grid-column: span 5; }
}

/* =========================================
   5. GLASSMORPHISM CARDS
   ========================================= */
.card {
    background: var(--card-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 35px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* Shine Effekt beim Hover über Karten */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-shine);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--card-hover-border);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card:hover::after {
    opacity: 1;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

h2::before {
    content: '';
    display: block;
    width: 6px;
    height: 24px;
    background: var(--primary-gradient);
    border-radius: 4px;
}

/* =========================================
   6. CONTENT STYLING
   ========================================= */

/* Über Mich Details */
.personal-details {
    margin-top: 25px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-m);
    border: 1px solid rgba(255,255,255,0.02);
    transition: transform 0.3s;
}

.detail-item:hover {
    transform: translateX(5px);
    background: rgba(255,255,255,0.03);
}

.icon {
    font-size: 1.8rem;
    margin-right: 15px;
}

.muted {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 2px;
}

/* Timeline / Werdegang */
.timeline {
    position: relative;
    padding-left: 35px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #0575e6, rgba(255,255,255,0.1));
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

/* Leuchtende Punkte in der Timeline */
.timeline-item::after {
    content: '';
    position: absolute;
    left: -32px; /* Ausgerichtet am Strich */
    top: 5px;
    width: 16px;
    height: 16px;
    background: #050507;
    border: 3px solid #00f260;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 242, 96, 0.4);
    transition: transform 0.3s;
}

.timeline-item:hover::after {
    transform: scale(1.3);
    background: #00f260;
}

.date {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(5, 117, 230, 0.1);
    color: #4facfe;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    border: 1px solid rgba(79, 172, 254, 0.2);
}

.timeline-item h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.place {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 10px;
}

/* Skills Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tags span {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: default;
}

.tags span:hover {
    background: rgba(5, 117, 230, 0.15);
    color: white;
    border-color: #0575e6;
    box-shadow: 0 0 15px rgba(5, 117, 230, 0.2);
    transform: translateY(-2px);
}

/* =========================================
   7. FOOTER & ANIMATIONS
   ========================================= */
footer {
    text-align: center;
    margin-top: 80px;
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
}

/* Reveal Klassen für das JS Script */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }