:root {
    --primary-color: #8C5FC2;
    --secondary-color: #5E3A8C;
    --dark-color: #2D2D2D;
    --light-color: #F8F9FA;
    --text-font: 'Outfit', sans-serif;
    --heading-font: 'Playfair Display', serif;
    --accent-font: 'Dancing Script', cursive;
}

body {
    font-family: var(--text-font);
    color: var(--dark-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    font-weight: 700;
}

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

.loader-content {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preloader-logo.big-logo {
    width: 180px;
    /* Bigger logo */
    height: auto;
    border-radius: 50%;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(140, 95, 194, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(140, 95, 194, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(140, 95, 194, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(140, 95, 194, 0);
    }
}

/* Navbar */
.navbar-brand img {
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.header-logo {
    height: 130px;
    /* Significantly BIGGER header logo */
    width: auto;
    transition: transform 0.3s ease;
    margin-top: 10px;
    /* Slight push for visual balance */
}

.header-logo:hover {
    transform: scale(1.1) rotate(5deg);
    /* 3D-like feel */
}

.blur-nav {
    background: rgba(140, 95, 194, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    /* Increased padding */
    transition: all 0.3s ease;
}

.text-warning {
    color: #ffd700 !important;
    /* Brighter gold */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-link {
    color: #fff !important;
    font-weight: 600;
    /* Bolder */
    margin: 0 20px;
    position: relative;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.3s;
}

.nav-link:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: #FFC107;
    transition: width 0.3s;
    margin: 0 auto;
    border-radius: 2px;
}

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

/* 3D Button Hover Effect */
.btn-outline-primary,
.custom-btn {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    /* Bouncy 3D feel */
}

.btn-outline-primary:hover,
.custom-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer Logo */
.footer-logo {
    max-width: 240px;
    /* Bigger footer logo */
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Gallery Fix Styles */
.gallery-item {
    transition: transform 0.4s ease, opacity 0.4s ease;
    /* Important for layout stability */
}


/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: url('../images/fresh_cream_cake.png') no-repeat center center/cover;
    position: relative;
    padding-top: 220px;
    /* Push content down below the fixed header */
    display: flex;
    align-items: center;
    /* Center vertically if space allows */
    justify-content: center;
}

/* Adjust for mobile header height if needed */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 240px;
        /* Extra space for stacking branding */
    }
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(45, 10, 60, 0.7), rgba(45, 10, 60, 0.4));
}

.custom-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(140, 95, 194, 0.4);
}

.custom-btn:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* About Section Overlay */
.about-logo-overlay {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    display: none;
    /* Hidden on mobile */
    z-index: 10;
}

@media (min-width: 768px) {
    .about-logo-overlay {
        display: block;
    }
}

.about-logo-overlay img {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Services Cards & 3D Effect */
.service-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: none;
    position: relative;
    /* 3D Tilt Setup */
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.tilt-card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1), -20px -20px 60px rgba(255, 255, 255, 0.5);
    z-index: 5;
}

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

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-card:hover .service-img {
    transform: scale(1.15);
}

.service-body {
    padding: 30px;
    text-align: center;
    background: #fff;
    position: relative;
    z-index: 2;
}

.service-body h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-family: var(--heading-font);
}

/* Gallery Section */
.filter-btn {
    margin: 5px;
    border-radius: 30px;
    padding: 8px 25px;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(140, 95, 194, 0.3);
}

.gallery-container {
    padding-top: 20px;
}

.gallery-item {
    transition: all 0.4s ease;
}

.gallery-item.hide {
    display: none;
}

.gallery-item.show {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-img-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 250px;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(140, 95, 194, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i {
    color: #fff;
    font-size: 2rem;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.gallery-img-wrapper:hover .gallery-overlay {
    opacity: 1;
}

.gallery-img-wrapper:hover .gallery-overlay i {
    transform: scale(1);
}

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

/* Lightbox */
.lightbox {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeInLightbox 0.3s;
}

@keyframes fadeInLightbox {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-lightbox:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: #1a0f2e;
    color: #bdbdbd;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.2rem;
}

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

.footer-logo {
    max-width: 180px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Floating Buttons */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    /* Switched to Left */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    /* Switched to Right */
    background-color: var(--primary-color);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 24px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-5px);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .display-2 {
        font-size: 2.5rem;
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }

    .about-logo-overlay {
        display: none;
        /* Ensure hidden on mobile */
    }
}