/* Custom styles for Absolute Bridal & Formal */

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

/* Custom selection color */
::selection {
    background-color: #314d1c;
    color: #FAF9F6;
}

/* Navigation scroll state */
.nav-scrolled {
    background-color: rgba(250, 249, 246, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(49, 77, 28, 0.1);
}

.nav-scrolled .nav-link {
    color: #2C2C2C !important;
}

.nav-scrolled #menu-btn svg {
    color: #2C2C2C !important;
}

/* Mobile menu open state */
.menu-open #mobile-menu {
    transform: translateX(0);
}

.menu-open #line1 {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-open #line2 {
    opacity: 0;
}

.menu-open #line3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* Service card hover animation */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

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

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

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4f7a2d !important;
    box-shadow: 0 0 0 3px rgba(79, 122, 45, 0.1);
}

/* Form transition */
.form-transition {
    transition: opacity 0.3s ease;
}

/* Subtle pattern overlay for hero */
.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(49, 77, 28, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

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

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

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

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .gallery-item img,
    .overflow-hidden img {
        transition: none;
    }
    
    .overflow-hidden img:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    nav, #contact, footer, .service-card, .gallery-item {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
