/* Base & Utilities */
html {
    scroll-behavior: smooth;
}

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

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Fade Up */
.hero-fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Decorative Blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #F5E0D6 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float-blob 8s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #F5E2C8 0%, transparent 70%);
    bottom: 10%;
    left: -80px;
    animation: float-blob 10s ease-in-out infinite reverse;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #EBBDA8 0%, transparent 70%);
    top: 40%;
    right: 10%;
    animation: float-blob 6s ease-in-out infinite;
}

@keyframes float-blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 20px) scale(0.95); }
}

/* Scroll Dot Animation */
.scroll-dot {
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.4; }
}

/* Navbar Scrolled State */
header.scrolled {
    background: rgba(253, 249, 243, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Mobile Link Hover */
.mobile-link {
    position: relative;
}

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

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

/* Custom Selection */
::selection {
    background: #F5E0D6;
    color: #96442A;
}

/* Smooth Focus for Accessibility */
:focus-visible {
    outline: 2px solid #D4845A;
    outline-offset: 2px;
}

/* Image Aspect Ratio Fallback */
img {
    max-width: 100%;
    height: auto;
}

/* Print Styles */
@media print {
    header, footer, #contact-form { display: none; }
    body { background: white; }
}
