/* SERVICE PAGE MODERN STYLING
-------------------------------------------------- */

/* CSS Variables */
:root {
    --service-primary: #3b82f6;
    --service-secondary: #1e40af;
    --service-accent: #8b5cf6;
    --service-text: #1f2937;
    --service-text-light: #6b7280;
    --service-bg: #ffffff;
    --service-bg-light: #f8fafc;
    --service-bg-dark: #0f172a;
    --service-border: #e5e7eb;
    --service-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --service-shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --service-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Body and Layout */
.service-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--service-text);
}

.main-content {
    margin-top: 0;
}

/* Services Hero Section */
.services-hero {
    position: relative;
    background: var(--service-gradient);
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.1), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Service Categories */
.service-categories {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 120px;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.category-item i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.category-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Services Content Section - Only for standalone service page */
.services-content-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 30%, #cbd5e1 100%);
    position: relative;
    color: #1e293b;
    overflow: hidden;
    padding: 80px 0;
}

.services-content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    z-index: 1;
}

/* Services Container - Flexible for both standalone and embedded use */
.services-container {
    position: relative;
    color: #1e293b;
}

/* When used in service.html standalone page */
.service-page .services-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 30%, #cbd5e1 100%);
    overflow: hidden;
    padding: 80px 0;
}

.service-page .services-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    z-index: 1;
}

/* When used in index.html embedded */
.index-page .services-container {
    background: transparent;
    padding: 0;
}

/* Legacy support for existing LED services wrapper */
.led-services-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 30%, #cbd5e1 100%);
    position: relative;
    color: #1e293b;
    overflow: hidden;
    padding: 80px 0;
}

.led-services-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    z-index: 1;
}

/* Services Technology Header */
.services-tech-header {
    text-align: center;
    margin-bottom: 5rem;
    padding: 3rem 0;
    position: relative;
    z-index: 2;
}

.tech-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #3b82f6;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { top: 40%; right: 15%; animation-delay: 4s; }
.particle:nth-child(4) { top: 80%; right: 25%; animation-delay: 1s; }
.particle:nth-child(5) { top: 30%; left: 70%; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

.services-intro {
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.services-main-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-main-subtitle {
    font-size: 1.3rem;
    color: #475569;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

.tech-capabilities {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.capability-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.capability-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.capability-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.capability-item:hover .capability-icon::before {
    left: 100%;
}

.capability-item:hover .capability-icon {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.capability-icon i {
    font-size: 1.8rem;
    color: white;
    z-index: 2;
}

.capability-item span {
    color: #475569;
    font-weight: 500;
    font-size: 1rem;
}

/* Premium Services Grid */
.premium-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 2;
}

/* Adjust grid for standalone service page */
.service-page .premium-services-grid {
    margin-top: 4rem;
}

/* Adjust grid for index page embedded use */
.index-page .premium-services-grid {
    margin-top: 0;
}

.premium-service-card {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(25px);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
}

/* Service cards maintain dark theme for contrast against light section background */

.premium-service-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.premium-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.premium-service-card:hover::before {
    transform: scaleX(1);
}

.premium-service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(15, 23, 42, 0.98);
}

.service-number {
    position: absolute;
    top: -10px;
    right: 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Premium Service Visual */
.premium-service-visual {
    position: relative;
    height: 220px;
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
}

.visual-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.premium-service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.premium-service-card:hover .premium-service-image {
    transform: scale(1.08);
}

.premium-illustration {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.illustration-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-type-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.service-type-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.service-type-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.service-type-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.service-type-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.service-type-6 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }

/* Support both old and new class names for backward compatibility */
.led-type-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.led-type-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.led-type-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.led-type-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.led-type-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.led-type-6 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }

.service-glow,
.led-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
}

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

.illustration-container i {
    font-size: 3.5rem;
    color: white;
    z-index: 2;
    position: relative;
}

.premium-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Premium Service Content */
.premium-service-content {
    position: relative;
}

.service-title-section {
    margin-bottom: 1.5rem;
}

.premium-service-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.service-type-badge {
    display: inline-block;
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.premium-service-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

/* Technical Specifications */
.tech-specifications {
    margin-bottom: 2rem;
}

.spec-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.spec-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.spec-item i {
    color: #3b82f6;
    font-size: 1.1rem;
}

/* Performance Metrics */
.performance-metrics {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.metric-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Premium Action Buttons */
.premium-service-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.premium-cta {
    padding: 16px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.premium-cta:hover,
.premium-cta:focus {
    text-decoration: none;
}

.premium-cta.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.premium-cta.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
    color: white;
}

.premium-cta.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.premium-cta.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.cta-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.premium-cta:hover .cta-glow {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 991px) {
    .services-hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .service-categories {
        gap: 20px;
    }

    .category-item {
        min-width: 100px;
        padding: 15px;
    }

    .premium-services-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }

    .led-services-wrapper {
        padding: 60px 0;
    }

    .services-main-title {
        font-size: 2.2rem;
    }

    .tech-capabilities {
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .services-hero {
        padding: 80px 0 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .service-categories {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .category-item {
        flex-direction: row;
        min-width: 200px;
        justify-content: center;
    }

    .premium-services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .premium-service-card {
        margin: 0 auto;
        max-width: 400px;
    }

    .premium-service-content {
        padding: 1.5rem;
    }

    .tech-capabilities {
        gap: 1rem;
    }

    .capability-icon {
        width: 50px;
        height: 50px;
    }

    .capability-icon i {
        font-size: 1.2rem;
    }

    .premium-service-actions {
        flex-direction: column;
    }

    .premium-cta {
        justify-content: center;
    }

    .performance-metrics {
        flex-direction: column;
        gap: 1rem;
    }

    .tech-specifications .spec-group {
        flex-direction: column;
    }

    .services-main-title {
        font-size: 1.8rem;
    }

    .premium-service-title {
        font-size: 1.8rem;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading States */
.premium-service-card.loading {
    opacity: 0.5;
    pointer-events: none;
}

.premium-service-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Accessibility Improvements */
.premium-service-card:focus-within {
    outline: 2px solid var(--service-primary);
    outline-offset: 2px;
}

.premium-cta:focus,
.category-item:focus {
    outline: 2px solid var(--service-primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .services-hero,
    .premium-service-actions {
        display: none;
    }
    
    .premium-service-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        background: white;
        color: black;
    }
}