/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --secondary: #06B6D4;
    --dark: #1E293B;
    --light: #F8FAFC;
    --gray: #64748B;
    --gradient: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
    --gradient-hover: linear-gradient(135deg, #4338CA 0%, #0891B2 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    background: var(--light);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
}

.navbar-brand .highlight {
    color: var(--primary);
}

.navbar-brand i {
    color: var(--primary);
    margin-right: 8px;
}

.nav-link {
    font-weight: 500;
    color: var(--dark);
    transition: color 0.3s ease;
    margin: 0 0.5rem;
}

.nav-link:hover {
    color: var(--primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 100px 0 0;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.btn-primary {
    background: var(--gradient);
    border: none;
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
    background: var(--gradient-hover);
}

.btn-outline-light {
    border: 2px solid white;
    background: transparent;
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-illustration img {
    animation: float 3s ease-in-out infinite;
}

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

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 100px 0;
    background: white;
}

.section-header {
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4F46E5, #06B6D4);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4F46E5, #06B6D4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    margin-bottom: 1rem;
    color: #FBBF24;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    font-size: 0.875rem;
    color: var(--gray);
    margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
}

.cta-wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-buttons .btn {
    margin: 0 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #0F172A;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-brand .highlight {
    color: var(--primary);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 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: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--primary);
}

.newsletter-form .input-group {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.newsletter-form .form-control {
    background: transparent;
    border: none;
    color: white;
    padding: 12px 20px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn {
    background: var(--primary);
    border: none;
    padding: 12px 24px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   BANNER ADS
   ============================================ */
.banner-ads {
    text-align: center;
    padding: 20px;
    background: #f5f5f5;
    margin: 20px 0;
}

.banner-ads img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.banner-ads img:hover {
    transform: scale(1.02);
}

/* ============================================
   SOCIAL BAR ADS (STICKY)
   ============================================ */
.social-bar-ads {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #4F46E5, #06B6D4);
    color: white;
    z-index: 1000;
    animation: slideUp 0.5s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.social-bar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
}

.social-bar-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.social-bar-text i {
    font-size: 1.2rem;
    animation: pulse 1s ease infinite;
}

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

.social-bar-btn {
    background: white;
    color: var(--primary);
    padding: 6px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-bar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
}

.social-bar-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-bar-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .social-bar-text {
        font-size: 0.85rem;
    }
    
    .social-bar-btn {
        padding: 4px 16px;
        font-size: 0.85rem;
    }
    
    .features-section,
    .testimonials-section,
    .cta-section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .social-bar-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   DARK MODE STYLES
   ============================================ */

/* Dark mode variables */
[data-theme="dark"] {
    --primary: #818CF8;
    --primary-dark: #6366F1;
    --secondary: #22D3EE;
    --dark: #F3F4F6;
    --light: #111827;
    --gray: #9CA3AF;
    --gradient: linear-gradient(135deg, #818CF8 0%, #22D3EE 100%);
    --gradient-hover: linear-gradient(135deg, #6366F1 0%, #06B6D4 100%);
    --card-bg: #1F2937;
    --border-color: #374151;
    --text-muted: #9CA3AF;
}

/* Dark mode body */
[data-theme="dark"] body {
    background: var(--light);
    color: var(--dark);
}

/* Dark mode navigation */
[data-theme="dark"] .navbar {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(17, 24, 39, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .navbar-brand {
    color: var(--dark);
}

[data-theme="dark"] .nav-link {
    color: var(--gray);
}

[data-theme="dark"] .nav-link:hover {
    color: var(--primary);
}

/* Dark mode hero section */
[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
}

[data-theme="dark"] .hero-wave path {
    fill: #111827;
}

/* Dark mode features section */
[data-theme="dark"] .features-section {
    background: var(--light);
}

[data-theme="dark"] .feature-card {
    background: var(--card-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .feature-card:hover {
    box-shadow: 0 20px 40px rgba(129, 140, 248, 0.2);
}

[data-theme="dark"] .feature-card h3 {
    color: var(--dark);
}

[data-theme="dark"] .feature-card p {
    color: var(--gray);
}

/* Dark mode testimonials section */
[data-theme="dark"] .testimonials-section {
    background: linear-gradient(135deg, #0F172A 0%, #111827 100%);
}

[data-theme="dark"] .testimonial-card {
    background: var(--card-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .testimonial-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .testimonial-text {
    color: var(--gray);
}

[data-theme="dark"] .testimonial-author h4 {
    color: var(--dark);
}

[data-theme="dark"] .testimonial-author p {
    color: var(--text-muted);
}

/* Dark mode CTA section */
[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, #0F172A 0%, #020617 100%);
}

/* Dark mode footer */
[data-theme="dark"] .footer {
    background: #020617;
}

[data-theme="dark"] .footer-desc {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .social-links a {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .social-links a:hover {
    background: var(--primary);
}

[data-theme="dark"] .footer ul li a {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .newsletter-form .input-group {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .newsletter-form .form-control {
    color: var(--dark);
}

[data-theme="dark"] .newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Dark mode banner ads */
[data-theme="dark"] .banner-ads {
    background: #1F2937;
}

/* Dark mode social bar */
[data-theme="dark"] .social-bar-ads {
    background: linear-gradient(135deg, #6366F1, #06B6D4);
}

[data-theme="dark"] .social-bar-btn {
    background: #1F2937;
    color: var(--primary);
}

[data-theme="dark"] .social-bar-btn:hover {
    background: #374151;
}

/* Dark mode toggle button */
.dark-mode-toggle {
    background: rgba(79, 70, 229, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    margin-left: 1rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.dark-mode-toggle i {
    font-size: 1.2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.dark-mode-toggle .fa-sun {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

.dark-mode-toggle .fa-moon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0);
}

[data-theme="dark"] .dark-mode-toggle {
    background: rgba(129, 140, 248, 0.2);
}

[data-theme="dark"] .dark-mode-toggle .fa-sun {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0);
}

[data-theme="dark"] .dark-mode-toggle .fa-moon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
}

.dark-mode-toggle:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.dark-mode-toggle:hover i {
    color: white;
}

/* Dark mode form elements */
[data-theme="dark"] .form-control {
    background: #1F2937;
    border-color: #374151;
    color: var(--dark);
}

[data-theme="dark"] .form-control:focus {
    background: #1F2937;
    border-color: var(--primary);
    color: var(--dark);
}

/* Dark mode smooth transitions */
body,
.navbar,
.feature-card,
.testimonial-card,
.banner-ads,
.form-control,
.btn {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Dark mode scrollbar */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #1F2937;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #4B5563;
    border-radius: 5px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Dark mode selection color */
[data-theme="dark"] ::selection {
    background: var(--primary);
    color: white;
}

/* Dark mode code blocks (if any) */
[data-theme="dark"] pre,
[data-theme="dark"] code {
    background: #1F2937;
    color: #F3F4F6;
}

/* Dark mode responsive adjustments */
@media (max-width: 768px) {
    .dark-mode-toggle {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    [data-theme="dark"] .navbar-nav {
        margin-bottom: 1rem;
    }
}

/* Dark mode animation for theme switching */
@keyframes themeTransition {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

[data-theme="dark"] * {
    animation: themeTransition 0.2s ease;
}

/* Dark mode card hover effects enhancement */
[data-theme="dark"] .feature-card:hover,
[data-theme="dark"] .testimonial-card:hover {
    box-shadow: 0 20px 40px rgba(129, 140, 248, 0.15);
}

/* Dark mode gradient text adjustment */
[data-theme="dark"] .gradient-text {
    background: linear-gradient(135deg, #A78BFA, #22D3EE);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Dark mode stat numbers */
[data-theme="dark"] .stat-number {
    color: var(--primary);
}

/* Dark mode social bar close button */
[data-theme="dark"] .social-bar-close {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .social-bar-close:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Dark mode button outline */
[data-theme="dark"] .btn-outline-light {
    border-color: var(--gray);
    color: var(--gray);
}

[data-theme="dark"] .btn-outline-light:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ============================================
   NATIVE BANNER ADS STYLES
   ============================================ */
.native-banner-ads {
    margin: 40px auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.native-banner-wrapper {
    display: inline-block;
    max-width: 100%;
}

.native-banner-ads iframe,
.native-banner-ads ins {
    max-width: 100%;
    margin: 0 auto;
}

.native-banner-top {
    margin-top: 20px;
}

.native-banner-middle {
    margin: 40px auto;
}

.native-banner-bottom {
    margin-bottom: 40px;
}

/* ============================================
   SMARTLINK ADS STYLES
   ============================================ */
.smartlink-ads {
    position: relative;
    margin: 20px auto;
    text-align: center;
    z-index: 10;
}

.smartlink-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.smartlink-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    color: white;
}

[data-theme="dark"] .smartlink-btn {
    background: linear-gradient(135deg, #059669, #047857);
}

/* ============================================
   SOCIAL BAR WITH SCRIPT STYLES
   ============================================ */
.social-bar-script {
    display: inline-block;
}

.social-bar-script iframe,
.social-bar-script ins {
    max-height: 50px;
}

/* ============================================
   RESPONSIVE ADS
   ============================================ */
@media (max-width: 768px) {
    .native-banner-ads {
        margin: 20px auto;
    }
    
    .smartlink-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .social-bar-script {
        width: 100%;
    }
}

/* ============================================
   LOADING OPTIMIZATION FOR ADS
   ============================================ */
.native-banner-ads iframe {
    border: none;
    overflow: hidden;
}

/* Hide empty ads containers */
.native-banner-wrapper:empty {
    display: none;
}