/* =============================================
   CCA Morena — Premium Animations
   ============================================= */

/* ---------------------------------------------
   Preloader
   --------------------------------------------- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 60px;
    height: 60px;
    position: relative;
}

.loader-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #e0e0e0;
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------------------------------------------
   Animations
   --------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 20px rgba(26, 35, 126, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(26, 35, 126, 0.6);
    }
    100% {
        box-shadow: 0 0 20px rgba(26, 35, 126, 0.3);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease forwards;
}

.animate-slide-down {
    animation: slideDown 0.8s ease forwards;
}

.animate-slide-left {
    animation: slideLeft 0.8s ease forwards;
}

.animate-slide-right {
    animation: slideRight 0.8s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.delay-1 {
    animation-delay: 0.2s;
    opacity: 0;
}

.delay-2 {
    animation-delay: 0.4s;
    opacity: 0;
}

.delay-3 {
    animation-delay: 0.6s;
    opacity: 0;
}

.delay-4 {
    animation-delay: 0.8s;
    opacity: 0;
}

/* ---------------------------------------------
   Hero Premium Styles
   --------------------------------------------- */
.premium-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0d47a1, #1a237e, #283593);
    padding: 120px 0 80px;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(255,255,255,0.04) 0%, transparent 50%);
}

.hero-floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    animation: float 15s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: 10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 30%;
    animation-delay: -7s;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 30px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
    position: relative;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    animation: pulse 2s ease-in-out infinite;
}

/* ---------------------------------------------
   Premium Service Cards
   --------------------------------------------- */
.premium-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-white);
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--card-color), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.premium-card:hover::before {
    opacity: 0.05;
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.card-icon-wrapper {
    position: relative;
    z-index: 1;
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
}

.premium-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.card-hover-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--card-color);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.premium-card:hover .card-hover-bg {
    width: 300px;
    height: 300px;
    opacity: 0.05;
}

/* ---------------------------------------------
   Premium Buttons
   --------------------------------------------- */
.btn-glow {
    position: relative;
    overflow: hidden;
    animation: glow 3s ease-in-out infinite;
}

.btn-glow:hover {
    animation: none;
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(26, 35, 126, 0.4);
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.btn-glow:active .btn-ripple {
    width: 200px;
    height: 200px;
    opacity: 0;
}

.btn-glass {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
}

.btn-glass:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    transform: translateY(-3px);
}

.btn-glow-small {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-glow-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(26, 35, 126, 0.3);
}

/* ---------------------------------------------
   Premium Banner
   --------------------------------------------- */
.premium-banner {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf6 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.premium-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(26, 35, 126, 0.03);
}

.banner-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0 25px;
}

.banner-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #444;
}

.banner-features span i {
    color: var(--success);
}

.banner-image-wrapper {
    position: relative;
    animation: float 4s ease-in-out infinite;
}

.image-float-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    animation: float 3s ease-in-out infinite;
}

.float-icon:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.float-icon:nth-child(2) {
    bottom: 20%;
    right: 10%;
    animation-delay: -1s;
}

.float-icon:nth-child(3) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -2s;
    opacity: 0.2;
    width: 80px;
    height: 80px;
    font-size: 30px;
}

/* ---------------------------------------------
   Premium Job Cards
   --------------------------------------------- */
.premium-job-card {
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.job-type-badge .badge {
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-full_time {
    background: #e3f2fd;
    color: #1a237e;
}

.badge-part_time {
    background: #fff3e0;
    color: #e65100;
}

.badge-contract {
    background: #f3e5f5;
    color: #6a1b9a;
}

.badge-internship {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-temporary {
    background: #fce4ec;
    color: #c62828;
}

.job-description {
    color: #666;
    font-size: 14px;
    margin: 10px 0 15px;
    line-height: 1.6;
}

/* ---------------------------------------------
   Premium Business Cards
   --------------------------------------------- */
.premium-business-card {
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-business-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff6f00, #f57c00);
    color: white;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.business-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* ---------------------------------------------
   Premium Achiever Cards
   --------------------------------------------- */
.premium-achiever-card {
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-achiever-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.achiever-social {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: all 0.3s ease;
}

.premium-achiever-card:hover .achiever-social {
    opacity: 1;
    bottom: 10px;
}

.achiever-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.achiever-social a:hover {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
}

/* ---------------------------------------------
   Premium Update Cards
   --------------------------------------------- */
.premium-update-card {
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-update-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.update-image {
    position: relative;
    overflow: hidden;
}

.update-category-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--primary);
    color: white;
    padding: 3px 14px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* ---------------------------------------------
   Testimonials
   --------------------------------------------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.testimonial-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.testimonial-quote {
    color: var(--primary);
    font-size: 24px;
    opacity: 0.2;
    margin-bottom: 10px;
}

.testimonial-card p {
    color: #444;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.author-info strong {
    display: block;
    font-size: 14px;
    color: #333;
}

.author-info span {
    font-size: 12px;
    color: #999;
}

/* ---------------------------------------------
   Premium CTA
   --------------------------------------------- */
.premium-cta {
    position: relative;
    background: linear-gradient(135deg, #0d47a1, #1a237e, #283593);
    padding: 80px 0;
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.03) 0%, transparent 50%);
}

.premium-cta .cta-content {
    position: relative;
    z-index: 1;
}

.premium-cta h2 {
    font-size: 38px;
}

.premium-cta .highlight {
    color: #ffa726;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

/* ---------------------------------------------
   Premium Links
   --------------------------------------------- */
.premium-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.premium-link:hover {
    color: var(--secondary);
    gap: 15px;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* ---------------------------------------------
   Responsive
   --------------------------------------------- */
@media (max-width: 768px) {
    .premium-hero {
        padding: 80px 0 60px;
    }
    
    .premium-cta h2 {
        font-size: 28px;
    }
    
    .banner-features {
        justify-content: center;
    }
    
    .float-icon {
        display: none;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 11px;
        padding: 6px 14px;
    }
    
    .premium-cta h2 {
        font-size: 24px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}