/* Custom Styles for Sacred Ink Studio */

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

/* Hero Animations */
.hero-subtitle {
    animation: slideUp 0.8s ease-out forwards;
}

.hero-title {
    animation: slideUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-desc {
    animation: slideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-cta {
    animation: slideUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-stats {
    animation: slideUp 0.8s ease-out 0.8s forwards;
    opacity: 0;
}

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

/* Section Animations */
.section-label {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.section-title {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out 0.2s;
}

.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s ease-out;
}

/* Scroll Reveal States (applied by JS) */
.revealed .section-label,
.revealed .section-title {
    opacity: 1;
    transform: translateY(0);
}

.revealed .service-card {
    opacity: 1;
    transform: translateY(0);
}

.revealed .service-card:nth-child(1) { transition-delay: 0.1s; }
.revealed .service-card:nth-child(2) { transition-delay: 0.2s; }
.revealed .service-card:nth-child(3) { transition-delay: 0.3s; }
.revealed .service-card:nth-child(4) { transition-delay: 0.4s; }
.revealed .service-card:nth-child(5) { transition-delay: 0.5s; }
.revealed .service-card:nth-child(6) { transition-delay: 0.6s; }

.revealed .gallery-item {
    opacity: 1;
    transform: scale(1);
}

.revealed .gallery-item:nth-child(1) { transition-delay: 0.1s; }
.revealed .gallery-item:nth-child(2) { transition-delay: 0.2s; }
.revealed .gallery-item:nth-child(3) { transition-delay: 0.3s; }
.revealed .gallery-item:nth-child(4) { transition-delay: 0.4s; }
.revealed .gallery-item:nth-child(5) { transition-delay: 0.5s; }
.revealed .gallery-item:nth-child(6) { transition-delay: 0.6s; }
.revealed .gallery-item:nth-child(7) { transition-delay: 0.7s; }

/* Navbar Scroll State */
.navbar-scrolled {
    background-color: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(31, 54, 35, 0.1);
}

/* Mobile Menu Animations */
.mobile-menu-open #bar1 {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-open #bar2 {
    opacity: 0;
}

.mobile-menu-open #bar3 {
    transform: translateY(-8px) rotate(-45deg);
    width: 24px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4f8252;
}

/* 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;
    }
}

/* Print Styles */
@media print {
    nav, .hero-stats, #contact-form, iframe {
        display: none;
    }
}
