/* Google Fonts: Open Sans, Montserrat + editorial headline font */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;1,300;1,800&family=Montserrat:ital,wght@0,300;0,400;0,700;1,900&family=DM+Sans:wght@300;400;500&display=swap');

:root {
    /* Base Colors */
    --brand-midnight: #F8FAFC; /* Primary Background: Light Slate */
    --brand-dark: #E2E8F0; /* Secondary Background: Slightly darker slate */
    --brand-white: #0F172A; /* Primary Text: Dark Slate */
    --brand-text-gray: #334155; /* Secondary Text - darker */
    --brand-text-muted: #64748B; /* Muted Text - darker for light bg */
    
    /* Card Settings */
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(0, 0, 0, 0.08);
    
    /* Accents */
    --accent-purple: #6B21A8; /* Darker Purple for contrast */
    --accent-cyan: #0284C7; /* Darker Blue/Cyan for contrast */
    --accent-gradient: linear-gradient(135deg, #6B21A8, #4338CA, #0284C7);
}

body {
    background-color: var(--brand-midnight);
    color: var(--brand-white);
    font-family: 'Open Sans', sans-serif;
    overflow-x: hidden;
    line-height: 1.8;
    font-size: 1.15rem; /* Larger base text */
}

/* -------------------------------------------------------
   LIGHT THEME GLOBAL OVERRIDES
   Bootstrap classes like .text-white, .text-muted use
   !important so we must override them selectively.
------------------------------------------------------- */

/* Override Bootstrap's .text-white on light backgrounds */
.bg-midnight .text-white,
.bg-dark .text-white,
section:not(.hero-section) .text-white,
.hadita-card .text-white,
.clean-col .text-white {
    color: var(--brand-white) !important;
}

/* Override Bootstrap's .text-muted */
.text-muted {
    color: var(--brand-text-muted) !important;
}

/* Heading defaults on light backgrounds */
h1, h2, h3, h4, h5, h6 {
    color: var(--brand-white);
}

/* Paragraph defaults */
p {
    color: var(--brand-text-gray);
}

/* Strong/bold text in lists */
strong {
    color: var(--brand-white);
}

/* Footer on light background */
.footer {
    background-color: var(--brand-dark) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}
.footer a.text-white,
.footer .text-white {
    color: var(--brand-white) !important;
}
.footer .text-muted {
    color: var(--brand-text-muted) !important;
}
.footer a.text-muted {
    color: var(--brand-text-muted) !important;
}

/* Fix btn-outline-secondary for light backgrounds */
.btn-outline-secondary {
    color: var(--brand-text-gray) !important;
    border-color: var(--brand-text-gray) !important;
    background: transparent;
}
.btn-outline-secondary:hover {
    background-color: var(--brand-text-gray) !important;
    color: white !important;
}

/* Breadcrumb light theme */
.breadcrumb-item a {
    color: var(--brand-text-muted);
}
.breadcrumb-item.active {
    color: var(--brand-white);
}
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--brand-text-muted);
}

/* Navbar brand on light/transparent bg */
.navbar-brand {
    color: var(--brand-white) !important;
}
.navbar-toggler {
    color: var(--brand-white) !important;
    border-color: rgba(0,0,0,0.1) !important;
}
.navbar-toggler i {
    color: var(--brand-white) !important;
}

