/* General Body and Fonts */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fcf8f3; /* Very light cream/off-white */
    color: #5a3c3b; /* Darker brown for text */
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif; /* More elegant headings */
    color: #8B4513; /* SaddleBrown for warmth */
    text-align: center;
    margin-bottom: 20px;
}

h1 { font-size: 4.5rem; }
h2 { font-size: 3rem; }
h3 { font-size: 2rem; }

p {
    font-family: 'Lora', serif; /* Elegant serif for body text */
}

/* Base Section Styling */
section {
    padding: 80px 5%;
    position: relative;
    overflow: hidden;
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3.5rem;
    color: #6a403a;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff69b4, #ffb6c1);
    border-radius: 2px;
    animation: drawUnderline 2s ease-out forwards;
    animation-delay: 0.5s;
    width: 0; /* Start with 0 width for animation */
}

.section-title p {
    font-size: 1.3rem;
    color: #888;
    font-style: italic;
}

/* Utility Buttons - NEW SHIMMER EFFECT */
.btn-primary, .btn-secondary, .promo-button, .contact-form button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary, .contact-form button {
    background-color: #ff69b4; /* Hot pink */
    color: white;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.btn-primary:hover, .contact-form button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 105, 180, 0.5);
}

/* Aurora Shimmer Effect for Primary Buttons */
.btn-primary::before, .contact-form button::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 300%; height: 100%;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.4) 50%, transparent 80%);
    transition: left 0.8s ease-in-out;
    transform: skewX(-25deg);
    z-index: -1;
}

.btn-primary:hover::before, .contact-form button:hover::before {
    left: 100%;
}

.btn-secondary {
    background-color: #f7d9c4; /* Pastel orange/cream */
    color: #8B4513;
    border: 2px solid #f7d9c4;
    box-shadow: 0 5px 15px rgba(247, 217, 196, 0.3);
}

.btn-secondary:hover {
    background-color: #fff;
    border-color: #8B4513;
    color: #8B4513;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(247, 217, 196, 0.4);
}

