/* INFERA Three.js 3D Scene Styles */

/* Hero Canvas Container */
.three-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, #0a0a1a 0%, #0d1033 50%, #0a0a1a 100%);
    overflow: hidden;
}

.three-container,
#three-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Hero Overlay Content */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    padding: 20px;
}

.hero-overlay * {
    pointer-events: auto;
}

/* Hero Content - clean text with shadows */
.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-tagline {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    color: #111 !important;
    background: #fff;
    padding: 16px 36px;
    border-radius: 100px;
    margin-bottom: 28px;
    letter-spacing: 0.02em;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-label-top {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
    text-align: center;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    text-align: center;
    line-height: 1.25;
    /* Glassmorphism card behind title for readability */
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 40px 48px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 8px 32px rgba(0, 40, 80, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    text-align: center;
    max-width: 600px;
    line-height: 1.8;
}

/* Badge Container */
.hero-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 85, 255, 0.15);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 40, 80, 0.08);
}

.badge:hover {
    background: #ffffff;
    border-color: rgba(0, 85, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 85, 255, 0.12);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.badge-dot.sense { background: #00ff88; }
.badge-dot.analyze { background: #00aaff; }
.badge-dot.infer { background: #aa88ff; }
.badge-dot.decide { background: #ffaa00; }

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* Hero CTA Button */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #0066ff 0%, #0044cc 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.5);
}

.hero-cta svg {
    transition: transform 0.3s ease;
}

.hero-cta:hover svg {
    transform: translateX(4px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    animation: bounce 2s infinite;
}

.scroll-indicator .mouse {
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* AI Thinking System Section */
.ai-thinking-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #0a0a1a 0%, #111133 100%);
    position: relative;
    overflow: hidden;
}

.ai-thinking-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.ai-thinking-section .container {
    position: relative;
    z-index: 1;
}

.section-header-dark {
    text-align: center;
    margin-bottom: 80px;
}

.section-header-dark .label {
    display: block;
    width: fit-content;
    margin: 0 auto 20px;
    font-size: 13px;
    font-weight: 600;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.section-header-dark h2 {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.section-header-dark .section-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 16px;
}

/* AI Process Flow */
.ai-process-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}


.ai-step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.ai-step:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-8px);
}

.ai-step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    position: relative;
}

.ai-step-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: rotate-border 3s linear infinite;
}

.ai-step.sense .ai-step-icon { background: rgba(0, 255, 136, 0.15); color: #00ff88; }
.ai-step.sense .ai-step-icon::after { border-top-color: #00ff88; }

.ai-step.analyze .ai-step-icon { background: rgba(0, 170, 255, 0.15); color: #00aaff; }
.ai-step.analyze .ai-step-icon::after { border-top-color: #00aaff; }

.ai-step.infer .ai-step-icon { background: rgba(170, 136, 255, 0.15); color: #aa88ff; }
.ai-step.infer .ai-step-icon::after { border-top-color: #aa88ff; }

.ai-step.decide .ai-step-icon { background: rgba(255, 170, 0, 0.15); color: #ffaa00; }
.ai-step.decide .ai-step-icon::after { border-top-color: #ffaa00; }

@keyframes rotate-border {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ai-step h4 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.ai-step p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* Arrow between steps */
.ai-step-arrow {
    display: none;
}

/* Service Cards Section */
.services-section {
    padding: 120px 0;
    background: #f8f9fa;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--main, #0055ff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.service-card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #0055ff 0%, #0044cc 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ffffff;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111;
}

.service-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0055ff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.service-card-link:hover {
    gap: 12px;
}

/* Public Facility Banner */
.public-banner {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 100%);
    position: relative;
    overflow: hidden;
}

.public-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.public-banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.public-banner-text {
    flex: 1;
}

.public-banner-label {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 170, 0, 0.15);
    color: #ffaa00;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 20px;
}

.public-banner-text h3 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.4;
}

.public-banner-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 32px;
}

.public-banner-stats {
    display: flex;
    gap: 48px;
}

.public-stat {
    text-align: center;
}

.public-stat-num {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: #00ff88;
    line-height: 1;
}

.public-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

.public-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.public-banner-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* CTA Section Dark */
.cta-section-dark {
    padding: 120px 0;
    background: linear-gradient(135deg, #0066ff 0%, #0044aa 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section-dark::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: cta-glow 10s linear infinite;
}

@keyframes cta-glow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-section-dark .container {
    position: relative;
    z-index: 1;
}

.cta-section-dark h2 {
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.cta-section-dark p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

.cta-btn-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: #ffffff;
    color: #0055ff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Status Legend - now inline with hero content */
.status-legend {
    z-index: 15;
}

.status-legend h5 {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.status-dot.normal { background: #00ff88; color: #00ff88; }
.status-dot.warning { background: #ffaa00; color: #ffaa00; }
.status-dot.alert { background: #ff4444; color: #ff4444; }

/* Responsive */
@media (max-width: 1024px) {
    .ai-process-flow {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-process-flow::before {
        display: none;
    }

    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .public-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .public-banner-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .three-hero {
        min-height: 500px;
    }

    .hero-overlay {
        padding: 16px;
    }

    .hero-title {
        font-size: 32px;
        letter-spacing: -0.01em;
        padding: 28px 24px;
        border-radius: 20px;
    }

    .hero-tagline {
        font-size: 12px;
        padding: 10px 20px;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 15px;
        padding: 0 10px;
        margin-bottom: 28px;
    }

    .hero-badges {
        gap: 8px;
        padding: 0 10px;
    }

    .badge {
        padding: 8px 14px;
        font-size: 12px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .btn-large {
        padding: 16px 24px;
        font-size: 15px;
    }

    .hero-description {
        font-size: 15px;
        padding: 16px 20px;
        border-radius: 12px;
    }

    .status-legend {
        padding: 12px 20px;
        gap: 16px;
    }

    .legend-item {
        font-size: 12px;
    }

    .ai-process-flow {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 8px;
    }

    .ai-step {
        padding: 24px 20px;
    }

    .ai-step-icon {
        width: 56px;
        height: 56px;
    }

    .ai-step h4 {
        font-size: 18px;
    }

    .ai-step p {
        font-size: 14px;
    }

    .section-header-dark h2 {
        font-size: 28px;
        padding: 0 16px;
    }

    .section-header-dark p {
        font-size: 15px;
        padding: 0 16px;
    }

    .service-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 8px;
    }

    .service-card {
        padding: 28px 24px;
    }

    .service-icon {
        width: 56px;
        height: 56px;
    }

    .service-title {
        font-size: 18px;
    }

    .service-description {
        font-size: 14px;
    }

    .public-banner {
        padding: 60px 0;
    }

    .public-banner-content {
        gap: 32px;
        padding: 0 16px;
    }

    .public-banner-text h3 {
        font-size: 24px;
    }

    .public-banner-text p {
        font-size: 14px;
    }

    .public-banner-stats {
        flex-direction: column;
        gap: 20px;
    }

    .public-stat-num {
        font-size: 32px;
    }

    .public-stat-label {
        font-size: 13px;
    }

    .cta-section-dark {
        padding: 60px 16px;
    }

    .cta-section-dark h2 {
        font-size: 24px;
    }

    .cta-section-dark p {
        font-size: 14px;
    }

    .status-legend {
        bottom: 16px;
        right: 16px;
        left: 16px;
        padding: 10px 14px;
        font-size: 11px;
    }

    .scroll-indicator {
        bottom: 16px;
    }
}

@media (max-width: 480px) {
    .three-hero {
        min-height: 450px;
    }

    .hero-title {
        font-size: 26px;
        margin-bottom: 14px;
        padding: 24px 20px;
        border-radius: 16px;
    }

    .hero-tagline {
        font-size: 11px;
        padding: 8px 16px;
        margin-bottom: 16px;
    }

    .hero-label-top {
        font-size: 11px;
        letter-spacing: 0.15em;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .badge {
        width: 100%;
        max-width: 180px;
        justify-content: center;
        padding: 6px 12px;
        font-size: 11px;
    }

    .hero-description {
        font-size: 14px;
        padding: 14px 16px;
        border-radius: 10px;
    }

    .status-legend {
        flex-wrap: wrap;
        padding: 10px 16px;
        gap: 12px;
        border-radius: 16px;
    }

    .legend-item {
        font-size: 11px;
    }

    .gradient-text::after {
        bottom: -2px;
        height: 2px;
    }

    .ai-step {
        padding: 20px 16px;
    }

    .ai-step-icon {
        width: 48px;
        height: 48px;
    }

    .ai-step h4 {
        font-size: 16px;
    }

    .ai-step p {
        font-size: 13px;
    }

    .section-header-dark h2 {
        font-size: 24px;
    }

    .service-card {
        padding: 24px 20px;
    }

    .service-title {
        font-size: 16px;
    }

    .service-description {
        font-size: 13px;
    }

    .public-banner {
        padding: 48px 0;
    }

    .public-banner-text h3 {
        font-size: 20px;
    }

    .public-stat-num {
        font-size: 28px;
    }

    .cta-section-dark h2 {
        font-size: 20px;
    }
}

/* Additional Styles for index.html */

/* .hero-content is defined above with background for bright 3D scene */

/* Premium gradient text - sophisticated highlight */
.gradient-text {
    background: linear-gradient(135deg, #0055ff 0%, #0088ff 50%, #00aaff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

/* No underline */
.gradient-text::after {
    display: none;
}

.hero-description {
    font-size: 17px;
    color: #4a5568;
    line-height: 1.9;
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 32px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 40, 80, 0.08);
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 16px;
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline-white:hover {
    background: #fff;
    color: #0055ff;
}

/* status-legend flex layout */
.status-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px 28px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 40, 80, 0.08);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a1a2e;
    font-size: 13px;
    font-weight: 600;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.normal { background: #00ff88; box-shadow: 0 0 10px #00ff88; }
.legend-dot.warning { background: #ffaa00; box-shadow: 0 0 10px #ffaa00; }
.legend-dot.alert { background: #ff4444; box-shadow: 0 0 10px #ff4444; }

.badge-dot { background: #00ff88; box-shadow: 0 0 8px #00ff88; }
.badge-dot.warning { background: #ffaa00; box-shadow: 0 0 8px #ffaa00; }
.badge-dot.alert { background: #ff4444; box-shadow: 0 0 8px #ff4444; }

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(5px); }
}

/* AI System Section */
.ai-system-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #0a0a1a 0%, #111133 100%);
}

.ai-system-section .section-header {
    margin-bottom: 80px;
}

.section-label {
    display: block;
    width: fit-content;
    margin: 0 auto 20px;
    font-size: 13px;
    font-weight: 600;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.section-description {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.ai-process-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ai-step {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.ai-step:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-8px);
    border-color: rgba(0, 255, 136, 0.3);
}

.step-number {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 16px;
}

.step-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.step-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.ai-connector {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #00ff88, #00aaff);
    align-self: center;
}

.ai-system-note {
    text-align: center;
    margin-top: 48px;
    font-size: 15px;
    color: #00ff88;
    font-weight: 500;
}

/* Services Wrapper */
.services-wrapper {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

/* Services Grid - Visual Rich Design */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding: 48px 36px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 28px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 85, 255, 0.1);
}

/* Decorative gradient blob top-right */
.service-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 85, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.6s ease;
}

/* Decorative gradient blob bottom-left */
.service-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 200, 150, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.6s ease;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 80px rgba(0, 85, 255, 0.18);
}

.service-card:hover::before {
    transform: scale(1.5) translate(20px, 20px);
}

.service-card:hover::after {
    transform: scale(1.5) translate(-20px, -20px);
}

.service-card:first-child {
    border-radius: 28px;
}

.service-card:last-child {
    border-radius: 28px;
}

.service-card:not(:last-child) {
    border-right: none;
}

.service-icon {
    width: 110px;
    height: 110px;
    margin: 0 auto 28px;
    background: linear-gradient(135deg, rgba(0, 85, 255, 0.12) 0%, rgba(0, 200, 150, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 85, 255, 0.15);
}

/* Animated ring around icon */
.service-icon::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed rgba(0, 85, 255, 0.2);
    animation: rotate-slow 20s linear infinite;
}

/* Inner glow */
.service-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, transparent 50%);
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, rgba(0, 85, 255, 0.2) 0%, rgba(0, 200, 150, 0.18) 100%);
    transform: scale(1.12) rotate(5deg);
    box-shadow: 0 16px 48px rgba(0, 85, 255, 0.25);
}

.service-card:hover .service-icon::before {
    border-color: rgba(0, 85, 255, 0.4);
    animation-duration: 10s;
}

.service-icon svg {
    width: 52px;
    height: 52px;
    stroke: #0055ff;
    stroke-width: 1.5;
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 85, 255, 0.3));
}

.service-card:hover .service-icon svg {
    stroke: #0055ff;
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 85, 255, 0.4));
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a2e;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

/* Title decoration */
.service-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #0055ff, #00c896);
    margin: 12px auto 0;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.service-card:hover .service-title::after {
    width: 80px;
}

.service-description {
    font-size: 17px;
    color: #64748b;
    line-height: 1.9;
    max-width: 300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Featured card style (optional) */
.service-card.featured {
    background: linear-gradient(135deg, #0055ff 0%, #0044cc 100%);
    color: #fff;
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.15);
}

.service-card.featured .service-icon svg {
    stroke: #fff;
}

.service-card.featured .service-title,
.service-card.featured .service-description {
    color: #fff;
}

.service-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 85, 255, 0.1);
    color: #0055ff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

/* Facilities Banner */
.facilities-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 100%);
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.banner-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.banner-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.banner-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: #00ff88;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

/* Footer Info */
.footer-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.footer-info strong {
    color: #fff;
}

/* Light background overrides (section-gray) */
.section-gray .section-label {
    color: var(--main, #0055ff);
}

.section-gray .section-title,
.section-gray .section-header h2 {
    color: var(--black, #111);
}

.section-gray .section-description,
.section-gray .section-desc {
    color: var(--gray, #666);
}

.services-section .section-label {
    color: var(--main, #0055ff);
}

.services-section .section-title,
.services-section .section-header h2 {
    color: var(--black, #111);
}

/* Responsive for new styles */
@media (max-width: 1024px) {
    .ai-connector { display: none; }
    .ai-process-flow { gap: 24px; }
    .services-wrapper {
        border-radius: 0;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-card {
        border-radius: 24px !important;
        padding: 44px 32px;
    }
    .service-card:last-child {
        border-bottom: none;
    }
    .banner-content { flex-direction: column; text-align: center; }
    .banner-stats { justify-content: center; }
}

@media (max-width: 768px) {
    .ai-step { min-width: 100%; max-width: 100%; }
    .section-title { font-size: 34px; }
    .hero-title { font-size: 32px; }
    .stat-number { font-size: 36px; }
    .banner-stats { flex-wrap: wrap; gap: 24px; }
    .services-wrapper {
        border-radius: 0;
        margin: 0;
    }
    .services-grid {
        gap: 16px;
        padding: 0;
    }
    .service-card {
        padding: 36px 28px;
        border-radius: 20px !important;
    }
    .service-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    .service-icon::before {
        inset: -4px;
    }
    .service-icon svg {
        width: 40px;
        height: 40px;
    }
    .service-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    .service-title::after {
        width: 40px;
        margin: 10px auto 0;
    }
    .service-description {
        font-size: 15px;
        line-height: 1.8;
    }
}
