/* ===== Custom Styles for The Steel House on Poplar ===== */

/* Base & Smooth Scrolling */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollLine {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(0.5);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

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

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Navbar ===== */
.nav-logo-text,
.nav-logo-sub {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-logo-text {
    color: #022c22;
}

.nav-link {
    position: relative;
}

/* ===== Buttons ===== */
button, a {
    -webkit-tap-highlight-color: transparent;
}

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

input::placeholder,
textarea::placeholder {
    color: rgba(2, 78, 59, 0.2);
}

/* ===== Mobile Menu ===== */
.mobile-menu-link {
    position: relative;
}

.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #047857;
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

/* ===== Image Hover Effects ===== */
img {
    -webkit-user-drag: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6ee7b7;
}

/* ===== Selection ===== */
::selection {
    background: #a7f3d0;
    color: #022c22;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .animate-fade-in-up {
        animation: none;
        opacity: 1;
    }
    
    .animate-scroll-line {
        animation: none;
        opacity: 0.5;
    }
    
    img {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== Tablet ===== */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 3rem;
    }
}

/* ===== Small Mobile ===== */
@media (max-width: 360px) {
    .font-serif {
        font-size: 1.5rem;
    }
}
