/* ============================================
   Affiliate Program Hero Section - Zencia.AI
   ============================================ */

/* ===== AFFILIATE HERO SECTION ===== */
.affiliate-hero {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f1419 0%, #082928 100%);
    overflow: hidden;
    padding-top: 80px; /* Account for fixed header */
}

/* ===== ANIMATED BACKGROUND ===== */
.affiliate-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; /* Full viewport width */
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background-image: url('../../images/zenciahero-background.svg');
    background-size: cover; /* Change from 110% 110% to cover */
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.4;
    filter: brightness(0.8);
}

/* Animated gradient overlay */
.affiliate-hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 217, 213, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(0, 139, 139, 0.15) 0%, transparent 50%);
    animation: gradientShift 15s ease-in-out infinite;
    z-index: 2;
}

@keyframes gradientShift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(50px, 30px) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes svgFloat {
    0%, 100% {
        transform: scale(1);
        background-position: center center;
    }
    50% {
        transform: scale(1.08);
        background-position: calc(center + 20px) calc(center + 15px);
    }
}

.affiliate-svg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 3;
}

/* Floating particles effect */
.affiliate-hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.affiliate-hero-particles .particle {
    position: absolute;
    background: #00D9D5;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0.6;
    }
}

.affiliate-hero-particles .particle:nth-child(1) {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.affiliate-hero-particles .particle:nth-child(2) {
    width: 6px;
    height: 6px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.affiliate-hero-particles .particle:nth-child(3) {
    width: 3px;
    height: 3px;
    top: 80%;
    left: 30%;
    animation-delay: 4s;
}

.affiliate-hero-particles .particle:nth-child(4) {
    width: 5px;
    height: 5px;
    top: 40%;
    left: 70%;
    animation-delay: 6s;
}

/* ===== HERO CONTENT ===== */
.affiliate-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 2rem 0;
}

.affiliate-hero-grid {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 3rem;
    align-items: center;
    min-height: 80vh;
}

/* ===== LEFT CONTENT ===== */
.affiliate-hero-text {
    max-width: 700px;
    padding-right: 2rem;
}

.affiliate-hero-title {
    font-size: clamp(2.5rem, 3.5vw, 4rem);
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -2px;
    animation: fadeInUp 1s ease-out;
}

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

.affiliate-hero-title .title-line {
    display: block;
    margin-bottom: 0.5rem;
}

.affiliate-hero-title .highlight {
    display: block;
    background: linear-gradient(135deg, #00D9D5 0%, #40E0D0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px rgba(0, 217, 213, 0.5);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

.affiliate-hero-description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    line-height: 1.8;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* ===== HERO BUTTONS ===== */
.affiliate-hero-buttons {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.affiliate-cta {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #00D9D5 0%, #008B8B 100%);
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 217, 213, 0.3);
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.affiliate-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 217, 213, 0.5);
}

/* Text change on hover */
.affiliate-cta .btn-text-default,
.affiliate-cta .btn-text-hover {
    display: inline-block;
    transition: all 0.3s ease;
}

.affiliate-cta .btn-text-hover {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 100%);
    opacity: 0;
}

.affiliate-cta:hover .btn-text-default {
    transform: translateY(-100%);
    opacity: 0;
}

.affiliate-cta:hover .btn-text-hover {
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* ===== TRUST INDICATORS ===== */
.affiliate-stats {
    display: flex;
    gap: 2rem;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.affiliate-stats .stat-item {
    text-align: left;
}

.affiliate-stats .stat-number {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #00D9D5 0%, #40E0D0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.2rem;
    display: block;
}

.affiliate-stats .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ===== RIGHT VISUAL CONTENT ===== */
.affiliate-hero-visual {
    position: relative;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

/* ===== HERO IMAGE ===== */
.affiliate-hero-image {
    position: relative;
    max-width: 500px;
    margin-left: auto;
    text-align: center;
}

.hero-image {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 217, 213, 0.2);
    transition: all 0.3s ease;
    animation: imageFloat 6s ease-in-out infinite;
}

@keyframes imageFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 217, 213, 0.3);
}

/* ===== BACKGROUND CIRCLES ===== */
.hero-visual-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 217, 213, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -50px;
    animation-delay: 2s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: -75px;
    animation-delay: 1s;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .affiliate-hero-grid {
        grid-template-columns: 60% 40%;
        gap: 2.5rem;
        text-align: left;
    }
    
    .affiliate-hero-text {
        max-width: none;
        order: 1;
    }
    
    .affiliate-hero-visual {
        order: 2;
    }
    
    .affiliate-stats {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .affiliate-hero {
        min-height: auto;
        height: auto;
        padding: 100px 0 50px;
    }
    
    .affiliate-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .affiliate-hero-text {
        padding-right: 0;
        order: 2;
    }
    
    .affiliate-hero-visual {
        order: 1;
    }
    
    .affiliate-hero-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .affiliate-stats {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .affiliate-hero-image {
        max-width: 350px;
    }
    
    .hero-image {
        border-radius: 15px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
.affiliate-cta:focus,
.action-btn:focus {
    outline: 2px solid #00D9D5;
    outline-offset: 4px;
}