/* Custom styles for SilentGuard website */

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Navigation transitions */
header, .bg-primary {
    transition: all 0.3s ease;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(90deg, #3AADFF, #10B981);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Card hover effects */
.feature-card:hover {
    box-shadow: 0 0 25px rgba(58, 173, 255, 0.15);
}

/* Button pulse effect */
.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(58, 173, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(58, 173, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(58, 173, 255, 0);
    }
}

/* Glow effect for important elements */
.glow {
    box-shadow: 0 0 15px rgba(58, 173, 255, 0.5);
    transition: all 0.3s ease;
}

.glow:hover {
    box-shadow: 0 0 25px rgba(58, 173, 255, 0.8);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #061525;
}

::-webkit-scrollbar-thumb {
    background: #3AADFF;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2A9FEF;
}

/* Protection Process Animation */
.process-line {
    position: relative;
    overflow: hidden;
}

.process-line-bg {
    height: 4px;
    background-color: #0A1A2F;
    border-radius: 2px;
}

.process-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #3AADFF, #10B981);
    border-radius: 2px;
    width: 0%;
    transition: width 1.5s ease-in-out;
}

.process-step {
    position: relative;
    z-index: 10;
    transition: all 0.5s ease;
}

.process-step.active .step-icon {
    border-color: #3AADFF;
    box-shadow: 0 0 15px rgba(58, 173, 255, 0.5);
    transform: scale(1.1);
}

.process-step.completed .step-icon {
    border-color: #10B981;
    background-color: rgba(16, 185, 129, 0.1);
}

.step-icon {
    transition: all 0.5s ease;
}

.step-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(58, 173, 255, 0.3);
    animation: step-pulse 2s infinite;
    z-index: -1;
}

@keyframes step-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

/* Staggered animation delay for feature cards */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* Staggered animation delay for advantage items */
.advantage-item:nth-child(1) { animation-delay: 0.1s; }
.advantage-item:nth-child(2) { animation-delay: 0.2s; }
.advantage-item:nth-child(3) { animation-delay: 0.3s; }
.advantage-item:nth-child(4) { animation-delay: 0.4s; }

/* Floating animation for hero elements */
.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Custom focus styles for form elements */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #3AADFF;
    box-shadow: 0 0 0 2px rgba(58, 173, 255, 0.2);
}

/* Responsive font size adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    p {
        font-size: 1rem;
    }
}

/* Background pattern overlay */
.bg-pattern {
    background-image: 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='%233B82F6' fill-opacity='0.05'%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");
    background-attachment: fixed;
}

/* Testimonials Slider Styles */
.testimonial-slider {
    overflow: hidden;
    position: relative;
    padding: 2rem 1rem;
}

.testimonial-track {
    display: flex;
    width: 300%; /* Will be dynamically set by JS */
}

.testimonial-item {
    flex: 1;
    transition: transform 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
}

.testimonial-dot {
    transition: all 0.3s ease;
}

.testimonial-dot.bg-primary {
    transform: scale(1.2);
}

.testimonial-arrow {
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 10;
}

.testimonial-arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Responsive adjustments for testimonials */
@media (max-width: 768px) {
    .testimonial-arrow {
        display: none;
    }
    
    .testimonial-item {
        padding: 0.5rem;
    }
}

/* Improved responsive adjustments for all sections */
@media (max-width: 640px) {
    .process-step .step-title {
        font-size: 0.875rem;
    }
    
    .feature-card {
        margin-bottom: 1.5rem;
    }
    
    .testimonial-slider {
        padding: 1rem 0;
    }
}

/* Enhanced animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Improved hover effects */
.feature-card, .testimonial-item {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    color: #3AADFF;
}

.feature-icon {
    transition: all 0.3s ease;
}
