/* Modern Sections Styles */

/* Competitive Advantages Section */
.advantage-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(170, 131, 56, 0.05) 50%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.advantage-card:hover::before {
    opacity: 1;
    animation: shine 1.5s ease-in-out;
}

@keyframes shine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* CTA Section */
.cta-container {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.cta-border-animation {
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, #081B31, #AA8338, #081B31);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cta-container:hover .cta-border-animation {
    opacity: 1;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-button-primary {
    position: relative;
    overflow: hidden;
}

.cta-button-primary::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.7s ease;
}

.cta-button-primary:hover::before {
    left: 100%;
}

.cta-button-secondary {
    transition: all 0.3s ease;
}

.cta-button-secondary:hover {
    border-color: #AA8338;
    color: #AA8338;
}

/* Floating animation for elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

/* Particle animation */
@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(20px) rotate(180deg);
        opacity: 0;
    }
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #081B31, #AA8338);
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
    opacity: 0;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 10s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 1s;
    animation-duration: 12s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 8s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 3s;
    animation-duration: 11s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 9s;
}

/* Glow effects */
.glow-effect {
    box-shadow: 0 0 20px rgba(170, 131, 56, 0.1),
                0 0 40px rgba(8, 27, 49, 0.1),
                0 0 60px rgba(170, 131, 56, 0.05);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(170, 131, 56, 0.2),
                0 0 60px rgba(8, 27, 49, 0.2),
                0 0 90px rgba(170, 131, 56, 0.1);
}

/* Modern gradient text */
.gradient-text {
    background: linear-gradient(45deg, #081B31, #AA8338, #081B31);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .advantage-card {
        padding: 1.5rem;
    }
    
    .cta-container {
        padding: 2rem 1.5rem;
    }
    
    .cta-button-primary,
    .cta-button-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .advantage-card .text-3xl {
        font-size: 2rem;
    }
    
    .cta-container h2 {
        font-size: 2rem;
    }
}