/* Custom CSS Variables - Dark Theme */
:root {
    --bg-dark: #0f1115;
    --bg-card: #181b21;
    --bg-nav: rgba(15, 17, 21, 0.95);

    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;

    --primary-color: #3b82f6;
    /* Brighter blue for dark mode */
    --secondary-color: #8b5cf6;
    /* Brighter purple */
    --accent-color: #f472b6;
    /* Pink accent */
    --success-color: #10b981;

    --gradient-start: #2563eb;
    --gradient-end: #7c3aed;

    --border-color: #2d3748;
}

/* Typography & Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-dark);
    color: var(--text-secondary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', 'Poppins', sans-serif;
    /* Using Outfit for modern tech feel if available, else Poppins */
    font-weight: 700;
    color: var(--text-primary);
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
}

/* Helper Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-dark-section {
    background-color: var(--bg-dark);
}

.bg-light {
    /* Overriding Bootstrap bg-light for dark mode consistency */
    background-color: #13161c !important;
}

/* Hero Section */
.hero {
    background-color: var(--bg-dark);
    /* Dynamic background with image overlay */
    background-image: linear-gradient(to bottom, rgba(15, 17, 21, 0.8), var(--bg-dark)), url('../images/hero-dark.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Navbar */
.navbar {
    backdrop-filter: blur(12px);
    background: var(--bg-nav) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Buttons */
.btn {
    border-radius: 8px;
    /* More modern, slightly squared */
    padding: 12px 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    color: white;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Cards & Feature Boxes */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

.card-title {
    color: var(--text-primary);
}

.card-body {
    padding: 2rem;
}

/* Comparison Table */
.table {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.table thead th {
    background-color: #1f2937;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.02);
}

.table td,
.table th {
    border-color: var(--border-color);
    padding: 1.25rem;
}

.bg-primary.border-primary {
    background-color: rgba(59, 130, 246, 0.1) !important;
    border: 1px solid var(--primary-color) !important;
    color: var(--primary-color);
}

/* Creation Flow Steps */
#creation-flow .position-relative {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
}

#creation-flow .badge {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Integrations Badges */
#integrations .badge {
    background-color: var(--bg-card) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color) !important;
    font-weight: 500;
}

/* List group overrides */
.list-group-item {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

/* Icons */
.fa-2x,
.fa-3x {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Footer Styling */
footer {
    background-color: #050505;
    border-top: 1px solid var(--border-color);
}

footer a {
    color: var(--text-muted);
}

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

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Overrides for specific text colors in dark mode */
.text-muted {
    color: var(--text-muted) !important;
}

.text-dark {
    color: var(--text-primary) !important;
    /* Inverting text-dark for dark mode visibility */
}

/* Media Showcase Placeholder */
.media-placeholder {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.media-placeholder img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.media-placeholder:hover img {
    transform: scale(1.03);
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.play-button-overlay:hover {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button-overlay i {
    color: white;
    font-size: 2rem;
    margin-left: 5px;
    /* Visual center correction */
    -webkit-text-fill-color: white !important;
    /* Override gradient */
}