/* ===================================
   The Studio on 28A — Custom Styles
   =================================== */

/* Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #3a1f18;
}
::-webkit-scrollbar-thumb {
    background: #945846;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b07460;
}

/* Navbar transitions */
#navbar.scrolled {
    background: rgba(58, 31, 24, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animation */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Menu button animation */
#menuBtn.active #menuLine1 {
    transform: translateY(5px) rotate(45deg);
}
#menuBtn.active #menuLine2 {
    opacity: 0;
    transform: scaleX(0);
}
#menuBtn.active #menuLine3 {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.5rem;
}

/* Scroll indicator animation */
@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}
.animate-scrollLine {
    animation: scrollLine 1.5s ease-in-out infinite;
}

/* Service cards */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-6px);
}

/* Gallery items */
.gallery-item {
    cursor: pointer;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(58, 31, 24, 0);
    transition: background 0.4s ease;
}
.gallery-item:hover::after {
    background: rgba(58, 31, 24, 0.15);
}

/* Select dropdown styling */
select option {
    background: #3a1f18;
    color: #FAF7F2;
}

/* Focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
}

/* Selection */
::selection {
    background: #945846;
    color: #FAF7F2;
}

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

/* Fade-in animations for scroll sections */
.fade-in-section {
    opacity: 1;
    transform: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}
