/* TrustPMTA - Custom Styles */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Selection */
::selection {
    background: rgba(56, 189, 248, 0.3);
    color: #ffffff;
}

/* Navbar Styles */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

/* Terminal Animation */
.terminal-line {
    overflow: hidden;
}

.typing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(20, end);
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.terminal-output > div {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.terminal-output > div:nth-child(1) { animation-delay: 0.5s; }
.terminal-output > div:nth-child(2) { animation-delay: 1s; }
.terminal-output > div:nth-child(3) { animation-delay: 1.5s; }
.terminal-output > div:nth-child(4) { animation-delay: 2s; }
.terminal-output > div:nth-child(5) { animation-delay: 2.5s; }
.terminal-output > div:nth-child(6) { animation-delay: 3s; }
.terminal-output > div:nth-child(7) { animation-delay: 3.5s; }
.terminal-output > div:nth-child(8) { animation-delay: 4s; }

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

/* Gradient Text Animation */
.gradient-text-animated {
    background: linear-gradient(90deg, #38bdf8, #4ade80, #a78bfa, #38bdf8);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Pulse Animation for Live Indicator */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* FAQ Styles */
.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    display: block;
}

.faq-item .faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Glow Effects */
.glow-blue {
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.15);
}

.glow-green {
    box-shadow: 0 0 40px rgba(74, 222, 128, 0.15);
}

.glow-purple {
    box-shadow: 0 0 40px rgba(167, 139, 250, 0.15);
}

/* Button Hover Effects */
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
}

/* Feature Card Icon Animation */
.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

/* Gradient Border */
.gradient-border {
    position: relative;
    background: #1e293b;
    border-radius: 1rem;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #38bdf8, #4ade80, #a78bfa);
    border-radius: calc(1rem + 2px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gradient-border:hover::before {
    opacity: 1;
}

/* Pricing Card Popular */
.pricing-popular {
    position: relative;
    transform: scale(1.05);
}

.pricing-popular::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #4ade80, #38bdf8);
    border-radius: calc(1rem + 2px);
    z-index: -1;
}

/* Dashboard Chart Bars Animation */
.chart-bar {
    animation: growUp 1s ease forwards;
    transform-origin: bottom;
}

@keyframes growUp {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.active {
    display: block;
}

/* Section Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #334155, transparent);
}

/* Stats Counter Animation */
.stat-number {
    display: inline-block;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    background: linear-gradient(135deg, #4ade80, #22c55e);
}

.toast-error {
    background: linear-gradient(135deg, #f87171, #ef4444);
}

.toast-warning {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .terminal-output > div {
        font-size: 0.75rem;
    }

    .typing-text {
        font-size: 0.875rem;
    }
}

/* Particle Background Effect */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #38bdf8;
    border-radius: 50%;
    opacity: 0.3;
    animation: particle-float 15s infinite;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Testimonial Card Hover */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.5);
}

/* OS Logo Animation */
.os-logo {
    transition: all 0.3s ease;
}

.os-logo:hover {
    transform: scale(1.1);
}

/* Comparison Section Checkmark Animation */
.comparison-item {
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
}

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

/* Custom Focus Styles */
a:focus,
button:focus {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    #navbar,
    #mobile-menu,
    .scroll-indicator {
        display: none;
    }
}
