/* ============================================================
   TagManager.in — Main Stylesheet (style.css)
   ============================================================ */

/* === FAQ Accordion === */
.faq-content {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
.faq-content.open {
    max-height: 500px;
    opacity: 1;
}

/* === Form Success Message === */
.form-success {
    display: none;
}
.form-success.show {
    display: block;
    animation: fadeIn 0.5s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === Glass Panel & Gradient Text === */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.text-gradient {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Scroll Reveal Animations === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Staggered Delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* === Typewriter Cursor === */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: #38bdf8;
    margin-left: 4px;
    vertical-align: text-bottom;
    animation: blink 0.8s step-end infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

/* === Particle Canvas === */
#particle-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* === Tilt Card Effect === */
.tilt-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}
.tilt-card:hover {
    transform: perspective(800px) rotateX(2deg) rotateY(-2deg) translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* === Logo Marquee === */
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === Counter Pulse === */
.counter-value {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.counter-value.counting {
    animation: countPulse 0.3s ease;
}
@keyframes countPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* === Glow Hover for CTA Buttons === */
.glow-btn {
    position: relative;
    overflow: hidden;
}
.glow-btn::after {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}
.glow-btn:hover::after {
    opacity: 1;
}

/* === Floating Badge Shimmer === */
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.shimmer-badge {
    background: linear-gradient(90deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

/* === Grid Pattern Overlay === */
.grid-pattern {
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* === Creative Decor Elements (Shape Blobs) === */
.shape-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    z-index: 0;
    animation: shapeFloat 10s infinite alternate ease-in-out;
    pointer-events: none;
}
@keyframes shapeFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -50px) scale(1.1); }
}

/* === iOS Zoom Fix === */
input, textarea {
    font-size: 16px !important;
}

/* === Preloader Progress Bar === */
@keyframes progressBar {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* === Form Submission Overlay === */
.form-submit-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.form-submit-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Form Loader Animation */
.tag-loader {
    width: 48px;
    height: 48px;
    position: relative;
    animation: spin 2s linear infinite;
}
.tag-loader::before, .tag-loader::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    border: 3px solid transparent;
}
.tag-loader::before {
    border-top-color: #38bdf8;
    border-right-color: #38bdf8;
    animation: pulseBorder 1.5s ease-in-out infinite alternate;
}
.tag-loader::after {
    border-bottom-color: #818cf8;
    border-left-color: #818cf8;
    transform: rotate(45deg);
    animation: pulseBorder 1.5s ease-in-out infinite alternate-reverse;
}
@keyframes pulseBorder {
    0% { transform: scale(0.8) rotate(0deg); opacity: 0.5; }
    100% { transform: scale(1.1) rotate(90deg); opacity: 1; }
}

/* === Form Success Stamp Animation === */
.success-stamp {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid rgba(16, 185, 129, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: stampIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}
@keyframes stampIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.success-check {
    width: 32px;
    height: 32px;
    color: #34d399;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawCheck 0.6s ease-out 0.3s forwards;
}
@keyframes drawCheck {
    100% { stroke-dashoffset: 0; }
}
