/* ----------------------------------------------------------------------------------------
* File          : Site Enhancements CSS
* Description   : Enhanced hover effects, button states, and consistency improvements
* Version       : 1.0
* ---------------------------------------------------------------------------------------- */

/* ===========================
   CONSISTENT BUTTON STYLES
   =========================== */

/* Base button improvements */
.btn-default,
.btn-highlighted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.btn-default:hover,
.btn-highlighted:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-default:active,
.btn-highlighted:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.1s ease;
}

/* Ripple effect on click */
.btn-default:before,
.btn-highlighted:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-default:active:before,
.btn-highlighted:active:before {
    width: 300px;
    height: 300px;
}

/* ===========================
   ENHANCED CARD HOVER EFFECTS
   =========================== */

/* Product cards */
.product-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    overflow: hidden;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.product-item:hover .product-item-image img {
    transform: scale(1.05);
}

.product-item .product-item-image {
    overflow: hidden;
    border-radius: 12px;
}

.product-item .product-item-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* About us items */
.about-us-item {
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 10px;
}

.about-us-item:hover {
    background: rgba(228, 168, 83, 0.05);
    transform: translateX(5px);
}

.about-us-item .icon-box {
    transition: transform 0.3s ease;
}

.about-us-item:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* Why choose items */
.why-choose-item {
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 10px;
}

.why-choose-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.why-choose-item .icon-box {
    transition: transform 0.3s ease;
}

.why-choose-item:hover .icon-box {
    transform: scale(1.1);
}

/* ===========================
   SLIDER/CAROUSEL CARDS
   =========================== */

/* Custom cake slider cards */
.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.card .card-image {
    overflow: hidden;
    position: relative;
}

.card .card-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card .card-icon {
    transition: all 0.3s ease;
    opacity: 0.7;
}

.card:hover .card-icon {
    opacity: 1;
    transform: scale(1.1) rotate(45deg);
}

/* ===========================
   GALLERY ENHANCEMENTS
   =========================== */

.photo-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.photo-gallery:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.photo-gallery img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}

.photo-gallery:hover img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

/* Gallery overlay effect */
.photo-gallery:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(228, 168, 83, 0.2), rgba(85, 43, 47, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.photo-gallery:hover:after {
    opacity: 1;
}

/* ===========================
   FORM INPUT ENHANCEMENTS
   =========================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
select,
textarea {
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 15px;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="date"]:hover,
input[type="time"]:hover,
select:hover,
textarea:hover {
    border-color: #bbb;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #e4a853;
    box-shadow: 0 0 0 3px rgba(228, 168, 83, 0.1);
    transform: translateY(-1px);
}

/* ===========================
   LINK HOVER EFFECTS
   =========================== */

/* Social links */
.header-social-links a,
.footer-social-links a {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-social-links a:hover,
.footer-social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    color: #e4a853;
}

/* Footer menu links */
.footer-menu a {
    transition: all 0.3s ease;
    position: relative;
}

.footer-menu a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e4a853;
    transition: width 0.3s ease;
}

.footer-menu a:hover:after {
    width: 100%;
}

/* Navigation links */
.navbar-nav .nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #e4a853;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
    width: 80%;
}

/* ===========================
   TESTIMONIAL ENHANCEMENTS
   =========================== */

.testimonial-item {
    transition: all 0.3s ease;
    padding: 30px;
    border-radius: 12px;
}

.testimonial-item:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: scale(1.02);
}

.author-image {
    transition: all 0.3s ease;
    border-radius: 50%;
    overflow: hidden;
}

.testimonial-item:hover .author-image {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(228, 168, 83, 0.3);
}

/* ===========================
   COUNTER ANIMATIONS
   =========================== */

.testimonial-counter-item {
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 10px;
}

.testimonial-counter-item:hover {
    background: rgba(228, 168, 83, 0.05);
    transform: translateY(-5px);
}

.testimonial-counter-item .icon-box {
    transition: transform 0.3s ease;
}

.testimonial-counter-item:hover .icon-box {
    transform: rotate(360deg) scale(1.1);
}

/* ===========================
   LOADING STATES
   =========================== */

