/* ========================================
   A-BIKE V28 PRODUCT PAGE - SPECIFIC STYLES
   Custom styling for the V28 product information page
======================================== */

/* ========================================
   NAVIGATION BAR - LAYOUT ADJUSTMENT
======================================== */
/* Hidden placeholder for layout balance */
.nav-placeholder {
    visibility: hidden;
}

/* Nav-link hover color - Black */
.site-nav .nav-link:hover {
    color: #000000 !important;
}

.site-nav.hero-mode .nav-link:hover {
    color: #000000 !important;
}

/* ========================================
   A-BIKE LOGO OVERLAY
   Fixed position at left corner of nav bar
   Disappears on scroll via JavaScript
======================================== */
.abike-logo-overlay {
    position: fixed;
    top: 25px;
    left: 15px;
    z-index: 10001;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.abike-logo-overlay img {
    display: block;
    height: 144px;
    width: auto;
}

.abike-logo-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .abike-logo-overlay img {
        height: 96px;
    }
}

@media (max-width: 480px) {
    .abike-logo-overlay img {
        height: 72px;
    }
}

/* ========================================
   TECHNOLOGY SECTION - COMPONENT GRID
======================================== */
.v28-tech {
    background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 50%, #0d1f35 100%);
    padding: 80px 40px;
    min-height: auto;
    display: block;
}

.tech-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.tech-header h2 {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.tech-intro {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

/* Component Cards Grid */
.tech-components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto 50px auto;
}

.tech-component-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tech-component-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(43, 92, 212, 0.5);
}

.component-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #0d1f35;
}

.component-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tech-component-card:hover .component-image img {
    transform: scale(1.08);
}

.component-info {
    padding: 25px;
}

.component-info h3 {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 600;
}

.component-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2B5CD4, #1a3d8f);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.component-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* Additional Features Row */
.tech-features-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-feature {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.tech-feature:hover {
    background: rgba(255, 255, 255, 0.08);
}

.tech-feature h4 {
    font-size: 16px;
    color: #2B5CD4;
    margin-bottom: 10px;
    font-weight: 600;
}

.tech-feature p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   SPECIFICATIONS SECTION - V28 VARIANT
======================================== */
.v28-specs {
    background: #f8f9fb;
}

.v28-specs .specs-header h2 {
    color: #0a1628;
}

.v28-specs .spec-intro {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.8;
    max-width: 1000px;
}

.v28-specs .spec-col {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.v28-specs .spec-col h4 {
    color: #0a1628;
    border-bottom-color: #2B5CD4;
}

.v28-specs .spec-col p {
    color: #4a5568;
}

.v28-specs .spec-col strong {
    color: #1a202c;
}

/* ========================================
   INNOVATION SECTION - MLS SYSTEM FEATURE
======================================== */
.v28-innovation {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 40px;
    overflow: hidden;
}

/* Background Image */
.innovation-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Dark Overlay for Readability */
.innovation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.85) 0%,
        rgba(13, 31, 53, 0.8) 50%,
        rgba(10, 22, 40, 0.9) 100%
    );
    z-index: 1;
}

/* Content Wrapper */
.innovation-content-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

/* Text Block */
.innovation-text-block {
    color: #ffffff;
}

.innovation-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.innovation-subtitle {
    font-size: 14px;
    color: #2B5CD4;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 30px;
}

.innovation-tagline {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 25px;
    font-style: italic;
}

.innovation-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 20px;
}

.innovation-highlight {
    margin-top: 35px;
    padding: 25px;
    background: rgba(43, 92, 212, 0.15);
    border-left: 4px solid #2B5CD4;
    border-radius: 0 12px 12px 0;
}

.highlight-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    font-weight: 500;
}

.highlight-emphasis {
    font-size: 20px;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
}

