/* Base styles and custom properties */
:root {
    --burgundy-700: #922b21;
    --burgundy-800: #7b241c;
    --burgundy-900: #641e16;
    --blush-400: #ff8888;
    --blush-300: #ffb4b4;
    --cream-50: #fffcf8;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--cream-50);
}
::-webkit-scrollbar-thumb {
    background: var(--burgundy-700);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--burgundy-800);
}

/* Hero geometric animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(45deg); }
}
@keyframes float-medium {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-15px) rotate(12deg); }
}
@keyframes float-fast {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-25px) rotate(45deg); }
}
@keyframes pulse-slow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.7; }
}
@keyframes scroll-dot {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.hero-geo {
    transition: transform 0.3s ease-out;
}
.shape-circle-1 {
    animation: pulse-slow 8s ease-in-out infinite;
}
.shape-circle-2 {
    animation: pulse-slow 10s ease-in-out infinite reverse;
}
.shape-rect-1 {
    animation: float-fast 6s ease-in-out infinite;
}
.shape-rect-2 {
    animation: float-medium 7s ease-in-out infinite;
}
.shape-dots {
    animation: pulse-slow 5s ease-in-out infinite;
}

.scroll-dot {
    animation: scroll-dot 1.5s ease-in-out infinite;
}

/* Service card hover effects */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(146, 43, 33, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
}
.service-card:hover::before {
    opacity: 1;
}

/* Gallery hover */
.gallery-item {
    cursor: pointer;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(100, 30, 22, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}
.gallery-item:hover::after {
    opacity: 1;
}

/* Testimonial card */
.testimonial-card {
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    color: rgba(146, 43, 33, 0.06);
    line-height: 1;
    pointer-events: none;
}

/* Mobile menu line animation */
.menu-line {
    display: block;
}
#mobileMenu.open .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
#mobileMenu.open .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#mobileMenu.open .menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 1.5rem;
}

/* Scroll reveal animations (below-fold only) */
@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-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 252, 248, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(100, 30, 22, 0.08);
}
.nav-scrolled .font-display,
.nav-scrolled .text-burgundy-800 {
    color: var(--burgundy-900) !important;
}
.nav-scrolled .text-burgundy-500,
.nav-scrolled .text-burgundy-700 {
    color: var(--burgundy-700) !important;
}
.nav-scrolled .menu-line {
    background: var(--burgundy-900) !important;
}
.nav-scrolled .border-burgundy-700\/30 {
    border-color: rgba(100, 30, 22, 0.3) !important;
}

/* Parallax-lite on scroll */
@media (prefers-reduced-motion: no-preference) {
    .parallax-slow {
        will-change: transform;
    }
}