/* Hero section stays dark (it has a photo/dark overlay) */
.hero-section {
    color: white;
}
.hero-section .text-white,
.hero-section h1,
.hero-section h2,
.hero-section h3 {
    color: white !important;
    -webkit-text-fill-color: unset;
}
.hero-section .hero-title {
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-section .hero-subtitle {
    color: #cbd5e1;
}
.hero-section .badge-pill {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    color: white;
    box-shadow: none;
}
.hero-section .btn-pill-outline {
    border-color: rgba(255,255,255,0.5) !important;
    color: white !important;
}

/* Decorative SVG lines — make visible on light bg */
svg line[stroke="rgba(255,255,255,0.15)"] {
    stroke: rgba(0, 0, 0, 0.12) !important;
}

/* Typography Classes */
.font-heavy-italic {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.font-thin {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
}

.display-impact {
    font-size: 6rem;
    line-height: 1;
}

.section-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    font-size: 1.5rem; /* Increased */
    letter-spacing: 1px;
    margin-bottom: 2rem;
    color: var(--brand-white);
}

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

.section-subheading {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 3rem; /* Increased */
    line-height: 1.2;
    color: var(--brand-text-gray);
    margin-bottom: 3rem;
}

/* Navbar — old .navbar rules (kept for non-hero pages) */
.navbar {
    transition: background 0.4s ease, box-shadow 0.4s ease;
    padding: 25px 0;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.navbar.scrolled {
    padding: 10px 30px;
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin: 0;
    border-radius: 0;
    width: 100% !important;
    left: 0;
}
/* Navbar on hero (transparent state): use white text since hero is dark */
.navbar .nav-link {
    color: #1e293b;
    font-weight: 600;
    font-size: 1.15rem; /* Larger navbar text */
    margin: 0 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}
.navbar .nav-link:hover {
    color: var(--accent-cyan);
}
.btn-pill-outline {
    border: 2px solid var(--accent-cyan);
    border-radius: 50px;
    padding: 12px 35px !important;
    color: var(--accent-cyan) !important;
    font-weight: 600;
    font-size: 1.1rem; /* Larger button text */
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    transition: all 0.3s ease;
}
.btn-pill-outline:hover {
    background-color: var(--accent-cyan);
    color: white !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--brand-midnight);
    color: var(--brand-white);
}

.hero-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2.5px;
    background: linear-gradient(to right, #0F172A, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--brand-text-gray);
    max-width: 650px;
}

.badge-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(2, 132, 199, 0.1);
    border: 1px solid rgba(2, 132, 199, 0.3);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(2, 132, 199, 0.1);
}

.btn-glow {
    display: inline-block;
    padding: 14px 38px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: white !important;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 8px 20px rgba(107, 33, 168, 0.35);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.4);
}

/* Animations */
.animate-fade-up {
    animation: fadeUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Simple Underlined Links */
.link-underline {
    color: var(--accent-cyan);
    font-size: 1rem; /* Increased */
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 2px solid var(--accent-cyan);
    padding-bottom: 4px;
    transition: color 0.3s ease, border-color 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
}
.link-underline:hover {
    color: var(--accent-purple);
    border-color: var(--accent-purple);
}

/* Clean Column Blocks (No boxes, just text on background) */
.clean-col {
    padding: 20px 0;
}
.clean-col h4 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 2.2rem; /* Increased */
    color: var(--brand-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.clean-col p {
    font-weight: 400;
    font-size: 1.15rem; /* Increased */
    color: var(--brand-text-gray);
    margin-bottom: 1.5rem;
}

/* Image Placeholders */
.img-placeholder {
    width: 100%;
    height: 350px;
    background-color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-text-gray);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

/* General Layout Utilities */
.bg-midnight { background-color: var(--brand-midnight) !important; }
.bg-dark { background-color: var(--brand-dark) !important; }

/* Table styling for dark mode */
.table-custom th {
    color: var(--brand-white) !important;
    border-bottom: 2px solid var(--accent-purple) !important;
    font-size: 1.1rem;
}
.table-custom td {
    color: var(--brand-text-gray) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 1.15rem;
    padding: 1.5rem 0.5rem !important;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.2rem;
        letter-spacing: -1px;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-section .container {
        padding-top: 60px !important;
    }
    .display-impact {
        font-size: 3rem;
    }
    .section-subheading {
        font-size: 1.75rem;
    }
    .hadita-card {
        padding: 1.5rem 1.25rem !important;
    }
    .marquee-content a {
        font-size: 1.5rem !important;
    }
    .industry-asym-card {
        width: 100% !important;
        clip-path: none !important;
        margin-left: 0 !important;
        padding: 2.5rem 1.5rem !important;
    }
    .industry-pill {
        width: 100% !important;
        transform: none !important;
        padding: 1rem 1.5rem !important;
    }
    .industry-pill:hover {
        width: 100% !important;
        transform: none !important;
    }
    .pill-desc {
        display: none !important;
    }
    .navbar.scrolled {
        width: 100% !important;
        border-radius: 0 !important;
        left: 0 !important;
        margin: 0 !important;
        padding: 10px 15px !important;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 1.5rem;
        border-radius: 10px;
        margin-top: 15px;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    .navbar-nav {
        align-items: flex-start !important;
    }
    .navbar .nav-link {
        margin: 10px 0 !important;
    }
    .btn-pill-outline {
        margin-top: 15px !important;
        width: 100% !important;
        text-align: center !important;
    }
}

/* Custom Card Component - Architectural / Cyber Design */
.hadita-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--accent-purple);
    border-radius: 0;
    padding: 2.5rem 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 100%;
}

/* Top Right Corner Accent */
.hadita-card::before {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 15px;
    height: 15px;
    border-top: 2px solid var(--brand-text-muted);
    border-right: 2px solid var(--brand-text-muted);
    transition: all 0.4s ease;
    opacity: 0.5;
}

/* Bottom Right Corner Accent */
.hadita-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 15px;
    height: 15px;
    border-bottom: 2px solid var(--brand-text-muted);
    border-right: 2px solid var(--brand-text-muted);
    transition: all 0.4s ease;
    opacity: 0.5;
}

