/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand Colors - StreamX Orange */
    --primary-color: #ffaf58;
    --primary-hover: #e59a4d;
    --primary-light: rgba(255, 175, 88, 0.15);
    --primary-subtle: rgba(255, 175, 88, 0.25);
    --accent-color: #ff9d2e;

    /* Theme UI Colors - Deep Slate & Glassmorphism (Default) */
    --bg-body: #11434c;
    --bg-surface: #165a66;
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --border-color: #236c7a;
    --glass-bg: rgba(35, 108, 122, 0.8);
    --glass-border: rgba(255, 255, 255, 0.05);

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.2), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* Ensure helper classes respect the dark theme */
.text-dark {
    color: #f8fafc !important;
}

.text-muted {
    color: #cbd5e1 !important;
}

.bg-white,
.bg-light {
    background-color: var(--bg-surface) !important;
}

.border-light {
    border-color: var(--border-color) !important;
}


body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Twisted UI Components --- */

/* Glass Navbar */
.navbar-custom {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.brand-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 26px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #111827;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(255, 175, 88, 0.3);
}

/* Desktop Menu */
.desktop-menu {
    display: flex;
    gap: 32px;
    align-items: center;
    margin: 0 auto;
}

.nav-item {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 15px;
    position: relative;
    padding: 8px 0;
    cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-color);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    min-width: 180px;
    padding: 8px 0;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.nav-item:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-link {
    color: var(--text-muted);
    padding: 8px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
    display: block;
}

.dropdown-link:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Modern Buttons */
.btn-custom {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #111827 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 157, 46, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 157, 46, 0.4);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* Animations & Micro-interactions */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Hero Section Twist */
.hero-wrapper {
    position: relative;
    padding: 120px 0 80px;
    background-color: var(--bg-body);
    overflow: hidden;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    z-index: 0;
    opacity: 0.5;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 32px;
    background: linear-gradient(to bottom right, var(--text-main) 60%, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 48px;
    max-width: 550px;
}

/* Utility Extensions */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rounded-4 {
    border-radius: var(--radius-md) !important;
}

.rounded-5 {
    border-radius: var(--radius-lg) !important;
}

.mobile-toggle {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-wrapper {
        padding: 80px 0 40px;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .desktop-menu,
    .desktop-btns {
        display: none !important;
    }

    .mobile-toggle {
        display: block;
        font-size: 28px;
        color: var(--text-main);
        cursor: pointer;
    }
}

/* --- Mobile Menu Enhanced --- */
.mobile-menu-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-body);
    z-index: 2000;
    padding: 40px 20px;
    flex-direction: column;
}

.mobile-menu-container.active {
    display: flex;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.mobile-nav-link {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Outfit', sans-serif;
}

/* Overrides for Bootstrap/Existing Classes */
.bg-primary-light {
    background: var(--primary-light) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Accordion Twisted */
.accordion-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md) !important;
    margin-bottom: 16px;
    overflow: hidden;
}

.accordion-button {
    background: var(--bg-surface);
    color: var(--text-main);
    font-weight: 700;
    padding: 20px;
    border: none;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* Form Styles - White Placeholders */
::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1;
}

::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

::-moz-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

:-moz-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}