/* Orbit Wave - Custom Styles */

/* Base Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(58, 109, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(58, 109, 255, 0.5); }
}

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

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

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

/* Gradient Backgrounds */
.bg-hero-gradient {
    background: linear-gradient(135deg, #1a1a2e 0%, #2D3A6D 50%, #3A6DFF 100%) !important;
}

.bg-hero-gradient-animated {
    background: linear-gradient(135deg, #1a1a2e, #2D3A6D, #3A6DFF, #5C8DFF) !important;
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

.bg-section-gradient {
    background: linear-gradient(180deg, #F7F8FA 0%, #FFFFFF 100%) !important;
}

.bg-card-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, #F7F8FA 100%) !important;
}

.bg-accent-gradient {
    background: linear-gradient(135deg, #FF9E47 0%, #FFB878 100%) !important;
}

.bg-blue-gradient {
    background: linear-gradient(135deg, #3A6DFF 0%, #5C8DFF 100%) !important;
}

/* Text Gradients */
.text-gradient-primary {
    background: linear-gradient(135deg, #3A6DFF 0%, #5C8DFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-accent {
    background: linear-gradient(135deg, #FF9E47 0%, #FFB878 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-warm {
    background: linear-gradient(135deg, #FF9E47 0%, #FF6B9D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Styles */
.nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-link-dark {
    color: #374151;
}

.nav-link-dark:hover {
    color: #3A6DFF;
    background-color: rgba(58, 109, 255, 0.05);
}

.nav-link-light {
    color: rgba(255, 255, 255, 0.9);
}

.nav-link-light:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #374151;
    font-weight: 500;
    transition: background-color 0.2s;
}

.mobile-nav-link:hover {
    background-color: #F3F4F6;
}

/* Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #FF9E47 0%, #E57C1E 100%);
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #E57C1E 0%, #D06A10 100%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: white;
    color: #3A6DFF;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #F3F4F6;
}

.btn-secondary:hover {
    background-color: #F9FAFB;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.2s;
    background: transparent;
}

.btn-outline:hover {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    color: #374151;
    font-weight: 500;
    border-radius: 0.75rem;
    transition: all 0.2s;
}

.btn-ghost:hover {
    background-color: #F3F4F6;
}

/* Card Styles */
.card {
    background-color: white;
    border-radius: 1.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.card-hover:hover {
    transform: translateY(-4px);
}

.card-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, #F7F8FA 100%);
    border-radius: 1.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    background-color: #12121f;
    border-radius: 3rem;
    padding: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 280px;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6rem;
    height: 1.5rem;
    background-color: #12121f;
    border-radius: 0 0 1rem 1rem;
}

.phone-screen {
    border-radius: 2.5rem;
    overflow: hidden;
    background-color: white;
}

/* Page Wrapper - Contains transitions without layout shifts */
.page-wrapper {
    position: relative;
    min-height: 100vh;
}

/* Main Content Container - Smooth transitions */
main[ng-view] {
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Section Styles */
.section-padding {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

@media (min-width: 1024px) {
    .section-padding {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 1.875rem;
    }
}

.section-subtitle {
    font-size: 1rem;
    color: #6B7280;
    max-width: 36rem;
}

/* Feature Icon Container */
.feature-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-icon-blue {
    background: linear-gradient(135deg, #3A6DFF 0%, #5C8DFF 100%);
}

.feature-icon-orange {
    background: linear-gradient(135deg, #FF9E47 0%, #FFB878 100%);
}

/* Benefit Card */
.benefit-card {
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    border: 1px solid #F3F4F6;
}

.benefit-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Blog Card */
.blog-card {
    background-color: white;
    border-radius: 1.75rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.blog-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.blog-card-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #E5E7EB;
    outline: none;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: #3A6DFF;
    box-shadow: 0 0 0 3px rgba(58, 109, 255, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #E5E7EB;
    outline: none;
    transition: all 0.2s;
    resize: none;
}

.form-textarea:focus {
    border-color: #3A6DFF;
    box-shadow: 0 0 0 3px rgba(58, 109, 255, 0.1);
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-primary {
    background-color: rgba(58, 109, 255, 0.1);
    color: #3A6DFF;
}

.badge-secondary {
    background-color: rgba(255, 158, 71, 0.1);
    color: #E57C1E;
}

.badge-success {
    background-color: #D1FAE5;
    color: #047857;
}

/* Scroll Reveal (use with ng-class) */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

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

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

::-webkit-scrollbar-thumb {
    background: #E5E7EB;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Newsletter Section */
.newsletter-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #2D3A6D 50%, #3A6DFF 100%) !important;
}

/* Testimonial Card */
.testimonial-card {
    background-color: white;
    border-radius: 1.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    object-fit: cover;
}

/* Stats */
.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
}

@media (min-width: 1024px) {
    .stat-number {
        font-size: 1.875rem;
    }
}

.stat-label {
    color: #6B7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Decorative Elements */
.blob {
    position: absolute;
    border-radius: 9999px;
    filter: blur(64px);
    opacity: 0.3;
}

.blob-primary {
    background-color: #3A6DFF;
}

.blob-secondary {
    background-color: #FF9E47;
}

/* Page Transition Animations - Premium bottom-up effect */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pageLeave {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

/* View Transitions - Premium subtle bottom-up effect */
[ng-view] {
    position: relative;
}

[ng-view].ng-enter {
    animation: pageEnter 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    z-index: 10;
}

[ng-view].ng-leave {
    animation: pageLeave 0.25s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

/* Disable animations on blog post filtering to prevent double-render issues */
.blog-card.ng-enter,
.blog-card.ng-leave,
.blog-page .ng-enter,
.blog-page .ng-leave {
    animation: none !important;
    transition: none !important;
}

/* Smooth category button transitions */
.blog-page button {
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Responsive Typography */
@media (max-width: 640px) {
    .section-title {
        @apply text-2xl;
    }
    
    .section-subtitle {
        @apply text-base;
    }
}

/* Icon Directive Styles */
icon {
    display: flex;
    width: 1.5rem;
    height: 1.5rem;
    align-items: center;
    justify-content: center;
}

/* Make icon fill parent when inside a sized container */
.w-9 icon,
.w-11 icon,
.w-14 icon,
.w-16 icon,
.w-24 icon {
    width: 60%;
    height: 60%;
}

.icon-wrapper {
    display: inline-flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.icon-wrapper svg {
    width: 100%;
    height: 100%;
}

/* Print Styles */
@media print {
    nav, footer, .no-print {
        display: none !important;
    }
}
