/* ====================================
   Tracer Tire - Custom CSS
   Color Theme: Red (#DC143C), Black (#000000), White (#FFFFFF)
   ==================================== */

/* Root Variables */
:root {
    --primary-red: #DC143C;
    --primary-black: #000000;
    --primary-white: #FFFFFF;
    --light-gray: #f8f9fa;
    --dark-gray: #333333;
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-gray);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* ====================================
   NAVIGATION BAR
   ==================================== */
.navbar {
    background-color: var(--primary-black) !important;
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--primary-white) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-red) !important;
}

/* ====================================
   HERO SECTION
   ==================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--dark-gray) 100%),
                url('/images/hero-section.png?w=1920&h=1080&fit=crop') center/cover no-repeat;
    background-blend-mode: overlay;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(220, 20, 60, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease;
}

.hero-section .lead {
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1.2s ease;
}

.hero-buttons {
    animation: fadeInUp 1.4s ease;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ====================================
   BUTTONS
   ==================================== */
.btn-danger {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    font-weight: 600;
    transition: var(--transition);
}

.btn-danger:hover {
    background-color: #B01030;
    border-color: #B01030;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
}

.btn-outline-danger {
    color: var(--primary-red);
    border-color: var(--primary-red);
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-danger:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* ====================================
   SECTION STYLES
   ==================================== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.title-underline {
    width: 80px;
    height: 4px;
    background-color: var(--primary-red);
    margin: 0 auto 2rem;
}

.title-underline.bg-danger {
    background-color: var(--primary-red);
}

/* ====================================
   SERVICE CARDS
   ==================================== */
.service-card {
    background: var(--primary-white);
    border-radius: 10px;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
}

.service-icon {
    transition: var(--transition);
    color: var(--primary-black);
}

.service-card:hover .service-icon {
    color: var(--primary-red);
    transform: scale(1.1);
}

/* ====================================
   PRODUCT CARDS
   ==================================== */
.product-card {
    background: var(--primary-white);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #28a745;
    color: var(--primary-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1;
}

.product-badge.badge-warning {
    background-color: #ffc107;
    color: var(--primary-black);
}

.product-badge.badge-danger {
    background-color: var(--primary-red);
}

.product-body {
    background: var(--primary-white);
}

.product-brand {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 1.1rem;
    color: var(--primary-black);
}

.product-size {
    font-size: 0.9rem;
}

.product-price {
    color: var(--primary-red);
}

/* ====================================
   FEATURE BOXES
   ==================================== */
.feature-box {
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-icon {
    transition: var(--transition);
}

.feature-box:hover .feature-icon i {
    transform: scale(1.2) rotate(5deg);
}

/* ====================================
   APPOINTMENT SECTION
   ==================================== */
.appointment-card {
    background: var(--primary-white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.appointment-card .form-control,
.appointment-card .form-select {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    transition: var(--transition);
}

.appointment-card .form-control:focus,
.appointment-card .form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 20, 60, 0.25);
}

/* ====================================
   CONTACT BOXES
   ==================================== */
.contact-box {
    background: var(--primary-white);
    border-radius: 10px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.2);
}

.contact-box i {
    transition: var(--transition);
}

.contact-box:hover i {
    transform: scale(1.2);
}

/* ====================================
   FOOTER
   ==================================== */
.footer {
    background-color: var(--primary-black);
}

.footer a {
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-red) !important;
    transform: translateX(5px);
}

.social-icons a {
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary-red) !important;
    transform: translateY(-5px);
}

/* ====================================
   SCROLL TO TOP BUTTON
   ==================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-red);
    color: var(--primary-white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: #B01030;
    transform: translateY(-5px);
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--primary-black);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 5px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 2rem !important;
        font-size: 1rem !important;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 575px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0 !important;
    }
    
    .product-card {
        margin-bottom: 1.5rem;
    }
}

/* ====================================
   UTILITY CLASSES
   ==================================== */
.text-danger {
    color: var(--primary-red) !important;
}

.bg-danger {
    background-color: var(--primary-red) !important;
}

.bg-black {
    background-color: var(--primary-black) !important;
}

.border-danger {
    border-color: var(--primary-red) !important;
}

/* Loading Animation */
.animate-fade-in {
    animation: fadeInUp 1s ease;
}

.animate-fade-in-delay {
    animation: fadeInUp 1.2s ease;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 1.4s ease;
}
