/* AutoConcepts - Premium Design System */
:root {
    /* Core palette aligned with Tailwind config */
    --primary: #8B0000;
    --primary-light: #DC1F2A;
    --charcoal: #1A1A1A;
    --charcoal-light: #2D2D2D;
    --off-white: #F8F8F8;

    /* Neutrals */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-500: #6B7280;
    --gray-700: #374151;

    /* Effects */
    --glass-bg: rgba(26, 26, 26, 0.65);
    --glass-border: rgba(255, 255, 255, 0.12);
    --shadow-automotive: 0 20px 40px rgba(0, 0, 0, 0.3);
    --shadow-automotive-lg: 0 40px 80px rgba(0, 0, 0, 0.4);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Utilities */
.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.brightness-50 {
    filter: brightness(0.5);
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.object-fit-cover {
    object-fit: cover;
}

.tracking-wider {
    letter-spacing: 0.1em;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--charcoal);
    background-color: #ffffff;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
.font-display {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Navigation */
.navbar {
    transition: var(--transition);
    padding: 1rem 0;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.navbar-brand span {
    letter-spacing: 0.08em;
}

.nav-link {
    font-weight: 500;
    color: #ffffff !important;
    margin: 0 0.5rem;
    position: relative;
    opacity: 0.8;
    text-transform: none;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

/* Sections */
.py-section {
    padding: 96px 0;
    /* ~ py-24 */
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.section-subheading {
    color: var(--gray-600, #667085);
    font-size: 1.0625rem;
    max-width: 640px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 0.9rem 2.25rem;
    font-weight: 600;
    border-radius: 999px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.35);
}

/* Service Card Styles */
.service-card {
    transition: var(--transition);
}

.service-card i {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover i {
    transform: scale(1.1) rotate(5deg);
    color: var(--primary-light) !important;
}

.service-card h4 {
    position: relative;
    transition: var(--transition);
}

.service-card:hover h4 {
    color: var(--primary);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-outline-white {
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 0.9rem 2.25rem;
    font-weight: 600;
    border-radius: 999px;
    transition: var(--transition);
    background: transparent;
}

.btn-outline-white:hover {
    background: #ffffff;
    color: var(--charcoal);
}

/* Cards */
.premium-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    transition: var(--transition);
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
}

.gallery-item img.transition-img {
    transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img.transition-img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* Glass Effect */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-automotive);
}

/* Backgrounds */
.bg-charcoal {
    background-color: var(--charcoal);
}

/* Forms */
.form-control,
.form-select,
textarea.form-control {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background-color: var(--gray-50);
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
}

textarea.form-control {
    border-radius: 18px;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.2);
    background-color: #ffffff;
}

.form-label {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-700);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-heading {
        font-size: 2rem;
    }

    .py-section {
        padding: 60px 0;
    }
}

/* Custom Animations */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 31, 42, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(220, 31, 42, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 31, 42, 0);
    }
}

.btn-pulse {
    animation: pulseGlow 2s infinite;
}

.grayscale-hover {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.grayscale-hover:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes kenburns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

#heroCarousel .carousel-item img {
    animation: kenburns 20s ease-out infinite alternate;
}

/* Gallery Layout */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.gallery-item-wrapper {
    padding: 10px;
    width: 25%;
    display: block;
    transition: all 0.4s ease;
}

@media (max-width: 1200px) {
    .gallery-item-wrapper {
        width: 33.333%;
    }
}

@media (max-width: 992px) {
    .gallery-item-wrapper {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .gallery-item-wrapper {
        width: 100%;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(139, 0, 0, 0.8) 0%, rgba(139, 0, 0, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-info {
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
}

.gallery-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* Filter Navigation */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 24px;
    border-radius: 50px;
    border: 1px solid var(--gray-200);
    background: white;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.25);
}

/* Lightbox Customization */
.goverlay {
    background: rgba(0, 0, 0, 0.95) !important;
}

.gslide-title {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

/* Animations */
.gallery-item-wrapper.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
}

/* ── Floating WhatsApp Button ── */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.whatsapp-float .wa-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: waFloat 2.5s ease-in-out infinite;
}

.whatsapp-float:hover .wa-icon {
    transform: scale(1.12);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-float .wa-label {
    background: #fff;
    color: var(--charcoal);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.whatsapp-float:hover .wa-label {
    opacity: 1;
    transform: translateX(0);
}

@keyframes waFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float .wa-icon {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    .whatsapp-float .wa-label {
        display: none;
    }
}