/* ============================================
   Sweet Temptations — Custom Styles
   Charcoal + Coral | Vibrant Modern Bakery
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #121316;
    color: #e2e3e5;
    overflow-x: hidden;
}

::selection {
    background-color: #FF6B6B;
    color: #121316;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1e1f24;
}
::-webkit-scrollbar-thumb {
    background: #4a4c54;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #FF6B6B;
}

/* --- Hero Decorative Shapes --- */
.hero-deco {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid rgba(255, 107, 107, 0.08);
}

.shape-circle-2 {
    bottom: 15%;
    left: 45%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.05);
}

.shape-circle-3 {
    top: 40%;
    right: 38%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(255, 107, 107, 0.12);
}

.shape-triangle {
    top: 20%;
    left: 5%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 107, 107, 0.06);
    transform: rotate(-15deg);
}

.shape-square-1 {
    bottom: 25%;
    right: 8%;
    width: 70px;
    height: 70px;
    background: rgba(255, 107, 107, 0.08);
    transform: rotate(45deg);
    border-radius: 8px;
}

.shape-square-2 {
    top: 60%;
    left: 8%;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 107, 107, 0.1);
    transform: rotate(30deg);
    border-radius: 6px;
}

.shape-dots {
    top: 30%;
    left: 42%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(255, 107, 107, 0.2) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: 0.6;
}

/* --- Floating Cards --- */
.floating-card {
    z-index: 20;
}

.card-float-1 {
    animation: floatCard1 4s ease-in-out infinite;
}

.card-float-2 {
    animation: floatCard2 5s ease-in-out infinite;
}

@keyframes floatCard1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* --- Scroll Reveal --- */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hidden state for JS-enhanced reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered delays */
.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.3s; }

/* --- Navbar --- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(18, 19, 22, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 107, 107, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- Mobile Menu --- */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.hamburger-line {
    transition: all 0.3s ease;
}

#mobileMenuBtn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#mobileMenuBtn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#mobileMenuBtn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* --- Button Focus States --- */
a:focus-visible, button:focus-visible {
    outline: 2px solid #FF6B6B;
    outline-offset: 3px;
    border-radius: 4px;
}

/* --- Image Loading --- */
img {
    background-color: #2d2f35;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 150px;
        height: 150px;
    }
    .shape-triangle {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 52px solid rgba(255, 107, 107, 0.06);
    }
    .shape-square-1, .shape-square-2 {
        display: none;
    }
}
