/* Custom Fonts */
.font-playfair {
    font-family: 'Playfair Display', serif;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes titleReveal {
    0% { 
        opacity: 0; 
        transform: scale(0.8) rotate(-5deg); 
    }
    50% { 
        opacity: 0.5; 
        transform: scale(1.1) rotate(2deg); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg); 
    }
}

@keyframes taglineSlide {
    0%, 33% { opacity: 1; transform: translateX(0); }
    34%, 66% { opacity: 0; transform: translateX(-100px); }
    67%, 100% { opacity: 1; transform: translateX(0); }
}

@keyframes upsideDown {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(180deg); }
}

/* Animation Classes */
.animate-title {
    animation: titleReveal 2s ease-out;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out 0.5s both;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 1s both;
}

/* Upside Down Bakery Background */
.upside-down-bakery {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: rotate(180deg);
    opacity: 0.3;
    animation: upsideDown 0.1s ease-out;
    filter: blur(1px) brightness(0.7);
}

.upside-down-bakery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.3) contrast(1.2) brightness(0.8);
}

/* Taglines Animation */
.taglines-container {
    position: relative;
    height: 60px;
    overflow: hidden;
}

.tagline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.5s ease;
}

.tagline.active {
    opacity: 1;
    transform: translateX(0);
}

/* Bakery & Gun Collage */
.bakery-gun-collage {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.bakery-gun-collage:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.3);
}

.bakery-gun-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.1) brightness(0.9);
}

.bakery-gun-collage::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: 
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

/* Gallery Items */
.gallery-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Press Items */
.press-item {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.press-item:hover {
    border-left-color: #dc2626;
    transform: translateX(10px);
}

/* Form Styling */
input, textarea {
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .upside-down-bakery {
        opacity: 0.1;
    }
    
    .taglines-container {
        height: 40px;
    }
    
    .tagline {
        font-size: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f1f1f;
}

::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Kinetic Typography Effect */
.kinetic-text {
    background: linear-gradient(45deg, #dc2626, #b91c1c, #dc2626);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Cast Member Animations */
.cast-member {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.cast-member:nth-child(1) { animation-delay: 0.2s; }
.cast-member:nth-child(2) { animation-delay: 0.4s; }
.cast-member:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cast member hover effects */
.cast-member:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.3);
}

.cast-member:hover .w-32 {
    animation: pulse 1s ease-in-out infinite;
}

/* Drop Style Animations */
.drop-container {
    position: relative;
}

.drop-element {
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.drop-element:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.5);
}

/* Drop ripple effect */
.drop-element::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid #dc2626;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
} 

/* Modern Gallery Styling */
.gallery-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
    transition: left 0.5s ease;
}

.gallery-item:hover::before {
    left: 100%;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(220, 38, 38, 0.2);
}

/* Modern Drop Elements */
.drop-element {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.drop-element::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.drop-element:hover::before {
    transform: rotate(45deg) scale(1.2);
}

/* Enhanced Cast Member Styling */
.cast-member {
    position: relative;
    overflow: hidden;
}

.cast-member::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(220, 38, 38, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cast-member:hover::after {
    opacity: 1;
}

.cast-member .w-32 {
    position: relative;
    z-index: 2;
}

/* Modern Navigation Styling */
nav {
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav a {
    position: relative;
    transition: all 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #dc2626, #b91c1c);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Enhanced Form Styling */
input, textarea {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.5);
    backdrop-filter: blur(10px);
}

input:focus, textarea:focus {
    background: rgba(31, 41, 55, 0.9);
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1), 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Modern Button Styling */
button[type="submit"] {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    position: relative;
    overflow: hidden;
}

button[type="submit"]::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 ease;
}

button[type="submit"]:hover::before {
    left: 100%;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* Enhanced Press Items */
.press-item {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 85, 99, 0.3);
    position: relative;
    overflow: hidden;
}

.press-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #dc2626, #b91c1c);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.press-item:hover::before {
    transform: scaleY(1);
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.8);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 6px;
    border: 2px solid rgba(31, 41, 55, 0.8);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
} 