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

::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0f;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #9333ea, #f59e0b);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #a855f7, #fbbf24);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

@keyframes scroll-line {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes particle-float {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    50% { transform: translateY(-80px) translateX(30px) rotate(180deg); }
    100% { transform: translateY(-160px) translateX(-20px) rotate(360deg); opacity: 0; }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slide-in-left {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Hero Animations */
.hero-orb {
    animation: float 8s ease-in-out infinite;
}

.hero-orb-1 { animation-delay: 0s; }
.hero-orb-2 { animation-delay: -3s; }
.hero-orb-3 { animation-delay: -5s; }

.deco-line {
    animation: fade-in-up 1.5s ease-out forwards;
}
.deco-line-1 { animation-delay: 0.3s; }
.deco-line-2 { animation-delay: 0.5s; }
.deco-line-3 { animation-delay: 0.7s; }

.hero-badge {
    animation: scale-in 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

.hero-title {
    animation: fade-in-up 1s ease-out forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

.hero-subtitle {
    animation: fade-in-up 1s ease-out forwards;
    opacity: 0;
    animation-delay: 0.8s;
}

.hero-ctas {
    animation: fade-in-up 1s ease-out forwards;
    opacity: 0;
    animation-delay: 1.1s;
}

.scroll-indicator {
    animation: fade-in-up 1s ease-out forwards;
    opacity: 0;
    animation-delay: 1.5s;
}

.scroll-line {
    animation: scroll-line 2s ease-in-out infinite;
}

/* Reveal animations (below-fold) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-hidden.left {
    transform: translateX(-40px);
}

.reveal-hidden.right {
    transform: translateX(40px);
}

/* 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; }
    .reveal-hidden { opacity: 1; transform: none; }
}

/* Mobile menu */
.mobile-menu.active {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    animation: fade-in-up 0.5s ease-out forwards;
    opacity: 0;
}

.mobile-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-link:nth-child(2) { animation-delay: 0.2s; }
.mobile-link:nth-child(3) { animation-delay: 0.3s; }
.mobile-link:nth-child(4) { animation-delay: 0.4s; }

/* Navbar scroll state */
nav.scrolled {
    background: rgba(10, 10, 15, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Service cards hover */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(251, 191, 36, 0.05);
}

/* Gallery */
.gallery-item {
    transform: translateY(0);
}

.gallery-item:hover img {
    filter: brightness(1.1);
}

/* Button glow effects */
a[href="tel:+12179729348"] {
    position: relative;
}

/* Input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1a1a24 inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}
