/* GoalQuest Marketing Page - Custom Styles */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Gradient Backgrounds */
.hero-gradient {
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 50%);
    position: relative;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Primary Gradient */
.gradient-primary {
    background: linear-gradient(135deg, #10B981 0%, #06B6D4 100%);
}

/* Box Shadows */
.shadow-glow {
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
}

.shadow-glow-hover:hover {
    box-shadow: 0 15px 50px rgba(16, 185, 129, 0.4);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-100 {
    transition-delay: 0.1s;
}

.reveal-delay-200 {
    transition-delay: 0.2s;
}

.reveal-delay-300 {
    transition-delay: 0.3s;
}

.reveal-delay-400 {
    transition-delay: 0.4s;
}

/* Button Hover Effects */
a[href], button {
    transition: all 0.3s ease;
}

/* Card Hover Effects */
.bg-white.rounded-container:hover,
.bg-white.rounded-xl:hover,
.bg-white.rounded-2xl:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Navigation Styles */
nav {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 300px;
}

/* Phone Mockup Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.phone-float {
    animation: float 4s ease-in-out infinite;
}

/* Decorative Element Animations */
@keyframes pulse-scale {
    0%, 100% {
        transform: scale(1) rotate(12deg);
    }
    50% {
        transform: scale(1.05) rotate(12deg);
    }
}

@keyframes pulse-scale-reverse {
    0%, 100% {
        transform: scale(1) rotate(-12deg);
    }
    50% {
        transform: scale(1.05) rotate(-12deg);
    }
}

/* Progress Bar Animation */
@keyframes progress-fill {
    from {
        width: 0;
    }
}

.progress-animate {
    animation: progress-fill 1s ease-out forwards;
}

/* Trust Badge Hover */
.trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Step Connection Line Animation */
@keyframes line-draw {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Testimonial Card Styles */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Pricing Card Glow */
.pricing-glow {
    position: relative;
}

.pricing-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #10B981, #06B6D4);
    border-radius: 26px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
    transition: opacity 0.3s ease;
}

.pricing-glow:hover::before {
    opacity: 0.8;
}

/* Brand Logo Hover */
.brand-logo {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

/* Form Input Focus */
input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

/* Footer Link Hover */
footer a {
    transition: color 0.2s ease;
}

/* Mobile Sticky CTA Animation */
@keyframes slide-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.sticky-cta {
    animation: slide-up 0.5s ease-out;
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem;
    }
}

/* Smooth Section Transitions */
section {
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #10B981, #06B6D4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #10B981;
}

/* Selection Color */
::selection {
    background: rgba(16, 185, 129, 0.2);
    color: #111827;
}

/* Accessibility - Focus Visible */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #10B981;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    nav,
    .sticky-cta,
    #mobile-menu {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    a {
        text-decoration: underline;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .text-text-secondary {
        color: #374151;
    }

    .bg-gray-50 {
        background-color: #f9fafb;
    }
}

/* Dark Mode Support (future) */
@media (prefers-color-scheme: dark) {
    /* Placeholder for dark mode styles */
    /* Can be enabled by adding a dark mode toggle */
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tooltip Styles */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: #111827;
    color: white;
    font-size: 0.75rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Confetti Animation (for celebrations) */
@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti {
    animation: confetti-fall 3s ease-in-out forwards;
}
