/* =====================================================
   Royal Car Shingar - Custom CSS Stylesheet
   Professional Car Accessories Website
   ===================================================== */

/* =====================================================
   1. ROOT VARIABLES & GENERAL STYLES
   ===================================================== */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #e55a2a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =====================================================
   2. NAVIGATION BAR
   ===================================================== */
.navbar {
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
}

.navbar-brand i {
    color: var(--primary-color);
    margin-right: 8px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 8px 20px !important;
    margin: 0 5px;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--white) !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--primary-color);
}

/* =====================================================
   3. HERO SECTION
   ===================================================== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    opacity: 0.7;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-buttons .btn {
    margin: 5px;
}

/* =====================================================
   4. QUICK CONTACT BAR
   ===================================================== */
.quick-contact-bar {
    background: var(--white);
    padding: 30px 0;
    box-shadow: var(--shadow-sm);
    margin-top: -50px;
    position: relative;
    z-index: 3;
    border-radius: 10px;
}

.quick-contact-bar i {
    color: var(--primary-color);
}

.quick-contact-bar p {
    margin-bottom: 0;
    color: var(--text-color);
}

/* =====================================================
   5. SECTION TITLES
   ===================================================== */
.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
}

.section-title p {
    font-size: 1.1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px 0;
    border-radius: 2px;
}

/* =====================================================
   6. SERVICE CARDS
   ===================================================== */
.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
}

.service-link:hover {
    color: var(--secondary-color);
}

/* =====================================================
   7. FEATURE BOXES
   ===================================================== */
.feature-box {
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.feature-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.feature-box h5 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-box p {
    color: #666;
    margin-bottom: 0;
}

/* =====================================================
   8. GALLERY
   ===================================================== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 30px 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h5 {
    color: var(--white);
    margin: 0;
    font-size: 1.2rem;
}

/* =====================================================
   9. TESTIMONIALS
   ===================================================== */
.testimonials {
    background: var(--dark-color);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
}

.stars i {
    color: #ffc107;
}

.testimonial-card p {
    color: var(--white);
    font-style: italic;
    margin-bottom: 20px;
}

.customer-info {
    display: flex;
    flex-direction: column;
}

.customer-info strong {
    color: var(--white);
    font-size: 1.1rem;
}

.customer-info span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* =====================================================
   10. CTA SECTION
   ===================================================== */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1920&h=400&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

/* =====================================================
   11. FOOTER
   ===================================================== */
.footer {
    background: #1a1a2e;
}

.footer h4, .footer h5 {
    color: var(--white);
    margin-bottom: 25px;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
}

.social-links a {
    transition: var(--transition);
}

.social-links a:hover {
    opacity: 0.7;
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.7);
}

.contact-info a:hover {
    color: var(--primary-color);
}

/* =====================================================
   12. FLOATING ACTION BUTTONS
   ===================================================== */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.whatsapp-btn, .call-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-btn {
    background: #25d366;
}

.call-btn {
    background: var(--primary-color);
}

.whatsapp-btn:hover, .call-btn:hover {
    transform: scale(1.1);
    color: var(--white);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* =====================================================
   13. PAGE HEADER
   ===================================================== */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
    margin-top: 76px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1920&h=400&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    background: transparent;
    justify-content: center;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item.active {
    color: var(--white);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* =====================================================
   14. SERVICE DETAIL CARDS
   ===================================================== */
.service-detail-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.service-detail-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.service-img {
    height: 250px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-detail-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 30px;
}

.service-icon-small {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon-small i {
    font-size: 1.5rem;
    color: var(--white);
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 8px 0;
    color: #666;
}

.service-features i {
    color: #28a745;
    margin-right: 10px;
}

/* =====================================================
   15. GALLERY PAGE
   ===================================================== */
.gallery-filter {
    background: var(--light-color);
}

.filter-btn {
    background: var(--white);
    border: 2px solid transparent;
    padding: 10px 25px;
    margin: 5px;
    border-radius: 25px;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.gallery-item-large {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    height: 350px;
    box-shadow: var(--shadow-sm);
}

.gallery-item-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item-large:hover img {
    transform: scale(1.15);
}

.gallery-item-wrapper {
    transition: var(--transition);
}

/* =====================================================
   16. CONTACT PAGE
   ===================================================== */
.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.form-control {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.contact-info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.contact-info-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-info-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.contact-info-card h5 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.contact-info-card p {
    color: #666;
    margin-bottom: 10px;
}

.contact-info-card a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-info-card a:hover {
    color: var(--secondary-color);
}

.map-section iframe {
    width: 100%;
    filter: grayscale(30%);
}

/* =====================================================
   17. ABOUT PAGE SPECIFIC
   ===================================================== */
.value-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.value-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-icon i {
    color: var(--white);
}

.team-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.team-img {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    overflow: hidden;
}

.team-img img {
    border: 5px solid var(--primary-color);
}

.stat-box {
    padding: 30px;
}

.counter {
    font-size: 3rem;
    color: var(--primary-color);
}

.feature-box-alt {
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.feature-box-alt:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

/* =====================================================
   18. RESPONSIVE STYLES
   ===================================================== */
@media (max-width: 991px) {
    .hero-section {
        min-height: 70vh;
        padding-top: 100px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn, .call-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .quick-contact-bar {
        margin-top: 0;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
}

/* =====================================================
   19. UTILITY CLASSES
   ===================================================== */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =====================================================
   20. ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================================================
   21. BACK TO TOP BUTTON
   ===================================================== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 991px) {
    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}
