/* 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;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

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

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(30, 58, 95, 0.08);
}

#navbar.scrolled .menu-line {
    background: #1e3a5f;
}

/* Mobile Menu */
#mobileMenu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
}

.mobile-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Service Cards */
.service-card {
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Gallery */
.gallery-item {
    height: 280px;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (min-width: 1024px) {
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(4) {
        height: 380px;
    }
    
    .gallery-item:nth-child(5) {
        height: 300px;
    }
}

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

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

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

/* Subtle line animation on service cards */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #c9a84c;
    transition: width 0.4s ease, left 0.4s ease;
}

.service-card {
    position: relative;
}

.service-card:hover::after {
    width: 60%;
    left: 20%;
}

/* Floating card animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Hero floating cards */
@media (min-width: 1024px) {
    .absolute.-bottom-6.-left-8 {
        animation: float 4s ease-in-out infinite;
    }
    
    .absolute.-top-6.-right-6 {
        animation: float 4s ease-in-out infinite 1s;
    }
}

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.2);
    color: #1e3a5f;
}

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

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

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

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