/* ===== Loading Screen ===== */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff5f7, #ffe8f0, #fff0f5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

/* Cake Animation Container */
.cake-animation {
    position: relative;
    width: 180px;
    height: 220px;
    margin: 0 auto 2rem;
}

/* Plate */
.cake-plate {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 14px;
    background: linear-gradient(to bottom, #e0e0e0, #bdbdbd);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Cake Layers */
.cake-layer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    border-radius: 12px 12px 4px 4px;
    transform-origin: bottom center;
}

.cake-layer-1 {
    bottom: 12px;
    width: 120px;
    height: 50px;
    background: linear-gradient(to bottom, #ec407a, #e91e63);
    animation: buildLayer 0.8s ease-out 0.5s forwards;
    border-radius: 8px 8px 12px 12px;
    box-shadow: 0 3px 10px rgba(233,30,99,0.25);
}

.cake-layer-2 {
    bottom: 58px;
    width: 100px;
    height: 45px;
    background: linear-gradient(to bottom, #f48fb1, #ec407a);
    animation: buildLayer 0.8s ease-out 1.3s forwards;
    border-radius: 8px 8px 10px 10px;
    box-shadow: 0 3px 10px rgba(233,30,99,0.2);
}

.cake-layer-3 {
    bottom: 99px;
    width: 80px;
    height: 40px;
    background: linear-gradient(to bottom, #f8bbd0, #f48fb1);
    animation: buildLayer 0.8s ease-out 2.1s forwards;
    border-radius: 10px 10px 8px 8px;
    box-shadow: 0 3px 10px rgba(233,30,99,0.15);
}

/* Frosting */
.cake-frosting {
    position: absolute;
    bottom: 135px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 90px;
    height: 12px;
    background: linear-gradient(to bottom, #ffffff, #fce4ec);
    border-radius: 0 0 20px 20px;
    animation: frostingDrip 0.6s ease-out 2.9s forwards;
}

.cake-frosting::before,
.cake-frosting::after {
    content: '';
    position: absolute;
    top: 8px;
    width: 12px;
    height: 18px;
    background: linear-gradient(to bottom, #ffffff, #f8bbd0);
    border-radius: 0 0 50% 50%;
}

.cake-frosting::before {
    left: 15px;
    height: 22px;
    animation: dripDown 0.5s ease-out 3.2s forwards;
    transform: scaleY(0);
    transform-origin: top;
}

.cake-frosting::after {
    right: 20px;
    height: 16px;
    animation: dripDown 0.5s ease-out 3.4s forwards;
    transform: scaleY(0);
    transform-origin: top;
}

/* Cherry */
.cake-cherry {
    position: absolute;
    bottom: 148px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 22px;
    height: 22px;
    background: radial-gradient(circle at 35% 35%, #ff5252, #c62828);
    border-radius: 50%;
    animation: cherryDrop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 3.5s forwards;
    box-shadow: 0 2px 8px rgba(198,40,40,0.3);
}

.cake-cherry::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 10px;
    background: #4caf50;
    border-radius: 2px;
}

/* Candle */
.cake-candle {
    position: absolute;
    bottom: 139px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    animation: cherryDrop 0.4s ease-out 3.8s forwards;
}

.candle-stick {
    width: 8px;
    height: 30px;
    background: linear-gradient(135deg, #fff9c4, #ffeb3b);
    border-radius: 3px;
    margin: 0 auto;
    box-shadow: 0 0 6px rgba(255,235,59,0.3);
}

.candle-flame {
    width: 12px;
    height: 18px;
    background: radial-gradient(ellipse at center bottom, #ff9800, #ff5722, transparent);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    margin: 0 auto -2px;
    animation: flicker 0.3s infinite alternate;
    filter: blur(0.5px);
}

/* Loader text */
.loader-text {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: #c2185b;
    margin-bottom: 1.5rem;
}

.loader-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

/* Progress bar */
.loader-progress {
    width: 200px;
    height: 5px;
    background: #fce4ec;
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f8bbd0, #f06292, #c2185b);
    border-radius: 10px;
    animation: progressFill 5.5s ease-out forwards;
}

/* Loading Keyframes */
@keyframes buildLayer {
    0% { transform: translateX(-50%) scaleY(0); }
    60% { transform: translateX(-50%) scaleY(1.1); }
    100% { transform: translateX(-50%) scaleY(1); }
}

@keyframes frostingDrip {
    0% { transform: translateX(-50%) scaleX(0); }
    100% { transform: translateX(-50%) scaleX(1); }
}

@keyframes dripDown {
    0% { transform: scaleY(0); }
    100% { transform: scaleY(1); }
}

@keyframes cherryDrop {
    0% { transform: translateX(-50%) scale(0); }
    60% { transform: translateX(-50%) scale(1.2); }
    100% { transform: translateX(-50%) scale(1); }
}

@keyframes flicker {
    0% { transform: scale(1) rotate(-3deg); opacity: 0.9; }
    100% { transform: scale(1.1) rotate(3deg); opacity: 1; }
}

@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

@keyframes progressFill {
    0% { width: 0%; }
    20% { width: 15%; }
    40% { width: 35%; }
    60% { width: 55%; }
    80% { width: 80%; }
    100% { width: 100%; }
}


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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #4a3b3c;
    background-color: #fffafb;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Constants & Variables */
:root {
    --primary-color: #f06292;
    --primary-light: #f8bbd0;
    --primary-dark: #c2185b;
    --accent: #f48fb1;
    --text-color: #4a3b3c;
    --text-light: #8e7a7c;
    --bg-light: #fffafb;
    --white: #ffffff;
    --gold: #d4af37;
    --shadow: 0 10px 30px rgba(240, 98, 146, 0.15);
    --border-radius: 20px;
}

/* Typography */
h1, h2, h3, h4, .logo {
    font-family: 'Playfair Display', serif;
    color: var(--primary-dark);
}

.logo {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(240, 98, 146, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(240, 98, 146, 0.4);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem;
    gap: 4rem;
    position: relative;
}

.hero-content {
    flex: 1;
    animation: fade-in-up 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ffe0e9, var(--primary-light));
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite;
    z-index: -1;
}

.floating-img {
    width: 100%;
    max-width: 450px;
    border-radius: var(--border-radius);
    animation: float 6s ease-in-out infinite;
    box-shadow: var(--shadow);
    border: 8px solid white;
}

/* About Section */
.about {
    background: linear-gradient(to bottom, var(--bg-light), #fffefe);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.divider {
    height: 3px;
    width: 80px;
    background: var(--gold);
    margin: 0 auto;
    border-radius: 5px;
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    list-style: none;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.features li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.features i {
    font-size: 2.5rem;
    color: var(--primary-color);
    background: white;
    padding: 1rem;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.features span {
    font-weight: 500;
    font-size: 1.1rem;
}

/* Menu / Products Section */
.menu {
    padding: 6rem 2rem;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(240, 98, 146, 0.1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(240, 98, 146, 0.2);
}

.card-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card-body {
    padding: 2rem;
    text-align: center;
}

.card-body h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.card-body p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.card-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    border: 2px solid var(--primary-light);
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background: var(--primary-light);
    color: var(--white);
}

.card-btn i {
    margin-left: 0.5rem;
}

/* Instagram Section */
.instagram {
    padding: 6rem 2rem;
    background-color: var(--bg-light);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: start;
    margin-top: 4rem;
}

.ig-embed-wrapper {
    width: 100%;
    max-width: 540px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    background: #fff;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(240, 98, 146, 0.1);
}

.ig-embed-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(240, 98, 146, 0.15);
}

.ig-embed-wrapper iframe {
    width: 100%;
    min-height: 600px;
    border: none;
    display: block;
}

/* Footer Section */
.footer {
    background: linear-gradient(to right, #ffebee, var(--bg-light));
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(240, 98, 146, 0.2);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-light);
}

.footer h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.footer-contact ul {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
}

.footer-contact i {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(240, 98, 146, 0.2);
    color: var(--text-light);
    font-size: 0.9rem;
}

.designed-by {
    font-size: 0.7rem;
    margin-top: 0.5rem;
    opacity: 0.6;
}

.designed-by a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.designed-by a:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
    100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

@keyframes fade-in-up {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }

    .blob-bg {
        width: 300px;
        height: 300px;
    }

    .floating-img {
        max-width: 350px;
    }

    .section-header h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        padding: 2rem 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .logo {
        font-size: 1.8rem;
    }

    .hero {
        padding: 7rem 1.5rem 2rem;
        gap: 2rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .features {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .blob-bg {
        width: 220px;
        height: 220px;
    }
    
    .floating-img {
        max-width: 260px;
    }

    /* Sections padding */
    .about,
    .menu,
    .instagram {
        padding: 4rem 1.2rem;
    }

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

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    /* Cards */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }

    .card-img-wrapper {
        height: 200px;
    }

    .card-body h3 {
        font-size: 1.4rem;
    }

    .card-body p {
        font-size: 0.9rem;
    }

    /* Instagram */
    .instagram-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .ig-embed-wrapper iframe {
        min-height: 500px;
    }

    /* Footer */
    .footer {
        padding: 3rem 1.2rem 1.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    /* Loading screen mobile */
    .loader-text {
        font-size: 1.5rem;
    }

    .cake-animation {
        transform: scale(0.85);
    }

    .loader-progress {
        width: 160px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    .blob-bg {
        width: 180px;
        height: 180px;
    }

    .floating-img {
        max-width: 220px;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .features i {
        font-size: 2rem;
        padding: 0.8rem;
    }

    .features span {
        font-size: 0.95rem;
    }

    .ig-embed-wrapper iframe {
        min-height: 450px;
    }

    .cake-animation {
        transform: scale(0.75);
    }

    .loader-text {
        font-size: 1.3rem;
    }
}