.hadita-card:hover {
    transform: translateY(-5px);
    border-left-color: var(--accent-cyan);
    background: var(--card-bg);
    box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.08);
}

.hadita-card:hover::before,
.hadita-card:hover::after {
    border-color: var(--accent-cyan);
    width: 25px;
    height: 25px;
    opacity: 1;
}

.hadita-card-title {
    color: var(--brand-white);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.hadita-card-text {
    color: var(--brand-text-gray);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Gradient Utilities */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Marquee Section */
.marquee-section {
    background-color: var(--brand-dark);
    padding: 7rem 0; /* Plenty of negative space */
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.02);
}

.marquee-wrapper {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 4rem; /* Lots of negative space between items */
    width: max-content;
}

.marquee-content.row-1 {
    animation: scroll-left 50s linear infinite;
}

.marquee-content.row-2 {
    animation: scroll-right 55s linear infinite;
}

.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-content a {
    color: var(--brand-white); 
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    opacity: 0.85;
}

.marquee-content a:hover {
    color: var(--accent-purple);
    opacity: 1;
    transform: scale(1.05);
    text-shadow: 0 10px 30px rgba(138, 43, 226, 0.2);
}

.marquee-content .dot {
    color: var(--accent-cyan);
    font-size: 2.5rem;
    opacity: 0.5;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Asymmetric SaaS Industry Platforms Layout */
.industry-asym-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 4rem;
    padding-bottom: 4rem;
}

.industry-asym-wrap {
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1));
    width: 100%;
    margin-bottom: -3rem; /* Staggered overlap */
    position: relative;
    z-index: 1;
}

.industry-asym-wrap:hover {
    z-index: 10;
}

