/* Specialized Pages CSS - Animations and Styling */

/* Hero Section Styling */
.page-hero {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.page-hero h1 {
    color: white;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.page-hero-icon {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.page-hero-icon:hover {
    transform: translateY(-5px);
}

/* Feature Cards */
.feature-card {
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card .card-body {
    padding: 2rem;
}

.feature-card .card-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Job Listings */
.job-card {
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.job-card .card-img-top {
    height: 180px;
    object-fit: cover;
    width: 100%;
}

.job-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.job-card .card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
    height: 3.1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.job-card .card-text {
    color: #666;
    margin-bottom: 1rem;
    height: 4.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
}

.job-card .btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffc107;
    color: #212529;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(20px);
    animation: fadeInRight 0.8s ease forwards;
}

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

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Page Specific Styling */
.survey-page .page-hero {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
}

.remote-page .page-hero {
    background: linear-gradient(135deg, #20c997 0%, #0ca678 100%);
}

.paid-page .page-hero {
    background: linear-gradient(135deg, #fd7e14 0%, #e76b08 100%);
}

.credit-page .page-hero {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
}

.financial-page .page-hero {
    background: linear-gradient(135deg, #dc3545 0%, #c42836 100%);
}

/* Floating Elements Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Wave Animation */
.wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23FFFFFF"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23FFFFFF"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23FFFFFF"/></svg>');
    background-size: cover;
    background-repeat: no-repeat;
}

/* Specialized Pages Styling */

/* Hero Section */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, #6f42c1 0%, #4e73df 100%);
    color: white;
    padding: 80px 0 120px;
    margin-bottom: 60px;
    overflow: hidden;
}

.paid-page .page-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}

.survey-page .page-hero {
    background: linear-gradient(135deg, #5e2ca5 0%, #7048e8 100%);
}

.remote-page .page-hero {
    background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
}

.credit-page .page-hero {
    background: linear-gradient(135deg, #145a32 0%, #27ae60 100%);
}

.financial-page .page-hero {
    background: linear-gradient(135deg, #186a3b 0%, #2ecc71 100%);
}

.wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: url('../images/specialized/wave.svg') repeat-x;
    background-size: 1000px 50px;
}

.page-hero-icon {
    max-width: 250px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

/* Feature Cards */
.feature-card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
    padding: 20px;
    background: white;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}

/* Job Cards */
.job-card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.job-card .card-img-top {
    height: 180px;
    object-fit: cover;
    width: 100%;
}

.job-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffc107;
    color: #212529;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.job-card .card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
    height: 3.1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.job-card .card-text {
    color: #666;
    margin-bottom: 1rem;
    height: 4.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
}

.job-card .btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

.staggered-animation {
    transition-delay: calc(var(--animation-order, 0) * 0.1s);
}

/* Floating animation */
@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

/* Enhanced Sections */
.enhanced-section {
    position: relative;
    padding: 50px 0;
    border-radius: 15px;
    margin-bottom: 40px;
    overflow: hidden;
}

.enhanced-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('../images/specialized/pattern-bg.png');
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

.enhanced-section .content {
    position: relative;
    z-index: 1;
}

.enhanced-section.primary-section {
    background-color: rgba(13, 110, 253, 0.05);
}

.enhanced-section.success-section {
    background-color: rgba(25, 135, 84, 0.05);
}

.enhanced-section.info-section {
    background-color: rgba(13, 202, 240, 0.05);
}

.enhanced-section.warning-section {
    background-color: rgba(255, 193, 7, 0.05);
}

.enhanced-section.danger-section {
    background-color: rgba(220, 53, 69, 0.05);
}

.enhanced-section.purple-section {
    background-color: rgba(111, 66, 193, 0.05);
}

/* Enhanced Cards */
.enhanced-card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.enhanced-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.enhanced-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.enhanced-card .card-body {
    padding: 25px;
}

.enhanced-card .card-title {
    font-weight: 700;
    margin-bottom: 15px;
}

.enhanced-card .card-text {
    color: #6c757d;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #e9ecef;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -13px;
    background-color: white;
    border: 4px solid #6f42c1;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-left {
    left: 0;
}

.timeline-right {
    left: 50%;
}

.timeline-left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid #f8f9fa;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #f8f9fa;
}

.timeline-right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid #f8f9fa;
    border-width: 10px 10px 10px 0;
    border-color: transparent #f8f9fa transparent transparent;
}

.timeline-right::after {
    left: -12px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

@media screen and (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-container::before {
        left: 60px;
        border: medium solid #f8f9fa;
        border-width: 10px 10px 10px 0;
        border-color: transparent #f8f9fa transparent transparent;
    }
    
    .timeline-left::after, .timeline-right::after {
        left: 18px;
    }
    
    .timeline-right {
        left: 0%;
    }
}

/* Progress Bars */
.progress-container {
    margin-bottom: 20px;
}

.progress-container .progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
    margin-top: 10px;
    overflow: visible;
}

.progress-container .progress-bar {
    position: relative;
    border-radius: 5px;
    transition: width 1.5s ease;
}

.progress-container .progress-bar::after {
    content: attr(data-value);
    position: absolute;
    right: 0;
    top: -25px;
    font-weight: 600;
}

/* Image Overlays */
.image-overlay-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 30px;
}

.image-overlay-container img {
    width: 100%;
    transition: transform 0.5s ease;
}

.image-overlay-container:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: .5s ease;
}

.image-overlay-container:hover .image-overlay {
    height: 100%;
}

.image-overlay-content {
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
}

/* Stats Counter */
.stats-counter {
    text-align: center;
    margin-bottom: 30px;
}

.stats-counter .counter-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #6f42c1;
}

.stats-counter .counter-label {
    font-size: 1.2rem;
    color: #6c757d;
}

/* Testimonial Cards */
.testimonial-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 80px;
    color: rgba(111, 66, 193, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-author-info h5 {
    margin-bottom: 0;
    font-weight: 600;
}

.testimonial-author-info p {
    margin-bottom: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Enhanced Buttons */
.btn-enhanced {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-enhanced:hover::before {
    width: 100%;
}

.btn-enhanced.btn-primary {
    background: linear-gradient(45deg, #4e73df, #6f42c1);
    border: none;
}

.btn-enhanced.btn-success {
    background: linear-gradient(45deg, #1cc88a, #20c997);
    border: none;
}

.btn-enhanced.btn-info {
    background: linear-gradient(45deg, #36b9cc, #0dcaf0);
    border: none;
}

.btn-enhanced.btn-warning {
    background: linear-gradient(45deg, #f6c23e, #ffc107);
    border: none;
}

.btn-enhanced.btn-danger {
    background: linear-gradient(45deg, #e74a3b, #dc3545);
    border: none;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .page-hero {
        padding: 60px 0 100px;
    }
    
    .page-hero-icon {
        max-width: 200px;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 40px 0 80px;
    }
    
    .enhanced-section {
        padding: 30px 0;
    }
    
    .stats-counter .counter-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .page-hero-icon {
        max-width: 150px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
