/* Additional custom styles */

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #fdf8f6;
}

::-webkit-scrollbar-thumb {
    background: #831d1d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a12020;
}

/* Focus styles for accessibility */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid #831d1d;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .cursor-follower,
    .scroll-indicator {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-cream,
    .bg-blush\/30 {
        background: #fff !important;
    }
}

/* Reduced motion preference */
@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;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .btn-primary {
        border: 2px solid currentColor;
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent text selection on decorative elements */
.decorative-circle,
.cursor-follower {
    user-select: none;
}

/* Form validation styles */
input:valid,
textarea:valid {
    border-bottom-color: #831d1d;
}

input:invalid:not(:focus),
textarea:invalid:not(:focus) {
    border-bottom-color: #dc4d4d;
}

/* Loading state for buttons */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .asymmetric-grid {
        grid-template-columns: 1fr;
    }
    
    .image-zoom {
        aspect-ratio: 4/3;
    }
    
    .floating-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .font-serif {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

/* Large screen optimizations */
@media (min-width: 1200px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animations with proper timing */
.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

/* Stagger animation delays */
.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }
