/* Base Styles */
*, *::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 */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fde68a;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2a101a;
}
::-webkit-scrollbar-thumb {
    background: #72304b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a35576;
}

/* Hero Animations */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroSlideUp 0.8s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.25s; }
.hero-anim:nth-child(3) { animation-delay: 0.4s; }
.hero-anim:nth-child(4) { animation-delay: 0.55s; }
.hero-anim:nth-child(5) { animation-delay: 0.7s; }

@keyframes heroSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Image Animation */
.main-img {
    opacity: 0;
    transform: translateX(40px);
    animation: heroSlideRight 1s ease 0.3s forwards;
}

@keyframes heroSlideRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Accent Image Animation */
.accent-img {
    opacity: 0;
    transform: translateX(-30px) scale(0.9);
    animation: heroSlideLeft 0.8s ease 0.6s forwards;
}

@keyframes heroSlideLeft {
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

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

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

/* 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);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Gallery */
.gallery-item {
    cursor: pointer;
}

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

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(42, 16, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Form */
input:focus,
select:focus,
textarea:focus {
    border-color: rgba(251, 191, 36, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1) !important;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-anim,
    .main-img,
    .accent-img,
    .reveal {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .gallery-item img {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .accent-img {
        display: none;
    }
}

/* Large screens */
@media (min-width: 1921px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
