/**
 * MARKETING PAGES ENHANCEMENTS
 * Additional enhancements to ensure all marketing pages work perfectly with the new navigation
 */

/* === GLOBAL MARKETING PAGE ADJUSTMENTS === */

/* Account for fixed navbar */
.no-container {
    padding-top: 0;
}

/* Page hero sections adjustment for navbar */
.page-hero {
    padding-top: 140px !important;
    margin-top: 0 !important;
}

/* Ensure content sections have proper spacing */
.content-section {
    scroll-margin-top: 90px;
}

/* === ENHANCED PAGE TRANSITIONS === */
@keyframes pageLoadFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-content {
    animation: pageLoadFade 0.6s ease-out;
}

/* === IMPROVED FLOATING SHAPES ANIMATION === */
.floating-shapes .shape {
    will-change: transform;
}

/* === ENHANCED GRADIENT TEXT === */
.gradient-text-unified {
    position: relative;
    display: inline-block;
}

/* === IMPROVED CARD HOVER EFFECTS === */
.feature-card-unified,
.card-unified,
.pricing-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card-unified:hover,
.card-unified:hover {
    transform: translateY(-8px) scale(1.02);
}

/* === ENHANCED CTA SECTIONS === */
.cta-section-unified {
    position: relative;
    isolation: isolate;
}

.cta-section-unified::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.05), rgba(6, 182, 212, 0.05));
    z-index: -1;
}

/* === IMPROVED BUTTON STYLES === */
.btn-unified-primary,
.btn-unified-outline {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-unified-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-unified-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* === ENHANCED SECTION HEADERS === */
.section-header-unified {
    position: relative;
}

.section-header-unified::after {
    content: '';
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-500), var(--color-accent-400));
    display: block;
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

/* === IMPROVED STATS DISPLAY === */
.stat-card-hero {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.15);
}

/* === ENHANCED TIMELINE === */
.timeline-unified {
    position: relative;
}

.timeline-item-unified {
    transition: all 0.3s ease;
}

.timeline-item-unified:hover {
    transform: translateX(10px);
}

.timeline-item-unified:hover .timeline-date-unified {
    background: linear-gradient(135deg, var(--color-primary-600), var(--color-accent-500));
    color: white;
}

/* === IMPROVED ICON STYLING === */
.icon-square-unified {
    transition: all 0.3s ease;
}

.feature-card-unified:hover .icon-square-unified,
.card-unified:hover .icon-square-unified {
    transform: scale(1.1) rotate(-5deg);
}

/* === ENHANCED FORM ELEMENTS === */
.form-control:focus {
    border-color: var(--color-primary-400);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* === IMPROVED PRICING CARDS === */
.pricing-card {
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary-500), var(--color-accent-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-card.featured {
    position: relative;
    z-index: 2;
}

.pricing-card.featured::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-accent-400));
    border-radius: inherit;
    z-index: -1;
}

/* === ENHANCED VALUE CARDS === */
.value-card-unified {
    transition: all 0.3s ease;
    cursor: pointer;
}

.value-card-unified:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.value-icon-unified {
    transition: all 0.3s ease;
}

.value-card-unified:hover .value-icon-unified {
    transform: scale(1.15) rotate(10deg);
}

/* === IMPROVED TEAM CARDS === */
.team-card-unified {
    transition: all 0.3s ease;
}

.team-card-unified:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.team-avatar-unified {
    transition: all 0.3s ease;
}

.team-card-unified:hover .team-avatar-unified {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.3);
}

/* === ENHANCED SOCIAL LINKS === */
.social-link-unified {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link-unified:hover {
    transform: translateY(-4px) scale(1.1);
}

/* === IMPROVED CONTACT FORM === */
.contact-form {
    position: relative;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.contact-form .form-control,
.contact-form .form-select {
    padding: 0.875rem 1.125rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--color-primary-500);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
    outline: none;
}

/* === ENHANCED ALERT STYLING === */
.alert {
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    animation: slideDown 0.3s ease-out;
}

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

/* === IMPROVED TABLE STYLING === */
.comparison-table {
    border-radius: var(--radius-2xl) !important;
}

.comparison-table tbody tr {
    transition: all 0.2s ease;
}

/* === ENHANCED BADGE STYLING === */
.badge-unified {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.badge-unified:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === LOADING STATES === */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--color-primary-500);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === IMPROVED SCROLL ANIMATIONS === */
[data-aos] {
    transition-property: transform, opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === ENHANCED FOCUS STATES === */
*:focus-visible {
    outline: 3px solid var(--color-primary-400);
    outline-offset: 2px;
    border-radius: var(--radius-md);
}

/* === IMPROVED LINK STYLING === */
a:not([class]) {
    color: var(--color-primary-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:not([class]):hover {
    color: var(--color-primary-700);
    text-decoration: underline;
}

/* === RESPONSIVE ENHANCEMENTS === */
@media (max-width: 1024px) {
    .page-hero {
        padding-top: 120px !important;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding-top: 100px !important;
    }

    .section-header-unified::after {
        margin: 1rem auto 0;
    }
}

/* === PRINT STYLES === */
@media print {
    .page-hero {
        padding-top: 2rem !important;
    }

    .floating-shapes,
    .gradient-orb {
        display: none;
    }
}

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

    .floating-shape,
    .gradient-orb {
        animation: none !important;
    }
}

/* === HIGH CONTRAST MODE === */
@media (prefers-contrast: high) {
    .btn-unified-primary,
    .btn-enhanced-primary {
        border: 2px solid currentColor;
    }

    .gradient-text,
    .gradient-text-unified,
    .hero-gradient-text {
        -webkit-text-fill-color: unset;
        background: none;
        color: var(--color-primary-700);
    }
}

/* === SMOOTH SCROLLING OFFSET FOR ANCHOR LINKS === */
html {
    scroll-padding-top: 90px;
}

/* === IMPROVED PAGE SPACING === */
section + section {
    position: relative;
}

/* === ENHANCED GRID LAYOUTS === */
@supports (display: grid) {
    .features-grid-enhanced,
    .testimonials-grid-enhanced,
    .pricing-cards-preview {
        gap: clamp(1.5rem, 3vw, 2.5rem);
    }
}

/* === IMPROVED PERFORMANCE === */
.floating-shape,
.gradient-orb,
.stat-card-float {
    will-change: transform;
}

/* Force GPU acceleration for smooth animations */
.feature-card-enhanced,
.pricing-card,
.testimonial-card-enhanced {
    transform: translateZ(0);
    backface-visibility: hidden;
}
