/* Services Page - Premium Styling */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure all containers respect viewport */
.container {
    overflow: hidden;
}

/* Service Card Layout */
.service-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 4rem 0;
    position: relative;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.service-card:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.service-card:nth-child(even) .service-content {
    order: 2;
}

.service-card:nth-child(even) .service-visual {
    order: 1;
}

/* Service Content */
.service-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.service-icon i {
    width: 40px;
    height: 40px;
    stroke-width: 1.5;
}

.service-card:hover .service-icon {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Service Visual */
.service-visual {
    position: relative;
    height: 100%;
    min-height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%;
    width: 100%;
}

.visual-container {
    position: relative;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Hover Effects */
.service-card:hover .visual-container {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.service-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.service-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Service Features */
.service-features {
    margin: 2.5rem 0;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.service-features li i {
    flex-shrink: 0;
    margin-top: 0.3rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-features li {
    transform: translateX(5px);
}

.service-card:hover .service-features li i {
    transform: scale(1.1);
}

/* CTA Link */
.cta-link {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 1.5rem;
}

.cta-link i {
    transition: transform 0.3s ease;
}

.cta-link:hover {
    padding-right: 2rem;
}

.cta-link:hover i {
    transform: translateX(5px);
}

/* 3D Model Viewer Styles */
@keyframes spin-slow {
    from { transform: rotateY(0) rotateX(0); }
    to { transform: rotateY(360deg) rotateX(20deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.transform-style-preserve-3d {
    transform-style: preserve-3d;
    position: relative;
    width: 100%;
    height: 100%;
    transform: rotateX(-15deg) rotateY(15deg);
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 3D Cube Faces */
.transform-rotate-y-0 { transform: rotateY(0deg) translateZ(75px); }
.transform-rotate-y-90 { transform: rotateY(90deg) translateZ(75px); }
.transform-rotate-y-180 { transform: rotateY(180deg) translateZ(75px); }
.transform-rotate-y-270 { transform: rotateY(270deg) translateZ(75px); }
.transform-rotate-x-90 { transform: rotateX(90deg) translateZ(75px); }
.transform-rotate-x-270 { transform: rotateX(270deg) translateZ(75px); }

/* Video Player Enhancements */
.video-timeline {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.video-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #ec4899;
    width: 65%;
    border-radius: 2px;
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
    line-height: 1.4;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Backdrop blur for modern browsers */
@supports (backdrop-filter: blur(10px)) {
    .backdrop-blur-sm {
        backdrop-filter: blur(4px);
    }
    
    .backdrop-blur {
        backdrop-filter: blur(8px);
    }
    
    .backdrop-blur-lg {
        backdrop-filter: blur(16px);
    }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .service-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 0;
    }
    
    .service-card:nth-child(even) .service-content,
    .service-card:nth-child(even) .service-visual {
        order: initial;
    }
    
    .service-visual {
        min-height: 250px;
    }
    
    .model-controls {
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 10;
    }
    
    .model-controls .control-button {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: 10px;
        cursor: pointer;
    }
    
    .model-controls .control-button:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }
    
    .model-controls .control-button i {
        font-size: 20px;
        color: #fff;
    }
}

@media (max-width: 640px) {
    .service-content {
        padding: 1rem 0;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        width: 30px;
        height: 30px;
    }
}

/* Service Features */
.service-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.service-feature i {
    font-size: 1.5rem;
    color: #D4AF37;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.service-feature-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: white;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1E1E1E 0%, #0A0A0A 100%);
    border-radius: 1rem;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 50%);
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .service-card {
        padding: 1.5rem;
    }
    
    .service-tabs {
        justify-content: center;
    }
    
    .cta-section {
        padding: 3rem 1.5rem;
    }
}
