/* 
 * Alura Collective Studio - Custom Styles
 * Theme: Clean Minimalist, Emerald & Cream
 */

:root {
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-sans);
    background-color: #fbfbf7; /* cream-50 */
    color: #1c1917; /* stone-850 */
    scroll-behavior: smooth;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f2f2e8;
}
::-webkit-scrollbar-thumb {
    background: #064e3b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #022c22;
}

/* Typography Utilities */
.font-serif {
    font-family: var(--font-serif);
}
.font-sans {
    font-family: var(--font-sans);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollDown {
    0% { top: -100%; }
    100% { top: 100%; }
}

.animate-fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-fade-in {
    animation-name: fadeIn;
    animation-duration: 1.2s;
    animation-timing-function: ease;
}

.animate-scroll-down {
    animation: scrollDown 2s linear infinite;
}

/* Vertical Text */
.writing-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Reveal on Scroll Class */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Mobile Menu Transitions */
#mobile-menu {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Form Focus Styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #064e3b;
}

/* Hover underline animation for links */
.hover-underline-animation {
    display: inline-block;
    position: relative;
}

.hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #064e3b;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
