/* Malla - Global Styles */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

:root {
    --color-primary: #b45309;
    --color-primary-dark: #92400e;
    --color-secondary: #78716c;
    --color-accent: #f59e0b;
    --color-bg: #fafaf9;
    --color-surface: #ffffff;
    --color-text: #292524;
    --color-text-muted: #78716c;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-sine: cubic-bezier(0.37, 0, 0.63, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography refinements */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    letter-spacing: -0.02em;
}

/* Custom animations */
@keyframes pulse-slow {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.15; transform: scale(1.02); }
}

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

@keyframes tube-roll {
    0% { transform: translateX(-100%) rotate(0deg); }
    100% { transform: translateX(100%) rotate(720deg); }
}

.animate-pulse-slow {
    animation: pulse-slow 8s ease-in-out infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Scroll-triggered reveals */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Selection color */
::selection {
    background: rgba(180, 83, 9, 0.2);
    color: var(--color-text);
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Button hover lift effect */
.btn-lift {
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}

.btn-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px -12px rgba(180, 83, 9, 0.25);
}

/* Image loading placeholder */
img {
    background: linear-gradient(110deg, #f5f5f4 8%, #fafaf9 18%, #f5f5f4 33%);
    background-size: 200% 100%;
}

/* Video container aspect ratio */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container video,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Mobile menu animation */
.mobile-menu-enter {
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-menu-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Product card hover */
.product-card {
    transition: transform 0.5s var(--ease-out-expo);
}

.product-card:hover {
    transform: translateY(-8px);
}

/* Blog card image zoom */
.blog-card-image {
    transition: transform 0.7s var(--ease-out-expo);
}

.group:hover .blog-card-image {
    transform: scale(1.05);
}

/* Form styles */
input, textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.1);
}

/* Bell sound visualizer */
.bell-wave {
    position: absolute;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    opacity: 0;
    animation: bell-wave 1.5s ease-out infinite;
}

@keyframes bell-wave {
    0% {
        width: 20px;
        height: 20px;
        opacity: 0.6;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

/* Timer visualization */
.timer-track {
    position: relative;
    height: 4px;
    background: #e7e5e4;
    border-radius: 2px;
    overflow: hidden;
}

.timer-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Loading state */
.loading-shimmer {
    background: linear-gradient(90deg, #f5f5f4 25%, #e7e5e4 50%, #f5f5f4 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}