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

/* Ensure smooth rendering */
html, body {
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: rgba(201, 168, 76, 0.3);
    color: #faf8f4;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
}

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

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent layout shift */
img {
    object-fit: cover;
}

/* Custom focus for interactive elements */
a:focus, button:focus {
    outline: none;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Ensure text readability */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

p {
    line-height: 1.7;
}

/* Mobile menu backdrop */
.mobile-menu {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Gold gradient for text */
.text-gold-gradient {
    background: linear-gradient(135deg, #d4af55 0%, #f0d890 50%, #c9a84c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button shine effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255,255,255,0.15) 50%,
        transparent 100%
    );
    transform: rotate(30deg);
    transition: left 0.6s ease;
}

.btn-shine:hover::after {
    left: 100%;
}

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Gold border animation */
.gold-border {
    position: relative;
}

.gold-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #d4af55, #c9a84c, #d4af55);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gold-border:hover::before {
    opacity: 1;
}

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

::-webkit-scrollbar-track {
    background: #0b170b;
}

::-webkit-scrollbar-thumb {
    background: #2d5e2d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3d7a3d;
}

/* Hover effects for cards */
.luxury-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.luxury-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Image hover zoom */
.aspect-\[4\/3\] img,
.aspect-\[3\/4\] img,
.aspect-square img {
    transition: transform 0.7s ease;
}

.aspect-\[4\/3\] img:hover,
.aspect-\[3\/4\] img:hover,
.aspect-square img:hover {
    transform: scale(1.05);
}

/* Mobile menu link styles */
.mobile-link {
    font-size: 1.125rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #d4af55;
}

/* Form input focus states */
input:focus,
textarea:focus {
    border-color: rgba(201, 168, 76, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

/* Ensure all text has sufficient contrast */
.text-cream-200\/70 {
    color: rgba(235, 224, 204, 0.7);
}

.text-cream-200\/60 {
    color: rgba(235, 224, 204, 0.6);
}

.text-cream-200\/50 {
    color: rgba(235, 224, 204, 0.5);
}

.text-cream-200\/30 {
    color: rgba(235, 224, 204, 0.3);
}
