/* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */

body {
    padding-bottom: 40px;
    color: #5a5a5a;
}

/* CUSTOMIZE THE NAVBAR
-------------------------------------------------- */

/* Special class on .container surrounding .navbar, used for positioning it into place. */
.navbar-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
}

/* Flip around the padding for proper display in narrow viewports */
.navbar-wrapper > .container {
    padding-right: 0;
    padding-left: 0;
}

.navbar-wrapper .navbar {
    padding-right: 15px;
    padding-left: 15px;
}

.navbar-wrapper .navbar .container {
    width: auto;
}

/* Navbar Logo Styles - Non-clickable display with perfect centering */
.navbar-brand-logo {
    float: left;
    height: 50px;
    padding: 0 15px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.navbar-brand-logo .navbar-logo {
    height: 40px !important;
    width: auto !important;
    max-width: 150px !important;
    object-fit: contain !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    display: block !important;
}

/* Responsive logo sizing with maintained centering */
@media (max-width: 768px) {
    .navbar-brand-logo {
        height: 45px;
        padding: 0 12px;
    }
    
    .navbar-brand-logo .navbar-logo {
        height: 35px !important;
        max-width: 120px !important;
    }
}

@media (max-width: 480px) {
    .navbar-brand-logo {
        height: 40px;
        padding: 0 10px;
    }
    
    .navbar-brand-logo .navbar-logo {
        height: 30px !important;
        max-width: 100px !important;
    }
}

/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

/* Carousel base class */
.carousel {
    height: 500px;
    margin-bottom: 30px;
}

/* Since positioning the image, we need to help out the caption */
.carousel-caption {
    z-index: 10;
}

/* Declare heights because of positioning of img element */
.carousel .item {
    height: 500px;
    background-color: #f8f9fa;
}

.carousel-inner > .item > img {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    height: 500px;
}

/* MARKETING CONTENT
-------------------------------------------------- */

/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {
    margin-bottom: 20px;
    text-align: center;
}

.marketing h2 {
    font-weight: normal;
}

.marketing .col-lg-4 p {
    margin-right: 10px;
    margin-left: 10px;
}

/* Featurettes
------------------------- */

.featurette-divider {
    margin: 40px 0; /* Space out the Bootstrap <hr> more */
}

/* Thin out the marketing headings */
.featurette-heading {
    font-weight: 300;
    line-height: 1;
    letter-spacing: -1px;
}

/* RESPONSIVE CSS
-------------------------------------------------- */

@media (min-width: 768px) {
    /* Navbar positioning foo */
    .navbar-wrapper {
        margin-top: 20px;
    }

    .navbar-wrapper .container {
        padding-right: 15px;
        padding-left: 15px;
    }

    .navbar-wrapper .navbar {
        padding-right: 0;
        padding-left: 0;
    }

    /* The navbar becomes detached from the top, so we round the corners */
    .navbar-wrapper .navbar {
        border-radius: 4px;
    }

    /* Bump up size of carousel content */
    .carousel-caption p {
        margin-bottom: 20px;
        font-size: 21px;
        line-height: 1.4;
    }

    .featurette-heading {
        font-size: 40px;
    }
}

@media (min-width: 992px) {
    .featurette-heading {
        margin-top: 120px;
    }
}

/* EXHIBITION CARDS FIXES FOR INDEX PAGE
-------------------------------------------------- */

/* Ensure exhibition cards are properly displayed on index page */
.index-page .exhibitions-preview-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
    margin-top: 2rem !important;
}

.index-page .exhibition-preview-card {
    background: rgba(255, 255, 255, 0.98) !important;
    border-radius: 24px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(20px) !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 500px !important;
}

.index-page .exhibition-preview-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
}

/* Exhibition visual section */
.index-page .exhibition-visual {
    height: 200px !important;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
}

.index-page .visual-container {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.index-page .exhibition-illustration {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

/* Appliance showcase styling */
.index-page .appliance-showcase {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 2rem !important;
    gap: 1.5rem !important;
    width: 100% !important;
}

.index-page .appliance-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: rgba(59, 130, 246, 0.1) !important;
    border: 2px solid rgba(59, 130, 246, 0.3) !important;
    transition: all 0.3s ease !important;
    animation: pulse 2s ease-in-out infinite !important;
}

.index-page .appliance-item:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3) !important;
}

.index-page .appliance-item i {
    font-size: 1.5rem !important;
    color: #3b82f6 !important;
}