.icon-link {
    color: #5a3c3b;
    font-size: 1.2rem;
    margin-left: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.icon-link:hover {
    color: #ff69b4;
    transform: scale(1.2) rotate(10deg);
}

/* Keyframe Animations (Modernized & New) */
@keyframes animatedFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes animatedFadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes animatedFadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes revealText { /* New for Hero Title */
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-title span { /* Helper for reveal animation */
    display: inline-block;
    overflow: hidden;
}

.hero-title span span {
    display: inline-block;
    animation: revealText 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 5px rgba(255,255,255,0.7), 0 0 10px rgba(255,255,255,0.5); }
    50% { text-shadow: 0 0 15px rgba(255,255,255,1), 0 0 25px rgba(255,255,255,0.8); }
}

@keyframes btnPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideInBottom {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes galleryPop {
    from { transform: scale(0.8) rotate(5deg); opacity: 0; }
    to { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes gradientPan {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes hero-bg-pan { /* New for hero background */
    0% { background-position: center bottom; background-size: 100% auto; }
    100% { background-position: center top; background-size: 110% auto; }
}

@keyframes drawUnderline { /* New for section title underline */
    to { width: 80px; }
}

/* Apply Animations */
.animated-fade-in { animation: animatedFadeIn 1s ease-out forwards; opacity: 0; }
.animated-fade-in-left { animation: animatedFadeInLeft 1.2s ease-out forwards; opacity: 0; }
.animated-fade-in-right { animation: animatedFadeInRight 1.2s ease-out forwards; opacity: 0; }
.animated-text-glow { animation: textGlow 3s infinite alternate ease-in-out; }
.animated-btn-pulse { animation: btnPulse 2.5s infinite ease-in-out; }
.animated-zoom-in { animation: zoomIn 1s ease-out forwards; opacity: 0; }
.animated-slide-in-bottom { animation: slideInBottom 1s ease-out forwards; opacity: 0; }
.animated-gallery-pop { animation: galleryPop 0.8s ease-out forwards; opacity: 0; }

/* Header Styling */
.top-bar {
    background-color: #6a403a; /* Dark brown */
    color: #fffacd;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.top-bar .contact-info span {
    margin-right: 20px;
}

.top-bar .contact-info i {
    margin-right: 8px;
    color: #ffb6c1; /* Light pink icon */
}

.social-links a {
    color: #fffacd;
    margin-left: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #ff69b4;
    transform: scale(1.1);
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.logo {
    font-family: 'Pacifico', cursive;
    font-size: 2.8rem;
    color: #ff69b4;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin: 0 18px;
}

nav a {
    position: relative;
    text-decoration: none;
    color: #5a3c3b;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 5px 0;
    transition: color 0.3s ease, transform 0.2s ease;
}

nav a:hover {
    color: #ff69b4;
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: -8px;
    left: 0;
    background-color: #ff69b4;
    transition: transform 0.3s cubic-bezier(0.7, 0, 0.3, 1);
    transform: scaleX(0); /* Start scaled to 0 */
    transform-origin: center;
}

nav a:hover::after {
    transform: scaleX(1); /* Scale to full width */
}

.header-actions {
    display: flex;
    align-items: center;
}

/* Hero Section - NEW PARALLAX-LIKE EFFECT */
#hero {
    height: 90vh;
    background-image: url('https://images.unsplash.com/photo-1542826433-28b9d3119056?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w0NTIyMjh8MHwxfHNlYXJjaHw3fHBiYWtlcnl8ZW58MHx8fHwxNjk5NTI3MDc4fDA&ixlib=rb-4.0.3&q=80&w=1080');
    background-size: 100% auto;
    background-position: center bottom;
    background-repeat: no-repeat;
    animation: hero-bg-pan 40s infinite alternate ease-in-out;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(255, 230, 230, 0.7), rgba(255, 250, 240, 0.7), rgba(255, 239, 213, 0.7));
    background-size: 300% 300%;
    animation: gradientPan 20s ease infinite alternate;
}

.hero-content {
    color: #6a403a;
    text-shadow: none;
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtitle {
    font-family: 'Pacifico', cursive;
    font-size: 1.8rem;
    color: #ff69b4;
    margin-bottom: 10px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #8B4513;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
}


/* Promotions Section - NEW 3D TILT EFFECT */
#promotions {
    background-color: #fefcfb;
    padding: 100px 5%;
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1500px; /* Add perspective for 3D */
}

.promo-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    text-align: left;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
}

.promo-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.promo-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.promo-card:hover img {
    transform: scale(1.05) translateZ(20px);
}

.promo-info {
    padding: 25px;
    transform: translateZ(30px); /* Push content forward in 3D space */
}

.promo-info h3 {
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    color: #6a403a;
    margin-top: 0;
    text-align: left;
}

.promo-info p {
    font-size: 1rem;
    color: #777;
    margin-bottom: 15px;
}

.promo-price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #ff69b4;
    display: block;
    margin-bottom: 15px;
}

.promo-button {
    background-color: #f7d9c4;
    color: #8B4513;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background-color 0.3s, color 0.3s;
}

.promo-button:hover {
    background-color: #ff69b4;
    color: white;
}


/* Menu Section - NEW 3D & FLOAT EFFECT */
#menu {
    background-color: #fce4ec;
    padding: 100px 5%;
}

.menu-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 2000px;
}

.cake-card {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.1, 0.7, 0.3, 1), box-shadow 0.6s ease;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
}

.cake-card:hover {
    transform: translateY(-20px) rotateY(10deg);
    box-shadow: 0 20px 45px rgba(255, 105, 180, 0.4);
    z-index: 1;
}

.cake-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: transform 0.5s ease;
    animation: floatElement 5s infinite ease-in-out alternate;
}

.cake-card:hover img {
    transform: scale(1.05) translateZ(50px) rotateY(-10deg);
    animation-play-state: paused;
}

.cake-card h3, .cake-card p, .price {
    transform: translateZ(25px);
}

.cake-card h3 {
    font-family: 'Lora', serif;
    font-size: 1.7rem;
    margin: 10px 0;
    color: #4a2c2a;
}

.cake-card p {
    color: #777;
    margin: 0 0 15px 0;
    font-size: 0.95rem;
}

.price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #ff69b4;
    display: inline-block;
}

