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

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

body {
    min-height: 100vh;
}

::selection {
    background: color-mix(in srgb, #6B4C6E 30%, transparent);
    color: #211721;
}

/* ─── Navbar ─── */
#navbar {
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(249, 245, 250, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(107, 76, 110, 0.08), 0 4px 24px rgba(107, 76, 110, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6B4C6E, #E8A84C);
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

/* ─── Buttons ─── */
.btn-primary {
    background: linear-gradient(135deg, #6B4C6E 0%, #563D56 100%);
    color: white;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #563D56 0%, #443044 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 76, 110, 0.3);
}

.btn-secondary {
    background: white;
    color: #6B4C6E;
    border: 2px solid rgba(107, 76, 110, 0.2);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    border-color: #6B4C6E;
    background: rgba(107, 76, 110, 0.05);
    transform: translateY(-2px);
}

/* ─── Inputs ─── */
.input-field {
    background: rgba(249, 245, 250, 0.6);
    border: 1.5px solid rgba(107, 76, 110, 0.15);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.95rem;
    color: #211721;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.input-field::placeholder {
    color: #B8A0B5;
}

.input-field:hover {
    border-color: rgba(107, 76, 110, 0.3);
}

.input-field:focus {
    border-color: #6B4C6E;
    background: white;
    box-shadow: 0 0 0 4px rgba(107, 76, 110, 0.08);
}

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

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: -2s; }
.card-3 { animation-delay: -4s; }
.card-4 { animation-delay: -1s; }

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

.card-4 {
    animation-name: float-image;
}

@keyframes float-image {
    0%, 100% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Mobile Menu ─── */
.mobile-nav-link {
    transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-nav-link:hover {
    color: #E8A84C;
    transform: scale(1.05);
}

/* ─── Gallery Hover ─── */
.group img {
    will-change: transform;
}

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

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

/* ─── Focus Visible ─── */
:focus-visible {
    outline: 2px solid #6B4C6E;
    outline-offset: 2px;
    border-radius: 4px;
}
