/* Custom styles for Studio JM */

/* Clip path for hero diagonal */
.clip-diagonal {
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

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

/* Scroll reveal base styles - content is visible by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply animations when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .js-enabled .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .js-enabled .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .js-enabled .reveal-up {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .js-enabled .reveal-up.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered delays */
    .js-enabled .scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
    .js-enabled .scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
    .js-enabled .scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
    .js-enabled .scroll-reveal:nth-child(4) { transition-delay: 0.4s; }
    .js-enabled .scroll-reveal:nth-child(5) { transition-delay: 0.5s; }
    .js-enabled .scroll-reveal:nth-child(6) { transition-delay: 0.6s; }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(107, 33, 56, 0.08);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9a1e3b;
}

/* Selection color */
::selection {
    background: #f59e0b;
    color: #3d0f1a;
}

/* Image hover effects */
img {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .clip-diagonal {
        clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    }
}

/* Focus visible styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}
