/* Custom Styles for Achim Bednorz Portfolio */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
}

/* Hero Slideshow */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

.hero-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slideshow img.active {
    opacity: 1;
}

/* Elegant text animations */
.fade-in {
    animation: fadeIn 1.2s ease-out forwards;
}

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

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.3s; }
.stagger-3 { animation-delay: 0.5s; }

/* Portfolio Grid Hover Effects */
.portfolio-item {
    position: relative;
    overflow: hidden;
}

.portfolio-item img {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-item:hover .overlay {
    background: rgba(0, 0, 0, 0.3);
}

.portfolio-item .overlay-text {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    color: white;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

.portfolio-item:hover .overlay-text {
    opacity: 1;
    transform: translateY(0);
}

/* Elegant underline effect for links */
.elegant-link {
    position: relative;
    display: inline-block;
}

.elegant-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

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

/* Section spacing */
section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media (min-width: 768px) {
    section {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Dark Mode scrollbar */
.dark ::-webkit-scrollbar-track,
:root.dark ::-webkit-scrollbar-track {
    background: #171717;
}

.dark ::-webkit-scrollbar-thumb,
:root.dark ::-webkit-scrollbar-thumb {
    background: #404040;
}

.dark ::-webkit-scrollbar-thumb:hover,
:root.dark ::-webkit-scrollbar-thumb:hover {
    background: #525252;
}

