/* DEBUT MEDIA - Custom Styles */

/* Small CSS overrides for design details */
.time-label { 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
}

.dot-red { background-color: #FF5F57; }
.dot-yellow { background-color: #FFBD2E; }
.dot-green { background-color: #28C840; }

/* Ensure sections have padding to account for fixed header */
section { 
    scroll-margin-top: 2rem; 
} 

@media (min-width: 640px) { 
    section { scroll-margin-top: 4rem; } 
}

/* data-bind targets will be hidden briefly until JS applies the data to prevent layout flash */
[data-bind] { 
    visibility: hidden; 
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}

[data-bind].data-bound { 
    visibility: visible; 
    opacity: 1;
}

/* Smooth reveal animation for list items */
#eventDetails_eventOrder_list p {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Premium Card Effects */
.profile-frame {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: float 6s ease-in-out infinite;
}

.profile-frame:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 40px 60px -15px rgba(140, 77, 74, 0.15);
}

/* Float animation for the main portrait */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Shimmer effect for sections */
section {
    position: relative;
    overflow: hidden;
}

section::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 45%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.05) 55%,
        transparent 100%
    );
    transform: translateX(-100%) rotate(45deg);
    transition: all 0.6s ease;
    pointer-events: none;
}

section:hover::after {
    transform: translateX(100%) rotate(45deg);
}

/* Countdown Number - Animated Transition */
.countdown-timer span {
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.num-ticking {
    animation: tickUp 0.3s ease-out forwards;
}

@keyframes tickUp {
    0% { opacity: 0.5; transform: translateY(2px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Background Animated Gradient */
.main-content-bg-wrapper {
    background: linear-gradient(-45deg, #F6E8DA, #FEFEFE, #fdf5ec, #F6E8DA);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* Button Transformations */
button, .btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

button:hover {
    transform: translateY(-2px) scale(1.05);
    filter: brightness(1.1);
}

button:active {
    transform: translateY(0) scale(0.95);
}

/* Global Smooth Scroll */
html {
    scroll-behavior: smooth;
}
/* Interactive Sparkle Effect */
.sparkle {
    position: fixed;
    pointer-events: none;
    width: 6px;
    height: 6px;
    background: #C98B82; /* accent-medium */
    border-radius: 50%;
    z-index: 1000;
    filter: blur(0.5px);
    box-shadow: 0 0 8px #E4A89B;
    animation: sparkle-fade 0.8s ease-out forwards;
}

@keyframes sparkle-fade {
    0% { transform: scale(0); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(0.5) translate(var(--dx), var(--dy)); opacity: 0; }
}
