/* Jim's Tire and Auto of Barnwell — Premium Dark Luxury Styles */

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

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

body {
    background: #0d0518;
    color: #e0d4ff;
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

select, input, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

/* ─── Gold Gradient Utility ──────────────────────────────────── */
.gold-gradient-text {
    background: linear-gradient(135deg, #fde68a 0%, #d4a017 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7d3aff, #d4a017);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9c60ff, #fbbf24);
}

/* ─── Selection ──────────────────────────────────────────────── */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #fde68a;
}

/* ─── Floating Animations ────────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-delay {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-delay 4s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* ─── Fade Up Animation ──────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-350 { animation-delay: 0.35s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ─── Service Cards ──────────────────────────────────────────── */
.service-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(ellipse at center, rgba(212, 160, 23, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

/* ─── Navbar ─────────────────────────────────────────────────── */
#navbar {
    transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.nav-scrolled {
    background: rgba(13, 5, 24, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(125, 58, 255, 0.15) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* ─── Mobile Menu ────────────────────────────────────────────── */
#mobile-menu {
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* ─── Form Elements ──────────────────────────────────────────── */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

select option {
    background: #1a0a2e;
    color: #e0d4ff;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ─── Button Hover Scale ─────────────────────────────────────── */
button[type="submit"]:hover:not(:disabled) {
    transform: scale(1.02);
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .animate-float,
    .animate-float-delay {
        animation-duration: 6s;
    }
}

/* ─── Print ──────────────────────────────────────────────────── */
@media print {
    #navbar,
    .animate-float,
    .animate-float-delay {
        display: none !important;
    }
}
