/* Service Details Section - Water Detection Theme */

:root {
    --water-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --water-light: #e3f2fd;
    --water-primary: #03507B;
    --water-dark: #1565c0;
    --detection-color: #00bcd4;
}

.ebsrv-details-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #f8f9ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.ebsrv-details-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatSlow 8s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

.ebsrv-details-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Header */
.ebsrv-details-header {
    text-align: center;
    margin-bottom: 60px;
}

.ebsrv-details-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #122C3B;
    font-family: 'Cairo', sans-serif;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.ebsrv-details-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 40%;
    height: 4px;
    background: linear-gradient(to left, #03507B, transparent);
    border-radius: 2px;
}

.ebsrv-details-subtitle {
    font-size: 1.1rem;
    color: #546e7a;
    font-family: 'Cairo', sans-serif;
    margin-top: 25px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Main Content Grid */
.ebsrv-details-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 50px;
}

/* Visual Element - Water Drop with Detection Waves */
.ebsrv-details-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
}

.water-drop-container {
    position: relative;
    width: 150px;
    height: 150px;
}

/* Water Drop Shape */
.water-drop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 130px;
    background: linear-gradient(135deg, #03507B 0%, #00bcd4 100%);
    border-radius: 50% 50% 50% 0;
    transform: translate(-50%, -50%) rotate(-45deg);
    box-shadow: 0 10px 40px rgba(33, 150, 243, 0.3);
    animation: dropPulse 2.5s ease-in-out infinite;
}

@keyframes dropPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) rotate(-45deg) scale(1);
        box-shadow: 0 10px 40px rgba(33, 150, 243, 0.3);
    }
    50% { 
        transform: translate(-50%, -50%) rotate(-45deg) scale(1.05);
        box-shadow: 0 10px 50px rgba(33, 150, 243, 0.5);
    }
}

/* Detection Waves */
.detection-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
}

.wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 2px solid #00bcd4;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    animation: waveExpand 2s ease-out infinite;
}

.wave:nth-child(1) {
    animation-delay: 0s;
}

.wave:nth-child(2) {
    animation-delay: 0.6s;
    width: 80px;
    height: 80px;
    border-color: #03507B;
    opacity: 0.6;
}

.wave:nth-child(3) {
    animation-delay: 1.2s;
    width: 110px;
    height: 110px;
    border-color: #1976d2;
    opacity: 0.4;
}

@keyframes waveExpand {
    0% {
        width: 50px;
        height: 50px;
        opacity: 0.8;
    }
    100% {
        width: 150px;
        height: 150px;
        opacity: 0;
    }
}

/* Scan Lines Effect */
.scan-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 2px;
    background: linear-gradient(to right, transparent, #00bcd4, transparent);
    transform: translate(-50%, -50%) scaleY(0.5);
    animation: scanMove 3s ease-in-out infinite;
}

.scan-line:nth-child(1) {
    animation-delay: 0s;
}

.scan-line:nth-child(2) {
    animation-delay: 1s;
}

.scan-line:nth-child(3) {
    animation-delay: 2s;
}

@keyframes scanMove {
    0% { 
        transform: translate(-50%, -50%) translateY(-50px);
        opacity: 0;
    }
    50% { 
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) translateY(50px);
        opacity: 0;
    }
}

/* Details Text Area */
.ebsrv-details-text {
    padding-right: 20px;
}

.ebsrv-details-text h3 {
    font-size: 1.5rem;
    color: #122C3B;
    font-family: 'Cairo', sans-serif;
    margin-bottom: 20px;
    font-weight: 600;
}

.ebsrv-details-text p {
    font-size: 1rem;
    color: #455a64;
    line-height: 1.8;
    margin-bottom: 20px;
    font-family: 'Cairo', sans-serif;
    text-align: right;
}

