/* 
 * Free Website Application Page - Styles
 * 
 * Premium Bento Layout with Natural Scrolling
 * Matches the launchpage-ai aesthetic
 */

/* ============================================
   MAIN PAGE WRAPPER
   ============================================ */

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #0a0e1a;
    font-family: 'Inter', sans-serif;
}

.free-ai-powered-website-page-main {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 20, 27, 0.8);
    border-radius: 10px;
    border: 2px solid rgba(77, 124, 254, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(77, 124, 254, 0.7) 0%, rgba(0, 212, 161, 0.7) 100%);
    border-radius: 10px;
    border: 2px solid rgba(10, 14, 26, 0.5);
    box-shadow: 0 0 10px rgba(77, 124, 254, 0.3);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(77, 124, 254, 0.9) 0%, rgba(0, 212, 161, 0.9) 100%);
    box-shadow: 0 0 15px rgba(0, 212, 161, 0.5);
    transform: scale(1.05);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #4D7CFE 0%, #00D4A1 100%);
    box-shadow: 0 0 20px rgba(0, 212, 161, 0.7);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(77, 124, 254, 0.7) rgba(15, 20, 27, 0.8);
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */

* {
    cursor: default;
}

/* Premium cursor for interactive elements */
a, button, input[type="submit"], input[type="button"], .faq-toggle, select, input[type="text"], input[type="tel"], input[type="url"], input[type="email"], textarea {
    cursor: pointer;
}

input[type="text"], input[type="tel"], input[type="url"], input[type="email"], textarea, select {
    cursor: text;
}

/* Bright pointer for clickable items */
a:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover, .faq-toggle:hover {
    cursor: pointer;
}

/* ============================================
   TYPOGRAPHY & EFFECTS
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

.text-glow-blue {
    text-shadow: 0 0 20px rgba(77, 124, 254, 0.5);
}

.text-glow-green {
    text-shadow: 0 0 20px rgba(0, 212, 161, 0.5);
}

/* ============================================
   BENTO GRID COMPONENTS
   ============================================ */

/* Glassmorphism Base */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Premium Card Hover */
.bento-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.5);
}

/* Form Field Styles */
.form-input-group {
    position: relative;
    z-index: 1;
}

.form-input-group:hover .tooltip-wrapper {
    z-index: 50;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #00D4A1;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 2px rgba(0, 212, 161, 0.15);
}

.form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Custom Select Dropdown */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob {
    animation: blob 20s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -50px); }
    66% { transform: translate(-20px, 20px); }
}

.bg-orb-animate {
    animation: orb-float 20s ease-in-out infinite;
}

