/* XXIT.IO Custom Styles */

:root {
    --xxit-primary: #f59e0b;
    --xxit-primary-dark: #d97706;
    --xxit-secondary: #fbbf24;
    --xxit-accent: #f59e0b;
    --xxit-bg-dark: #0f172a;
    --xxit-surface-dark: #1e293b;
    --xxit-border-dark: #334155;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
}

/* Navbar Customization */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    color: #94a3b8 !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--xxit-primary) !important;
}

/* Gradient Buttons */
.btn-primary-gradient {
    background: linear-gradient(135deg, var(--xxit-primary), var(--xxit-secondary));
    border: none;
    color: white;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
    color: white;
}

/* Hero Section Styles */
.hero-section {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0) 70%);
    top: -100px;
    right: -100px;
    z-index: -1;
}

/* Card Customization */
.feature-card {
    border: 1px solid var(--xxit-border-dark);
    background: var(--xxit-surface-dark);
    transition: all 0.3s ease;
    border-radius: 1.25rem;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--xxit-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Custom Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, var(--xxit-primary) 0%, var(--xxit-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

[data-bs-theme="light"] .text-gradient {
    background: linear-gradient(135deg, var(--xxit-primary-dark) 0%, var(--xxit-primary) 100%);
    -webkit-background-clip: text;
}

/* Navbar Toggler Visibility Fix */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="light"] .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .navbar-toggler-icon {
    filter: invert(1) grayscale(100%) brightness(0.2);
}

/* Responsive adjustments */
.video-container {
    perspective: 1000px;
    z-index: 1;
}

.video-wrapper {
    position: relative;
    background: #000;
    aspect-ratio: 16 / 10;
}

.video-wrapper video {
    object-fit: cover;
    height: 100%;
    opacity: 0.8;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(15, 23, 42, 0.4), transparent 50%, rgba(15, 23, 42, 0.6));
    z-index: 2;
}

.visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(0.95); opacity: 1; }
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.floating-card {
    animation: float 6s ease-in-out infinite;
}

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

/* Footer Enhancements */
.hover-primary:hover {
    color: var(--xxit-primary) !important;
    transition: color 0.2s ease;
}

.hover-white:hover {
    color: white !important;
    transition: color 0.2s ease;
}

.gap-x-4 {
    column-gap: 1.5rem;
}

.gap-y-2 {
    row-gap: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 64px !important;
    }
    
    .navbar-collapse {
        background: var(--xxit-bg-dark);
        margin-top: 1rem;
        padding: 1.5rem;
        border-radius: 1rem;
        border: 1px solid var(--xxit-border-dark);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    [data-bs-theme="light"] .navbar-collapse {
        background: white;
        border-color: var(--xxit-border-light);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .hero-section {
        padding: 100px 0 60px;
        text-align: center;
    }
    .avatar-group {
        justify-content: center;
    }
}

/* Light Mode Styles */
[data-bs-theme="light"] {
    --xxit-bg-light: #f8fafc;
    --xxit-surface-light: #ffffff;
    --xxit-border-light: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] body {
    background-color: var(--xxit-bg-light);
    color: #1e293b;
}

[data-bs-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.9) !important;
}

[data-bs-theme="light"] .nav-link {
    color: #475569 !important;
}

[data-bs-theme="light"] .nav-link:hover, [data-bs-theme="light"] .nav-link.active {
    color: var(--xxit-primary) !important;
}

[data-bs-theme="light"] .btn-outline-light {
    border-color: #cbd5e1;
    color: #475569;
}

[data-bs-theme="light"] .btn-outline-light:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
}

[data-bs-theme="light"] .feature-card {
    background: var(--xxit-surface-light);
    border-color: var(--xxit-border-light);
}

[data-bs-theme="light"] .text-gradient {
    background: linear-gradient(135deg, #0f172a 30%, var(--xxit-primary) 100%);
    -webkit-background-clip: text;
}

[data-bs-theme="light"] .hero-glow {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0) 70%);
}

[data-bs-theme="light"] .bg-dark.bg-opacity-25 {
    background-color: rgba(226, 232, 240, 0.5) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section h1, .hero-section p, .hero-section .d-flex {
    animation: fadeInUp 0.8s ease backwards;
}

.hero-section h1 { animation-delay: 0.2s; }
.hero-section p { animation-delay: 0.4s; }
.hero-section .d-flex { animation-delay: 0.6s; }

/* Bootstrap Overrides */
.text-primary { color: var(--xxit-primary) !important; }
.bg-primary { background-color: var(--xxit-primary) !important; }
.btn-outline-primary {
    color: var(--xxit-primary);
    border-color: var(--xxit-primary);
}
.btn-outline-primary:hover {
    background-color: var(--xxit-primary);
    border-color: var(--xxit-primary);
    color: white;
}
.btn-outline-primary:active, .btn-outline-primary.active, .show > .btn-outline-primary.dropdown-toggle {
    background-color: var(--xxit-primary-dark) !important;
    border-color: var(--xxit-primary-dark) !important;
    color: white !important;
}
.btn-outline-primary:focus, .btn-outline-primary.focus {
    box-shadow: 0 0 0 0.25rem rgba(245, 158, 11, 0.5) !important;
}
