/* ADAS & DMS Solution Page Styles */

/* Base Styles & Variables */
:root {
    --primary-red: #e50914;
    --primary-dark: #0c0c0c;
    --secondary-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #bbbbbb;
    --accent-glow: rgba(229, 9, 20, 0.6);
    --grid-color: rgba(255, 255, 255, 0.05);
    --glow-orb: radial-gradient(circle, rgba(229, 9, 20, 0.4) 0%, rgba(229, 9, 20, 0) 70%);
    --highlight-gradient: linear-gradient(90deg, #e50914, #ff3b30);
}

/* General Section Styles */
.adas-section, .dms-section, .integration-section {
    background-color: var(--primary-dark);
    color: var(--text-light);
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

/* Hero Section Specific Styles */
.adas-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--primary-dark);
}

.adas-hero .hero-content {
    max-width: 600px;
}

.adas-hero .badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
    animation: pulse 2s infinite;
}

.adas-hero .animated-heading {
    text-align: left;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.adas-hero .highlight {
    color: var(--primary-red);
    position: relative;
}

.adas-hero .hero-description {
    font-size: 1.0rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.adas-hero .btn {
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.adas-hero .btn-primary {
    background: var(--highlight-gradient);
    border: none;
    color: white;
}

.adas-hero .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: btn-shine 3s infinite;
}

/* Background Elements */
.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}

.glow-orb {
    position: absolute;
    background: var(--glow-orb);
    border-radius: 50%;
    filter: blur(20px);
    animation: float 15s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    bottom: 10%;
    right: 10%;
    animation-delay: -5s;
}

.circuit-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.circuit-line {
    position: absolute;
    background-color: rgba(229, 9, 20, 0.2);
    height: 2px;
    animation: circuit-glow 4s infinite;
}

.line-1 {
    width: 30%;
    top: 20%;
    left: 0;
    transform: rotate(25deg);
}

.line-2 {
    width: 25%;
    bottom: 30%;
    right: 0;
    transform: rotate(-15deg);
}

.circuit-node {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary-red);
    border-radius: 50%;
    animation: node-flash 3s infinite;
}

.node-1 {
    top: 20%;
    left: 30%;
    animation-delay: 0.5s;
}

.node-2 {
    bottom: 30%;
    right: 25%;
    animation-delay: 1.5s;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header .highlight-text {
    color: var(--primary-red);
    position: relative;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Introduction Text */
.adas-intro, .dms-intro, .integration-intro {
    text-align: center;
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
}

.adas-intro p, .dms-intro p, .integration-intro p {
    font-size: 1.0rem;
    line-height: 1.6;
    color: var(--text-gray);
}

/* ADAS Visual Container Styles */
.adas-visual-container {
    position: relative;
    z-index: 10;
    margin-top: 50px;
    background-color: rgba(10, 10, 10, 0.5);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(229, 9, 20, 0.1);
}

.vehicle-animation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.vehicle-model {
    flex: 1;
    min-width: 300px;
    position: relative;
    border: 1px solid rgba(229, 9, 20, 0.2);
    border-radius: 10px;
    padding: 20px;
    background-color: rgba(20, 20, 20, 0.7);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-img {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.5s ease;
}

.pulse-area {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
}

.pulse-area:hover {
    transform: scale(1.2);
}

.pulse-ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(229, 9, 20, 0.3);
    animation: ripple 2s infinite;
}

.fcw-area {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.ldw-area {
    top: 50%;
    left: 20%;
    transform: translateY(-50%);
}

.bsd-area {
    top: 50%;
    right: 20%;
    transform: translateY(-50%);
}

.pod-area {
    bottom: 20%;
    left: 30%;
}

.acc-area {
    bottom: 20%;
    right: 30%;
}

.feature-details {
    flex: 1;
    min-width: 300px;
}

.feature-card {
    padding: 20px;
    background-color: rgba(25, 25, 25, 0.7);
    border-radius: 10px;
    margin-bottom: 15px;
    transform: translateY(0);
    transition: all 0.3s ease;
    opacity: 0.7;
    display: flex;
    align-items: flex-start;
    border-left: 3px solid transparent;
}

.feature-card:hover, .feature-card.active {
    transform: translateY(-5px);
    background-color: rgba(40, 40, 40, 0.8);
    opacity: 1;
    border-left: 3px solid var(--primary-red);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--primary-red);
    margin-right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(229, 9, 20, 0.1);
    border-radius: 50%;
}

.feature-text {
    flex: 1;
}

.feature-text h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-text p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* DMS Visual Container Styles */
.dms-visual-container {
    position: relative;
    z-index: 10;
    margin-top: 50px;
    background-color: rgba(10, 10, 10, 0.5);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(229, 9, 20, 0.1);
}

.driver-monitoring-display {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.camera-view {
    flex: 1;
    min-width: 300px;
    position: relative;
    border: 1px solid rgba(229, 9, 20, 0.2);
    border-radius: 10px;
    padding: 20px;
    background-color: rgba(20, 20, 20, 0.7);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.driver-img {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.5s ease;
}

.facial-tracking-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tracking-point {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary-red);
    border-radius: 50%;
    opacity: 0.8;
    animation: pulse 2s infinite;
}

.tracking-line {
    position: absolute;
    border: 1px dashed rgba(229, 9, 20, 0.5);
    width: 150px;
    height: 200px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    animation: scanner 4s infinite;
}

.eye-left {
    top: 45%;
    left: 42%;
}

.eye-right {
    top: 45%;
    left: 58%;
}

.mouth {
    top: 60%;
    left: 50%;
}

.status-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary-red);
    border-radius: 50%;
    margin-left: 8px;
    animation: status-blink 1.5s infinite;
}

/* Center the feature icon in the DMS feature cards */
.dms-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dms-feature .feature-icon {
    display: block;
    margin: 0 auto 15px auto;
    text-align: center;
}

.dms-features {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.dms-feature {
    padding: 20px;
    background-color: rgba(25, 25, 25, 0.7);
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-top: 3px solid transparent;
    height: 100%;
}

.dms-feature:hover {
    transform: translateY(-5px);
    background-color: rgba(40, 40, 40, 0.8);
    border-top: 3px solid var(--primary-red);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.dms-feature .feature-icon {
    margin-bottom: 15px;
    margin-right: 10;
}

.dms-feature .feature-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.dms-feature .feature-description {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Integration Visual Styles */
.integration-visual {
    position: relative;
    z-index: 10;
    margin-top: 50px;
}

.integration-workflow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.workflow-item {
    background-color: rgba(25, 25, 25, 0.7);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.workflow-item:hover {
    transform: translateY(-5px);
    background-color: rgba(40, 40, 40, 0.8);
    border-bottom: 3px solid var(--primary-red);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.workflow-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background-color: rgba(229, 9, 20, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-red);
}

.workflow-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.workflow-item p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.workflow-arrow {
    position: absolute;
    top: 50%;
    right: -30px;
    width: 40px;
    height: 10px;
    background-color: rgba(229, 9, 20, 0.2);
    clip-path: polygon(0% 20%, 75% 20%, 75% 0%, 100% 50%, 75% 100%, 75% 80%, 0% 80%);
    z-index: 5;
    transform: translateY(-50%);
}

.integration-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.benefit-item {
    background-color: rgba(25, 25, 25, 0.7);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border-top: 3px solid transparent;
}

.benefit-item:hover {
    transform: translateY(-5px);
    background-color: rgba(40, 40, 40, 0.8);
    border-top: 3px solid var(--primary-red);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(229, 9, 20, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary-red);
}

.benefit-item h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.benefit-item p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.5;
}

/* CTA Styles */
.integration-cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 80px;
}

.integration-cta {
    position: relative;
    z-index: 10;
    text-align: center;
    background-color: rgba(15, 15, 15, 0.8);
    border-radius: 16px;
    padding: 50px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.cta-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.cta-image img:hover {
    transform: scale(1.02);
}

.cta-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(229, 9, 20, 0.15) 0%, rgba(229, 9, 20, 0) 70%);
    animation: cta-pulse 3s infinite;
    pointer-events: none;
}

.integration-cta h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.btn-glow {
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--highlight-gradient);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.6);
}

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

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes circuit-glow {
    0%, 100% {
        opacity: 0.2;
        box-shadow: 0 0 5px rgba(229, 9, 20, 0.3);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 15px rgba(229, 9, 20, 0.6);
    }
}

