:root {
    --color-primary-red: #B22222;
    --color-background: #FFFAF0;
    --color-text: #333;
    --color-accent: #8B0000;
    --color-gradient-start: #B22222;
    --color-gradient-end: #8B0000;
    --logo-size: 130px;
    --logo-border-width: 4px;
}

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

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: linear-gradient(135deg, var(--color-background) 0%, #FFF5F5 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    line-height: 1.6;
    perspective: 1000px;
}

.digital-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(178, 34, 34, 0.15);
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, box-shadow;
}

.digital-card:hover {
    box-shadow: 0 25px 50px rgba(178, 34, 34, 0.2);
    transform: translateY(-10px);
}

.card-content {
    display: grid;
    gap: 30px;
    text-align: center;
}

.bakery-name {
    font-family: 'Cormorant Garamond', serif;
    color: var(--color-primary-red);
    font-size: 3rem;
    letter-spacing: 1.5px;
    background: linear-gradient(45deg, var(--color-primary-red), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.tagline {
    color: var(--color-accent);
    font-style: italic;
    font-weight: 300;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 25px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--color-text);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 8px;
    border-radius: 10px;
}

.contact-detail:hover {
    background: linear-gradient(135deg, rgba(178, 34, 34, 0.05), rgba(178, 34, 34, 0.1));
    transform: perspective(500px) rotateX(5deg);
    transform: translateY(-2px);
}

.icon {
    width: 24px;
    height: 24px;
    stroke: var(--color-primary-red);
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

.social-icon {
    text-decoration: none;
    color: var(--color-primary-red);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(178, 34, 34, 0.05);
}

.social-icon svg {
    width: 28px;
    height: 28px;
}

.social-icon:hover {
    color: var(--color-accent);
    animation: floatUp 0.5s ease-in-out;
    transform: scale(1.1) rotate(5deg);
    background: rgba(178, 34, 34, 0.1);
}

.social-icon.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-icon.whatsapp:hover {
    background: #25D366;
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.social-icon.whatsapp svg {
    stroke: currentColor;
}

.cta-container {
    display: flex;
    justify-content: center;
}

.cta-button {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    background-size: 200%;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 30px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 15px rgba(178, 34, 34, 0.3);
    will-change: background-position;
    animation: gradientShift 5s ease infinite;
}

.cta-button svg {
    stroke: white;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(178, 34, 34, 0.4);
}

.cta-button:hover svg {
    transform: translateX(5px);
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-wrapper {
    width: var(--logo-size);
    height: var(--logo-size);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(178, 34, 34, 0.05), rgba(178, 34, 34, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--logo-border-width) solid rgba(178, 34, 34, 0.2);
    box-shadow: 0 8px 20px rgba(178, 34, 34, 0.1);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.logo-wrapper:hover {
    animation: softPulse 1s ease-in-out;
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 10px 25px rgba(178, 34, 34, 0.15);
}

.logo-placeholder {
    width: calc(var(--logo-size) - 2 * var(--logo-border-width));
    height: calc(var(--logo-size) - 2 * var(--logo-border-width));
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-red), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-placeholder svg {
    width: 50%;
    height: 50%;
    stroke: white;
}

.gallery-section {
    margin-bottom: 25px;
}

.gallery-title {
    text-align: center;
    color: var(--color-primary-red);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover {
    transform: scale(1.05) perspective(1000px) rotateY(5deg);
    box-shadow: 0 15px 30px rgba(178, 34, 34, 0.2);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 10px;
}

.gallery-item:hover .gallery-item-overlay {
    height: 100%;
}

.gallery-item-overlay .product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 5px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay .product-name {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item-overlay .product-price {
    font-weight: bold;
    color: var(--color-primary-red);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay .product-price {
    opacity: 1;
    transform: translateY(0);
}

/* PhotoSwipe Product Details */
.pswp__top-bar .product-details {
    position: absolute;
    bottom: -100px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: center;
    transition: bottom 0.3s ease;
}

.pswp--open .pswp__top-bar .product-details {
    bottom: 0;
}

.pswp__top-bar .product-details .product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.pswp__top-bar .product-details .product-price {
    color: var(--color-primary-red);
    font-weight: bold;
    margin-bottom: 10px;
}

.pswp__top-bar .product-details .product-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

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

@keyframes floatUp {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 480px) {
    .digital-card {
        margin: 15px;
        padding: 25px;
    }

    .bakery-name {
        font-size: 2.3rem;
    }

    :root {
        --logo-size: 100px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}