/* ========================================
   PAGE-SPECIFIC VISUAL EFFECTS
   USA DRONE LOS ANGELES
   ======================================== */

/* General Page Enhancements */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 8s linear infinite;
}

.particle:nth-child(2n) {
    background: var(--accent-color);
    animation-duration: 10s;
}

.particle:nth-child(3n) {
    background: var(--secondary-color);
    animation-duration: 12s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* HOME PAGE EFFECTS */
.hero .floating-particles {
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Service Cards 3D Effects */
.service-card {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 25px 60px rgba(0, 212, 255, 0.3);
}

.service-icon {
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotateY(360deg);
    color: var(--accent-color);
}

/* ABOUT PAGE EFFECTS */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.timeline-item {
    position: relative;
    margin: 3rem 0;
    width: 45%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    left: 55%;
    text-align: left;
    padding-left: 3rem;
}

.timeline-marker {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--dark-bg);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    animation: pulse 2s infinite;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 212, 255, 1), 0 0 50px rgba(0, 212, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    }
}

.timeline-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

/* COURSES PAGE EFFECTS */
.course-card {
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.course-card:hover {
    transform: translateY(-20px) rotateX(5deg);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 212, 255, 0.1) 50%, transparent 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    border-radius: var(--border-radius);
}

.course-card:hover::before {
    opacity: 1;
}

.course-price {
    animation: priceGlow 3s ease-in-out infinite;
}

@keyframes priceGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.8), 0 0 30px rgba(255, 107, 53, 0.3);
    }
}

/* SERVICES PAGE EFFECTS */
.services-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-showcase-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.320, 1);
}

.service-showcase-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: var(--transition-smooth);
    opacity: 0;
}

.service-showcase-card:hover::before {
    animation: shimmer 1.5s ease-in-out;
    opacity: 1;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* CONTACT PAGE EFFECTS */
.contact-form {
    transform-style: preserve-3d;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transform: scale(1.02);
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-gray);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
.form-textarea:focus + .form-label,
.form-textarea:not(:placeholder-shown) + .form-label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    color: var(--primary-color);
    background: var(--dark-bg);
    padding: 0 0.5rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
    backdrop-filter: blur(20px);
}

.contact-info-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
}

.contact-info-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 30px;
}

/* FAQ PAGE EFFECTS */
.faq-item {
    border-left: 4px solid transparent;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.faq-item.active {
    border-left-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.faq-question {
    position: relative;
    overflow: hidden;
}

.faq-question::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: var(--transition-smooth);
}

.faq-question:hover::before {
    left: 100%;
}

.faq-question i {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--accent-color);
}

/* FLIGHT PRACTICES PAGE EFFECTS */
.practice-card {
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.practice-card:hover {
    transform: translateY(-15px) rotateX(10deg);
}

.practice-icon {
    font-size: 3rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.practice-card:hover .practice-icon {
    transform: scale(1.3) rotateY(360deg);
    color: var(--accent-color);
}

.safety-item {
    position: relative;
    overflow: hidden;
}

.safety-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: var(--transition-smooth);
}

.safety-item:hover::after {
    left: 100%;
}

/* HELP LINKS PAGE EFFECTS */
.resource-card {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
}

.resource-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
}

.resource-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.resource-card:hover .resource-icon {
    transform: scale(1.2) rotateZ(15deg);
    color: var(--accent-color);
}

.app-card {
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--secondary-color), var(--primary-color));
    border-radius: var(--border-radius);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.app-card:hover::before {
    opacity: 0.3;
    animation: borderGlow 2s linear infinite;
}

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.feature-tag {
    display: inline-block;
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0.2rem;
    transition: var(--transition-smooth);
}

.feature-tag:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

/* TESTIMONIALS PAGE EFFECTS */
.intro-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    font-family: var(--font-primary);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.stat-label {
    color: var(--text-gray);
    font-weight: 500;
    margin-top: 0.5rem;
}

.testimonial-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
    transform: scale(1.02);
}

.testimonial-rating {
    display: flex;
    gap: 0.2rem;
    color: var(--secondary-color);
}

.testimonial-rating i {
    transition: var(--transition-smooth);
}

.testimonial-card:hover .testimonial-rating i {
    transform: scale(1.2);
    animation: starTwinkle 0.5s ease-in-out;
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left;
        padding-left: 3rem;
        padding-right: 0;
    }
    
    .timeline-marker {
        left: -10px !important;
    }
    
    .timeline::before {
        left: 10px;
        transform: none;
    }
    
    .intro-stats {
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem;
        min-width: 120px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .particle {
        width: 2px;
        height: 2px;
    }
    
    .service-card:hover,
    .course-card:hover,
    .practice-card:hover,
    .resource-card:hover {
        transform: translateY(-5px);
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
}