.industry-asym-card {
    padding: 5rem 6rem;
    width: 65%;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.industry-asym-wrap:hover .industry-asym-card {
    transform: scale(1.03) translateY(-10px);
}

.card-left {
    margin-left: 0;
    /* Slanted non-rectangular polygon */
    clip-path: polygon(0 0, 95% 5%, 100% 100%, 0 95%);
    background: linear-gradient(135deg, #ffffff, #f1f5f9); /* Solid colors, no glassmorphism */
    border-left: 6px solid var(--accent-cyan);
}

.card-right {
    margin-left: auto;
    /* Reverse slanted polygon */
    clip-path: polygon(5% 0, 100% 5%, 95% 100%, 0 100%);
    background: linear-gradient(135deg, #f1f5f9, #ffffff); /* Solid colors, no glassmorphism */
    border-right: 6px solid var(--accent-purple);
    text-align: right;
}

.card-center {
    margin: 3rem auto 0 auto;
    width: 80%;
    clip-path: polygon(2% 0, 98% 5%, 100% 100%, 0 95%);
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-bottom: 6px solid var(--accent-cyan);
    text-align: center;
}

.industry-asym-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.industry-asym-text {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--brand-text-gray);
    margin-bottom: 2rem;
    max-width: 80%;
}

.card-right .industry-asym-text {
    margin-left: auto;
}

.card-center .industry-asym-text {
    margin-left: auto;
    margin-right: auto;
}

/* Minimalistic Industry List Layout */
.industry-row-hover {
    transition: all 0.3s ease;
}

.minimal-industry-row:hover .industry-row-hover {
    background-color: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.minimal-industry-row:hover .industry-row-hover h4 {
    color: var(--accent-cyan) !important;
    text-shadow: 0 0 8px rgba(2, 132, 199, 0.2);
}

.minimal-industry-row:hover .arrow-icon {
    color: var(--accent-cyan) !important;
    transform: translateX(15px);
}

/* Expanding Pill Layout */
.industry-pill {
    display: flex;
    align-items: center;
    border-radius: 100px;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 1.5rem 3rem;
    margin-bottom: 1.5rem;
    color: var(--brand-white);
    background: var(--card-bg);
    width: 380px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: pointer;
}

.pill-offset-left { transform: translateX(-100px); }
.pill-offset-right { transform: translateX(100px); }
.pill-offset-left-more { transform: translateX(-150px); }
.pill-offset-right-more { transform: translateX(150px); }

.industry-pill:hover {
    width: 900px;
    max-width: 95vw;
    border-color: var(--accent-cyan);
    background: rgba(0,0,0,0.02);
    transform: translateX(0);
    box-shadow: 0 0 30px rgba(2, 132, 199, 0.1);
}

.pill-number {
    font-size: 1rem;
    color: var(--brand-text-gray);
    margin-right: 1.5rem;
    font-weight: 300;
}

.pill-title {
    font-size: 1.5rem;
    font-weight: 400;
    white-space: nowrap;
    min-width: 250px;
}

.pill-desc {
    opacity: 0;
    margin-left: 2rem;
    font-size: 1rem;
    color: var(--brand-text-gray);
    white-space: nowrap;
    transition: opacity 0.3s ease;
    transition-delay: 0s;
}

.industry-pill:hover .pill-desc {
    opacity: 1;
    transition-delay: 0.3s;
}

.pill-arrow {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
    color: var(--accent-cyan);
    font-size: 1.5rem;
}

.industry-pill:hover .pill-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* =======================================================
   DELOITTE DIGITAL — HERO CAROUSEL
   Cinematic full-viewport slides, editorial bottom-left
   content, dash indicators, pause control, scroll chevron.
======================================================= */

/* ---- Navbar ---- */
.dd-navbar {
    /* Fully transparent over hero — exactly like Deloitte Digital */
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: background 0.4s ease, box-shadow 0.4s ease;
    padding: 32px 0;
    z-index: 1050;
}
.dd-navbar.scrolled {
    /* Solid white once scrolled past hero — no blur */
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 20px 0;
}

/* Stacked logo */
.dd-navbar-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-decoration: none;
    gap: 0;
}
.dd-brand-name {
    font-family: 'DM Sans', 'Open Sans', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}
.dd-navbar.scrolled .dd-brand-name {
    color: #0F172A;
}
.dd-brand-dot {
    color: #86BC25; /* Deloitte green */
}
.dd-brand-sub {
    font-family: 'DM Sans', 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}
.dd-navbar.scrolled .dd-brand-sub {
    color: #64748B;
}

/* Nav links */
.dd-nav-link {
    font-family: 'DM Sans', 'Open Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92) !important;
    text-decoration: none;
    padding: 10px 24px !important;
    letter-spacing: 0.4px;
    transition: color 0.25s ease;
    display: block;
}
.dd-nav-link:hover {
    color: #fff !important;
}
.dd-navbar.scrolled .dd-nav-link {
    color: #1e293b !important;
}
.dd-navbar.scrolled .dd-nav-link:hover {
    color: #0284C7 !important;
}

/* Contact Us pill button */
.dd-contact-btn {
    display: inline-block;
    border: 1.5px solid rgba(255,255,255,0.8);
    border-radius: 50px;
    padding: 12px 34px;
    font-family: 'DM Sans', 'Open Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #fff !important;
    text-decoration: none;
    background: transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
}
.dd-contact-btn:hover {
    background: #fff;
    color: #0F172A !important;
    border-color: #fff;
}
.dd-navbar.scrolled .dd-contact-btn {
    border-color: #0F172A;
    color: #0F172A !important;
}
.dd-navbar.scrolled .dd-contact-btn:hover {
    background: #0F172A;
    color: #fff !important;
}

/* Mobile collapse styling */
.dd-toggler i {
    color: #fff;
    font-size: 1.8rem;
}
.dd-navbar.scrolled .dd-toggler i {
    color: #0F172A;
}
@media (max-width: 991px) {
    .dd-navbar .navbar-collapse {
        background: rgba(10, 12, 20, 0.97);
        backdrop-filter: blur(16px);
        border-radius: 12px;
        padding: 1.5rem;
        margin-top: 12px;
        border: 1px solid rgba(255,255,255,0.1);
    }
    .dd-navbar.scrolled .navbar-collapse {
        background: rgba(255,255,255,0.97);
        border-color: rgba(0,0,0,0.06);
    }
    .dd-navbar.scrolled .dd-nav-link {
        color: #1e293b !important;
    }
}

/* ---- Hero Carousel ---- */
.dd-hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 560px;
    overflow: hidden;
    background: #0a0a0a;
}

.dd-slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Each slide */
.dd-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}
.dd-slide--active {
    opacity: 1;
    z-index: 2;
}

