/* Premium Dark Luxury Styles for Central Maine Firearms */

/* Custom properties for consistent theming */
:root {
    --teal-primary: #0d9488;
    --teal-light: #14b8a6;
    --teal-dark: #0f766e;
    --teal-darker: #134e4a;
    --slate-dark: #0f172a;
    --slate-medium: #1e293b;
    --slate-light: #334155;
    --gold-primary: #f59e0b;
    --gold-light: #fbbf24;
    --gold-dark: #d97706;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--slate-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

/* Gold gradient text effect */
.gold-gradient-text {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Teal gradient border */
.teal-gradient-border {
    border-image: linear-gradient(135deg, var(--teal-light), var(--teal-primary), var(--teal-dark)) 1;
}

/* Glow effects */
.glow-teal {
    box-shadow: 0 0 30px rgba(13, 148, 136, 0.3),
                0 0 60px rgba(13, 148, 136, 0.1);
}

.glow-gold {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2),
                0 0 40px rgba(245, 158, 11, 0.1);
}

/* Metallic background texture */
.metallic-bg {
    background: linear-gradient(145deg, var(--slate-dark) 0%, var(--slate-medium) 50%, var(--slate-dark) 100%);
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Navigation link underline animation */
.nav-link {
    position: relative;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, var(--teal-light), var(--gold-primary));
    transition: width 0.3s ease;
}

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

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

::-webkit-scrollbar-track {
    background: var(--slate-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--teal-light), var(--teal-primary));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--teal-primary), var(--teal-dark));
}

/* Button shine effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-shine:hover::before {
    left: 100%;
}

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

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

/* Image overlay gradient */
.image-overlay {
    background: linear-gradient(to right, 
        rgba(15, 23, 42, 0.9) 0%, 
        rgba(15, 23, 42, 0.5) 50%, 
        transparent 100%);
}

/* Responsive utilities */
@media (max-width: 768px) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--teal-light);
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .nav-link,
    .btn-shine,
    .reveal {
        all: unset;
    }
}
