/* Capabilities Page Specific Styles */

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}

/* Loading Animation */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease forwards;
    animation-delay: 2s;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    animation: pulse 2s ease infinite;
}

.loading-logo .center-dot {
    animation: glow 2s ease infinite;
}

.loading-logo .orbit-dot {
    animation: orbit 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    transform-origin: 16px 16px;
}

.loading-logo .orbit-dot[data-delay="0.2"] { animation-delay: 0.2s; }
.loading-logo .orbit-dot[data-delay="0.4"] { animation-delay: 0.4s; }
.loading-logo .orbit-dot[data-delay="0.6"] { animation-delay: 0.6s; }

.loading-logo .connections {
    animation: drawPath 2s ease forwards;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

.loading-text {
    margin-top: 20px;
    font-size: 14px;
    color: var(--gray-500);
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

/* Main Content */
.main-content {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 1.8s;
}

/* Hero Section */
.capabilities-hero {
    padding: 120px 0 80px;
    text-align: center;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.title-line {
    display: block;
    overflow: hidden;
    position: relative;
}

.title-line::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(20px);
    opacity: 0;
    animation: subtleSlideUp 0.6s ease-out forwards;
    animation-delay: calc(2.5s + var(--line-delay, 0s));
}

.title-line:nth-child(2)::before {
    --line-delay: 0.15s;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 2.8s;
}

/* Data Transformation Journey */
.transformation-journey {
    padding: 80px 0;
    position: relative;
}

.journey-container {
    position: relative;
    margin-top: 60px;
}

.journey-path {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
}

.journey-svg {
    width: 100%;
    height: 200px;
    position: absolute;
    top: -100px;
}

.journey-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease forwards;
    animation-delay: 3s;
}

.journey-stages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

.journey-stage {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: calc(3s + var(--stage-delay));
}

.journey-stage[data-stage="1"] { --stage-delay: 0.2s; }
.journey-stage[data-stage="2"] { --stage-delay: 0.4s; }
.journey-stage[data-stage="3"] { --stage-delay: 0.6s; }
.journey-stage[data-stage="4"] { --stage-delay: 0.8s; }

.stage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.3s ease;
}

.stage-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0;
    transform: scale(1.2);
    transition: all 0.3s ease;
}

.journey-stage:hover .stage-icon {
    transform: translateY(-5px);
}

.journey-stage:hover .stage-icon::before {
    opacity: 0.1;
    transform: scale(1.5);
}

.stage-icon svg {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 1;
}

.journey-stage h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.journey-stage p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Technology Suite Interactive */
.tech-suite-interactive {
    padding: 80px 0;
    background: var(--gray-50);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.tech-card {
    position: relative;
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 40px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.card-front {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card-back {
    background: #000;
    color: #fff;
    transform: rotateY(180deg);
}

.tech-card.flipped .card-front {
    transform: rotateY(180deg);
}

.tech-card.flipped .card-back {
    transform: rotateY(0deg);
}

.tech-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    position: relative;
}

.tech-icon svg {
    width: 100%;
    height: 100%;
    stroke: #000;
    transition: all 0.3s ease;
}

.tech-card:hover .tech-icon svg {
    stroke: var(--primary-color);
    transform: scale(1.1);
}

.tech-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.tech-tagline {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: pulse-ring 3s ease infinite;
}

.card-back h4 {
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.card-back ul {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}

.card-back li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.card-back li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.tech-stats {
    display: flex;
    gap: 24px;
    font-size: 0.875rem;
    color: var(--gray-400);
}

.tech-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-stats span::before {
    content: '•';
    color: var(--primary-color);
}

/* Value Metrics */
.value-metrics {
    padding: 80px 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.metric-card {
    text-align: center;
    position: relative;
}

.metric-value {
    font-size: 4rem;
    font-weight: 900;
    display: inline-block;
    line-height: 1;
}

.metric-suffix {
    font-size: 2rem;
    font-weight: 600;
    display: inline-block;
    color: var(--primary-color);
    margin-left: 8px;
}

.metric-label {
    margin-top: 16px;
    color: var(--gray-500);
}

/* CTA Section */
.capabilities-cta {
    padding: 80px 0;
    background: var(--gray-900);
    color: #fff;
    text-align: center;
}

.capabilities-cta h2 {
    color: #fff;
    margin-bottom: 16px;
}

.capabilities-cta p {
    color: var(--gray-400);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.btn-icon {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    transition: all 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateY(2px);
}

/* Animations */
@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

@keyframes subtleSlideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.5);
    }
}

@keyframes orbit {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .journey-stages {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}