/* Video inside slide */
.dd-slide-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Cinematic dark overlay — heavier on left like Deloitte */
.dd-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.55) 50%,
        rgba(0, 0, 0, 0.25) 100%
    );
    z-index: 1;
}

/* Content: anchored bottom-left */
.dd-slide-content {
    position: absolute;
    bottom: 120px;
    left: 0;
    right: 0;
    padding: 0 5vw;
    max-width: 820px;
    z-index: 3;
    animation: ddFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ddFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category label */
.dd-category {
    display: block;
    font-family: 'DM Sans', 'Open Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* Large editorial headline */
.dd-headline {
    font-family: 'DM Sans', 'Open Sans', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    font-weight: 300;
    line-height: 1.18;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 32px;
    max-width: 700px;
    -webkit-text-fill-color: #ffffff;
}

/* CTA button — white pill with dark text */
.dd-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: #0F172A !important;
    font-family: 'DM Sans', 'Open Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.dd-cta-btn:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
    color: #0F172A !important;
}

/* ---- Controls bar (bottom) ---- */
.dd-controls {
    position: absolute;
    bottom: 40px;
    left: 5vw;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10;
}

/* Dash indicators */
.dd-indicators {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dd-dash {
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.4s ease;
    border: none;
    padding: 0;
}
.dd-dash--active {
    background: #86BC25; /* Deloitte green */
    width: 52px;
}
.dd-dash:hover:not(.dd-dash--active) {
    background: rgba(255,255,255,0.6);
}

/* Pause/Play button */
.dd-pause-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.6);
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}
.dd-pause-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

/* Scroll chevron */
.dd-scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 1.5rem;
    z-index: 10;
    animation: ddChevronBounce 2s ease-in-out infinite;
    cursor: pointer;
}
@keyframes ddChevronBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .dd-slide-content {
        bottom: 100px;
        padding: 0 1.5rem;
        max-width: 100%;
    }
    .dd-headline {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
    }
    .dd-controls {
        bottom: 30px;
        left: 1.5rem;
    }
    .dd-scroll-hint {
        display: none;
    }
}