.loading-button {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.loading-button:after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

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

/* ===========================
   SCROLL ANIMATIONS
   =========================== */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   HERO SECTION ENHANCEMENTS
   =========================== */

.hero-content-list ul li {
    transition: all 0.3s ease;
    padding: 8px 12px;
}

.hero-content-list ul li:hover {
    transform: translateX(5px);
    color: #e4a853;
}

.video-play-button a {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-play-button a:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 24px rgba(228, 168, 83, 0.4);
}

/* ===========================
   CONTACT BOX ENHANCEMENTS
   =========================== */

.why-choose-cta-box {
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 20px;
}

.why-choose-cta-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ===========================
   SMOOTH TRANSITIONS
   =========================== */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===========================
   FOCUS STATES FOR ACCESSIBILITY
   =========================== */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #e4a853;
    outline-offset: 2px;
}

/* ===========================
   CUSTOM SCROLLBAR ENHANCEMENTS
   =========================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e4a853 0%, #552b2f 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #d4983f 0%, #451f23 100%);
}

/* ===========================
   SPACING CONSISTENCY
   =========================== */

.section-padding {
    padding: 80px 0;
}

.section-margin {
    margin: 80px 0;
}

@media (max-width: 991px) {
    .section-padding {
        padding: 60px 0;
    }

    .section-margin {
        margin: 60px 0;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 40px 0;
    }

    .section-margin {
        margin: 40px 0;
    }
}

/* ===========================
   MICRO-INTERACTIONS
   =========================== */

/* Scale on hover for interactive elements */
.interactive-scale {
    transition: transform 0.3s ease;
}

.interactive-scale:hover {
    transform: scale(1.05);
}

/* Bounce animation for important CTAs */
@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.bounce-on-hover:hover {
    animation: gentle-bounce 0.6s ease;
}

/* Shake animation for errors/validation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.shake-error {
    animation: shake 0.4s ease;
}

/* Make entire product cards clickable */
.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.product-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.hero-info-video-box {
    cursor: pointer;
}

.hero-info-video-box:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* ===========================
   SUCCESS MODAL
   =========================== */

.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-modal {
    background: #fff;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.success-modal-overlay.active .success-modal {
    transform: scale(1) translateY(0);
}

.success-modal-header {
    background: linear-gradient(135deg, #e4a853 0%, #d4983f 100%);
    padding: 40px 30px 30px;
    text-align: center;
    position: relative;
}

.success-modal-icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@keyframes successPop {
    0% { transform: scale(0) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.success-modal-icon i {
    font-size: 40px;
    color: #e4a853;
    animation: checkmark 0.8s ease-in-out 0.3s both;
}

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

.success-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    animation: slideDown 0.6s ease-out 0.2s both;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-modal-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    animation: slideDown 0.6s ease-out 0.3s both;
}

.success-modal-body {
    padding: 30px;
    animation: fadeIn 0.6s ease-out 0.4s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-modal-detail {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.success-modal-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.success-modal-detail-row:last-child {
    border-bottom: none;
    padding-top: 15px;
    margin-top: 5px;
    font-weight: 700;
    font-size: 18px;
}

.success-modal-detail-label {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.success-modal-detail-value {
    color: #212529;
    font-weight: 600;
    font-size: 15px;
}

.success-modal-message {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.success-modal-message i {
    color: #e4a853;
    margin-right: 5px;
}

.success-modal-actions {
    display: flex;
    gap: 12px;
}

.success-modal-btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.success-modal-btn-primary {
    background: linear-gradient(135deg, #e4a853 0%, #d4983f 100%);
    color: #fff;
}

.success-modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(228, 168, 83, 0.4);
}

.success-modal-btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e9ecef;
}

.success-modal-btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 576px) {
    .success-modal {
        width: 95%;
        margin: 20px;
    }

    .success-modal-header {
        padding: 30px 20px 20px;
    }

    .success-modal-icon {
        width: 70px;
        height: 70px;
    }

    .success-modal-icon i {
        font-size: 35px;
    }

    .success-modal-title {
        font-size: 24px;
    }

    .success-modal-body {
        padding: 20px;
    }

    .success-modal-actions {
        flex-direction: column;
    }

    .success-modal-btn {
        width: 100%;
    }
}
