:root {
    --primary: #f06292;
    --secondary: #4fc3f7;
    --accent: #ffd54f;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    opacity: 0.8;
}

nav ul li a:hover {
    opacity: 1;
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('bobsiUmgebung/Haus-Umgebumg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    will-change: transform;
}

#antigravityCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

@keyframes pulseText {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.02);
        filter: brightness(1.1);
    }
}

@keyframes breathe {
    0%, 100% {
        opacity: 0.9;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to bottom, #fff, #ddd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulseText 6s infinite ease-in-out;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: breathe 8s infinite ease-in-out;
}

.btn {
    display: inline-block;
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(240, 98, 146, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(240, 98, 146, 0.5);
    background: #ff79a6;
}

/* About / Welcome Section */
.about-section {
    padding: 100px 0 60px 0;
    position: relative;
    background: url('bobsiUmgebung/Zauberwald-Umgebung.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 26, 46, 0.85); /* Darker overlay for text readability */
    z-index: 1;
}

.about-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.about-content {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    padding: 60px 40px;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.about-content:hover {
    box-shadow: 0 25px 60px rgba(240, 98, 146, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.about-content .section-title {
    margin-bottom: 25px;
    font-size: 2.8rem;
    color: var(--accent);
}

.about-text {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--light);
}

.about-text strong {
    color: var(--primary);
    font-size: 1.4rem;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* Showcase Section */
.showcase {
    padding: 120px 0;
    background: url('bobsiUmgebung/Zauberwald-Umgebung.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.9);
    z-index: 1;
}

.showcase .container {
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 80px;
    font-weight: 800;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.char-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 30px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

.char-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.char-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 20px;
}

.char-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.4));
    transition: var(--transition);
}

.char-card:hover img {
    transform: scale(1.1) rotate(5deg);
}

.char-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--accent);
}

.char-card p {
    opacity: 0.8;
}

/* --- Interactive Map Section --- */
.map-section {
    padding: 100px 0;
    background: var(--dark);
    position: relative;
    border-top: 1px solid var(--glass-border);
}

.map-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 30px;
    /* Removed overflow: hidden so tooltips can float outside if needed */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    background: var(--glass);
    display: flex; /* Helps remove tiny image gap */
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 30px; /* Applied radius directly to image since container lost overflow:hidden */
    filter: brightness(0.9);
}

.map-pin {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--accent); /* Yellow/Gold star look */
    border: 3px solid var(--light);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 213, 79, 0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.map-pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    pointer-events: none;
}

@keyframes ping {
    75%, 100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.map-pin:hover, .map-pin.active {
    transform: translate(-50%, -50%) scale(1.3);
    background: var(--primary);
    box-shadow: 0 0 25px rgba(240, 98, 146, 1);
}

.map-pin:hover::after, .map-pin.active::after {
    border-color: var(--primary);
}

/* Map Info Box overlay inside map container */
.map-info-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: var(--popup-transform, translate(-50%, calc(-100% - 20px))) scale(0.9);
    width: 250px;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px 25px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none; /* Changed from visibility for smoother transitions */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 20;
}

.map-info-box.active {
    opacity: 1;
    pointer-events: auto;
    transform: var(--popup-transform, translate(-50%, calc(-100% - 20px))) scale(1);
}

.map-info-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.map-info-close:hover {
    color: var(--primary);
}

.map-info-box h3 {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 8px;
    margin-top: 5px; /* space from close btn */
}

.map-info-box p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--light);
}

@media (max-width: 768px) {
    .map-pin {
        width: 18px;
        height: 18px;
    }
    
    .map-info-box {
        width: 220px;
        padding: 15px;
    }
}

/* Animations */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: white;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 8px;
    }

    100% {
        opacity: 0;
        top: 25px;
    }
}

footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    opacity: 0.7;
}

/* --- Desktop Nav Enhancements --- */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--light);
    margin: 5px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

@media (max-width: 768px) {
    /* Fix for iOS fixed background zoom bug */
    .hero, .about-section, .showcase {
        background-attachment: scroll !important;
    }

    .hero h1 {
        font-size: 3rem;
    }

    nav {
        padding: 0 20px;
    }

    /* Mobile Menu Styles */
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(15px);
        transform: translateX(0);
        transition: right 0.4s ease-in-out;
        z-index: 1000;
        margin: 0;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }
    
    .nav-links li a {
        font-size: 1.5rem;
    }

    .burger {
        display: block;
    }

    /* Burger Animation (Toggle to X) */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* --- Media Section (YouTube + Spotify Split) --- */

.media-section {
    padding: 100px 0 120px 0;
    background: var(--dark);
    border-top: 1px solid var(--glass-border);
}

.media-split {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.media-card {
    flex: 1;
    min-width: 260px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 40px 30px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    transition: var(--transition);
}

.media-card:hover {
    box-shadow: 0 20px 50px rgba(240, 98, 146, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
}

.media-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.media-card-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

.media-divider {
    width: 2px;
    height: 200px;
    background: var(--glass-border);
    border-radius: 2px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .media-divider {
        width: 80%;
        height: 2px;
    }
}

/* --- Spotify Button --- */

.spotify-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #1DB954 0%, #1aa34a 100%);
    color: #ffffff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(29, 185, 84, 0.3);
}

.spotify-link:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 30px rgba(29, 185, 84, 0.4);
    background: linear-gradient(135deg, #1ed760 0%, #1DB954 100%);
}

.spotify-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* --- YouTube Button Styles --- */

.youtube-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 26px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #ffffff;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.35);
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.youtube-link:hover, .youtube-btn-wrapper:hover .youtube-link {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.5);
    background: linear-gradient(135deg, #ff1a1a 0%, #e60000 100%);
}

.youtube-link:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.3);
}

.youtube-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.youtube-link:hover .youtube-icon, .youtube-btn-wrapper:hover .youtube-icon {
    transform: scale(1.15);
}

/* Character Popout Animations */
.character-popout {
    position: absolute;
    bottom: 10px;
    z-index: 1;
    height: 60px;
    width: auto;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.char-bobsi {
    left: 10%;
    transform: translate(-50%, 0) scale(0.5) rotate(-10deg);
}

.char-luna {
    left: 50%;
    transform: translate(-50%, 0) scale(0.5);
}

.char-rosalina {
    right: 10%;
    transform: translate(50%, 0) scale(0.5) rotate(10deg);
}

.youtube-btn-wrapper:hover .char-bobsi {
    opacity: 1;
    transform: translate(-50%, -45px) scale(1) rotate(-15deg);
}

.youtube-btn-wrapper:hover .char-luna {
    opacity: 1;
    transform: translate(-50%, -55px) scale(1);
}

.youtube-btn-wrapper:hover .char-rosalina {
    opacity: 1;
    transform: translate(50%, -45px) scale(1) rotate(15deg);
}

/* --- Character Modal --- */
.char-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.char-modal.active {
    display: flex;
    opacity: 1;
}

.char-modal-content {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    width: 90%;
    max-width: 600px;
    padding: 40px;
    position: relative;
    transform: translateY(50px) scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.char-modal.active .char-modal-content {
    transform: translateY(0) scale(1);
}

.char-modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    background: none;
    border: none;
    color: var(--light);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.char-modal-close:hover {
    color: var(--primary);
    transform: scale(1.2) rotate(90deg);
}

.char-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.char-modal-img-wrap {
    width: 150px;
    height: 150px;
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#modalCharImg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.4));
}

#modalCharTitle {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

#modalCharDesc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--light);
    opacity: 0.95;
}