/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Thin decorative lines */
.thin-line {
    opacity: 0.6;
}

/* Navigation scroll state */
nav.scrolled {
    background: rgba(28, 11, 22, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(107, 47, 91, 0.3);
}

nav.scrolled .nav-link {
    color: rgba(243, 228, 236, 0.8);
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

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

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

/* Scroll reveal animations */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate][data-delay="150"] {
    transition-delay: 0.15s;
}

[data-animate][data-delay="200"] {
    transition-delay: 0.2s;
}

[data-animate][data-delay="300"] {
    transition-delay: 0.3s;
}

[data-animate][data-delay="400"] {
    transition-delay: 0.4s;
}

[data-animate][data-delay="600"] {
    transition-delay: 0.6s;
}

[data-animate][data-delay="800"] {
    transition-delay: 0.8s;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }

    .group:hover img {
        transform: none;
    }
}

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

::-webkit-scrollbar-track {
    background: #1c0b16;
}

::-webkit-scrollbar-thumb {
    background: #6B2F5B;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a274d;
}

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