/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f3e8ff;
}
::-webkit-scrollbar-thumb {
    background: #7B2CBF;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6b21a8;
}

/* Navigation */
.nav-fixed {
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.nav-fixed.scrolled {
    box-shadow: 0 4px 20px rgba(123, 44, 191, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f59e0b;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #7B2CBF !important;
}

/* Mobile Menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    position: relative;
    padding-left: 0;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-nav-link:hover {
    padding-left: 8px;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #f59e0b;
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::before {
    width: 4px;
}

/* Mobile menu button animation */
.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: linear-gradient(135deg, #7B2CBF 0%, #6b21a8 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 44, 191, 0.4);
    background: linear-gradient(135deg, #8b3dd0 0%, #7B2CBF 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: white;
    color: #7B2CBF;
    border: 2px solid #7B2CBF;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #f3e8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.15);
}

.btn-dark {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: #1e0a4a;
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 10, 74, 0.3);
}

.btn-dark:hover {
    transform: translateY(-2px);
    background: #2d1160;
    box-shadow: 0 8px 25px rgba(30, 10, 74, 0.4);
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: transparent;
    color: #1e0a4a;
    border: 2px solid #1e0a4a;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background: #1e0a4a;
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #faf5ff 0%, #fffbeb 50%, #f3e8ff 100%);
    position: relative;
}

.hero-shape {
    transition: transform 0.5s ease;
}

.hero-shape:hover {
    transform: scale(1.1);
}

/* Product Cards */
.product-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* Gallery */
.gallery-item {
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.7s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Scroll Reveal Animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-left.revealed {
        opacity: 1;
        transform: translateX(0);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-right.revealed {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reduced motion - ensure content is always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}
