/* ========================================
   GlobalLeads Network - Enhanced Home Styles
   Premium CPA Network Design
   ======================================== */

/* ========================================
   1. Global & Base Styles
   ======================================== */
body {
    padding-top: 0 !important;
    overflow-x: hidden;
}

.main {
    padding: 0 !important;
}

html {
    scroll-behavior: smooth;
}

/* ========================================
   2. Hero Section Styles
   ======================================== */
.hero-section {
    margin-top: 70px;
}

/* Floating Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

.float-element {
    animation: float 6s ease-in-out infinite;
}

.floating-card {
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-card:hover {
    transform: translateY(-15px) rotateY(5deg) scale(1.02);
}

/* Hero Title Gradient Animation */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.gradient-text {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Hero Badge Styles */
.hero-badge {
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Buttons Enhanced */
.btn-hero {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-hero::before {
    content: '';
    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: width 0.6s, height 0.6s;
    z-index: 0;
}

.btn-hero:hover::before {
    width: 400px;
    height: 400px;
}

.btn-hero:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3) !important;
}

.btn-advertisers:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.btn-publishers:hover {
    background: rgba(255,255,255,0.35) !important;
    border-color: white !important;
}

/* Trust Items Animation */
.trust-item {
    animation: fadeInUp 0.6s ease-out;
    transition: all 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-3px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   3. Stats Section Enhanced
   ======================================== */

/* Icon Pulse Animation */
@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Stat Cards with Glow Effect */
.stat-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.stat-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
    border-color: rgba(102,126,234,0.3) !important;
}

.stat-card:hover .stat-glow {
    opacity: 1;
}

.stat-icon {
    transition: all 0.4s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.15) rotate(5deg);
}

/* Counter Animation */
.counter {
    transition: all 0.3s ease;
}

/* Section Badge */
.section-badge {
    animation: fadeInDown 0.8s ease-out;
}

/* ========================================
   4. Info Boxes (GEOs & Models)
   ======================================== */
.info-box {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15) !important;
}

/* Geo Items with Slide Animation */
.geo-item {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.geo-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    transform: translateX(10px) scale(1.05);
}

.geo-item:hover span {
    color: white !important;
}

/* Model Badges with 3D Effect */
.model-badge {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
}

.model-badge:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* ========================================
   5. Testimonials Section
   ======================================== */
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
}

.testimonial-card:hover .quote-icon {
    color: rgba(102,126,234,0.3) !important;
    transform: scale(1.2);
}

.quote-icon {
    transition: all 0.4s ease;
}

.avatar {
    transition: all 0.3s ease;
}

.testimonial-card:hover .avatar {
    transform: scale(1.1) rotate(5deg);
}

.rating i {
    animation: starPulse 2s ease-in-out infinite;
}

.rating i:nth-child(1) { animation-delay: 0s; }
.rating i:nth-child(2) { animation-delay: 0.1s; }
.rating i:nth-child(3) { animation-delay: 0.2s; }
.rating i:nth-child(4) { animation-delay: 0.3s; }
.rating i:nth-child(5) { animation-delay: 0.4s; }

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ========================================
   6. Why Choose Us / Feature Cards
   ======================================== */
.feature-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255,255,255,0.2) !important;
    border-color: rgba(255,255,255,0.5) !important;
}

.feature-icon {
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(10deg);
}

/* ========================================
   7. Vertical Cards
   ======================================== */
.vertical-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.vertical-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 70px rgba(0,0,0,0.2) !important;
}

.vertical-image {
    transition: all 0.5s ease;
}

.vertical-card:hover .vertical-image {
    transform: scale(1.1);
}

.vertical-rate {
    transition: all 0.3s ease;
}

.vertical-card:hover .vertical-rate {
    transform: scale(1.1);
}

/* ========================================
   8. Partner Logos
   ======================================== */
.partner-logo {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.partner-logo:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

/* ========================================
   9. Contact Section
   ======================================== */
.contact-item {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-item:hover {
    background: rgba(255,255,255,0.2) !important;
    transform: translateX(10px);
}

.map-container {
    transition: all 0.4s ease;
}

.map-container:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.25) !important;
    transform: scale(1.02);
}

/* Newsletter Form */
.newsletter-form input[type="email"] {
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    box-shadow: 0 0 0 4px rgba(255,255,255,0.3);
    transform: scale(1.02);
}

.newsletter-form button {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.newsletter-form button:hover {
    background: #f8f9fa !important;
    transform: scale(1.15) rotate(90deg);
}

/* ========================================
   10. CTA Section
   ======================================== */
.cta-section a {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.cta-section a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.cta-section a:hover::before {
    left: 100%;
}

.cta-section a:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3) !important;
    background: #f0f0f0 !important;
}

/* ========================================
   11. Scroll Reveal Animations
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   12. Particles.js Background
   ======================================== */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ========================================
   13. Preloader
   ======================================== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   14. Mobile Responsive Styles
   ======================================== */
@media (max-width: 1200px) {
    .hero-section .hero-title {
        font-size: 46px !important;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 70px 0 !important;
        min-height: 550px !important;
    }
    
    .hero-section .hero-title {
        font-size: 40px !important;
    }
    
    .hero-section .hero-description {
        font-size: 18px !important;
    }
    
    .section-header h2 {
        font-size: 38px !important;
    }
    
    .floating-card {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0 !important;
        min-height: auto !important;
    }
    
    .hero-section .hero-title {
        font-size: 34px !important;
    }
    
    .hero-section .hero-description {
        font-size: 16px !important;
    }
    
    .section-header h2 {
        font-size: 32px !important;
    }
    
    .stat-card {
        padding: 30px 20px !important;
    }
    
    .stat-icon {
        width: 70px !important;
        height: 70px !important;
    }
    
    .stat-card h3 {
        font-size: 32px !important;
    }
    
    .feature-card,
    .testimonial-card {
        padding: 30px !important;
    }
    
    .vertical-card .vertical-image {
        height: 160px !important;
    }
    
    .contact-info {
        padding: 35px !important;
        margin-bottom: 30px;
    }
    
    .cta-section h2 {
        font-size: 32px !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        width: 100%;
    }
    
    .btn-hero {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .trust-badges {
        justify-content: center !important;
    }
}

@media (max-width: 576px) {
    .hero-section .hero-title {
        font-size: 28px !important;
    }
    
    .section-header h2 {
        font-size: 28px !important;
    }
    
    .section-badge {
        font-size: 12px !important;
        padding: 6px 15px !important;
    }
}

/* ========================================
   15. Dark Mode Support (Optional)
   ======================================== */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* ========================================
   16. Print Styles
   ======================================== */
@media print {
    .hero-bg-animation,
    .float-element,
    #particles-js {
        display: none !important;
    }
}

/* ========================================
   17. Accessibility Improvements
   ======================================== */
.btn-hero:focus,
.stat-card:focus,
.vertical-card:focus {
    outline: 3px solid #667eea;
    outline-offset: 3px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
