/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(91, 44, 111, 0.2);
    color: #5B2C6F;
}

/* Navbar */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #F59E0B;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile Menu */
.mobile-menu-link {
    position: relative;
}

/* Hero Animations */
.hero-eyebrow {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-headline {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

.hero-subtext {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-ctas {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Service Cards */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card-inner {
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(91, 44, 111, 0.08);
    transition: all 0.4s ease;
    height: 100%;
}

.service-card:hover .service-card-inner {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 20px 60px rgba(91, 44, 111, 0.1);
    transform: translateY(-4px);
}

.service-icon-wrap {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(91, 44, 111, 0.08), rgba(245, 158, 11, 0.08));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5B2C6F;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon-wrap {
    background: linear-gradient(135deg, #5B2C6F, #7c3aed);
    color: #F59E0B;
}

.service-card:hover .service-icon-wrap svg {
    stroke: #F59E0B;
}

/* Gallery */
.reveal-gallery {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-gallery:hover img {
    transform: scale(1.05);
}

/* Section Styles */
.section-eyebrow {
    letter-spacing: 0.25em;
}

.section-title {
    line-height: 1.1;
}

.section-desc {
    line-height: 1.7;
}

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

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

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

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

/* 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;
    }
    
    .hero-eyebrow,
    .hero-headline,
    .hero-subtext,
    .hero-ctas {
        opacity: 1;
        animation: none;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #F59E0B;
    outline-offset: 2px;
    border-radius: 4px;
}

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

#mobile-menu.menu-closed {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Image aspect ratios */
.aspect-\[4\/5\] {
    aspect-ratio: 4/5;
}

.aspect-\[4\/3\] {
    aspect-ratio: 4/3;
}

.aspect-\[2\/1\] {
    aspect-ratio: 2/1;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
