/* ===== CSS VARIABLES ===== */
:root {
    /* Color Palette - Balanced Dark Theme with Red Accents */
    --primary-color: #DC2626;
    --secondary-color: #B91C1C;
    --accent-color: #F3E8D0;
    --dark-bg: #1A1A1A;
    --darker-bg: #0F0F0F;
    --card-bg: rgba(26, 26, 26, 0.8);
    --text-primary: #F3E8D0;
    --text-secondary: #C7B299;
    --gradient-primary: linear-gradient(135deg, #2A2A2A 0%, #DC2626 100%);
    --gradient-secondary: linear-gradient(135deg, #DC2626 0%, #2A2A2A 100%);
    --gradient-dark: linear-gradient(135deg, #1A1A1A 0%, rgba(26, 26, 26, 0.8) 100%);
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-accent: 'Orbitron', monospace;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Shadows */
    --shadow-primary: 0 10px 40px rgba(220, 38, 38, 0.2);
    --shadow-secondary: 0 5px 20px rgba(26, 26, 26, 0.5);
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    padding: 15px 0;
}

.navbar.scrolled {
    background: rgba(13, 17, 23, 0.98);
    padding: 10px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-nav {
    height: 40px;
    width: auto;
    margin-right: 10px;
    filter: drop-shadow(0 0 10px rgba(145, 70, 255, 0.5));
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: var(--transition-smooth);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-dark);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, var(--accent-color), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--primary-color), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--secondary-color), transparent),
        radial-gradient(1px 1px at 130px 80px, var(--accent-color), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: float 20s linear infinite;
    opacity: 0.3;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-200px, -200px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: slideInUp 1s ease-out;
    max-width: 800px;
    margin: 0 auto;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.greeting {
    display: block;
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.name-highlight {
    display: block;
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 50%, #B91C1C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-accent);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(220, 38, 38, 0.8);
    }
}

.subtitle {
    display: block;
    font-size: 2rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    margin-bottom: 40px;
}

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
      background: var(--gradient-primary);
      color: var(--text-primary);
      box-shadow: var(--shadow-primary);
  }
  
  .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-primary);
      color: var(--text-primary);
  }
  
  .btn-outline-light {
      background: transparent;
      border: 2px solid var(--primary-color);
      color: var(--primary-color);
  }
  
  .btn-outline-light:hover {
      background: var(--primary-color);
      color: var(--text-primary);
      transform: translateY(-2px);
      box-shadow: var(--shadow-primary);
      border-color: var(--primary-color);
  }

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-accent);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== HERO LOGO ===== */
.hero-logo-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    animation: slideInRight 1s ease-out;
    margin-bottom: 2rem;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-logo {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.logo-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(30px);
    animation: pulse 3s ease-in-out infinite alternate;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.status-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.status-indicator-hero {
    background: rgba(26, 26, 26, 0.9);
    padding: 12px 24px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-top: 1rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.3;
    }
}

.status-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    color: var(--text-secondary);
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== SECTIONS ===== */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-accent);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: var(--section-padding);
    background: var(--card-bg);
}

.about-content h3 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.skills-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    margin-top: 30px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.about-features {
    padding-left: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--dark-bg);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(145, 70, 255, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-content h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-content p {
    color: var(--text-secondary);
    margin: 0;
}

/* ===== STREAMING SECTION ===== */
.streaming-section {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.platform-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    height: 100%;
}

.platform-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(145, 70, 255, 0.2);
}

.platform-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.platform-icon i {
    font-size: 2rem;
    color: white;
}

.platform-card h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.platform-card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.btn-platform {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-platform:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ===== STREAMING SCHEDULE ===== */
.stream-schedule {
    background: var(--dark-bg);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stream-schedule h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-item .day {
    color: var(--text-primary);
    font-weight: 600;
}

.schedule-item .time {
    color: var(--text-secondary);
}

/* ===== COMMUNITY INFO ===== */
.community-info {
    text-align: left;
}

.community-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.community-features .feature {
    background: var(--gradient-primary);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.call-to-action {
    color: var(--accent-color);
    font-style: italic;
    margin-top: 15px;
}

/* ===== SOCIAL SECTION ===== */
.social-section {
    padding: var(--section-padding);
    background: var(--card-bg);
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition-bounce);
}

.social-link:hover {
    color: var(--text-primary);
    transform: translateY(-10px);
}

.social-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-smooth);
}

.social-link:hover .social-icon::before {
    opacity: 1;
}

.social-icon i {
    font-size: 2rem;
    position: relative;
    z-index: 1;
    color: white;
}

.social-icon.twitch {
    background: #9146ff;
}

.social-icon.youtube {
    background: #ff0000;
}

.social-icon.twitter {
    background: #1da1f2;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.discord {
    background: #5865f2;
}

.social-icon.tiktok {
    background: #000000;
}

.social-link span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--darker-bg);
    padding: 50px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-right: 15px;
}

