:root {
    --bs-body-bg: #0A0E1A;
    --bs-body-color: #FFFFFF;
    --pipeline-primary: #7C3AED;
    --pipeline-secondary: #06B6D4;
    --pipeline-accent: #F59E0B;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(124, 58, 237, 0.15);
    --text-secondary: #E5E7EB;
    --text-muted: #D1D5DB;
}

body {
    background: linear-gradient(135deg, #0A0E1A 0%, #1a1f35 100%);
    background-attachment: fixed;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--bs-body-color);
    overflow-x: hidden;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Mobile padding */
@media (max-width: 768px) {
    body {
        padding-left: 3% !important;
        padding-right: 3% !important;
    }
    
    .container {
        padding-left: 3% !important;
        padding-right: 3% !important;
        max-width: 100% !important;
    }
    
    .accordion-button {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .mission-text {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    /* Custom hamburger menu - 2 lines right-aligned */
    .navbar-toggler {
        border: none !important;
        padding: 0.5rem;
        width: 40px;
        height: 40px;
        position: relative;
    }
    
    .navbar-toggler:focus {
        box-shadow: none !important;
    }
    
    .navbar-toggler-icon {
        background-image: none !important;
        position: relative;
        width: 24px;
        height: 10px;
    }
    
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        content: '';
        position: absolute;
        height: 2px;
        background-color: white;
        right: 0;
        transition: all 0.3s ease;
    }
    
    .navbar-toggler-icon::before {
        top: 0;
        width: 100%;
    }
    
    .navbar-toggler-icon::after {
        bottom: 0;
        width: 70%;
    }
    
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
        transform: rotate(45deg);
        top: 4px;
        width: 100%;
    }
    
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
        transform: rotate(-45deg);
        bottom: 4px;
        width: 100%;
    }
    
    /* Mobile menu styling */
    .navbar-collapse {
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        margin-left: -3%;
        margin-right: -3%;
        padding: 2rem 3%;
        margin-top: 1rem;
        border-radius: 1rem;
        border: 1px solid rgba(124, 58, 237, 0.3);
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem 3rem !important;
        border-radius: 0.75rem;
        transition: all 0.3s ease;
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: rgba(124, 58, 237, 0.15);
        color: white !important;
    }
    
    .navbar .btn-pipeline {
        width: 100%;
        margin-top: 1rem;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem !important;
    }
    
    .navbar-brand > span:first-child {
        font-size: 1.5rem !important;
        display: inline-block !important;
    }
    
    .navbar-brand > span:first-child > span.gradient-text {
        display: inline !important;
        visibility: visible !important;
        font-size: inherit !important;
        opacity: 1 !important;
    }
    
    /* Hide only the tagline */
    .navbar-brand > span.text-secondary {
        display: none !important;
    }
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bs-body-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--pipeline-primary), var(--pipeline-secondary));
    border-radius: 10px;
    border: 2px solid var(--bs-body-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8B5CF6, #0EA5E9);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--pipeline-primary) var(--bs-body-bg);
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, var(--pipeline-primary), var(--pipeline-secondary), var(--pipeline-accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    border-color: rgba(124, 58, 237, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.2);
}

.navbar {
    background: rgba(10, 14, 26, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-pipeline {
    background: linear-gradient(135deg, var(--pipeline-primary), var(--pipeline-secondary));
    color: white;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-pipeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-pipeline:hover::before {
    left: 100%;
}

.btn-pipeline:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.5);
}

/* Outline button styling */
.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0.9rem 2.5rem;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-section .lead {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.hero-stats h3 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.tracking-widest {
    letter-spacing: 0.2em;
    font-weight: 600;
    text-transform: uppercase;
}

.hero-stats small {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
    color: var(--pipeline-primary);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.glass-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(6, 182, 212, 0.3));
}

footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 14, 26, 0.5);
    backdrop-filter: blur(10px);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--pipeline-primary), var(--pipeline-secondary));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: white !important;
}

::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    opacity: 1;
}

::-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-pipeline-secondary {
    color: var(--pipeline-secondary) !important;
}

.bg-pipeline-secondary {
    background-color: var(--pipeline-secondary) !important;
}

/* Smooth fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Stagger animation for multiple cards */
.glass-card:nth-child(1) { animation-delay: 0.1s; }
.glass-card:nth-child(2) { animation-delay: 0.2s; }
.glass-card:nth-child(3) { animation-delay: 0.3s; }
.glass-card:nth-child(4) { animation-delay: 0.4s; }
.glass-card:nth-child(5) { animation-delay: 0.5s; }
.glass-card:nth-child(6) { animation-delay: 0.6s; }


/* Tagline Banner */
.tagline-banner {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: transparent;
    padding: 0.5rem 0;
    z-index: 1020;
    animation: slideDown 0.5s ease-out;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tagline-banner.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.tagline-text {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.tagline-text i {
    color: var(--pipeline-secondary);
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

/* Adjust hero section padding when tagline is present */
body:has(.tagline-banner) .hero-section {
    padding-top: 130px;
}

@media (max-width: 768px) {
    .tagline-banner {
        top: 60px;
        padding: 0.4rem 0;
    }
    
    .tagline-text {
        font-size: 0.8rem;
        letter-spacing: 0.3px;
    }
    
    .tagline-text i {
        font-size: 0.7rem;
        margin-right: 0.4rem;
    }
    
    body:has(.tagline-banner) .hero-section {
        padding-top: 110px;
    }
}


/* Override Bootstrap text-secondary to be whiter */
.text-secondary {
    color: #E5E7EB !important;
}


/* Unmissable Podcast Nav Link */
.nav-link-highlight {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(124, 58, 237, 0.4);
    border-radius: 50px;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    animation: pulse-border 2s ease-in-out infinite;
    position: relative;
}

.nav-link-highlight::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 50px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.nav-link-highlight:hover::before {
    opacity: 0.3;
}

.nav-link-highlight:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(6, 182, 212, 0.3));
    border-color: rgba(124, 58, 237, 0.6);
    transform: translateY(-2px);
}

@keyframes pulse-border {
    0%, 100% {
        border-color: rgba(124, 58, 237, 0.4);
        box-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
    }
    50% {
        border-color: rgba(124, 58, 237, 0.8);
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
    }
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .nav-link-highlight {
        margin: 0.25rem 0;
    }
}
