/* ============================================================
   CV Tri Mandiri Gemilang - Shared Stylesheet
   ============================================================ */

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #061324; }
::-webkit-scrollbar-thumb { background: #00a3e0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #0084b5; }

/* Blueprint Grid Patterns */
.blueprint-grid {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
}
.blueprint-grid-dark {
    background-size: 30px 30px;
    background-image: 
        linear-gradient(to right, rgba(0,163,224,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,163,224,0.03) 1px, transparent 1px);
}

/* Scanline Animation */
@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}
.scanner-line::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(to bottom, transparent, rgba(0,163,224,0.4), transparent);
    animation: scanline 6s linear infinite;
}

/* Isometric Card Hover */
.iso-card {
    transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.iso-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 30px -10px rgba(0,163,224,0.15);
}

/* Fade-in Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Staggered fade-in for lists */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
}
.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Timeline Styles */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #00a3e0, rgba(0,163,224,0.2));
    transform: translateX(-50%);
}
@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: #00a3e0;
    border: 3px solid #0c2340;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
@media (max-width: 768px) {
    .timeline-dot {
        left: 20px;
    }
}

/* FAQ Accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1), padding 0.3s;
}
.faq-answer.open {
    max-height: 300px;
    padding-top: 12px;
    padding-bottom: 4px;
}
.faq-chevron {
    transition: transform 0.3s ease;
}
.faq-chevron.rotated {
    transform: rotate(180deg);
}

/* Service card glow on hover */
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}
.service-card::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, rgba(0,163,224,0.3), transparent, rgba(0,163,224,0.1));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}
.service-card:hover::before {
    opacity: 1;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -12px rgba(0,163,224,0.2);
}

/* Page hero gradient overlay */
.page-hero-gradient {
    background: linear-gradient(135deg, #0c2340 0%, #061324 50%, #0c2340 100%);
}

/* Pulse ring for stats */
@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.4); opacity: 0; }
}
.pulse-ring::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid #00a3e0;
    border-radius: inherit;
    animation: pulseRing 2s cubic-bezier(0,0,0.2,1) infinite;
}

/* Modal backdrop blur */
.modal-backdrop {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Process step connector line */
.process-connector {
    position: relative;
}
.process-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -16px;
    width: 32px;
    height: 2px;
    background: linear-gradient(to right, #00a3e0, transparent);
}
@media (max-width: 768px) {
    .process-connector::after {
        display: none;
    }
}
