/* The Batter Up Bakery - Warm Bakery Design */

:root {
    --primary-color: #d2691e;
    --secondary-color: #daa520;
    --accent-color: #f4a460;
    --cream-color: #fdf5e6;
    --dark-color: #0f172a;
    --light-color: #fffaf0;
    --gradient: linear-gradient(135deg, #d2691e 0%, #daa520 100%);
    --cream-gradient: linear-gradient(135deg, #f4a460, #fdf5e6);
    --text-gradient: linear-gradient(135deg, #d2691e, #f4a460);
    --shadow: 0 20px 40px rgba(210, 105, 30, 0.15);
    --warm-shadow: 0 25px 50px rgba(210, 105, 30, 0.2);
    --border-radius: 16px;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.bakery-loader {
    text-align: center;
    color: white;
}

.oven-animation {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: ovenBake 2s ease-in-out infinite;
    color: var(--cream-color);
}

@keyframes ovenBake {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(210, 105, 30, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.brand-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-family: 'Dancing Script', cursive;
}

.brand-logo i {
    font-size: 2rem;
    margin-right: 0.5rem;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: cakeGlow 3s ease-in-out infinite;
}

@keyframes cakeGlow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(210, 105, 30, 0.3)); }
    50% { filter: drop-shadow(0 0 15px rgba(210, 105, 30, 0.6)); }
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

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

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

.navbar-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
}

.navbar-toggler span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    margin: 6px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(210, 105, 30, 0.8) 0%, rgba(218, 165, 32, 0.6) 100%);
}

.bakery-steam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(253,245,230,0.6)"><animate attributeName="opacity" values="0;1;0" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="40" r="1.5" fill="rgba(244,164,96,0.4)"><animate attributeName="opacity" values="0;1;0" dur="4s" repeatCount="indefinite"/></circle><circle cx="60" cy="80" r="2.5" fill="rgba(210,105,30,0.5)"><animate attributeName="opacity" values="0;1;0" dur="2s" repeatCount="indefinite"/></circle></svg>');
    opacity: 0.7;
    animation: steamRise 6s ease-in-out infinite;
}

@keyframes steamRise {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(244, 164, 96, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: 'Dancing Script', cursive;
}

.text-gradient {
    background: var(--cream-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: warmShimmer 3s ease-in-out infinite;
}

@keyframes warmShimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
    position: relative;
}

.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 ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--warm-shadow);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(244, 164, 96, 0.5);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(244, 164, 96, 0.2);
    transform: translateY(-2px);
}

.bakery-stats {
    display: flex;
    gap: 2rem;
}

.bakery-stat {
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--cream-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Dancing Script', cursive;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.bakery-oven {
    width: 300px;
    height: 300px;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(244, 164, 96, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: ovenWarm 4s ease-in-out infinite;
    position: relative;
}

@keyframes ovenWarm {
    0%, 100% { transform: translateY(0); box-shadow: 0 0 20px rgba(210, 105, 30, 0.3); }
    50% { transform: translateY(-10px); box-shadow: 0 0 40px rgba(210, 105, 30, 0.5); }
}

.oven-content {
    text-align: center;
    color: white;
}

.oven-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--cream-color);
    animation: fireFlicker 1.5s ease-in-out infinite;
}

@keyframes fireFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* About Section */
.about-section {
    padding: 8rem 0;
    background: var(--light-color);
}

.about-visual {
    position: relative;
}

.bakery-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--warm-shadow);
}

.bakery-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bakery-card:hover img {
    transform: scale(1.05);
}

.fresh-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: freshPulse 2s ease-in-out infinite;
}

@keyframes freshPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.section-badge {
    display: inline-block;
    background: rgba(210, 105, 30, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: 'Dancing Script', cursive;
}

.section-description {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 500px;
}

.bakery-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

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

.feature-item:hover .feature-icon::before {
    left: 100%;
}

.feature-content h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.feature-content p {
    color: #64748b;
    margin: 0;
}

/* Menu Section */
.menu-section {
    padding: 8rem 0;
    background: white;
}

.section-header {
    margin-bottom: 4rem;
}

.menu-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.menu-card:hover::before {
    opacity: 0.05;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--warm-shadow);
}

.menu-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-card:hover .menu-image img {
    transform: scale(1.1);
}

.menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(210, 105, 30, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.menu-card:hover .menu-overlay {
    opacity: 1;
}

.menu-overlay i {
    font-size: 3rem;
    color: white;
    animation: menuIcon 1s ease-in-out;
}

@keyframes menuIcon {
    0% { transform: scale(0) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.menu-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.menu-content h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-family: 'Dancing Script', cursive;
}

.menu-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.menu-features {
    list-style: none;
    padding: 0;
}

.menu-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #64748b;
}

.menu-features i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Specialties Section */
.specialties-section {
    padding: 8rem 0;
    background: var(--light-color);
}

.specialty-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--warm-shadow);
}

.specialty-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
    position: relative;
}

.specialty-card h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-family: 'Dancing Script', cursive;
}

.specialty-card p {
    color: #64748b;
    margin: 0;
}

.specialty-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.specialty-card:hover .specialty-glow {
    transform: scaleX(1);
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: var(--gradient);
    position: relative;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 500;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--cream-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bakery-stats {
        justify-content: center;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .bakery-features {
        margin-top: 2rem;
    }
    
    .bakery-oven {
        width: 250px;
        height: 250px;
    }
}