@keyframes gradient-x {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.animate-gradient-text {
    background-size: 200% auto;
    animation: gradient-x 4s linear infinite;
}

/* Underline Draw Animation */
@keyframes draw-line {
    0% { width: 0; }
    100% { width: 100%; }
}

.animate-underline-draw {
    animation: draw-line 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.5s; /* Wait for fade-in first */
    width: 0; /* Start at 0 */
}

.animate-underline-draw-yellow {
    animation: draw-line 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    width: 0; /* Start at 0 */
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 1024px) {
    .mobile-stack {
        flex-direction: column;
    }
    
    .mobile-h-auto {
        height: auto !important;
        min-height: 0 !important;
    }
}

/* ============================================
   TOOLTIP STYLES
   ============================================ */

.tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.tooltip-content {
    pointer-events: none;
    white-space: normal;
    word-wrap: break-word;
    max-width: 18rem;
    line-height: 1.5;
}

.tooltip-content ul {
    margin-top: 0.5rem;
}

.tooltip-content li {
    margin-bottom: 0.25rem;
}

/* Mobile: Show tooltips on tap for touch devices */
@media (max-width: 768px) {
    .tooltip-wrapper:active .tooltip-content {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* ============================================
   FORM STEP TRANSITIONS
   ============================================ */

.form-step {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-step.hidden {
    display: none;
}

/* Step indicator transitions */
#step-1-indicator,
#step-2-indicator {
    transition: all 0.3s ease;
}

/* ============================================
   24 HOURS HIGHLIGHT ANIMATION
   ============================================ */

@keyframes highlight3D {
    0% {
        background-size: 0% 100%;
        transform: perspective(1000px) rotateX(0deg);
    }
    50% {
        background-size: 100% 100%;
        transform: perspective(1000px) rotateX(5deg) translateZ(10px);
    }
    100% {
        background-size: 100% 100%;
        transform: perspective(1000px) rotateX(0deg) translateZ(0);
    }
}

.highlight-24hrs {
    background: linear-gradient(90deg, 
        rgba(250, 204, 21, 0) 0%, 
        rgba(250, 204, 21, 0.3) 50%, 
        rgba(250, 204, 21, 0) 100%);
    background-size: 0% 100%;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
    animation: highlight3D 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 3s forwards;
    transform-style: preserve-3d;
}

/* ============================================
   FEATURE CARDS SLIDE-IN ANIMATIONS
   ============================================ */

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-80px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInCenter {
    0% {
        opacity: 0;
        transform: translateY(80px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(80px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.feature-card[data-slide="left"].card-slide-in {
    animation: slideInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.feature-card[data-slide="center"].card-slide-in {
    animation: slideInCenter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s forwards;
}

.feature-card[data-slide="right"].card-slide-in {
    animation: slideInRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

/* ============================================
   COMPARISON TABLE ANIMATION
   ============================================ */

@keyframes tableFlipIn {
    0% {
        opacity: 0;
        transform: perspective(1000px) rotateX(-15deg) translateY(50px) scale(0.95);
    }
    50% {
        opacity: 0.5;
        transform: perspective(1000px) rotateX(5deg) translateY(10px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1);
    }
}

.table-flip-in {
    animation: tableFlipIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}


/* ============================================
   PAGE INLINE STYLES - MOVED FROM index.php
   ============================================ */

/* Glass Panel Effect */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Blob Animation */
@keyframes blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(30px, 10px) scale(1.02); }
}
.animate-blob { animation: blob 20s ease-in-out infinite; }
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

/* Form Inputs */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    color: white;
    font-size: 0.875rem;
    transition: all 0.2s;
}
.form-input:focus {
    outline: none;
    border-color: #00D4A1;
    box-shadow: 0 0 0 3px rgba(0, 212, 161, 0.1);
}
.form-input::placeholder { color: rgba(148, 163, 184, 0.6); }
.form-label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

/* Feature Card Animations */
.feature-card {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card.card-slide-in {
    opacity: 1 !important;
    transform: translateX(0) translateY(0) !important;
}

/* Portfolio Slider */
@keyframes scrollPortfolio {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.portfolio-track-free {
    animation: scrollPortfolio 35s linear infinite;
    animation-play-state: paused; /* Start paused */
}
.portfolio-track-free.scrolling {
    animation-play-state: running; /* Start when in view */
}
.portfolio-track-free:hover {
    animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
    .portfolio-track-free { animation: none; }
}

/* Spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.animate-spin { animation: spin 1s linear infinite; }

/* ===== Scroll Animations ===== */

/* Base states - hidden before animation */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Slide from left */
.animate-slide-left {
    transform: translateX(-60px);
}
.animate-slide-left.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from right */
.animate-slide-right {
    transform: translateX(60px);
}
.animate-slide-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Slide up */
.animate-slide-up {
    transform: translateY(50px);
}
.animate-slide-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in */
.animate-fade-in {
    transform: scale(0.95);
}
.animate-fade-in.animated {
    opacity: 1;
    transform: scale(1);
}

/* Scale up bounce */
.animate-scale-up {
    transform: scale(0.8);
}
.animate-scale-up.animated {
    opacity: 1;
    transform: scale(1);
}

/* Staggered children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.stagger-children.animated > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.stagger-children.animated > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.stagger-children.animated > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
.stagger-children.animated > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }
.stagger-children.animated > *:nth-child(5) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }
.stagger-children.animated > *:nth-child(6) { transition-delay: 500ms; opacity: 1; transform: translateY(0); }
.stagger-children.animated > *:nth-child(7) { transition-delay: 600ms; opacity: 1; transform: translateY(0); }

/* Final CTA Box - special animation */
.animate-final-cta {
    transform: translateY(80px) scale(0.9);
    opacity: 0;
}
.animate-final-cta.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Table rows stagger */
.animate-table-rows .grid {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-table-rows.animated .grid:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateX(0); }
.animate-table-rows.animated .grid:nth-child(2) { transition-delay: 50ms; opacity: 1; transform: translateX(0); }
.animate-table-rows.animated .grid:nth-child(3) { transition-delay: 100ms; opacity: 1; transform: translateX(0); }
.animate-table-rows.animated .grid:nth-child(4) { transition-delay: 150ms; opacity: 1; transform: translateX(0); }
.animate-table-rows.animated .grid:nth-child(5) { transition-delay: 200ms; opacity: 1; transform: translateX(0); }
.animate-table-rows.animated .grid:nth-child(6) { transition-delay: 250ms; opacity: 1; transform: translateX(0); }
.animate-table-rows.animated .grid:nth-child(7) { transition-delay: 300ms; opacity: 1; transform: translateX(0); }
.animate-table-rows.animated .grid:nth-child(8) { transition-delay: 350ms; opacity: 1; transform: translateX(0); }

/* Testimonial cards stagger */
.testimonial-grid > div {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.testimonial-grid.animated > div:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0) scale(1); }
.testimonial-grid.animated > div:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: translateY(0) scale(1); }
.testimonial-grid.animated > div:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: translateY(0) scale(1); }
.testimonial-grid.animated > div:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: translateY(0) scale(1); }
.testimonial-grid.animated > div:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: translateY(0) scale(1); }
.testimonial-grid.animated > div:nth-child(6) { transition-delay: 400ms; opacity: 1; transform: translateY(0) scale(1); }
.testimonial-grid.animated > div:nth-child(7) { transition-delay: 480ms; opacity: 1; transform: translateY(0) scale(1); }
.testimonial-grid.animated > div:nth-child(8) { transition-delay: 560ms; opacity: 1; transform: translateY(0) scale(1); }
.testimonial-grid.animated > div:nth-child(9) { transition-delay: 640ms; opacity: 1; transform: translateY(0) scale(1); }
.testimonial-grid.animated > div:nth-child(10) { transition-delay: 720ms; opacity: 1; transform: translateY(0) scale(1); }
.testimonial-grid.animated > div:nth-child(11) { transition-delay: 800ms; opacity: 1; transform: translateY(0) scale(1); }
.testimonial-grid.animated > div:nth-child(12) { transition-delay: 880ms; opacity: 1; transform: translateY(0) scale(1); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .animate-slide-left,
    .animate-slide-right,
    .animate-slide-up,
    .animate-fade-in,
    .animate-scale-up,
    .animate-final-cta,
    .stagger-children > *,
    .animate-table-rows .grid,
    .testimonial-grid > div {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
