/* Custom styles for Creative Cuts */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Service card hover effects */
.service-card {
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: rgba(52, 211, 153, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(16, 42, 67, 0.15);
}

/* Gallery item hover */
.gallery-item {
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(16, 42, 67, 0);
    transition: background 0.3s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    background: rgba(16, 42, 67, 0.1);
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobileMenu.open {
    max-height: 400px;
}

/* Navbar scroll state */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact form styles */
#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d9e2ec;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #f0f4f8;
}

#contactForm input:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
    background: #fff;
}

#contactForm textarea {
    resize: vertical;
    min-height: 120px;
}

/* Success message */
.form-success {
    display: none;
    background: linear-gradient(135deg, #34d399, #059669);
    color: #102a43;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    margin-top: 1rem;
    animation: slideIn 0.3s ease;
}

.form-success.show {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #102a43;
}

::-webkit-scrollbar-thumb {
    background: #334e68;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background: rgba(52, 211, 153, 0.3);
    color: #102a43;
}
