/**
 * RoyalPakInvest - Premium Styles
 * Modern, responsive, and elegant design
 */

/* ==========================================
   ROOT VARIABLES & RESET
   ========================================== */
:root {
    /* Colors */
    --primary-color: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --secondary-color: #f59e0b;
    --secondary-light: #fbbf24;
    --secondary-dark: #d97706;
    
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --white-color: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    --gradient-success: linear-gradient(135deg, var(--success-color) 0%, #34d399 100%);
    --gradient-royal: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-text: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Spacing */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white-color);
    overflow-x: hidden;
}

/* ==========================================
   PRELOADER
   ========================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

.preloader-inner {
    text-align: center;
}

.preloader-icon {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.preloader-icon span {
    display: block;
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top-color: var(--white-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.preloader-icon span:nth-child(2) {
    width: 40px;
    height: 40px;
    top: 10px;
    left: 10px;
    border-top-color: var(--secondary-color);
    animation-direction: reverse;
    animation-duration: 0.8s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    background: rgba(30, 64, 175, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(30, 64, 175, 0.98) !important;
    padding: 10px 0;
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--white-color) !important;
    text-decoration: none;
}

.brand-text {
    margin-left: 10px;
    font-size: 1.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 10px;
    padding: 8px 16px !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--white-color) !important;
    background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: var(--gradient-secondary);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
    background: var(--gradient-secondary);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.9;
    z-index: -1;
}

.hero-content {
    color: var(--white-color);
    z-index: 2;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-actions {
    margin-bottom: 2rem;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white-color);
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.trust-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.trust-badge i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.trust-badge span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Hero Form */
.hero-form-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    width: 100%;
    max-width: 400px;
}

.form-title {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.calculator-result {
    background: var(--gradient-primary);
    color: var(--white-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.result-item.highlight {
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 3rem;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(2) {
    animation-delay: -2s;
}

.floating-icon:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features-section {
    background: var(--gray-100);
    margin-top: -50px;
    padding-top: 100px !important;
    position: relative;
    z-index: 3;
}

.feature-item {
    padding: 2rem;
    background: var(--white-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white-color);
    font-size: 1.5rem;
}

.feature-item h5 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* ==========================================
   PLANS SECTION
   ========================================== */
.plans-section {
    padding: 5rem 0;
    background: var(--white-color);
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.plan-card {
    background: var(--white-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.plan-card.bronze::before { background: var(--gradient-primary); }
.plan-card.silver::before { background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%); }
.plan-card.gold::before { background: var(--gradient-gold); }
.plan-card.platinum::before { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.plan-card.popular {
    border: 2px solid var(--secondary-color);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--gradient-secondary);
    color: var(--white-color);
    padding: 5px 15px;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--white-color);
}

.plan-card.bronze .plan-icon { background: var(--gradient-primary); }
.plan-card.silver .plan-icon { background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%); }
.plan-card.gold .plan-icon { background: var(--gradient-gold); }
.plan-card.platinum .plan-icon { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

.plan-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1rem;
}

.currency {
    font-size: 1.2rem;
    color: var(--gray-600);
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-left: 5px;
}

.plan-features {
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.feature i {
    color: var(--success-color);
    margin-right: 10px;
    width: 20px;
}

.earnings-preview {
    text-align: center;
    background: var(--gray-100);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.btn-plan {
    background: var(--gradient-primary);
    border: none;
    color: var(--white-color);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-plan:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.guarantee-box {
    background: var(--gradient-success);
    color: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.guarantee-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ==========================================
   HOW IT WORKS SECTION
   ========================================== */
.how-it-works-section {
    background: var(--gray-100);
    padding: 5rem 0;
}

.step-card {
    background: var(--white-color);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--gradient-secondary);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    color: var(--white-color);
    font-size: 2rem;
}

.step-card h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials-section {
    padding: 5rem 0;
    background: var(--white-color);
}

.testimonials-slider {
    padding: 2rem 0;
}

.testimonial-card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    height: 100%;
}

.stars {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 1.5rem;
}

.author-info h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-info span {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ==========================================
   STATISTICS SECTION
   ========================================== */
.stats-section {
    background: var(--gradient-primary);
    color: var(--white-color);
    padding: 3rem 0;
}

.stat-box {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.stat-icon {
    font-size: 3rem;
    margin-right: 1rem;
    color: var(--secondary-color);
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    opacity: 0.9;
    font-size: 1rem;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    background: var(--gradient-royal);
    color: var(--white-color);
    padding: 4rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    opacity: 0.8;
}

.trust-item i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 3rem 0 1rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.footer-brand img {
    margin-bottom: 1rem;
}

.footer-brand h5 {
    color: var(--white-color);
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-title {
    color: var(--white-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.contact-info {
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item i {
    color: var(--secondary-color);
    margin-right: 1rem;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 2rem;
}

.payment-methods {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.payment-badge {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.payment-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.payment-badge i {
    margin-right: 6px;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.payment-badge span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        text-align: left;
    }
    
    .plan-card.popular {
        transform: none;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-lg {
        width: 100%;
    }
    
    .hero-form {
        margin-top: 2rem;
    }
    
    .stat-box {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .plan-card {
        padding: 1.5rem;
    }
    
    .step-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* ==========================================
   ANIMATIONS & UTILITIES
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: var(--white-color);
}

/* Focus styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

/* Button hover effects */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.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;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}
