/* Custom styles for I-Jive Espresso */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: rgba(166, 95, 110, 0.15);
    color: #572c36;
}

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

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

::-webkit-scrollbar-thumb {
    background: #d6b0b5;
    border-radius: 3px;
}

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

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

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal[data-reveal="delay-1"] {
    transition-delay: 0.1s;
}

.reveal[data-reveal="delay-2"] {
    transition-delay: 0.2s;
}

.reveal[data-reveal="delay-3"] {
    transition-delay: 0.3s;
}

.reveal[data-reveal="delay-4"] {
    transition-delay: 0.4s;
}

/* Active nav state */
.nav-link-active {
    color: #572c36;
    border-bottom-color: #572c36;
}

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Menu line animations */
.menu-line {
    display: block;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.25rem;
}

/* Navbar background transition */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(166, 95, 110, 0.1);
}

#navbar.scrolled .font-display {
    color: #572c36;
}

#navbar.scrolled .menu-line {
    background-color: #572c36;
}

/* Image hover effect */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rounded-2xl.overflow-hidden:hover img {
    transform: scale(1.02);
}

/* Form focus states */
input:focus,
textarea:focus {
    outline: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .rounded-2xl.overflow-hidden img {
        transition: none;
    }
    
    .animate-pulse {
        animation: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-display.text-5xl {
        font-size: 2.75rem;
    }
}

/* Print styles */
@media print {
    header,
    #contact,
    #menu-btn,
    #mobile-menu {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
