/* ===== 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 {
    overflow-x: hidden;
}

::selection {
    background: rgba(107, 58, 107, 0.15);
    color: #3d1f3d;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5fa;
}
::-webkit-scrollbar-thumb {
    background: #d4b4d4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #be8fbf;
}

/* ===== Floating Cards Animation ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card:nth-child(2) { animation-delay: 0s; }
.floating-card:nth-child(3) { animation-delay: 1s; }
.floating-card:nth-child(4) { animation-delay: 2s; }
.floating-card:nth-child(5) { animation-delay: 0.5s; }

/* ===== Service Cards ===== */
.service-card {
    opacity: 1;
    transform: translateY(0);
}

.service-card.reveal {
    animation: slideUp 0.6s ease forwards;
}

/* ===== Nav ===== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #b45309;
    transition: width 0.3s ease;
}

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

/* ===== Navbar Scroll State ===== */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(107, 58, 107, 0.08);
}

/* ===== Scroll Reveal (below fold only) ===== */
.reveal-element {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* ===== Mobile Menu ===== */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(107, 58, 107, 0.08);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ===== Button Focus ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #6B3A6B;
    outline-offset: 2px;
}

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

    #hero {
        min-height: 100vh;
    }
}
