/* === BASE & RESET === */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: rgba(16, 185, 129, 0.3);
    color: #FAFAF5;
}

/* === NAVBAR === */
.nav-scrolled {
    background: rgba(6, 14, 10, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 200, 188, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* === FLOATING CARDS === */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

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

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

.floating-card-1 {
    animation: float-slow 5s ease-in-out infinite;
}

.floating-card-2 {
    animation: float-medium 4.5s ease-in-out infinite;
    animation-delay: -1s;
}

.floating-card-3 {
    animation: float-fast 5.5s ease-in-out infinite;
    animation-delay: -2s;
}

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

/* === SCROLL REVEAL === */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal[data-reveal="left"] {
    transform: translateX(-30px);
}

.scroll-reveal[data-reveal="right"] {
    transform: translateX(30px);
}

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

/* Staggered delays */
.scroll-reveal[data-delay="1"] { transition-delay: 0.1s; }
.scroll-reveal[data-delay="2"] { transition-delay: 0.2s; }
.scroll-reveal[data-delay="3"] { transition-delay: 0.3s; }
.scroll-reveal[data-delay="4"] { transition-delay: 0.4s; }
.scroll-reveal[data-delay="5"] { transition-delay: 0.5s; }
.scroll-reveal[data-delay="6"] { transition-delay: 0.6s; }

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* === BACK TO TOP === */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* === MOBILE MENU === */
.mobile-menu-link {
    display: block;
    padding: 0.5rem 0;
}

/* === SERVICE CARDS HOVER === */
.group:hover .group-hover\:bg-emerald-600\/25 {
    background-color: rgba(16, 185, 129, 0.25);
}

/* === CUSTOM SELECT === */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* === FOCUS STYLES === */
:focus-visible {
    outline: 2px solid #10B981;
    outline-offset: 2px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .floating-card-1,
    .floating-card-2,
    .floating-card-3,
    .floating-card-4 {
        display: none;
    }
}