@keyframes node-flash {
    0%, 100% {
        opacity: 0.7;
        box-shadow: 0 0 5px rgba(229, 9, 20, 0.5);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(229, 9, 20, 0.8);
    }
}

@keyframes btn-shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

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

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

@keyframes scanner {
    0%, 100% {
        transform: translate(-50%, -55%) rotate(0deg);
        border-color: rgba(229, 9, 20, 0.3);
    }
    50% {
        transform: translate(-50%, -55%) rotate(180deg);
        border-color: rgba(229, 9, 20, 0.6);
    }
}

@keyframes status-blink {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

@keyframes cta-pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .adas-hero .animated-heading {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .integration-cta-container {
        gap: 20px;
    }
    
    .cta-image img {
        width: 400px;
        height: 270px;
    }
    
    .dms-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .adas-hero .hero-content, 
    .adas-hero .hero-image {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .adas-hero .hero-content {
        margin-bottom: 40px;
        text-align: center;
    }
    
    .adas-hero .animated-heading {
        font-size: 2.8rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .vehicle-animation, 
    .driver-monitoring-display {
        flex-direction: column;
    }
    
    .workflow-arrow {
        display: none;
    }
    
    .integration-cta-container {
        flex-direction: column;
    }
    
    .cta-image img {
        width: 100%;
        max-width: 450px;
        height: auto;
        max-height: 300px;
    }
    
    .dms-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .camera-view {
        min-width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .adas-section, .dms-section, .integration-section {
        padding: 70px 0;
    }
    
    .adas-hero .animated-heading {
        font-size: 2.4rem;
    }
    
    .adas-hero .hero-description {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .adas-visual-container, .dms-visual-container {
        padding: 30px 20px;
    }
    
    .integration-workflow {
        grid-template-columns: 1fr;
    }
    
    .integration-benefits {
        grid-template-columns: 1fr;
    }
    
    .vehicle-model,
    .camera-view {
        height: 300px;
    }
    
    .integration-cta {
        padding: 40px 20px;
    }
    
    .integration-cta h3 {
        font-size: 1.6rem;
    }
    
    .dms-feature {
        padding: 15px;
    }
    
    .dms-feature .feature-label {
        font-size: 1rem;
    }
    
    .dms-feature .feature-description {
        font-size: 0.85rem;
    }
    
    .dms-feature .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .adas-hero .animated-heading {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .vehicle-model,
    .camera-view {
        height: 250px;
    }
    
    .integration-cta h3 {
        font-size: 1.5rem;
    }
    
    .btn-glow {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .cta-image img {
        height: auto;
        max-height: 200px;
    }
    
    .dms-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .dms-visual-container {
        padding: 20px 15px;
    }
    
    .dms-feature {
        padding: 12px;
    }
    
    .dms-feature .feature-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }
    
    .dms-feature .feature-label {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .dms-feature .feature-description {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .driver-monitoring-display {
        gap: 15px;
    }
}