.footer-text {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: var(--text-secondary);
    max-width: 400px;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 15px;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copyright p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .avatar-container {
        width: 300px;
        height: 300px;
    }
    
    .about-features {
        padding-left: 0;
        margin-top: 40px;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 10px auto;
        width: fit-content;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .avatar-container {
        width: 250px;
        height: 250px;
    }
    
    .platform-card {
        padding: 30px 20px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== LOADING ANIMATION ===== */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(145, 70, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== LIVE2D STYLES ===== */
#live2d-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
    z-index: 1000 !important;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* Hide Live2D on very small screens for performance */
@media (max-width: 480px) {
    #live2d-canvas {
        display: none;
    }
}

/* Reduce opacity on mobile for better readability */
@media (max-width: 768px) {
    #live2d-canvas {
        opacity: 0.7;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    #live2d-canvas {
        animation: none !important;
        transition: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    #live2d-canvas {
        opacity: 0.5;
    }
}

/* Performance optimization for low-end devices */
@media (max-resolution: 150dpi) {
    #live2d-canvas {
        image-rendering: pixelated;
        image-rendering: -moz-crisp-edges;
        image-rendering: crisp-edges;
    }
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 50%, var(--darker-bg) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.loading-logo {
    margin-bottom: 2rem;
}

.loading-text {
    font-family: var(--font-accent);
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 50%, #B91C1C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    gap: 0.5rem;
}

.spinner-ring {
    width: 20px;
    height: 20px;
    border: 3px solid transparent;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(2) {
    animation-delay: 0.2s;
}

.spinner-ring:nth-child(3) {
    animation-delay: 0.4s;
}

.loading-message {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* ===== IMPRESSUM MODAL ===== */
.impressum-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.impressum-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.impressum-modal-content {
    background: var(--card-bg);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-primary);
    animation: slideInUp 0.4s ease-out;
    position: relative;
}

.impressum-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.impressum-modal-header h2 {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.impressum-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.impressum-modal-close:hover {
    color: var(--primary-color);
    background: rgba(220, 38, 38, 0.1);
    transform: scale(1.1);
}

.impressum-modal-body {
    padding: 30px;
}

.impressum-section {
    margin-bottom: 25px;
}

.impressum-section:last-child {
    margin-bottom: 0;
}

.impressum-section h3 {
    font-family: var(--font-accent);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
    padding-bottom: 8px;
}

.impressum-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.impressum-section p:last-child {
    margin-bottom: 0;
}

.impressum-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .impressum-modal-overlay {
        padding: 10px;
    }
    
    .impressum-modal-content {
        max-height: 90vh;
    }
    
    .impressum-modal-header {
        padding: 20px 20px 15px;
    }
    
    .impressum-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .impressum-modal-body {
        padding: 20px;
    }
    
    .impressum-section h3 {
        font-size: 1.1rem;
    }
}

/* ===== STORY MODAL ===== */
.story-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.story-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.story-modal-content {
    background: var(--card-bg);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 15px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-primary);
    animation: slideInUp 0.4s ease-out;
    position: relative;
}

.story-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(139, 69, 19, 0.1));
}

.story-modal-header h2 {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.story-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.story-modal-close:hover {
    color: var(--primary-color);
    background: rgba(220, 38, 38, 0.1);
    transform: scale(1.1);
}

.story-modal-body {
    padding: 30px;
}

.story-section {
    margin-bottom: 30px;
}

.story-section:last-child {
    margin-bottom: 0;
}

.story-section h3 {
    font-family: var(--font-accent);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
    padding-bottom: 8px;
    position: relative;
}

.story-section h3::before {
    content: "🐾";
    margin-right: 8px;
    font-size: 1.1rem;
}

.story-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
    font-size: 1rem;
}

.story-section p:last-child {
    margin-bottom: 0;
}

.story-section:first-child p {
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-primary);
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
    margin-left: 10px;
    background: rgba(220, 38, 38, 0.05);
    padding: 15px 20px;
    border-radius: 8px;
}

/* Story Button Styling */
.story-button-container {
    margin-top: 15px;
}

#story-button {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

#story-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

#story-button i {
    margin-right: 8px;
}

/* Responsive Story Modal */
@media (max-width: 768px) {
    .story-modal-overlay {
        padding: 10px;
    }
    
    .story-modal-content {
        max-height: 90vh;
        max-width: 95%;
    }
    
    .story-modal-header {
        padding: 20px 20px 15px;
    }
    
    .story-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .story-modal-body {
        padding: 20px;
    }
    
    .story-section h3 {
        font-size: 1.2rem;
    }
    
    .story-section p {
        font-size: 0.95rem;
        text-align: left;
    }
    
    .story-section:first-child p {
         font-size: 1rem;
         margin-left: 0;
         padding: 12px 15px;
     }
 }

/* ===== VIDEO MODAL ===== */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal-content {
    background: var(--card-bg);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
    animation: slideInUp 0.4s ease-out;
    position: relative;
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(139, 69, 19, 0.1));
}

.video-modal-header h2 {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.video-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.video-modal-close:hover {
    color: var(--primary-color);
    background: rgba(220, 38, 38, 0.1);
    transform: scale(1.1);
}

.video-modal-body {
    padding: 0;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== SKILL TAG BUTTON STYLES ===== */
.skill-tag-button {
    background: transparent;
    border: 2px solid rgba(220, 38, 38, 0.3);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.skill-tag-button:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.2);
}

.skill-tag-button:active {
    transform: translateY(0);
}

.skill-tag-button i {
    margin-right: 6px;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.skill-tag-button:hover i {
    opacity: 1;
    color: var(--primary-color);
}

/* Responsive Video Modal */
@media (max-width: 768px) {
    .video-modal-overlay {
        padding: 10px;
    }
    
    .video-modal-content {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .video-modal-header {
        padding: 15px 20px;
    }
    
    .video-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .video-container {
        padding-bottom: 75%; /* Adjust aspect ratio for mobile */
    }
}