@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Copied from DL System main site */
    --primary-navy: #0f172a;
    --primary-navy-light: #1e293b;
    --primary-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --bg-deep: #020617;
    --bg-card: rgba(30, 41, 59, 0.7);
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --gradient-text: linear-gradient(to right, #60a5fa, #2dd4bf);

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Global Body Overrides */
body {
    font-family: var(--font-main) !important;
    background-color: var(--bg-deep) !important;
    color: var(--text-primary) !important;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.08), transparent 25%) !important;
    background-attachment: fixed;
    line-height: 1.6 !important;
}

/* Fix "Too Close" Layout Issues */
section {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 1.5rem !important;
}

p {
    color: var(--text-secondary) !important;
    margin-bottom: 1.5rem !important;
}

/* Typography Colors & Utilities */
.text-black,
.text-dark {
    color: var(--text-primary) !important;
}

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

.text-white {
    color: var(--text-primary) !important;
}

/* Override Warning/Yellow Colors globally */
.text-warning {
    color: var(--primary-blue) !important;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.bg-warning {
    background: var(--gradient-primary) !important;
    color: white !important;
}

.badge.bg-warning {
    background: var(--primary-blue) !important;
    /* Flat blue for badges for contrast */
}

/* Cards & Containers - Glassmorphism */
.card {
    background: var(--bg-card) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    border-radius: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3) !important;
    transition: all 0.3s ease;
}

/* Background resets */
.bg-light,
.bg-secondary,
.section,
.bg-primary {
    background-color: transparent !important;
    background: transparent !important;
}

/* Hide Decoration Images */
.shape {
    display: none !important;
}

/* Pricing Specifics */
.pricing .card {
    background: var(--primary-navy-light) !important;
}

.price sub,
.price sup {
    color: var(--text-primary) !important;
}

.list-unstyled li {
    color: var(--text-secondary) !important;
    margin-bottom: 0.5rem !important;
}

.list-unstyled li i {
    color: var(--primary-blue) !important;
}

/* Buttons */
.btn {
    border-radius: 9999px !important;
    padding: 0.8rem 2rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-warning,
.btn-primary,
.btn-secondary,
.btn-hover-secondery {
    background: var(--gradient-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
}

.btn-warning:hover,
.btn-primary:hover,
.btn-hover-secondery:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6) !important;
    color: white !important;
    background: var(--primary-blue) !important;
}

.btn-outline-primary {
    border-color: var(--primary-blue) !important;
    color: var(--primary-blue) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: var(--primary-blue) !important;
    color: white !important;
}

/* Form Controls */
.form-check-label {
    color: var(--text-primary) !important;
    margin-right: 0.5rem;
    margin-left: 0.5rem;
}

.form-switch .form-check-input {
    background-color: var(--text-secondary) !important;
    border-color: transparent !important;
}

.form-switch .form-check-input:checked {
    background-color: var(--primary-blue) !important;
}

/* Navbar Fixes - Full Width Background */
.main-header {
    background: rgba(2, 6, 23, 0.9) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.navbar {
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.navbar-brand img {
    height: 45px !important;
    width: auto !important;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
    padding: 0.5rem 1rem !important;
}

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

.navbar-toggler {
    filter: invert(1);
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* FAQ / Accordion Fixes */
.accordion-item {
    background-color: var(--primary-navy-light) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: var(--text-primary) !important;
    margin-bottom: 1rem !important;
    border-radius: 1rem !important;
    overflow: hidden;
}

.accordion-button {
    background-color: var(--primary-navy-light) !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-blue) !important;
    background-color: rgba(59, 130, 246, 0.1) !important;
}

.accordion-button::after {
    filter: invert(1) !important;
}

.accordion-button:not(.collapsed)::after {
    filter: invert(1) sepia(100%) saturate(1000%) hue-rotate(200deg) !important;
}

.accordion-body {
    background-color: var(--primary-navy-light) !important;
    color: var(--text-secondary) !important;
}

/* Background Striping & Footer */

/* Hero Banner Fixes */
.hero-banner,
.left-hero-color,
.right-hero-color {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* Pseudo-elements override just in case they hold the white background */
.hero-banner::before,
.hero-banner::after,
.left-hero-color::before,
.left-hero-color::after,
.right-hero-color::before,
.right-hero-color::after {
    display: none !important;
    background: transparent !important;
    content: none !important;
}

/* Service & Features Section Fixes */
.service,
.our-service {
    background: transparent !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Fix Cards in Service Section */
.service .card {
    background: var(--bg-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.service .card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue) !important;
}

/* Fix Icons in Service Section */
.icon-round {
    background: rgba(59, 130, 246, 0.1) !important;
    color: var(--primary-blue) !important;
}

.icon-round i {
    color: var(--primary-blue) !important;
}

/* Fix List Items in Our Service */
.our-service .list-unstyled li i {
    color: var(--primary-blue) !important;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    padding: 5px;
}

/* Ensure text visibility */
.service h2,
.service h3,
.service h5,
.service small,
.our-service h5,
.our-service small,
.our-service span {
    color: var(--text-primary) !important;
}

.service p,
.our-service p {
    color: var(--text-secondary) !important;
}


/* Composite Partner Badge */
.partner-badge {
    background: rgba(255, 255, 255, 0.08);
    /* Slightly more transparent */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 4px;
    /* Remove padding to let image dictate size */
    padding-left: 20px;
    /* Space for text */
    padding-right: 6px;
    /* Tiny space before image */
    transition: all 0.3s ease;
    height: auto;
    /* Fixed height container */
    min-height: 52px;
    display: inline-flex !important;
    align-items: center;
}

/* Ensure Logo Image is properly sized and placed */
.partner-badge img {
    height: 48px !important;
    /* Force height */
    width: auto;
    border-radius: 40px;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-left: 15px !important;
}

.partner-badge:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* New Feature Card Items Grid */
.feature-card-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature-card-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.feature-card-item i {
    transition: transform 0.3s ease;
}

.feature-card-item:hover i {
    transform: scale(1.1);
    color: #60a5fa !important;
    /* Lighter blue on hover */
}

/* Ensure text is white in hero */
.hero-banner h2,
.hero-banner p,
.hero-banner span {
    color: var(--text-primary) !important;
}

/* Compact Hero Spacing for Visibility */
.hero-banner h2 {
    margin-bottom: 0.75rem !important;
}

.hero-banner p {
    margin-bottom: 1.5rem !important;
}

.hero-banner .partner-badge {
    margin-bottom: 0.75rem !important;
}

/* Reduce Hero Image Size */
.right-hero-color img {
    max-width: 85% !important;
    margin: 0 auto;
}

section:nth-child(even) {
    background: rgba(30, 41, 59, 0.3) !important;
}

footer {
    background: #020617 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
    margin-top: 3rem !important;
}

.footer-links a {
    color: var(--text-muted) !important;
}

.footer-links a:hover {
    color: var(--primary-blue) !important;
}

/* Floating Background Shapes */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.shape-blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    animation: float-shape 20s infinite alternate ease-in-out;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    animation-delay: 0s;
}

.shape-2 {
    bottom: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    animation-delay: -5s;
}

.shape-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float-shape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(50px, 50px) rotate(20deg);
    }
}