/* Marketing-specific styles for Xtra Credit portfolio page */

/* Enhanced animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes travel {
    0% {
        transform: translateX(0) rotate(0deg);
    }
    25% {
        transform: translateX(10px) rotate(5deg);
    }
    50% {
        transform: translateX(0) rotate(0deg);
    }
    75% {
        transform: translateX(-10px) rotate(-5deg);
    }
    100% {
        transform: translateX(0) rotate(0deg);
    }
}

/* Animation classes */
.animate-slide-up {
    animation: slideInUp 0.8s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

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

/* Enhanced hero section */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="clouds" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M25,15 Q15,5 5,15 Q15,25 25,15" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23clouds)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    background: linear-gradient(45deg, #fff, #e6f3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-description {
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Enhanced feature cards */
.feature-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 122, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 122, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 122, 255, 0.2);
    border-color: rgba(0, 122, 255, 0.3);
}

.feature-icon {
    background: linear-gradient(135deg, #007AFF, #20C997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 122, 255, 0.3));
}

/* Enhanced buttons */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.3);
}

/* Enhanced screenshots */
.screenshot-item {
    position: relative;
    transition: transform 0.3s ease;
}

.screenshot-item:hover {
    transform: scale(1.05);
}

.screenshot-image {
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.screenshot-item:hover .screenshot-image {
    border-color: #007AFF;
    box-shadow: 0 15px 40px rgba(0, 122, 255, 0.3);
}

/* Enhanced testimonials */
.testimonial-card {
    position: relative;
    border-left: 4px solid #007AFF;
    transition: all 0.3s ease;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #007AFF;
    opacity: 0.3;
    font-family: serif;
}

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

.testimonial-stars {
    color: #ffc107;
    filter: drop-shadow(0 1px 2px rgba(255, 193, 7, 0.3));
}

/* Enhanced download section */
.download {
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="travel-dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23travel-dots)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.download-content {
    position: relative;
    z-index: 2;
}

.download-feature {
    transition: transform 0.3s ease;
}

.download-feature:hover {
    transform: scale(1.1);
}

.download-feature-icon {
    color: #ffc107;
    filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.3));
}

/* Enhanced FAQ */
.faq-item {
    position: relative;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.faq-item:hover {
    border-left-color: #007AFF;
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.faq-question {
    position: relative;
    padding-left: 2rem;
}

.faq-question::before {
    content: '?';
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: #007AFF;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
}

/* Enhanced footer */
.footer {
    position: relative;
    background: linear-gradient(135deg, #333, #444);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #007AFF, transparent);
}

.footer-section h3,
.footer-section h4 {
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after,
.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #007AFF;
}

.footer-links a {
    position: relative;
    transition: all 0.3s ease;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #007AFF;
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 8px;
}

.footer-social a {
    transition: all 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 5px 10px rgba(0, 122, 255, 0.3));
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Hover effects for interactive elements */
.interactive {
    cursor: pointer;
    transition: all 0.3s ease;
}

.interactive:hover {
    transform: scale(1.02);
}

.interactive:active {
    transform: scale(0.98);
}

/* Travel-themed enhancements */
.travel-sparkle {
    position: relative;
    overflow: hidden;
}

.travel-sparkle::after {
    content: '✈️';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    animation: travel 2s ease-in-out infinite;
    pointer-events: none;
}

.credit-highlight {
    background: linear-gradient(45deg, #007AFF, #20C997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.airline-badge {
    display: inline-block;
    background: linear-gradient(135deg, #007AFF, #20C997);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.flight-path {
    position: relative;
}

.flight-path::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    right: -20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #007AFF, transparent);
    transform: translateY(-50%);
    opacity: 0.3;
}

/* Credit management specific styles */
.credit-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid rgba(0, 122, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.credit-card:hover {
    border-color: rgba(0, 122, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 122, 255, 0.1);
}

.credit-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #007AFF;
    text-align: center;
    margin: 1rem 0;
}

.airline-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 1rem;
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-title-main {
        font-size: 3rem;
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    .screenshot-item:hover {
        transform: none;
    }
    
    .testimonial-card:hover {
        transform: none;
    }
    
    .faq-item:hover {
        transform: none;
    }
    
    .download-feature:hover {
        transform: none;
    }
    
    .travel-sparkle::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title-main {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card,
    .testimonial-card,
    .faq-item {
        padding: 1.5rem;
    }
    
    .airline-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .credit-amount {
        font-size: 1.5rem;
    }
}
