/* Babel Technology Group — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d1520;
}
::-webkit-scrollbar-thumb {
    background: #334f6e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4a77a1;
}

/* Fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }
.fade-in-up:nth-child(5) { animation-delay: 0.5s; }
.fade-in-up:nth-child(6) { animation-delay: 0.6s; }

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #699BCF 0%, #b8d0e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(105, 155, 207, 0.15);
}

/* Nav active state transition */
nav a {
    transition: color 0.2s ease;
}

/* Pulse animation for CTA */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(105, 155, 207, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 4px rgba(105, 155, 207, 0.2);
    }
}

.pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}
#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
}
#mobile-menu:not(.hidden) {
    max-height: 300px;
    opacity: 1;
}

/* Form input focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #699BCF;
    box-shadow: 0 0 0 3px rgba(105, 155, 207, 0.2);
}

/* Comparison card styles for bastion.html */
.problem-card {
    border-left: 4px solid #ef4444;
}
.solution-card {
    border-left: 4px solid #22c55e;
}
