
/* CSS Variables for Light/Dark Mode */
:root {
    --index-bg-primary: #ffffff;
    --index-bg-secondary: #f8f9fa;
    --index-bg-tertiary: #e9ecef;
    --index-text-primary: #2c3e50;
    --index-text-secondary: #6c757d;
    --index-text-muted: #8e9ba7;
    --index-border-color: #e2e8f0;
    --index-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --index-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --index-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --index-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --index-gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --index-gradient-glass: rgba(255, 255, 255, 0.1);
    --index-glass-border: rgba(255, 255, 255, 0.2);
    --index-backdrop-blur: blur(20px);
}

[data-theme-style="dark"] {
    --index-bg-primary: #374151;
    --index-bg-secondary: #1f2937;
    --index-bg-tertiary: #111827;
    --index-text-primary: #f9fafb;
    --index-text-secondary: #d1d5db;
    --index-text-muted: #9ca3af;
    --index-border-color: #4b5563;
    --index-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --index-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --index-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --index-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --index-gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --index-gradient-glass: rgba(55, 65, 81, 0.3);
    --index-glass-border: rgba(156, 163, 175, 0.2);
    --index-backdrop-blur: blur(20px);
}

/* Dark mode specific CTA button adjustments */
[data-theme-style="dark"] .modern-cta-button {
    background: var(--index-bg-primary) !important;
    color: var(--index-text-primary) !important;
    border: 1px solid var(--index-border-color) !important;
}

[data-theme-style="dark"] .modern-cta-button:hover,
[data-theme-style="dark"] .modern-cta-button:focus {
    background: var(--index-bg-secondary) !important;
    color: var(--index-text-primary) !important;
    border-color: var(--index-text-secondary) !important;
}

/* Homepage Responsive Styles */
/* Fix horizontal scrollbar - targeted approach */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Ensure all elements use border-box sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Prevent sections from overflowing */
section {
    width: 100%;
    overflow-x: hidden;
}

/* Ensure proper container behavior - removed custom overrides to use Bootstrap defaults */

.min-vh-75 {
    min-height: 75vh;
}

/* Hero Section */
.hero-modern {
    overflow: hidden;
    position: relative;
}

/* Underline effect for hero text */
.hero-modern h1 .underline {
    position: relative;
    display: inline-block;
    color: #fff;
    font-weight: 700;
}

.hero-modern h1 .underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--index-gradient-secondary);
    border-radius: 2px;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

/* Hero Section Responsive Buttons */
.hero-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 575px) {
    .hero-buttons-container {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons-container .btn {
        width: 100%;
        text-align: center;
        margin: 0 !important;
    }
}

/* Compact Vertical Hero Stats Container */
.hero-stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
    padding: 1rem 0;
    width: 100%;
}