/* Image Block with Frame */
.innovation-image-block {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mls-image-frame {
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 15px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.mls-image-frame:hover {
    transform: scale(1.02);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset,
        0 0 30px rgba(43, 92, 212, 0.3);
}

.mls-image-frame img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Slogan at Bottom */
.innovation-slogan {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 80px;
}

.slogan-line-1 {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.slogan-line-2 {
    font-size: 42px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 30px rgba(43, 92, 212, 0.5);
}

/* ========================================
   RESPONSIVE BREAKPOINTS
======================================== */

/* Large Tablet */
@media (max-width: 1024px) {
    .innovation-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .innovation-text-block {
        order: 2;
    }

    .innovation-image-block {
        order: 1;
    }

    .innovation-highlight {
        text-align: left;
    }

    .innovation-title {
        font-size: 36px;
    }

    .slogan-line-2 {
        font-size: 36px;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .v28-tech {
        padding: 60px 20px;
    }

    .tech-components-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .tech-header h2 {
        font-size: 30px;
    }

    .v28-innovation {
        padding: 80px 30px;
        min-height: auto;
    }

    .innovation-title {
        font-size: 32px;
    }

    .innovation-tagline {
        font-size: 24px;
    }

    .slogan-line-1 {
        font-size: 24px;
    }

    .slogan-line-2 {
        font-size: 32px;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .tech-components-grid {
        grid-template-columns: 1fr;
    }

    .tech-features-row {
        grid-template-columns: 1fr;
    }

    .component-image {
        height: 180px;
    }

    .v28-innovation {
        padding: 60px 20px;
    }

    .innovation-content-wrapper {
        gap: 30px;
    }

    .mls-image-frame {
        padding: 10px;
    }

    .innovation-slogan {
        margin-top: 50px;
    }

    .slogan-line-1 {
        font-size: 20px;
    }

    .slogan-line-2 {
        font-size: 26px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .v28-tech {
        padding: 40px 15px;
    }

    .tech-header h2 {
        font-size: 26px;
    }

    .tech-intro {
        font-size: 14px;
    }

    .component-info {
        padding: 20px;
    }

    .component-info h3 {
        font-size: 18px;
    }

    .component-info p {
        font-size: 13px;
    }

    .tech-feature {
        padding: 15px;
    }

    .tech-feature h4 {
        font-size: 15px;
    }

    .v28-innovation {
        padding: 50px 15px;
    }

    .innovation-title {
        font-size: 26px;
    }

    .innovation-subtitle {
        font-size: 12px;
    }

    .innovation-tagline {
        font-size: 20px;
    }

    .innovation-description {
        font-size: 14px;
    }

    .innovation-highlight {
        padding: 18px;
    }

    .highlight-text {
        font-size: 15px;
    }

    .highlight-emphasis {
        font-size: 17px;
    }

    .slogan-line-1 {
        font-size: 18px;
    }

    .slogan-line-2 {
        font-size: 22px;
    }

    .mls-image-frame {
        border-width: 2px;
        padding: 8px;
    }
}

/* ========================================
   ANIMATION ENHANCEMENTS
======================================== */

/* Fade in animation for innovation section elements */
.v28-innovation .innovation-title,
.v28-innovation .innovation-subtitle,
.v28-innovation .innovation-tagline,
.v28-innovation .innovation-description,
.v28-innovation .innovation-highlight,
.v28-innovation .mls-image-frame,
.v28-innovation .innovation-slogan {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.v28-innovation .innovation-title { animation-delay: 0.1s; }
.v28-innovation .innovation-subtitle { animation-delay: 0.2s; }
.v28-innovation .innovation-tagline { animation-delay: 0.3s; }
.v28-innovation .innovation-description:nth-of-type(1) { animation-delay: 0.4s; }
.v28-innovation .innovation-description:nth-of-type(2) { animation-delay: 0.5s; }
.v28-innovation .innovation-highlight { animation-delay: 0.6s; }
.v28-innovation .mls-image-frame { animation-delay: 0.4s; }
.v28-innovation .innovation-slogan { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle pulse effect on the MLS badge */
.mls-image-frame {
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% {
        box-shadow:
            0 25px 60px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    }
    50% {
        box-shadow:
            0 25px 60px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset,
            0 0 20px rgba(43, 92, 212, 0.2);
    }
}
