/* Custom styles for Sugar Art Studio */

/* Ensure smooth rendering */
html, body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #f5e8ed;
}

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #2a1017 0%, #4e222e 100%);
    min-height: 100px;
}

/* Subtle grain texture overlay (optional, for depth) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 9999;
}

/* Smooth transitions for all interactive elements */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile menu backdrop */
.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 10, 16, 0.7);
    backdrop-filter: blur(4px);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.mobile-menu-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

/* Stagger animation delays for menu cards */
.menu-card:nth-child(1) { transition-delay: 0.1s; }
.menu-card:nth-child(2) { transition-delay: 0.2s; }
.menu-card:nth-child(3) { transition-delay: 0.3s; }

/* Image reveal stagger */
.img-reveal:nth-child(1) { transition-delay: 0s; }
.img-reveal:nth-child(2) { transition-delay: 0.1s; }
.img-reveal:nth-child(3) { transition-delay: 0.2s; }
.img-reveal:nth-child(4) { transition-delay: 0.3s; }
.img-reveal:nth-child(5) { transition-delay: 0.4s; }

/* Navbar scroll behavior */
.nav-scrolled {
    background: rgba(26, 10, 16, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(116, 48, 67, 0.3);
}

/* Print styles */
@media print {
    .hero-bg, .mobile-menu, #navbar { display: none; }
    body { background: white; color: black; }
    .gold-shimmer { -webkit-text-fill-color: #b45309; }
}