.stats-vertical-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.stats-vertical-card {
    background: var(--index-gradient-glass);
    backdrop-filter: var(--index-backdrop-blur);
    border-radius: 20px;
    padding: 1.5rem 0.75rem;
    border: 1px solid var(--index-glass-border);
    box-shadow: var(--index-shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stats-vertical-card:hover {
    transform: translateY(-8px);
    background: var(--index-gradient-glass);
    box-shadow: var(--index-shadow-hover);
}

.vertical-icon {
    width: 50px;
    height: 50px;
    background: var(--index-gradient-glass);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.stats-vertical-card:hover .vertical-icon {
    transform: scale(1.1);
    background: var(--index-gradient-glass);
}

.vertical-number {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.25rem;
}

.vertical-number-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.25rem;
    white-space: nowrap;
}

.vertical-number-wrapper .vertical-number {
    margin-bottom: 0;
}

.vertical-prefix, .vertical-suffix {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.vertical-prefix {
    margin-right: 0.1rem;
}

.vertical-suffix {
    margin-left: 0.1rem;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.vertical-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    width: 100%;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-card-main {
    background: var(--index-gradient-glass);
    backdrop-filter: var(--index-backdrop-blur);
    border-radius: 16px;
    padding: 2rem 1rem;
    border: 1px solid var(--index-glass-border);
    transition: all 0.3s ease;
    height: 100%;
}

.stats-card-main:hover {
    transform: translateY(-5px);
    background: var(--index-gradient-glass);
    box-shadow: var(--index-shadow-hover);
}

.stats-icon {
    width: 60px;
    height: 60px;
    background: var(--index-gradient-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
    color: #fff;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.stats-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Modern Sections */
.modern-features-section {
    background: var(--index-bg-primary);
    color: var(--index-text-primary);
}

.modern-platforms-section {
    background: var(--index-bg-secondary);
    color: var(--index-text-primary);
}

.modern-cta-section {
    background: var(--index-bg-primary);
    color: var(--index-text-primary);
}

/* Modern Section Typography */
.modern-section-title {
    color: var(--index-text-primary) !important;
}

.modern-section-subtitle {
    color: var(--index-text-secondary) !important;
}

/* Audience Badges */
.audience-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.creator-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.brand-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

/* Modern Feature Cards */
.modern-feature-card {
    background: var(--index-bg-primary);
    border: 1px solid var(--index-border-color);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--index-shadow);
    position: relative;
    overflow: hidden;
}

/* Creator Cards */
.modern-feature-card.creator-card {
    border-left: 4px solid #667eea;
}

.modern-feature-card.creator-card:hover {
    border-left-color: #764ba2;
    transform: translateY(-8px);
    box-shadow: var(--index-shadow-hover);
}

/* Brand Cards */
.modern-feature-card.brand-card {
    border-left: 4px solid #f093fb;
}

.modern-feature-card.brand-card:hover {
    border-left-color: #f5576c;
    transform: translateY(-8px);
    box-shadow: var(--index-shadow-hover);
}

.modern-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--index-gradient-primary);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 0;
}

.modern-feature-card:hover::before {
    left: 0;
    opacity: 0.05;
}

.modern-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--index-shadow-hover);
    border-color: transparent;
}

.modern-feature-card > * {
    position: relative;
    z-index: 1;
}

.modern-feature-icon {
    width: 80px;
    height: 80px;
    background: var(--index-gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--index-shadow);
}

.modern-feature-icon.creator-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modern-feature-icon.brand-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.modern-feature-card:hover .modern-feature-icon {
    transform: scale(1.1);
    box-shadow: var(--index-shadow-lg);
}

.modern-feature-title {
    color: var(--index-text-primary) !important;
    margin-bottom: 1rem;
}

.modern-feature-text {
    color: var(--index-text-secondary) !important;
    line-height: 1.6;
}

/* Modern Platform Cards */
.modern-platform-card {
    background: var(--index-bg-primary);
    border: 1px solid var(--index-border-color);
    border-radius: 16px;
    padding: 2rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.modern-platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--index-gradient-primary);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 0;
}

.modern-platform-card:hover::before {
    opacity: 0.05;
}

.modern-platform-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--index-shadow-hover);
    border-color: transparent;
}

.modern-platform-card > * {
    position: relative;
    z-index: 1;
}

.platform-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
    color: white;
}

