/* Kimbelrley's Tailoring - Custom Styles */

/* Base styles and resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Raleway', system-ui, sans-serif;
    background: #0A0708;
    color: #F5D4D7;
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #FBECED;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
}

/* Smooth image rendering */
img {
    -webkit-interpolation-mode: bicubic;
    image-rendering: -webkit-optimize-contrast;
}

/* Typography refinements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
}

/* Gold shimmer animation - ensure it works */
@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gold-shimmer {
    background: linear-gradient(90deg, #C9A84C 0%, #F6ECB0 25%, #C9A84C 50%, #F6ECB0 75%, #C9A84C 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}

/* Fabric texture background */
.fabric-texture {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(10, 7, 8, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

/* Mobile menu animation */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Hamburger animation */
#menuBtn.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active #bar2 {
    opacity: 0;
}

#menuBtn.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* Scroll reveal - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

::-webkit-scrollbar-track {
    background: #0A0708;
}

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

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

/* Service card hover */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(122, 31, 36, 0.2);
}

/* Button styles */
.btn-gold {
    background: linear-gradient(135deg, #C9A84C, #DFCA7E);
    color: #0A0708;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #DFCA7E, #F6ECB0);
    box-shadow: 0 8px 32px rgba(201, 168, 76, 0.3);
}

/* Marquee animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-track {
    animation: marquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* Link underline on hover */
.nav-link {
    position: relative;
}

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

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

/* Form styles */
input, textarea, select {
    background: rgba(10, 7, 8, 0.6) !important;
    border: 1px solid rgba(201, 168, 76, 0.2) !important;
    color: #F5D4D7 !important;
    transition: all 0.3s ease !important;
}

input:focus, textarea:focus, select:focus {
    outline: none !important;
    border-color: #C9A84C !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15) !important;
}

/* Mobile link styles */
.mobile-link {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.875rem;
    color: #F5D4D7;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #C9A84C;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .btn-gold, .service-card, .marquee-track {
        break-inside: avoid;
    }
}
