/* ============================================
   WEBSITE-WIDE VISIBILITY & CONTRAST FIX
   Professional Design with Perfect Readability
   ============================================ */

/* ============================================
   GLOBAL VISIBILITY RULES
   ============================================ */
* {
    opacity: 1 !important;
}

/* Dark Backgrounds = Light Text */
.bg-dark,
.hero-section,
.hero-ultra-luxury,
.hero-about,
.hero-products,
.hero-catalogs,
.hero-contact,
.hero-product-detail,
[style*="background: linear-gradient"],
[style*="background: #"] {
    color: #ffffff !important;
}

/* Light Backgrounds = Dark Text */
.bg-light,
.bg-white,
section:not([class*="hero"]) {
    color: #1f2937 !important;
}

/* ============================================
   PARALLAX EFFECTS - ALL SECTIONS
   ============================================ */
@keyframes parallaxFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

@keyframes parallaxPulse {
    0%, 100% { opacity: 0.05; transform: scale(1); }
    50% { opacity: 0.15; transform: scale(1.1); }
}

/* Parallax Background Layers */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    animation: parallaxFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   HERO SECTIONS - DARK GRADIENTS
   ============================================ */
.hero-about {
    background: linear-gradient(135deg, #0c4a6e 0%, #1e40af 50%, #0369a1 100%) !important;
}

.hero-products {
    background: linear-gradient(135deg, #134e4a 0%, #0f766e 50%, #0d9488 100%) !important;
}

.hero-catalogs {
    background: linear-gradient(135deg, #9a3412 0%, #c2410c 50%, #ea580c 100%) !important;
}

.hero-contact {
    background: linear-gradient(135deg, #14532d 0%, #15803d 50%, #16a34a 100%) !important;
}

.hero-product-detail {
    background: linear-gradient(135deg, #312e81 0%, #4c1d95 50%, #6b21a8 100%) !important;
}

/* Hero Parallax Effects */
.hero-about::before,
.hero-products::before,
.hero-catalogs::before,
.hero-contact::before,
.hero-product-detail::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: parallaxFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Hero Content Above Parallax */
.hero-about .container,
.hero-products .container,
.hero-catalogs .container,
.hero-contact .container,
.hero-product-detail .container {
    position: relative;
    z-index: 5;
}

/* ============================================
   TEXT VISIBILITY - PERFECT CONTRAST
   ============================================ */

/* Dark Backgrounds */
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section p,
.hero-ultra-luxury h1,
.hero-ultra-luxury h2,
.hero-ultra-luxury p,
.hero-about h1,
.hero-about h2,
.hero-about p,
.hero-products h1,
.hero-products h2,
.hero-products p,
.hero-catalogs h1,
.hero-catalogs h2,
.hero-catalogs p,
.hero-contact h1,
.hero-contact h2,
.hero-contact p,
.hero-product-detail h1,
.hero-product-detail h2,
.hero-product-detail p {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 1 !important;
}

/* Light Backgrounds */
section:not([class*="hero"]) h1,
section:not([class*="hero"]) h2,
section:not([class*="hero"]) h3,
section:not([class*="hero"]) h4,
section:not([class*="hero"]) p,
.bg-light h1,
.bg-light h2,
.bg-light h3,
.bg-light p,
.bg-white h1,
.bg-white h2,
.bg-white h3,
.bg-white p {
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
    opacity: 1 !important;
}

/* ============================================
   CARDS & COMPONENTS
   ============================================ */

/* Cards on Light Background */
.card {
    background: #ffffff !important;
    color: #1f2937 !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
}

.card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-title,
.card-text,
.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6,
.card p,
.card a,
.card span {
    color: #1f2937 !important;
    opacity: 1 !important;
}

.card-body h6,
.card-body .fw-bold {
    color: #111827 !important;
    opacity: 1 !important;
}

/* Badges */
.badge {
    opacity: 1 !important;
}

/* Category Cards - Dark Text */
.category-card h6,
.category-card .fw-bold,
.category-card .card-title,
.category-card .mb-0 {
    color: #000000 !important;
    opacity: 1 !important;
    font-weight: 700 !important;
    -webkit-text-fill-color: #000000 !important;
}

/* Product Cards - Dark Text */
.product-card h6,
.product-card .card-title,
.product-card .fw-bold {
    color: #000000 !important;
    opacity: 1 !important;
    font-weight: 700 !important;
    -webkit-text-fill-color: #000000 !important;
}

/* Catalog Cards - Dark Text */
.catalog-card h5,
.catalog-card .fw-bold,
.catalog-card .card-title,
.catalog-card .mb-2 {
    color: #000000 !important;
    opacity: 1 !important;
    font-weight: 700 !important;
    -webkit-text-fill-color: #000000 !important;
}

/* All Card Links - Dark Text */
.card a {
    color: #111827 !important;
    text-decoration: none !important;
}

.card a:hover {
    color: #1e40af !important;
}

/* ============================================
   BUTTONS - PERFECT VISIBILITY
   ============================================ */

/* Primary Buttons */
.btn-primary,
.hero-cta-primary {
    background: #6366F1 !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 12px 28px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
}

.btn-primary:hover,
.hero-cta-primary:hover {
    background: #4f46e5 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4) !important;
    color: #ffffff !important;
}

/* Secondary Buttons */
.btn-secondary,
.hero-cta-secondary {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 600 !important;
    padding: 12px 28px !important;
    border-radius: 8px !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
}

.btn-secondary:hover,
.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}

/* ============================================
   FOOTER - DARK WITH LIGHT TEXT
   ============================================ */
footer {
    background: #111827 !important;
    color: #ffffff !important;
}

footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6,
footer p,
footer a,
footer span,
footer li {
    color: #ffffff !important;
    opacity: 0.9 !important;
}

footer a:hover {
    color: #6366F1 !important;
    opacity: 1 !important;
}

/* ============================================
   FORMS - PERFECT VISIBILITY
   ============================================ */
.form-control,
.form-select,
textarea {
    background: #ffffff !important;
    color: #1f2937 !important;
    border: 1px solid #d1d5db !important;
    opacity: 1 !important;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: #6366F1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

.form-label {
    color: #1f2937 !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb {
    background: #f9fafb !important;
}

.breadcrumb-item,
.breadcrumb-item a {
    color: #6b7280 !important;
    opacity: 1 !important;
}

.breadcrumb-item.active {
    color: #1f2937 !important;
}

/* ============================================
   TABLES
   ============================================ */
.table {
    color: #1f2937 !important;
}

.table thead th {
    background: #f9fafb !important;
    color: #1f2937 !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #e5e7eb !important;
}

.table tbody tr:hover {
    background: #f9fafb !important;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    opacity: 1 !important;
}

.alert-success {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border-color: #6ee7b7 !important;
}

.alert-danger {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border-color: #fca5a5 !important;
}

.alert-warning {
    background: #fef3c7 !important;
    color: #92400e !important;
    border-color: #fcd34d !important;
}

.alert-info {
    background: #dbeafe !important;
    color: #1e40af !important;
    border-color: #93c5fd !important;
}

/* ============================================
   RESPONSIVE PARALLAX
   ============================================ */
@media (max-width: 768px) {
    .parallax-section::before {
        animation-duration: 30s;
    }
    
    .hero-about::before,
    .hero-products::before,
    .hero-catalogs::before,
    .hero-contact::before,
    .hero-product-detail::before {
        animation-duration: 30s;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus {
    outline: 2px solid #6366F1 !important;
    outline-offset: 2px !important;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    * {
        border-color: currentColor !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
