/* CSS Variables for Theme System */
:root {
    --primary-color: #f97316;
    --primary-hover: #ea580c;
    --secondary-color: #6b7280;
    --background-color: #ffffff;
    --surface-color: #f8fafc;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --primary-color: #f97316;
    --primary-hover: #ea580c;
    --secondary-color: #9ca3af;
    --background-color: #111827;
    --surface-color: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --border-color: #374151;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Bootstrap Classes */
.btn-orange {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-orange:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
}

.btn-white {
    background-color: white;
    border-color: white;
    color: var(--primary-color);
    font-weight: 500;
}

.btn-white:hover {
    background-color: #f8fafc;
    color: var(--primary-hover);
    transform: translateY(-1px);
}

.text-orange {
    color: var(--primary-color) !important;
}

/* Logo Icon */
.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

/* Navigation Styles */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
    background-color: rgba(17, 24, 39, 0.95) !important;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--background-color) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.05) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    z-index: 2;
    position: relative;
}

.badge-orange {
    display: inline-block;
    background-color: rgba(249, 115, 22, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.platform-badge {
    width: 32px;
    height: 32px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--text-secondary);
}

/* Animated Hero Card */
.hero-card-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.hero-card {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(249, 115, 22, 0.3);
    max-width: 380px;
    width: 100%;
    animation: cardFloat 6s ease-in-out infinite;
    transform-origin: center;
}

@keyframes cardFloat {
    0%, 100% {
        transform: scale(1) rotate(-2deg) translateY(0px);
    }
    50% {
        transform: scale(1.02) rotate(2deg) translateY(-10px);
    }
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.card-icon {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.floating-dot {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: dotFloat 3s ease-in-out infinite;
}

@keyframes dotFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Feature Cards */
.feature-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-color);
    border-color: rgba(249, 115, 22, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Statistics Section */
.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 4rem !important;
    font-weight: 800 !important;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    position: relative;
    overflow: hidden;
}

.cta-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.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Footer */
.footer {
    background-color: #111827;
    color: white;
}

[data-theme="dark"] .footer {
    background-color: #000000;
}

/* Dark Mode Specific Styles */
[data-theme="dark"] .bg-light {
    background-color: var(--surface-color) !important;
}

[data-theme="dark"] .bg-white {
    background-color: var(--background-color) !important;
}

[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .feature-card {
    background-color: var(--surface-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--background-color) 100%);
}

/* Theme Toggle Button */
#themeToggle {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#themeToggle:hover {
    background-color: var(--surface-color);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-card {
        max-width: 280px;
        padding: 2rem;
    }

    .stat-number {
        font-size: 3rem !important;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-card {
        max-width: 260px;
        padding: 1.5rem;
    }

    .badge-orange {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content,
.feature-card,
.stat-item {
    animation: fadeIn 0.8s ease-out;
}

/* Button Hover Effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    border-radius: 0.75rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
