*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    color: #1e334f;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.font-playfair { font-family: 'Playfair Display', serif; }
.font-dm { font-family: 'DM Sans', sans-serif; }

::selection {
    background: #7EDFB5;
    color: #0F2B4C;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0faf5; }
::-webkit-scrollbar-thumb { background: #aae0cc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #7edfb5; }

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    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; }

/* Service card tilt */
.service-card {
    transform: perspective(800px) rotateX(0deg) rotateY(0deg);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: perspective(800px) rotateX(2deg) rotateY(-2deg);
}

/* Navbar glass effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(126, 223, 181, 0.2), 0 4px 30px rgba(15, 43, 76, 0.06);
}

.nav-transparent {
    background: transparent !important;
    box-shadow: none !important;
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Hero image parallax feel */
.hero-image-container {
    will-change: transform;
}

/* Smooth focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Print styles */
@media print {
    nav, #contact-form, #form-success { display: none; }
    body { color: #000; background: #fff; }
}