/* About Us Section */
#about {
    background-color: #fffacd;
    padding: 100px 5%;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 1;
    max-width: 50%;
    text-align: left;
}

.about-text p {
    font-size: 1.15rem;
    color: #6a403a;
    margin-bottom: 30px;
}

/* Products Gallery Section - ENHANCED OVERLAY */
#products {
    background-color: #fefbf8;
    padding: 100px 5%;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
    cursor: pointer;
    transition: transform 0.4s ease;
}

.product-item:hover {
    transform: translateY(-8px) scale(1.02);
}

.product-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.product-item:hover img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 40px 20px 20px;
    font-size: 1.3rem;
    font-family: 'Playfair Display', serif;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%); /* Start hidden */
    transition: clip-path 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-item:hover .product-overlay {
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 20%); /* Reveal with a slant */
}

.product-overlay h3 {
    color: white;
    margin: 0;
    text-align: left;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.5s ease 0.2s, opacity 0.5s ease 0.2s;
}

.product-item:hover .product-overlay h3 {
    transform: translateY(0);
    opacity: 1;
}


/* Contact Us Section - ENHANCED FORM */
#contact {
    background-color: #fce4ec;
    padding: 100px 5%;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: #4a2c2a;
    font-size: 1.05rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    color: #5a3c3b;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0a0a0;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ff69b4;
    box-shadow: 0 0 0 4px rgba(255, 105, 180, 0.3), 0 5px 15px rgba(0,0,0,0.1);
    outline: none;
    background-color: #fffafa;
    transform: translateY(-2px);
}

.contact-form button {
    width: 100%;
    padding: 18px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
}

/* Footer Styling */
footer {
    background-color: #6a403a;
    color: #fffacd;
    padding: 60px 5% 20px;
    font-family: 'Montserrat', sans-serif;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 40px;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    color: #ffb6c1;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: left;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #f7e6db;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #f7e6db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff69b4;
    text-decoration: underline;
}

.footer-section .social-links a {
    color: #f7e6db;
    font-size: 1.3rem;
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-section .social-links a:hover {
    color: #ff69b4;
    transform: scale(1.1);
}

.footer-section.contact p i {
    margin-right: 10px;
    color: #ffb6c1;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.85rem;
    color: #d8c2b5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }

    .main-header {
        padding: 15px 3%;
    }

    nav ul li {
        margin: 0 12px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .about-content {
        flex-direction: column;
        gap: 40px;
    }

    .about-image, .about-text {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        padding: 10px 3%;
    }
    .top-bar .contact-info, .top-bar .social-links {
        margin-bottom: 10px;
    }
    .top-bar .contact-info span {
        margin-right: 10px;
    }

    .main-header {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        padding: 15px 3%;
    }
    .logo {
        width: 100%;
        margin-bottom: 15px;
        font-size: 2.5rem;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin-bottom: 15px;
    }
    nav ul li {
        margin: 5px 10px;
    }
    .header-actions {
        width: 100%;
        justify-content: center;
    }
    .header-actions .icon-link {
        margin-left: 15px;
    }

    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.5rem; }
    .hero-title { font-size: 3.5rem; }
    .btn-primary, .btn-secondary { padding: 10px 20px; font-size: 1rem; }

    .section-title h2 {
        font-size: 2.8rem;
    }
    .section-title p {
        font-size: 1.1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-section {
        min-width: unset;
        width: 100%;
    }
    .footer-section h3 {
        text-align: center;
    }
    .footer-section ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-section ul li {
        margin: 0 10px 10px;
    }
    .footer-section .social-links {
        justify-content: center;
        display: flex;
    }
    .footer-section.contact p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.2rem; }

    nav ul li {
        margin: 5px 8px;
        font-size: 0.95rem;
    }

    .btn-primary, .btn-secondary {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }
    .section-title p {
        font-size: 1rem;
    }

    .promo-info h3 {
        font-size: 1.5rem;
    }
    .promo-price {
        font-size: 1.3rem;
    }

    .cake-card h3 {
        font-size: 1.4rem;
    }
    .price {
        font-size: 1.2rem;
    }
    .about-text p {
        font-size: 1rem;
    }
}