/* Investment Plans - Mobile-Optimized Professional Styling */

/* Hero Section Enhancement */
.hero-section {
    background: linear-gradient(135deg, #0a101a 0%, #1a2040 50%, #0a101a 100%);
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 153, 0, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1rem;
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #ffffff, #ff9900);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-text p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #bfc6e0;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="grad1" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:%23ff9900;stop-opacity:0.1"/><stop offset="100%" style="stop-color:%23ff9900;stop-opacity:0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23grad1)"/><circle cx="800" cy="300" r="150" fill="url(%23grad1)"/><circle cx="400" cy="700" r="120" fill="url(%23grad1)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

/* Investment Plans Section - Premium Modern Design */
.plans-section {
    background: #0a101a;
    padding: 4rem 1rem 3rem;
    position: relative;
    overflow: hidden;
}

.plans-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(255, 153, 0, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.plans-section h2 {
    text-align: center;
    font-size: clamp(2rem, 6vw, 2.8rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    background: linear-gradient(45deg, #ffffff, #ff9900);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.plans-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff9900, transparent);
    border-radius: 2px;
}

.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.plan {
    background: linear-gradient(145deg, #181f36 0%, #1a2040 100%);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.plan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(255, 153, 0, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.plan:hover::before {
    opacity: 1;
}

.plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(255, 153, 0, 0.2);
}

/* Plan Type Specific Styling */
.plan.bronze {
    border-top: 4px solid #cd7f32;
}

.plan.bronze::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #cd7f32, #ff9900, #cd7f32);
}

.plan.silver {
    border-top: 4px solid #c0c0c0;
    position: relative;
}

.plan.silver::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c0c0c0, #ffffff, #c0c0c0);
}

.plan.gold {
    border-top: 4px solid #ffd700;
    position: relative;
}

.plan.gold::after {
    content: 'MOST POPULAR';
    position: absolute;
    top: -15px;
    right: 15px;
    background: linear-gradient(45deg, #ffd700, #ff9900);
    color: #000;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.plan.gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ffed4a, #ffd700);
}

/* Plan Content Styling */
.plan > * {
    position: relative;
    z-index: 2;
}

.plan h3 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.plan.bronze h3 {
    color: #cd7f32;
}

.plan.silver h3 {
    color: #c0c0c0;
}

.plan.gold h3 {
    color: #ffd700;
}

.plan-rate {
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 800;
    color: #ff9900;
    text-align: center;
    margin-bottom: 0.5rem;
    display: block;
    text-shadow: 0 2px 10px rgba(255, 153, 0, 0.3);
    line-height: 1.1;
}

.plan-period {
    color: #bfc6e0;
    text-align: center;
    font-size: clamp(1rem, 3vw, 1.1rem);
    margin-bottom: 2rem;
    font-weight: 500;
}

.plan-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.plan-min,
.plan-max,
.plan-once,
.plan-capital {
    color: #ffffff;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid #ff9900;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    word-break: break-word;
}

.plan-min::before {
    content: '💰';
    font-size: 1.2rem;
    flex-shrink: 0;
}

.plan-max::before {
    content: '🎯';
    font-size: 1.2rem;
    flex-shrink: 0;
}

.plan-once::before {
    content: '🔄';
    font-size: 1.2rem;
    flex-shrink: 0;
}

.plan-capital::before {
    content: '✅';
    font-size: 1.2rem;
    flex-shrink: 0;
}

.plan-affiliate {
    color: #ff9900;
    font-size: clamp(1rem, 3vw, 1.1rem);
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 153, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 153, 0, 0.2);
}

.affiliate-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.affiliate-levels span {
    background: linear-gradient(45deg, #ff9900, #ffb84d);
    color: #000;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.affiliate-levels span:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

/* Add Investment Button */
.plan-cta {
    margin-top: 2rem;
    text-align: center;
}

.invest-btn {
    background: linear-gradient(45deg, #ff9900, #ffb84d);
    color: #000;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: clamp(1rem, 3vw, 1.1rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.3);
    width: 100%;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.invest-btn::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.5s ease;
}

.invest-btn:hover::before {
    left: 100%;
}

.invest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 153, 0, 0.4);
}

.invest-btn:active {
    transform: translateY(0);
}

/* Enhanced Mobile Breakpoints */
@media (max-width: 1200px) {
    .plans {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }
    
    .plans-section {
        padding: 5rem 1.5rem 3rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 40vh;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .plans-section {
        padding: 3rem 1rem 2rem;
    }
    
    .plans {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
    }
    
    .plan {
        padding: 1.5rem;
        margin: 0 auto;
        width: 100%;
    }
    
    .plan.gold::after {
        right: 10px;
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
    }
    
    .affiliate-levels {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .plan-details {
        gap: 0.8rem;
    }
    
    .plan-min,
    .plan-max,
    .plan-once,
    .plan-capital {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 35vh;
    }
    
    .hero-content {
        padding: 1rem 0.5rem;
    }
    
    .plans-section {
        padding: 2rem 0.5rem 1.5rem;
    }
    
    .plans {
        gap: 1rem;
        max-width: 350px;
    }
    
    .plan {
        padding: 1.2rem;
        border-radius: 15px;
    }
    
    .plan.gold::after {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
        right: 8px;
        top: -12px;
    }
    
    .affiliate-levels {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    
    .affiliate-levels span {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .plan-details {
        gap: 0.6rem;
    }
    
    .plan-min,
    .plan-max,
    .plan-once,
    .plan-capital {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .invest-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .plans-section h2 {
        margin-bottom: 2rem;
    }
    
    .plans {
        max-width: 320px;
    }
    
    .plan {
        padding: 1rem;
    }
    
    .plan h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .plan-rate {
        font-size: 1.8rem;
    }
    
    .plan-period {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .plan-affiliate {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    .affiliate-levels span {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plan {
    animation: fadeInUp 0.6s ease-out;
}

.plan:nth-child(1) {
    animation-delay: 0.1s;
}

.plan:nth-child(2) {
    animation-delay: 0.2s;
}

.plan:nth-child(3) {
    animation-delay: 0.3s;
}

/* Subtle floating animation - disabled on mobile for performance */
@media (min-width: 769px) {
    @keyframes float {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-5px);
        }
    }
    
    .plan:hover {
        animation: float 3s ease-in-out infinite;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .plan:hover {
        transform: none;
        animation: none;
    }
    
    .invest-btn:hover {
        transform: none;
    }
    
    .affiliate-levels span:hover {
        transform: none;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .plan {
        animation: none;
    }
    
    .plan:hover {
        animation: none;
    }
    
    .invest-btn::before {
        transition: none;
    }
}