/* =========================================
   CUSTOMER PAGE SPECIFIC STYLES (SCOPED)
   ========================================= */

#customer-page {
    --brand-red: #cc0000;
    --brand-red-glow: #ff1a1a;
    --section-bg: #0a0a0a;
    --text-light: #ffffff;
    --text-muted: #94a3b8;
    background-color: var(--section-bg);
}

/* --- Refined Hero Section --- */
#customer-page .hero-slider-wrapper {
    position: relative;
    height: 30vh;
    min-height: 280px;
    overflow: hidden;
    background-color: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    padding-top: 0;
}

/* Improved Dark Gradient Overlay */
#customer-page .hero-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(10, 10, 10, 0.4) 0%, rgba(5, 5, 5, 0.95) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Smoother Zoom-in Animation for Hero Images */
#customer-page .slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 2s ease-in-out, transform 8s ease-out;
    z-index: 0;
}

#customer-page .slide.active {
    opacity: 0.7;
    transform: scale(1.05);
}

/* --- Arranged Text Styles --- */
#customer-page .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

@keyframes custFadeUpIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

#customer-page .hero-content h1 {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin: 0 0 20px 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
    opacity: 0;
    animation: custFadeUpIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#customer-page .hero-content h1 span {
    color: var(--brand-red);
}

#customer-page .hero-content p {
    color: #cbd5e1;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    opacity: 0;
    animation: custFadeUpIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

/* --- Section Header --- */
#customer-page .customer-header {
    text-align: center;
    padding: 30px 20px 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

#customer-page .customer-header.show {
    opacity: 1;
    transform: translateY(0);
}

#customer-page .customer-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: var(--text-light);
    letter-spacing: 2px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-transform: uppercase;
    margin-bottom: 0;
}

#customer-page .customer-header h2 i {
    color: var(--brand-red);
    font-size: 2.2rem;
    filter: drop-shadow(0 0 8px rgba(204, 0, 0, 0.5));
}

/* --- Container & Grid --- */
#customer-page .customer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 20px;
}

#customer-page .logo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

/* --- Animated Frame Logo Card --- */
@keyframes custCardEntrance {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

#customer-page .logo-card {
    position: relative;
    background: #1a1a1a;
    border-radius: 10px;
    padding: 3px;
    overflow: hidden;
    opacity: 0;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

#customer-page .logo-card.show {
    animation: custCardEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#customer-page .logo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(204, 0, 0, 0.2);
}

/* The Spinning Animated Gradient behind the inner box */
#customer-page .logo-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(transparent, transparent, transparent, var(--brand-red-glow));
    animation: custRotateFrame 4s linear infinite;
    z-index: 0;
    opacity: 0.1;
    transition: opacity 0.4s ease;
}

#customer-page .logo-card:hover::before {
    opacity: 1;
    animation: custRotateFrame 2s linear infinite;
}

@keyframes custRotateFrame {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* The solid white inner box where the logo actually sits */
#customer-page .logo-inner {
    background: #ffffff;
    border-radius: 7px;
    height: 110px;
    display: flex;
    align-items: center; justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

#customer-page .logo-inner img {
    max-width: 100%; max-height: 100%; width: auto; height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#customer-page .logo-card:hover .logo-inner img {
    transform: scale(1.08);
}

/* --- Disclaimer Note --- */
#customer-page .disclaimer-note {
    text-align: center;
    padding: 20px;
    margin: 0 auto 40px auto;
    max-width: 800px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.6;
    opacity: 0;
}

#customer-page .disclaimer-note.show {
    animation: custFadeUpIn 1s ease forwards;
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
    #customer-page .logo-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
    #customer-page .logo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    #customer-page .hero-slider-wrapper { margin-top: 80px; }
    #customer-page .hero-content h1 { font-size: 2.2rem; }
    #customer-page .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    #customer-page .logo-inner { height: 90px; padding: 15px; }
    #customer-page .customer-container { padding: 0 20px 20px; }
}

@media (max-width: 480px) {
    #customer-page .logo-grid { grid-template-columns: repeat(1, 1fr); }
}