/* Custom Styles for Transformation Custom Paint and Wallcovering */

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

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

body {
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: #0a192f;
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: #d4af37;
    color: #0a192f;
}

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

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

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

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

/* Navbar Transition */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(10, 25, 47, 0.1);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#navbar.scrolled .font-serif {
    color: #0a192f;
}

#navbar.scrolled .text-navy-700 {
    color: #1a365d;
}

/* Service Card Hover Effects */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.6) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

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

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #d4af37;
    transition: width 0.3s ease;
}

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

/* Form Input Focus States */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Smooth Image Loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 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 {
        opacity: 1;
        transform: none;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero h1 br {
        display: none;
    }
}

/* Print Styles */
@media print {
    nav,
    #contact-form,
    .gallery-item::after {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(10, 25, 47, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
}