/* Features List */
.ebsrv-features-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(33, 150, 243, 0.05);
    border-right: 3px solid #03507B;
    border-radius: 6px;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.feature-item:hover {
    background: rgba(33, 150, 243, 0.12);
    border-right-color: #00bcd4;
    transform: translateX(-5px);
}

.feature-icon {
    color: #03507B;
    font-size: 1.3rem;
    margin-top: 2px;
    flex-shrink: 0;
    min-width: 30px;
    text-align: center;
}

.feature-text {
    font-size: 0.95rem;
    color: #37474f;
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ebsrv-details-section {
        padding: 60px 20px;
    }

    .ebsrv-details-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ebsrv-details-visual {
        height: 300px;
    }

    .ebsrv-details-text {
        padding-right: 0;
    }

    .ebsrv-details-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .ebsrv-details-section {
        padding: 40px 15px;
    }

    .ebsrv-details-header {
        margin-bottom: 40px;
    }

    .ebsrv-details-title {
        font-size: 1.6rem;
    }

    .ebsrv-details-title::after {
        width: 60%;
    }

    .ebsrv-details-subtitle {
        font-size: 0.95rem;
    }

    .ebsrv-details-visual {
        height: 250px;
    }

    .water-drop-container {
        width: 120px;
        height: 120px;
    }

    .water-drop {
        width: 80px;
        height: 100px;
    }

    .detection-waves {
        width: 150px;
        height: 150px;
    }

    .wave {
        width: 40px;
        height: 40px;
    }

    .wave:nth-child(2) {
        width: 65px;
        height: 65px;
    }

    .wave:nth-child(3) {
        width: 90px;
        height: 90px;
    }

    .ebsrv-details-text h3 {
        font-size: 1.3rem;
    }

    .ebsrv-details-text p {
        font-size: 0.95rem;
    }

    .feature-item {
        padding: 10px 12px;
        gap: 12px;
    }

    .feature-icon {
        font-size: 1.1rem;
    }

    .feature-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .ebsrv-details-section {
        padding: 30px 12px;
    }

    .ebsrv-details-header {
        margin-bottom: 30px;
    }

    .ebsrv-details-title {
        font-size: 1.3rem;
    }

    .ebsrv-details-subtitle {
        font-size: 0.9rem;
    }

    .ebsrv-details-content {
        gap: 30px;
    }

    .ebsrv-details-visual {
        height: 200px;
    }

    .water-drop-container {
        width: 100px;
        height: 100px;
    }

    .water-drop {
        width: 65px;
        height: 85px;
    }

    .detection-waves {
        width: 120px;
        height: 120px;
    }

    .wave {
        width: 30px;
        height: 30px;
        border-width: 1.5px;
    }

    .wave:nth-child(2) {
        width: 55px;
        height: 55px;
    }

    .wave:nth-child(3) {
        width: 80px;
        height: 80px;
    }

    .scan-line {
        width: 120px;
    }

    .ebsrv-details-text h3 {
        font-size: 1.1rem;
    }

    .ebsrv-details-text p {
        font-size: 0.9rem;
    }

    .feature-item {
        padding: 8px 10px;
        gap: 10px;
        border-right-width: 2px;
    }

    .feature-icon {
        font-size: 1rem;
        min-width: 25px;
    }

    .feature-text {
        font-size: 0.85rem;
    }
}

/* RTL Support */
[dir="rtl"] .ebsrv-details-text {
    padding-right: 0;
    padding-left: 20px;
}

[dir="rtl"] .feature-item {
    flex-direction: row-reverse;
    border-right: none;
    border-left: 3px solid #03507B;
    padding: 12px 15px;
}

[dir="rtl"] .feature-item:hover {
    border-left-color: #00bcd4;
    transform: translateX(5px);
}

[dir="rtl"] .ebsrv-details-title::after {
    left: 0;
    right: auto;
    background: linear-gradient(to right, #03507B, transparent);
}

@media (max-width: 1024px) {
    [dir="rtl"] .ebsrv-details-text {
        padding-left: 0;
    }
}
