/* ============================================
   WePrint Douglas — Premium Dark Luxury Styles
   Emerald Green + Cream + Gold Palette
   ============================================ */

/* Base & Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f0f0f;
}
::-webkit-scrollbar-thumb {
    background: #064e3b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a853;
}

/* Selection */
::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #faf5eb;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(15, 15, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 168, 83, 0.1);
}

/* ============================================
   Hero Floating Cards
   ============================================ */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-top {
    animation-delay: 0s;
}

.card-mid {
    animation-delay: -2s;
}

.card-bottom {
    animation-delay: -4s;
}

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

/* ============================================
   Reveal Animations (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: always visible if JS disabled */
.reveal {
    opacity: 1;
    transform: none;
}

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

/* ============================================
   Mobile Menu
   ============================================ */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

.mobile-link {
    display: block;
    padding: 4px 0;
    font-size: 1.125rem;
}

/* ============================================
   Gallery Hover Effects
   ============================================ */
.group img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   Form Styles
   ============================================ */
select option {
    background: #022c22;
    color: #faf5eb;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* ============================================
   Button Hover Glow
   ============================================ */
button[type="submit"]:hover {
    box-shadow: 0 0 30px rgba(212, 168, 83, 0.3);
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .floating-card {
        display: none;
    }
}

/* ============================================
   Gold shimmer accent on focus states
   ============================================ */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 1px rgba(212, 168, 83, 0.3);
}

/* ============================================
   Page load animation for hero
   ============================================ */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero > div:first-child > div {
    animation: heroFadeIn 1s ease forwards;
}

/* ============================================
   Print-specific adjustments
   ============================================ */
@media print {
    #navbar,
    #contact-form,
    #form-success {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