.index-page .appliance-item.refrigerator {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

.index-page .appliance-item.oven {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.index-page .appliance-item.oven i {
    color: #ef4444 !important;
}

.index-page .appliance-item.washer {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.index-page .appliance-item.washer i {
    color: #10b981 !important;
}

/* Tech showcase styling */
.index-page .tech-displays {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 2rem !important;
    gap: 1.5rem !important;
    width: 100% !important;
}

.index-page .tech-device {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 12px !important;
    background: rgba(139, 92, 246, 0.1) !important;
    border: 2px solid rgba(139, 92, 246, 0.3) !important;
    transition: all 0.3s ease !important;
}

.index-page .tech-device:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 15px rgba(139, 92, 246, 0.3) !important;
}

.index-page .tech-device i {
    font-size: 1.3rem !important;
    color: #8b5cf6 !important;
}

/* Automotive showcase styling */
.index-page .automotive-display {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem !important;
    gap: 1rem !important;
    width: 100% !important;
}

.index-page .vehicle-silhouette {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 80px !important;
    height: 50px !important;
    border-radius: 12px !important;
    background: rgba(6, 182, 212, 0.1) !important;
    border: 2px solid rgba(6, 182, 212, 0.3) !important;
    transition: all 0.3s ease !important;
}

.index-page .vehicle-silhouette:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 15px rgba(6, 182, 212, 0.3) !important;
}

.index-page .vehicle-silhouette i {
    font-size: 1.8rem !important;
    color: #06b6d4 !important;
}

.index-page .parts-showcase {
    display: flex !important;
    gap: 1rem !important;
}

.index-page .part {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    background: rgba(6, 182, 212, 0.1) !important;
    border: 1px solid rgba(6, 182, 212, 0.3) !important;
    transition: all 0.3s ease !important;
}

.index-page .part:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 4px 10px rgba(6, 182, 212, 0.3) !important;
}

.index-page .part i {
    font-size: 1rem !important;
    color: #06b6d4 !important;
}

/* Exhibition content styling */
.index-page .exhibition-content {
    padding: 2.5rem !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.index-page .content-header {
    margin-bottom: 1.5rem !important;
}

.index-page .exhibition-title {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 1rem !important;
    line-height: 1.3 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    height: auto !important;
    max-height: none !important;
}

.index-page .exhibition-category {
    display: inline-block !important;
    background: rgba(139, 92, 246, 0.1) !important;
    color: #8b5cf6 !important;
    padding: 6px 12px !important;
    border-radius: 16px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

.index-page .exhibition-description {
    color: #6b7280 !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
    flex: 1 !important;
}

/* Feature tags styling */
.index-page .exhibition-features {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.8rem !important;
    margin: 1.5rem 0 !important;
}

.index-page .feature-tag {
    display: inline-block !important;
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    transition: all 0.3s ease !important;
}

.index-page .feature-tag:hover {
    background: rgba(59, 130, 246, 0.2) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2) !important;
}

/* Exhibition actions styling */
.index-page .exhibition-actions {
    display: flex !important;
    gap: 1rem !important;
    margin-top: auto !important;
}

.index-page .exhibition-cta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.index-page .exhibition-cta.primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    color: white !important;
    border: none !important;
}

.index-page .exhibition-cta.secondary {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

.index-page .exhibition-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3) !important;
}

.index-page .exhibition-cta:hover,
.index-page .exhibition-cta:focus,
.index-page .exhibition-cta:active {
    text-decoration: none !important;
}

.index-page .exhibition-cta.primary:hover,
.index-page .exhibition-cta.primary:focus,
.index-page .exhibition-cta.primary:active {
    color: white !important;
}

/* Card badges */
.index-page .card-badge {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    background: rgba(59, 130, 246, 0.95) !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    backdrop-filter: blur(10px) !important;
    z-index: 10 !important;
}

.index-page .card-badge i {
    font-size: 0.7rem !important;
}

/* Animation effects */
.index-page .showcase-effects,
.index-page .tech-connections,
.index-page .motion-effects {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.index-page .energy-wave {
    position: absolute !important;
    width: 100px !important;
    height: 100px !important;
    border: 2px solid rgba(59, 130, 246, 0.3) !important;
    border-radius: 50% !important;
    animation: ripple 3s ease-out infinite !important;
}

.index-page .energy-wave.wave-1 {
    top: 20% !important;
    left: 20% !important;
    animation-delay: 0s !important;
}

.index-page .energy-wave.wave-2 {
    top: 60% !important;
    right: 20% !important;
    animation-delay: 1s !important;
}

.index-page .energy-wave.wave-3 {
    bottom: 20% !important;
    left: 50% !important;
    animation-delay: 2s !important;
}

@keyframes ripple {
    0% {
        transform: scale(0.8) !important;
        opacity: 1 !important;
    }
    100% {
        transform: scale(2) !important;
        opacity: 0 !important;
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1) !important;
        opacity: 1 !important;
    }
    50% {
        transform: scale(1.05) !important;
        opacity: 0.8 !important;
    }
}

/* Responsive design for exhibition cards */
@media (max-width: 768px) {
    .index-page .exhibitions-preview-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .index-page .exhibition-preview-card {
        min-height: 450px !important;
    }

    .index-page .exhibition-title {
        font-size: 1.6rem !important;
    }

    .index-page .appliance-showcase,
    .index-page .tech-displays,
    .index-page .automotive-display {
        padding: 1.5rem !important;
    }

    .index-page .appliance-item,
    .index-page .tech-device {
        width: 50px !important;
        height: 50px !important;
    }

    .index-page .vehicle-silhouette {
        width: 70px !important;
        height: 45px !important;
    }

    .index-page .exhibition-content {
        padding: 2rem !important;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .index-page .exhibitions-preview-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .index-page .exhibition-title {
        font-size: 1.7rem !important;
    }

    .index-page .appliance-showcase,
    .index-page .tech-displays,
    .index-page .automotive-display {
        padding: 1.8rem !important;
    }
}
