/* Creators Touch Studio — Custom Styles */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background-color: rgba(22, 101, 52, 0.2);
    color: #14532d;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfbf3;
}
::-webkit-scrollbar-thumb {
    background: #166534;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* Mobile Menu Animation */
.menu-line {
    display: block;
}

/* Mobile Menu Open State */
body.menu-open #mobileMenu {
    transform: translateX(0);
}

body.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
body.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
body.menu-open .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Mobile Links */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
}

body.menu-open .mobile-link {
    animation: slideIn 0.4s ease forwards;
}

body.menu-open .mobile-link:nth-child(1) { animation-delay: 0.1s; }
body.menu-open .mobile-link:nth-child(2) { animation-delay: 0.15s; }
body.menu-open .mobile-link:nth-child(3) { animation-delay: 0.2s; }
body.menu-open .mobile-link:nth-child(4) { animation-delay: 0.25s; }
body.menu-open .mobile-link:nth-child(5) { animation-delay: 0.3s; }

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

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

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

.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; }
.reveal.delay-5 { transition-delay: 0.5s; }
.reveal.delay-6 { transition-delay: 0.6s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
    .service-card {
        transition: none;
    }
    .service-card img {
        transition: none;
    }
}

/* Nav scroll state */
.nav-scrolled {
    box-shadow: 0 1px 20px rgba(20, 83, 45, 0.08);
}

/* Service card stagger */
.service-card {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery hover */
.gallery-item {
    overflow: hidden;
    border-radius: 0.75rem;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #16a34a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23166534' 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 12px center;
    padding-right: 40px;
}

/* Smooth image loading */
img {
    image-rendering: optimizeQuality;
}

/* Print styles */
@media print {
    header, footer, .scroll-indicator {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
