/* Custom styles for Le Dallo */

/* Section transitions and professional styling */
.section-transition {
    position: relative;
    overflow: hidden;
}

.section-transition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.3), transparent);
    z-index: 10;
}

.section-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    backdrop-filter: blur(1px);
}

.professional-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.professional-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.98);
}

/* Smooth section transitions */
.section-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

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

/* Professional typography */
.professional-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.professional-subtitle {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 300;
}

/* Header styles - removed to restore original */

/* Hero section with background image */
.hero-bg {
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Simple background sections */
.background-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Smooth transitions for cards */
.activity-card {
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Logo animation */
.logo-container {
    animation: fadeInUp 1s ease-out;
}

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

/* Text animation */
.hero-text {
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Button hover effects */
.btn-primary {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Background overlay for better text readability */
.bg-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

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

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

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

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

/* Responsive improvements */
@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
        min-height: 80vh;
    }
    
    .activity-card:hover {
        transform: translateY(-4px);
    }
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[src] {
    opacity: 1;
}

/* Custom focus styles */
button:focus,
a:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

/* Smooth page transitions */
* {
    scroll-behavior: smooth;
}

/* Enhanced parallax effects */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    will-change: transform;
}

/* Smooth parallax transitions */
.parallax-slow,
.parallax-medium,
.parallax-fast {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Enhanced section spacing */
.section-transition {
    margin: 0 !important;
    padding: 0;
}

.section-transition + .section-transition {
    margin-top: 0 !important;
    padding-top: 0;
}

/* Remove any default margins/padding */
body, html {
    margin: 0;
    padding: 0;
}

/* Ensure sections are flush */
.relative.overflow-hidden {
    margin: 0;
    padding: 0;
}

/* Content padding within sections */
.background-section .max-w-7xl {
    padding: 5rem 0;
    width: 100%;
}

/* Dropdown styles - removed to restore original */

/* Mobile optimizations */
@media (max-width: 768px) {
    .background-section,
    .hero-bg {
        background-attachment: scroll;
        min-height: 80vh;
    }
}