.platform-icon-wrapper.instagram {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.platform-icon-wrapper.tiktok {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

.platform-icon-wrapper.youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.platform-icon-wrapper.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.platform-icon-wrapper.dynamic-platform {
    background: var(--platform-color, #667eea);
}

.modern-platform-card:hover .platform-icon-wrapper {
    transform: scale(1.1);
    box-shadow: var(--index-shadow-lg);
}

.platform-name {
    color: var(--index-text-primary) !important;
    font-weight: 600;
    margin: 0;
}

/* Modern CTA Card */
.modern-cta-card {
    background: var(--index-gradient-primary);
    border-radius: 24px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.modern-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.modern-cta-card > * {
    position: relative;
    z-index: 1;
}

.modern-cta-title {
    color: white !important;
}

.modern-cta-subtitle {
    color: rgba(255, 255, 255, 0.8) !important;
}

.modern-cta-button {
    background: white !important;
    color: var(--index-text-primary) !important;
    border: none !important;
    box-shadow: var(--index-shadow-lg) !important;
    padding: 0.75rem 2rem !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.modern-cta-button:hover,
.modern-cta-button:focus {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--index-text-primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--index-shadow-hover) !important;
    text-decoration: none !important;
}

.modern-cta-button:active {
    transform: translateY(0) !important;
}

/* Platform Logo Container - Legacy Support */
.platform-logo-container {
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-base);
}

.platform-logo-container:hover {
    background: var(--index-bg-primary);
    box-shadow: var(--index-shadow);
    transform: translateY(-5px);
}

.platform-logo-container p {
    margin-bottom: 0;
}

.bg-gray-50 {
    background-color: var(--index-bg-secondary) !important;
}

/* Navbar styling updates */
.navbar-modern {
    background: var(--index-gradient-glass);
    backdrop-filter: var(--index-backdrop-blur);
    box-shadow: var(--index-shadow);
    border-bottom: 1px solid var(--index-border-color);
}

/* Tablet Responsive Design */
@media (max-width: 991px) {
    .hero-modern {
        padding: 4rem 0 3rem;
    }
    
    .min-vh-75 {
        min-height: auto;
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .min-vh-75 {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-modern {
        padding: 3rem 0 2rem;
    }
    
    .hero-modern h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-modern p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Mobile Hero Stats */
    .hero-stats-container {
        margin-top: 2rem;
        padding: 1rem 0;
    }
    
    .stats-vertical-wrapper {
        gap: 0.75rem;
        padding: 0;
    }
    
    .stats-vertical-card {
        padding: 1rem 0.5rem;
    }
    
    .vertical-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .vertical-number {
        font-size: 1.5rem;
    }
    
    .vertical-prefix, .vertical-suffix {
        font-size: 0.85rem;
    }
    
    .vertical-suffix {
        font-size: 1rem;
    }
    
    .vertical-label {
        font-size: 0.65rem;
        letter-spacing: 0.3px;
    }
    
    /* Stats Section Mobile */
    .stats-number {
        font-size: 2rem;
    }
    
    .stats-card-main {
        padding: 1.5rem 1rem;
    }
    
    .stats-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Modern Feature Cards Mobile */
    .modern-feature-card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }
    
    .modern-feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .modern-feature-card h3 {
        font-size: 1.25rem;
    }
    
    /* Modern Platform Section Mobile */
    .modern-platform-card {
        padding: 1.5rem 1rem;
    }
    
    .platform-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    /* Legacy Platform Section Mobile */
    .platform-logo-container {
        padding: 1rem;
    }
    
    .platform-logo-container i {
        font-size: 2.5rem !important;
    }
    
    /* Modern CTA Section Mobile */
    .modern-cta-card {
        padding: 2rem 1.5rem;
    }
    
    .modern-cta-title {
        font-size: 1.75rem !important;
    }
    
    .modern-cta-button {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    /* CTA Section Mobile */
    .text-lg-right {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* Small Mobile Responsive */
@media (max-width: 576px) {
    /* Hero Section */
    .hero-modern {
        padding: 2rem 0 1.5rem;
    }
    
    .hero-modern h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-modern p {
        font-size: 1rem;
    }
    
    .btn-modern.btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Extra small mobile stats - horizontal layout */
    .stats-vertical-wrapper {
        gap: 0.5rem;
        max-width: 100%;
    }
    
    .stats-vertical-card {
        padding: 0.75rem 0.25rem;
    }
    
    .vertical-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .vertical-number {
        font-size: 1.25rem;
    }
    
    .vertical-prefix, .vertical-suffix {
        font-size: 0.75rem;
    }
    
    .vertical-suffix {
        font-size: 0.9rem;
    }
    
    .vertical-label {
        font-size: 0.6rem;
        letter-spacing: 0.2px;
    }
    
    /* Stats Section Small Mobile */
    .stats-number {
        font-size: 1.75rem;
    }
    
    .stats-label {
        font-size: 0.75rem;
    }
    
    .stats-card-main {
        padding: 1.25rem 0.75rem;
    }
    
    .stats-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Modern CTA Small Mobile */
    .modern-cta-card {
        padding: 1.5rem 1rem;
    }
    
    .modern-cta-button {
        font-size: 1rem !important;
        padding: 0.75rem 1.5rem !important;
    }
    
    /* Sections spacing */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* How it works section */
    .display-5 {
        font-size: 1.75rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
}

/* Extra Small Mobile (below 400px) */
@media (max-width: 400px) {
    .hero-modern h1 {
        font-size: 1.5rem;
    }
    
    .stats-vertical-card {
        padding: 0.5rem 0.25rem;
    }
    
    .vertical-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .vertical-number {
        font-size: 1rem;
    }
    
    .vertical-label {
        font-size: 0.55rem;
    }
}