/* Custom Styles for AutoGlanz Pro - Luxury Black Theme */

/* Base styles */
body {
    background-color: #000000;
    color: #ffffff;
}

/* Logo styles */
.logo-nav {
    max-height: 4rem;
    width: auto;
    transition: all 0.3s ease;
}

.logo-nav:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.logo-footer {
    max-height: 3rem;
    width: auto;
}

/* Mobile logo adjustments */
@media (max-width: 768px) {
    .logo-nav {
        max-height: 3rem;
    }
    
    .logo-footer {
        max-height: 2.5rem;
    }
}

@media (max-width: 640px) {
    .logo-nav {
        max-height: 2.5rem;
    }
    
    .logo-footer {
        max-height: 2rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1e3a8a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

/* Animations */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 1s ease-out;
}

/* Navigation active states */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #f59e0b;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Hero section background */
#home {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Service cards hover effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Gallery filters */
.gallery-filter {
    padding: 12px 24px;
    background: #f8fafc;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-filter:hover,
.gallery-filter.active {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
    transform: translateY(-2px);
}

/* Gallery items */
.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Luxury Pricing Tabs */
.category-tab,
.vehicle-tab {
    padding: 12px 24px;
    background: #1f2937;
    color: white;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 2px;
}

.category-tab:hover,
.vehicle-tab:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
}

.category-tab.active,
.vehicle-tab.active {
    background: #d4af37;
    color: black;
    border-color: #d4af37;
}

/* Gallery filters for luxury theme */
.gallery-filter {
    padding: 12px 24px;
    background: #1f2937;
    color: white;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-filter:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.gallery-filter.active {
    background: #d4af37;
    color: black;
    border-color: #d4af37;
}

/* Form styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
    border-color: transparent;
}

/* Button hover effects */
.btn-hover {
    transition: all 0.3s ease;
}

.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Modal styles */
.modal-enter {
    animation: modal-enter 0.3s ease-out;
}

.modal-exit {
    animation: modal-exit 0.3s ease-in;
}

@keyframes modal-enter {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modal-exit {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* Responsive design enhancements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .gallery-filter {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
}

/* Print styles */
@media print {
    .fixed,
    .bg-fixed,
    button,
    .hover\:scale-105,
    .hover\:scale-110 {
        display: none !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Custom utilities */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.backdrop-blur-custom {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.gradient-overlay {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(59, 130, 246, 0.7) 100%);
}

/* Enhanced card styles for luxury theme */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(212, 175, 55, 0.3);
}

/* Luxury navigation dropdown */
.group:hover .group-hover\:opacity-100 {
    opacity: 1 !important;
}

.group:hover .group-hover\:visible {
    visibility: visible !important;
}

.group:hover .group-hover\:rotate-180 {
    transform: rotate(180deg);
}

/* Dropdown menu positioning and styling */
/* .group .absolute {
    z-index: 1000;
    pointer-events: none;
    transition: all 0.3s ease;
}*/

.group:hover .absolute {
    pointer-events: auto;
}

/* Navigation link hover effects */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #d4af37;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Luxury form inputs */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* Luxury buttons */
.btn-luxury {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: black;
    font-weight: bold;
    transition: all 0.3s ease;
    transform: perspective(1px) translateZ(0);
}

.btn-luxury:hover {
    transform: scale(1.05) translateZ(0);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* Text shadow for luxury feel */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Pricing card enhancements */
.pricing-content {
    transition: all 0.5s ease-in-out;
}

.pricing-content.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.pricing-content:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

/* Luxury scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4af37, #b8941f);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f4d03f, #d4af37);
}

/* Progress bar for form submission */
.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6, #f59e0b);
    background-size: 200% 100%;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Star rating styles */
.star-rating {
    color: #f59e0b;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Image lazy loading placeholder */
.img-placeholder {
    background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
    background-size: 400% 400%;
    animation: placeholder-shimmer 1.5s ease-in-out infinite;
}

@keyframes placeholder-shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Success/error message styles */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    animation: slide-in 0.3s ease-out;
}

.alert-success {
    background-color: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

@keyframes slide-in {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        background-color: #1f2937;
        color: #f9fafb;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #000000 !important;
    }
    
    .border-gray-300 {
        border-color: #000000 !important;
    }
}

/* ==========================================
   MOBILE BREAKPOINT UTILITIES
   ========================================== */

/* Mobile First Breakpoints */
/* Mobile: 0-767px (default, no media query needed) */

/* Tablet: 768px and up */
@media (min-width: 768px) {
  .md\:text-xl {
    font-size: 1.25rem;
  }
  
  .md\:text-2xl {
    font-size: 1.5rem;
  }
  
  .md\:text-5xl {
    font-size: 3rem;
  }
  
  .md\:py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  
  .md\:gap-8 {
    gap: 2rem;
  }
  
  .md\:h-64 {
    height: 16rem;
  }
  
  .md\:p-6 {
    padding: 1.5rem;
  }
  
  .md\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  .md\:py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}
