/* Custom Styles for Tattoo Freddie's House of Ink */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: #040B14;
    color: #ffffff;
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #040B14;
}

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

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

/* Selection Color */
::selection {
    background: rgba(201, 152, 46, 0.3);
    color: #ffffff;
}

/* Service Card Hover Effects */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 152, 46, 0.03), transparent);
    transition: left 0.7s ease;
    z-index: 0;
}

.service-card:hover::before {
    left: 100%;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

/* Gallery Item */
.gallery-item {
    cursor: pointer;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(4, 11, 20, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 152, 46, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu Animations */
.menu-line {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

#menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

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

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

#mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.hidden-reveal {
    opacity: 0;
    transform: translateX(-40px);
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.hidden-reveal {
    opacity: 0;
    transform: translateX(40px);
}

/* Gold Gradient Text */
.gold-gradient {
    background: linear-gradient(135deg, #E8B84B 0%, #C9982E 50%, #A67A1E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Glow Effect */
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(201, 152, 46, 0.3);
}

/* Form Input Focus */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 1px rgba(201, 152, 46, 0.3);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .service-card::before {
        display: none;
    }
    
    .gallery-item img {
        transition: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
    
    .font-cinzel {
        line-height: 1.2;
    }
}

@media (max-width: 640px) {
    .font-cinzel {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}
