/* ==========================================
   JOAHTHEO.XYZ - CLEAN STYLESHEET
   ========================================== */

/* CSS Variables */
:root {
    --primary-magenta: #ff0080;
    --secondary-magenta: #e91e63;
    --dark-bg: #0a0a0a;
    --darker-bg: #000000;
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    --accent-purple: #8b5cf6;
    --gradient-1: linear-gradient(135deg, #ff0080, #e91e63, #8b5cf6);
    --gradient-2: linear-gradient(45deg, #ff0080, #00ffff);
    --success-green: linear-gradient(135deg, #10b981, #059669);
    --error-red: rgba(220, 38, 38, 0.2);
}

/* ==========================================
   BASE STYLES
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--dark-bg);
    color: var(--text-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

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

@keyframes pandaGlow {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(255, 0, 128, 0.4)); }
    50% { filter: drop-shadow(0 0 25px rgba(255, 0, 128, 0.8)); }
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ==========================================
   BACKGROUND ELEMENTS
   ========================================== */

/* Partikel Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Static Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 0, 128, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 255, 0.04) 0%, transparent 50%);
}

/* Panda Watermark */
.panda-watermark {
    position: fixed;
    width: 500px;
    height: 500px;
    background-image: url('../images/panda_water.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.06;
    z-index: -1;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translate(-50%, -50%);
    will-change: transform;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 0, 128, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.logo-container {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: '🐼';
    font-size: 2.2rem;
    filter: drop-shadow(0 0 15px rgba(255, 0, 128, 0.4));
    animation: pandaGlow 3s ease-in-out infinite;
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--text-gray);
    font-weight: 400;
    margin-left: 2.7rem;
    margin-top: -0.3rem;
    font-style: italic;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.logo-container:hover .logo-tagline {
    color: var(--primary-magenta);
    opacity: 1;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-item a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
}

.nav-item a:hover, 
.nav-item a.active {
    color: var(--primary-magenta);
    background: rgba(255, 0, 128, 0.1);
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-2);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-item a:hover::after, 
.nav-item a.active::after {
    width: 80%;
}

/* ==========================================
   CONTENT SECTIONS
   ========================================== */

.content-section {
    min-height: 100vh;
    display: none;
    padding-top: 100px;
}

.content-section.active {
    display: block;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 2rem;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.2s both;
    font-weight: 300;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-white);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.4s both;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */

.about-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    font-size: 1.3rem;
    color: var(--text-gray);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */

.projects-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 0, 128, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.project-card h3 {
    color: var(--primary-magenta);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ==========================================
   ADMIN SECTION
   ========================================== */

.admin-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.login-card, 
.admin-dashboard {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 0, 128, 0.3);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(255, 0, 128, 0.1);
    animation: fadeInUp 0.8s ease-out;
}

.login-card {
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.admin-dashboard {
    width: 100%;
    max-width: 1200px;
    text-align: left;
}

.login-card h1, 
.admin-dashboard h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-card .subtitle {
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* Form Styles */
.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 0, 128, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-magenta);
    box-shadow: 0 0 25px rgba(255, 0, 128, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.form-group input::placeholder {
    color: rgba(179, 179, 179, 0.6);
}

/* Buttons */
.btn {
    padding: 1.2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    width: 100%;
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 0, 128, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 0, 128, 0.4);
}

.btn-danger {
    background: rgba(220, 38, 38, 0.8);
    color: white;
}

.btn-danger:hover {
    background: rgba(220, 38, 38, 1);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-green);
    color: white;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: none;
}

.alert-error {
    background: var(--error-red);
    border: 1px solid #dc2626;
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #6ee7b7;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

/* Admin Dashboard Styles */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 0, 128, 0.2);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 0, 128, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary-magenta);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-magenta);
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.admin-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.action-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 0, 128, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.action-card:hover {
    border-color: var(--primary-magenta);
    transform: translateY(-5px);
}

.action-card h3 {
    color: var(--primary-magenta);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.action-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ==========================================
   FOOTER - FUNKTIONIEREND
   ========================================== */

footer {
    background: var(--darker-bg);
    border-top: 1px solid rgba(255, 0, 128, 0.2);
    padding: 2rem;
    margin-top: 6rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-left a {
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-left img {
    width: 120px;
    height: auto;
    transition: all 0.3s ease;
    border-radius: 12px;
    object-fit: contain;
}

.footer-left img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(255, 0, 128, 0.6));
}

.footer-center {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-center::before {
    content: '🐼';
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px rgba(255, 0, 128, 0.3));
}

.footer-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-right a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
}

.footer-right a:hover {
    color: var(--primary-magenta);
    background: rgba(255, 0, 128, 0.1);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-item a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-right {
        gap: 1rem;
    }
    
    .panda-watermark {
        width: 350px;
        height: 350px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 1.6rem;
    }

    .logo-tagline {
        font-size: 0.6rem;
        margin-left: 2.2rem;
    }

    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .admin-actions {
        grid-template-columns: 1fr;
    }

    .footer-left img {
        width: 100px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .logo-tagline {
        font-size: 0.55rem;
        margin-left: 1.9rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .footer-right {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-left img {
        width: 80px;
    }
}