body {
    margin: 0;
    padding: 0;
    background-color: #f4f1ea;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

::selection {
    background: #c5a059;
    color: white;
}

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

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

::-webkit-scrollbar-thumb {
    background: #c5a059;
}

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

.font-serif {
    font-family: 'Playfair Display', serif;
}

.font-sans {
    font-family: 'Inter', sans-serif;
}

/* Smooth page transitions */
main {
    animation: fadeIn 0.8s ease-out;
}

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

img {
    filter: contrast(1.05) brightness(0.95);
    transition: filter 0.5s ease;
}

img:hover {
    filter: contrast(1) brightness(1);
}

/* Home hero creative effects */
.hero-aurora {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(40% 35% at 20% 30%, rgba(197,160,89,0.35), transparent 60%),
        radial-gradient(35% 40% at 80% 20%, rgba(255,255,255,0.18), transparent 60%),
        radial-gradient(45% 45% at 60% 80%, rgba(26,26,26,0.18), transparent 60%);
    filter: blur(30px);
    animation: auroraShift 10s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes auroraShift {
    0% { transform: translate3d(-2%, -1%, 0) scale(1); }
    100% { transform: translate3d(2%, 1%, 0) scale(1.05); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(26,26,26,0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(26,26,26,0.06) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at 30% 30%, rgba(0,0,0,0.9), transparent 60%);
    pointer-events: none;
}

.hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/></filter><rect width="160" height="160" filter="url(%23n)" opacity="0.55"/></svg>');
    mix-blend-mode: overlay;
    pointer-events: none;
}

.float-slow {
    animation: floatSlow 6s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.shine-border {
    position: relative;
}

.shine-border::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 2px;
    padding: 1px;
    background: linear-gradient(120deg, rgba(197,160,89,0.0), rgba(197,160,89,0.55), rgba(255,255,255,0.0));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.shine-border:hover::after {
    opacity: 1;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Reduced motion: ensure CSS animations/transitions degrade gracefully */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    body {
        scroll-behavior: auto;
    }

    main {
        animation: none !important;
    }

    .hero-aurora,
    .float-slow {
        animation: none !important;
        transform: none !important;
    }

    img {
        transition: none !important;
    }

    .shine-border::after {
        transition: none !important;
    }
}
