/* ============================================
   SHADOW STYLE SHOP — Visual Enhancements
   Overlays on base styles for modern look
   ============================================ */

/* ── Smoother Reveal Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.revealed {
    opacity: 1 !important;
    transform: translate(0) !important;
}

/* Stagger reveal children */
.why-us__grid .feature-card:nth-child(1) { transition-delay: 0s; }
.why-us__grid .feature-card:nth-child(2) { transition-delay: 0.1s; }
.why-us__grid .feature-card:nth-child(3) { transition-delay: 0.2s; }
.why-us__grid .feature-card:nth-child(4) { transition-delay: 0.3s; }

.numbers-grid .number-card:nth-child(1) { transition-delay: 0s; }
.numbers-grid .number-card:nth-child(2) { transition-delay: 0.1s; }
.numbers-grid .number-card:nth-child(3) { transition-delay: 0.2s; }
.numbers-grid .number-card:nth-child(4) { transition-delay: 0.3s; }

/* ── Enhanced Card Hover Effects ── */
.feature-card,
.product-card,
.contact-card,
.number-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(194, 29, 39, 0.15),
                0 0 0 1px rgba(194, 29, 39, 0.2);
}

.feature-card__icon {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease;
}
.feature-card:hover .feature-card__icon {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 0 25px rgba(194, 29, 39, 0.4);
}

/* ── Glassmorphism on CTA box ── */
.cta__box {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(194, 29, 39, 0.06) !important;
    border: 1px solid rgba(194, 29, 39, 0.15) !important;
}

/* ── Button Enhancements ── */
.btn--primary {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease;
}
.btn--primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}
.btn--primary:hover::after {
    width: 300px;
    height: 300px;
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(194, 29, 39, 0.4);
}
.btn--primary:active {
    transform: translateY(0);
}

.btn--outline {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn--outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 197, 197, 0.1);
}

/* ── Hero Section Polish ── */
.hero__title {
    text-shadow: 0 0 60px rgba(194, 29, 39, 0.15);
}

.hero__logo {
    animation: logo-pulse 4s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% { box-shadow: 0 0 40px rgba(194, 29, 39, 0.3), 0 0 80px rgba(194, 29, 39, 0.1); }
    50% { box-shadow: 0 0 50px rgba(194, 29, 39, 0.4), 0 0 100px rgba(194, 29, 39, 0.15); }
}

/* ── Floating particles on hero ── */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(194, 29, 39, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 60%, rgba(197, 197, 197, 0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 10%, rgba(194, 29, 39, 0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 40%, rgba(197, 197, 197, 0.15) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 70%, rgba(194, 29, 39, 0.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 20% 80%, rgba(197, 197, 197, 0.15) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 90%, rgba(194, 29, 39, 0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 15%, rgba(197, 197, 197, 0.2) 0%, transparent 100%);
    animation: stars-drift 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes stars-drift {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

/* ── Section Dividers ── */
.section + .section {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* ── Enhanced Section Tags ── */
.section__tag {
    position: relative;
    overflow: hidden;
}
.section__tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(194, 29, 39, 0.1), transparent);
    animation: tag-shimmer 4s ease-in-out infinite;
}
@keyframes tag-shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* ── Smooth page transitions ── */
body {
    animation: pageIn 0.5s ease-out;
}
@keyframes pageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Product Card Polish ── */
.product-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(194, 29, 39, 0.15);
}

.product-card__image img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-card__image img {
    transform: scale(1.08);
}

/* ── Navbar Glass Effect ── */
.navbar.scrolled {
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

/* ── Footer Enhancement ── */
.footer {
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(194, 29, 39, 0.3), transparent);
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--red-primary), var(--red-dark));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--red-primary);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--red-primary) var(--bg-primary);
}

/* ── Selection Color ── */
::selection {
    background: rgba(194, 29, 39, 0.3);
    color: var(--text-primary);
}

/* ── Focus States ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--red-primary);
    outline-offset: 2px;
}

/* ── Reduced Motion Support ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal, .reveal-left, .reveal-right {
        opacity: 1 !important;
        transform: none !important;
    }
}
