/* === RESET & BASE === */
@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");

* {
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

body {
    font-family: "Vividly-Regular", "Single Day", Helvetica, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

@font-face {
    font-family: "Vividly-Regular";
    src: url("./Vividly-Regular.otf") format("woff2"),
         url("./Vividly-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "Peperrito Ornaments Regular";
    src: url("./PeperritoOrnaments-Regular.otf") format("woff2"),
         url("./PeperritoOrnaments-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "Kinan";
    src: url("./Kinan.ttf") format("woff2"),
         url("./Kinan.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* === CUSTOM FONTS (FALLBACK TO SYSTEM FONTS IF NOT LOCAL) === */
@font-face { font-family: "Vividly-Regular"; src: local("Vividly-Regular"); }
@font-face { font-family: "Single Day-Regular"; src: local("Single Day-Regular"); }
@font-face { font-family: "Kinan Regular"; src: local("Kinan-Regular"); }

/* === DETAILS PAGE WRAPPER === */
.details-page {
    max-width: 420px;
    margin: 0 auto;
    background-color: #fff2f6;
    overflow: hidden;
    position: relative;
}

/* === NAVIGATION === */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    background-color: #fff2f6;
}
.back-btn {
    font-family: "Vividly-Regular", Helvetica;
    color: #000;
    text-decoration: none;
    font-size: 20px;
    border: 2.75px solid #ff9fba;
    border-radius: 22.66px;
    padding: 8px 20px;
    background: #ffe6ed;
    transition: 0.3s;
}
.back-btn:hover { background: #ff9fba; color: white; }

/* === HERO SECTION === */
.hero-details {
    text-align: center;
    padding: 40px 20px;
    background-color: #ffffff;
    margin: 0 20px;
    border-radius: 22.66px;
    border: 2.75px solid #ff9fba;
    position: relative;
}
.hero-details h1 {
    font-family: "Kinan";
    font-size: 37.1px;
    -webkit-text-stroke: 0.69px #000;
    margin-bottom: 10px;
}
.hero-details p {
    font-family: "Vividly-Regular";
    font-size: 20px;
    margin-bottom: 20px;
}
.cute-mascot {
    width: 140px;
    height: auto;
    margin-top: 10px;
}
.hero-sub {
    font-family: 'Single Day' !important;
    font-size: 16px !important;
    margin-top: 15px !important;
    color: #555 !important;
}
.tiny-hearts {
    position: absolute;
    font-size: 25px;
    color: #ff9fba;
}
.heart-left { top: -15px; left: 0px; transform: rotate(-15deg); }
.heart-right { bottom: -15px; right: 0px; transform: rotate(15deg); }

/* === BENTO GRID GALLERY === */
.gallery-section {
    padding: 40px 20px;
    text-align: center;
}
.gallery-section h2 {
    font-family: "Kinan";
    font-size: 28.2px;
    margin-bottom: 30px;
        -webkit-text-stroke: 0.69px #000;

    position: relative;
    display: inline-block;
}
.gallery-section h2::after {
    color: #ff9fba;
}
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.bento-item {
    background-color: #fff3f6;
    border: 2.75px solid #ff9fba;
    border-radius: 22.66px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1;
    box-shadow: 0 4px 15px rgba(255, 159, 186, 0.2);
}
.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bento-item.large {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
}
.bento-item .overlay-text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 18px;
    border-radius: 22.66px;
    border: 2px solid #ff9fba;
    font-family: "Vividly-Regular";
    font-size: 16px;
}

/* === OUR SPECIALTY SECTION === */
.specialty-section {
    background-color: #fff3f6;
    margin: 20px;
    padding: 30px 20px;
    border-radius: 22.66px;
    border: 2.75px solid #ff9fba;
    text-align: center;
}
.specialty-section h3 {
    font-family: "Kinan";
    font-size: 26.8px;
    margin-bottom: 15px;
        -webkit-text-stroke: 0.69px #000;

}
.specialty-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
.specialty-card {
    background: white;
    padding: 15px;
    border-radius: 22.66px;
    border: 2px dashed #ff9fba;
    width: calc(50% - 15px);
    transition: 0.3s;
}
.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(255, 159, 186, 0.3);
}
.specialty-card img { width: 35px; margin-bottom: 10px; }
.specialty-card .icon-star { width: 30px; }
.specialty-card h4 { font-family: "Vividly-Regular"; font-size: 18px; margin-bottom: 5px; }
.specialty-card p { 
    font-family: "Vividly-Regular";
    font-size: 14px; color: #555; }

/* === HOW WE BAKE SECTION === */
.baking-story {
    padding: 20px;
    text-align: center;
}
.baking-story h2 {
    font-family: "Kinan";
    font-size: 28.2px;
    margin-bottom: 15px;
}
.baking-story .story-box {
    background: white;
    padding: 25px;
    border-radius: 22.66px;
    border: 2.75px solid #ff9fba;
    font-family: "Vividly-Regular";
    font-size: 17.2px;
    line-height: 1.6;
    color: #000;
}
.baking-story .story-box b {
    font-family: "Vividly-Regular";
}
.story-bold {
    font-family: 'Single Day' !important;
}
.baking-story .story-img {
    margin-top: 20px;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 22.66px;
    border: 2.75px solid #ff9fba;
}

/* === EXACT FOOTER WITH STARS BEHIND ICONS === */
.footer-details {
    margin-top: 40px;
    padding: 30px 20px 40px;
    text-align: center;
    background-color: #fff2f6;
    position: relative;
}
.footer-details .footer-cat {
    width: 100px;
    margin-bottom: 10px;
}

/* Container for the social icons and stars */
.footer-socials-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 60px;
    margin-bottom: 15px;
}

/* The 3 stars positioned behind the icons */
.footer-star {
    position: absolute;
    width: 41px !important;
    height: 39px !important;
    top: 10px;
    z-index: 1; /* Behind icons */
}
.star-10 { left: 32%; }
.star-11 { left: 49%; transform: translateX(-50%); }
.star-12 { right: 30%; }

/* The social icons on top of stars */
.footer-socials {
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 25px;
    z-index: 2; /* On top of stars */
}
.footer-socials img {
    width: 25px;
    height: 25px;
    transition: 0.3s;
}
.footer-socials img:hover { transform: scale(1.2); }

/* EXACT COPYRIGHT TEXT */
.footer-text {
    font-family: "Vividly-Regular", Helvetica;
    color: #000000;
    font-size: 15.1px;
    margin-top: 10px;
    position: relative;
    z-index: 3;
}

/* === RESPONSIVE === */
@media (min-width: 600px) {
    .details-page { max-width: 600px; }
    .bento-grid { grid-template-columns: repeat(3, 1fr); }
    .bento-item.large { grid-column: span 2; }
}

/* ========================================
   🎀 SMOOTH SCROLL ANIMATIONS - DETAILS PAGE
   ======================================== */

/* Base reveal class */
.reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 1s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.reveal-delay-7 { transition-delay: 0.7s; }
.reveal-delay-8 { transition-delay: 0.8s; }

/* Different animation types */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px) rotate(-2deg);
    transition: all 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0) rotate(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px) rotate(2deg);
    transition: all 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal-right.active {
    opacity: 1;
    transform: translateX(0) rotate(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.7) rotate(-5deg);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal-scale.active {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.reveal-float {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal-float.active {
    opacity: 1;
    transform: translateY(0);
    animation: float 3s ease-in-out infinite;
}

/* ========================================
   🎀 FLOATING ANIMATION
   ======================================== */

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========================================
   🎀 SLIDE UP FOR BENTO ITEMS
   ======================================== */

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bento-item {
    animation: slideUp 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.bento-item:nth-child(1) { animation-delay: 0.1s; }
.bento-item:nth-child(2) { animation-delay: 0.2s; }
.bento-item:nth-child(3) { animation-delay: 0.3s; }
.bento-item:nth-child(4) { animation-delay: 0.4s; }
.bento-item:nth-child(5) { animation-delay: 0.5s; }

/* ========================================
   🎀 SPECIALTY CARDS STAGGER
   ======================================== */

.specialty-card {
    animation: slideUp 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.specialty-card:nth-child(1) { animation-delay: 0.1s; }
.specialty-card:nth-child(2) { animation-delay: 0.3s; }
.specialty-card:nth-child(3) { animation-delay: 0.5s; }
.specialty-card:nth-child(4) { animation-delay: 0.7s; }

/* ========================================
   🎀 GENTLE HOVER EFFECTS
   ======================================== */

/* Back button hover */
.back-btn {
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.back-btn:hover {
    transform: translateX(-5px) scale(1.05);
}

/* Bento item hover */
.bento-item {
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.bento-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 159, 186, 0.3);
}

/* Overlay text on bento */
.bento-item .overlay-text {
    transition: all 0.4s ease;
}
.bento-item:hover .overlay-text {
    background: #ff9fba;
    color: white;
    transform: scale(1.05);
}

/* Specialty card hover */
.specialty-card {
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.specialty-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 30px rgba(255, 159, 186, 0.3);
    border-color: #ff6b8a;
}

/* Story box hover */
.story-box {
    transition: all 0.4s ease;
}
.story-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 159, 186, 0.2);
}

/* Story image hover */
.story-img {
    transition: all 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.story-img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 159, 186, 0.3);
}

/* ========================================
   🎀 TINY HEARTS BOBBING
   ======================================== */

@keyframes bobHeart {
    0%, 100% { transform: translateY(0) rotate(-15deg); }
    50% { transform: translateY(-8px) rotate(-10deg); }
}

.heart-left {
    animation: bobHeart 2.5s ease-in-out infinite;
}

@keyframes bobHeartRight {
    0%, 100% { transform: translateY(0) rotate(15deg); }
    50% { transform: translateY(-8px) rotate(10deg); }
}

.heart-right {
    animation: bobHeartRight 2.5s ease-in-out infinite 0.5s;
}

/* ========================================
   🎀 CUTE MASCOT FLOAT
   ======================================== */

.cute-mascot {
    transition: all 0.6s ease;
    animation: float 3s ease-in-out infinite;
}

/* ========================================
   🎀 SOCIAL ICONS GENTLE PULSE
   ======================================== */

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.footer-socials img {
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.footer-socials img:hover {
    transform: scale(1.3) rotate(-5deg);
}

/* ========================================
   🎀 SMOOTH SCROLLBAR (cute pink)
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fff2f6;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff9fba, #ff6b8a);
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff6b8a, #ff9fba);
}

/* ========================================
   🎀 FADE IN ON PAGE LOAD
   ======================================== */

body {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: scale(0.98); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

/* ========================================
   🎀 SMOOTH SCROLL BEHAVIOR
   ======================================== */

html {
    scroll-behavior: smooth;
}