/* Louis Wieshofer - Website Styles */
/* Design: Dark Theme with Blue Accents */

* {
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #0a0a0a;
    color: #ffffff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #171717;
}

::-webkit-scrollbar-thumb {
    background: #262626;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Hover animations */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.1), 0 10px 10px -5px rgba(59, 130, 246, 0.04);
}

/* Button animations */
.btn-primary {
    transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Scroll indicator animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #3b82f6;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Timeline line */
.timeline-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #3b82f6, #262626);
}

/* Tech badge hover */
.tech-badge {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.tech-badge:hover {
    background-color: #3b82f6;
    transform: scale(1.05);
}

/* Navigation */
.nav-link {
    position: relative;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #3b82f6;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3b82f6;
    transition: width 0.2s ease;
}

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

.nav-link.active {
    color: #3b82f6;
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Page padding for fixed nav */
.page-content {
    padding-top: 80px;
}

/* Service cards */
.service-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: #3b82f6;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #262626, transparent);
}

/* ==================== SPA PAGE TRANSITIONS ==================== */

/* Pages - nur aktive sichtbar (!important nötig wegen Tailwind CDN) */
.page {
    display: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page.active {
    display: block !important;
    opacity: 1;
}

/* Sanfte Fade-In Animation beim Seitenwechsel */
.page.page-enter {
    animation: pageFadeIn 0.3s ease forwards;
}

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