/**
 * Aktivbook Landing Page - Custom Styles & Animations
 * Complements Tailwind CSS with custom animations and utilities
 */

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

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

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slide-in-from-left {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-from-right {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 hsl(43, 96%, 56%, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px hsl(43, 96%, 56%, 0);
    }
}

/* ============================================
   CUSTOM UTILITY CLASSES
   ============================================ */

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

/* Scrollbar hiding utility */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Gradient animation utility */
.animate-gradient-shift {
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
}

/* Fade in up animation utility */
.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out forwards;
}

/* Fade in animation utility */
.animate-fade-in {
    animation: fade-in 0.4s ease-out forwards;
}

/* Slide from left animation */
.animate-slide-from-left {
    animation: slide-in-from-left 0.5s ease-out forwards;
}

/* Slide from right animation */
.animate-slide-from-right {
    animation: slide-in-from-right 0.5s ease-out forwards;
}

/* Glow pulse animation */
.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* ============================================
   COMPONENT STYLES
   ============================================ */

/* Smooth transitions on hover */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, hsl(43, 96%, 56%) 0%, hsl(24, 100%, 63%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient button effect */
.gradient-button {
    background: linear-gradient(135deg, hsl(43, 96%, 56%) 0%, hsl(24, 100%, 63%) 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gradient-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 30px -10px hsl(43 96% 56% / 0.25);
}

.gradient-button:active {
    transform: translateY(0);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 30px -10px hsl(43 96% 56% / 0.25);
}

/* Hero section styling */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(168, 85, 247, 0.1),
        rgba(236, 72, 153, 0.05),
        rgba(59, 130, 246, 0.1)
    );
    z-index: 1;
    animation: gradient-shift 8s ease infinite;
}

/* Feature cards with hover scale */
.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 4px 30px -10px hsl(43 96% 56% / 0.25);
}

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

/* Mobile-first adjustments */
@media (max-width: 640px) {
    /* Reduce heading sizes on mobile */
    h1 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    h2 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Stack buttons on mobile */
    .button-group {
        flex-direction: column;
    }

    /* Reduce padding on mobile */
    .section-padding {
        padding: 2rem 1.5rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    /* Tablet adjustments */
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

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

/* Focus styles for keyboard navigation */
button:focus-visible,
a:focus-visible {
    outline: 3px solid hsl(43, 96%, 56%);
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white;
    }
}

/* ============================================
   CUSTOM ANIMATIONS FOR SECTIONS
   ============================================ */

/* Stagger animation for child elements */
.stagger > * {
    animation: fade-in-up 0.6s ease-out forwards;
}

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

/* ============================================
   CUSTOM COLOR UTILITIES
   ============================================ */

.text-primary {
    color: hsl(43, 96%, 56%);
}

.text-secondary {
    color: hsl(24, 100%, 63%);
}

.text-foreground {
    color: hsl(220, 10%, 20%);
}

.text-muted {
    color: hsl(48, 100%, 97%);
}

.text-muted-foreground {
    color: hsl(220, 10%, 45%);
}

.bg-primary {
    background-color: hsl(43, 96%, 56%);
}

.bg-secondary {
    background-color: hsl(24, 100%, 63%);
}

.bg-muted {
    background-color: hsl(48, 100%, 97%);
}

.border-primary {
    border-color: hsl(43, 96%, 56%);
}

.border-border {
    border-color: hsl(48, 30%, 90%);
}

/* ============================================
   SHADOW UTILITIES
   ============================================ */

.shadow-soft {
    box-shadow: 0 2px 20px -5px hsl(43 96% 56% / 0.15);
}

.shadow-card-hover {
    box-shadow: 0 4px 30px -10px hsl(43 96% 56% / 0.25);
}

/* ============================================
   FORM STYLES
   ============================================ */

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: hsl(43, 96%, 56%);
    box-shadow: 0 0 0 3px hsl(43, 96%, 56%, 0.1);
}
