/* ===================================
   SERVICES PAGE - COMPLETE LAYOUT FIX
   =================================== */

/* Reset and Base Fixes */
* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Container Fixes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header */
.page-header {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 50px;
    width: 100%;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(0, 102, 204, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.page-header-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    width: 100%;
}

/* Services Overview */
.services-overview {
    padding: 80px 0;
    background: #f8f9fa;
    width: 100%;
}

.services-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
    width: 100%;
}

.services-stats .stat-item {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 102, 204, 0.1);
    transition: all 0.3s ease;
    width: 100%;
}

.services-stats .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.services-stats .stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0066cc, #00d4ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.services-stats .stat-icon i {
    color: white;
    font-size: 30px;
}

.services-stats .stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #0066cc;
    display: block;
    margin-bottom: 10px;
}

.services-stats .stat-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* Main Services */
.main-services {
    background: white;
    width: 100%;
}

.service-section {
    padding: 80px 0;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.service-section:last-child {
    border-bottom: none;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.service-content.reverse {
    grid-template-columns: 1fr 1fr;
}

.service-content.reverse .service-media {
    order: 1;
}

.service-content.reverse .service-text {
    order: 2;
}

/* Service Text */
.service-text {
    width: 100%;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0066cc, #00d4ff);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.service-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
    line-height: 1.2;
}

.service-description {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 40px;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #0066cc;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(0, 102, 204, 0.05);
    transform: translateX(5px);
}

.feature-item i {
    color: #0066cc;
    font-size: 24px;
    margin-top: 5px;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.feature-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Service Media */
.service-media {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-image {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-image:hover .image-overlay {
    opacity: 1;
}

.play-button {
    width: 80px;
    height: 80px;
    background: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.play-button:hover {
    background: #00d4ff;
    transform: scale(1.1);
}

.tech-badge {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.tech-badge i {
    color: #00d4ff;
}

/* Service Gallery */
.service-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    height: 150px;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
    width: 100%;
}

.package-item {
    background: white;
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.package-item.featured {
    border-color: #0066cc;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.2);
}

.package-item:hover {
    border-color: #0066cc;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.package-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6b35;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.package-item h4 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.package-price {
    font-size: 28px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 20px;
}

.package-features {
    list-style: none;
    text-align: left;
    flex-grow: 1;
    padding: 0;
    margin: 0;
}

.package-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.package-features li:last-child {
    border-bottom: none;
}

/* Sensor Types */
.sensor-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.sensor-category {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #00d4ff;
}

.sensor-category h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.sensor-category h4 i {
    color: #00d4ff;
}

.sensor-category p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #0066cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.step-content p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Integration Features */
.integration-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
}

.integration-benefit {
    text-align: center;
    padding: 25px;
}

.integration-benefit i {
    font-size: 48px;
    color: #0066cc;
    margin-bottom: 20px;
}

.integration-benefit h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.integration-benefit p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Integration Scenarios */
.scenario-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.scenario-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
}

.scenario-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0066cc;
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: 600;
    min-width: 200px;
    flex-shrink: 0;
}

.scenario-trigger i {
    font-size: 18px;
}

.scenario-arrow {
    font-size: 24px;
    color: #00d4ff;
    font-weight: bold;
    flex-shrink: 0;
}

.scenario-actions {
    flex: 1;
    font-weight: 500;
    color: #1a1a1a;
}

/* Service Benefits */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    font-size: 16px;
    color: #666;
    border-bottom: 1px solid #eee;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list i {
    color: #0066cc;
    font-size: 18px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Service CTA */
.service-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.service-cta .btn {
    min-width: 200px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0066cc, #004499);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #004499, #0066cc);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.3);
}

.btn-outline {
    background: transparent;
    color: #0066cc;
    border: 2px solid #0066cc;
}

.btn-outline:hover {
    background: #0066cc;
    color: white;
    transform: translateY(-2px);
}

/* Support Section */
.support-section {
    background: #f8f9fa;
    padding: 80px 0;
    width: 100%;
}

.support-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
    width: 100%;
}

.support-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.support-text p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
}

.support-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.support-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.support-item i {
    color: #0066cc;
    font-size: 24px;
    margin-top: 5px;
    flex-shrink: 0;
}

.support-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.support-info p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Contact Card */
.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
}

.contact-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.contact-methods {
    margin-bottom: 30px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.contact-method:last-child {
    border-bottom: none;
}

.contact-method i {
    color: #0066cc;
    font-size: 18px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.contact-info {
    text-align: left;
    flex-grow: 1;
}

.contact-label {
    display: block;
    font-size: 14px;
    color: #999;
    font-weight: 500;
}

.contact-value {
    display: block;
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 600;
}

/* Sensor Indicators */
.sensor-indicators {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.sensor-dot {
    width: 20px;
    height: 20px;
    background: #999;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}

.sensor-dot.active {
    background: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.sensor-dot.active::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #00d4ff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Integration Diagram */
.integration-diagram {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 80%;
}

.system-node {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid #00d4ff;
}

.system-node.central {
    grid-column: 1 / -1;
    background: #0066cc;
}

.system-node i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.system-node span {
    font-size: 14px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .service-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-content.reverse .service-media {
        order: 1;
    }
    
    .service-content.reverse .service-text {
        order: 2;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-grid,
    .sensor-types,
    .process-steps,
    .integration-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .support-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .services-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-section {
        padding: 60px 0;
    }
    
    .service-title {
        font-size: 28px;
    }
    
    .service-image {
        height: 250px;
    }
    
    .service-gallery {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .gallery-item {
        height: 120px;
    }
    
    .scenario-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .scenario-trigger {
        min-width: auto;
        width: 100%;
        justify-content: center;
    }
    
    .scenario-arrow {
        transform: rotate(90deg);
    }
    
    .service-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .service-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .integration-diagram {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sensor-indicators {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-header {
        height: 50vh;
        min-height: 300px;
        margin-top: 50px;
    }
    
    .service-section {
        padding: 40px 0;
    }
    
    .service-title {
        font-size: 24px;
    }
    
    .service-description {
        font-size: 16px;
    }
    
    .service-image {
        height: 200px;
    }
    
    .package-item {
        padding: 20px 15px;
    }
    
    .contact-card {
        padding: 25px 20px;
    }
    
    .support-text h2 {
        font-size: 28px;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}