/* AccaDox - Professional Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Remove default margins */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Line clamp utility for older browsers */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

/* Navbar */
nav {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    background: rgba(2, 26, 25, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2), 0 0 40px rgba(13, 148, 136, 0.05);
}

/* h-18 utility for taller navbar */
.h-18 {
    height: 4.5rem;
}

/* Form input focus with glow */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.25);
}

/* Pulse animation */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.animate-pulse {
    animation: pulse-dot 1.5s ease-in-out infinite;
}

/* Slow float for hero card */
@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-bounce-slow {
    animation: float-slow 4s ease-in-out infinite;
}

/* Hero shimmer on badge */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.animate-shimmer {
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

/* Gradient text helper */
.gradient-text {
    background: linear-gradient(135deg, #2dd4bf 0%, #0d9488 50%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Stagger children animation */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.4s; }

.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* FAQ accordion */
.faq-item .faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.faq-item.open .faq-content {
    max-height: 300px;
    display: block;
}

.faq-item.open .faq-toggle i {
    transform: rotate(180deg);
}

.faq-toggle i {
    transition: transform 0.3s ease;
}

/* Gradient ring for popular pricing card */
.pricing-popular {
    position: relative;
}

.pricing-popular::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #0d9488, #2dd4bf, #14b8a6, #0d9488);
    border-radius: 1.25rem;
    z-index: -1;
    opacity: 0.7;
    animation: gradient-rotate 4s ease infinite;
    background-size: 300% 300%;
}

@keyframes gradient-rotate {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Card glass effect */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Subtle noise texture for hero */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 20%, rgba(13,148,136,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(20,184,166,0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Selection color */
::selection {
    background: #0d9488;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .scale-105 {
        transform: none;
    }
    .pricing-popular::before {
        inset: -1px;
    }
}
