/* ==========================================================================
   BIJOU MANAGEMENT DESIGN SYSTEM (PDF SLIDES PRESENTATION EDITION)
   ========================================================================== */

/* --- Custom Variables & Theme Tokens --- */
:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0b0d;
    --bg-tertiary: #111215;
    --accent-blue: #5AA9FF;
    --accent-blue-glow: rgba(90, 169, 255, 0.2);
    --text-main: #FFFFFF;
    --text-muted: #8E9BAE;
    --text-dark: #000000;
    --glass-bg: rgba(10, 11, 13, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-focus: rgba(90, 169, 255, 0.4);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-elastic: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --font-heading: 'Unbounded', sans-serif;
    --font-display: 'Unbounded', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1280px;
}

/* --- Base & Reset Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    position: relative;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* --- Background Ambient Glows & Grid --- */
.glow-orb {
    position: absolute;
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.06;
    pointer-events: none;
    z-index: -2;
    animation: pulse 15s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%;
    right: -5%;
    background-color: var(--accent-blue);
}

.orb-2 {
    top: 45%;
    left: -10%;
    background-color: var(--accent-blue);
    animation-delay: -7.5s;
}

@keyframes pulse {
    0% {
        transform: scale(1) translate(0px, 0px);
    }
    100% {
        transform: scale(1.1) translate(30px, -20px);
    }
}

.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center;
    z-index: -3;
    pointer-events: none;
}

/* --- Typography & Global Layout --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 3rem;
}

.container.is-wide {
    max-width: 100%;
    padding: 0 2rem;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.font-light {
    font-weight: 300;
}

.is-upper {
    text-transform: uppercase;
}

.is-bold {
    font-weight: 700;
}

.txt17 {
    font-size: 1rem;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.txt12 {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.9rem 2.2rem;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--accent-blue);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: white;
    box-shadow: 0 10px 25px var(--accent-blue-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border-color: var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: white;
}

.btn-sm {
    padding: 0.6rem 1.4rem;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 1.1rem 3rem;
    font-size: 1rem;
    border-radius: 50px;
}

.subm-rad {
    border-radius: 100px;
}

/* --- Floating Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 2rem 0;
}

.navbar.scrolled {
    padding: 1.2rem 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 3rem;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    font-style: italic;
}

.logo-accent {
    color: var(--accent-blue);
    margin-right: 0.4rem;
    font-style: normal;
}

.nav-menu {
    display: none;
    gap: 2.2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: var(--transition-smooth);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle i {
    width: 24px;
    height: 24px;
}

/* --- Slide Pages Structure --- */
.slide-section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    padding: 9rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

/* Meta headers and footers matching slide style */
.slide-meta-header,
.slide-meta-footer {
    position: absolute;
    left: 0;
    width: 100%;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    pointer-events: none;
}

.slide-meta-header {
    top: 3.5rem;
}

.slide-meta-footer {
    bottom: 3.5rem;
}

.logo-text-sm {
    color: var(--accent-blue);
    font-weight: 900;
    font-style: italic;
    font-family: var(--font-display);
}

.logo-text-sm.dark {
    color: var(--bg-primary);
}

.slide-body-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4rem;
    flex-grow: 1;
}

/* --- Solid Blue Highlight Screens --- */
.solid-blue-bg {
    background-color: var(--accent-blue);
    color: var(--bg-primary);
}

.solid-blue-bg .slide-meta-header,
.solid-blue-bg .slide-meta-footer {
    color: var(--bg-primary);
}

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

.section-badge-dark {
    align-self: flex-start;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--bg-primary);
    border: 1px solid var(--bg-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* --- Typography tokens matching slides --- */
.txt-logo {
    font-family: var(--font-display);
    font-size: clamp(3rem, 12vw, 11rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.05em;
    font-style: italic;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.txt-slide-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 1100px;
}

.slide-intro-text {
    font-size: clamp(1.1rem, 1.8vw, 1.8rem);
    line-height: 1.5;
    max-width: 1050px;
    font-weight: 400;
}

.slide-intro-text.centered {
    margin: 0 auto;
    text-align: center;
}

/* --- Grid Systems --- */
.grid-two-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.grid-three-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.grid-four-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
}

.gap-large {
    gap: 5rem;
}

.align-items-stretch {
    align-items: stretch;
}

/* --- Slide Custom Cards --- */
.content-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition-smooth);
}

.content-card:hover {
    border-color: var(--glass-border-focus);
    background: var(--bg-tertiary);
}

.card-tag {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 0.08em;
}

.card-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.card-desc strong {
    color: white;
}

.card-title-sm {
    font-size: 1.5rem;
    font-weight: 800;
}

/* --- Hero Section Specific --- */
.starburst-icon {
    font-size: 3rem;
    color: var(--accent-blue);
    margin-bottom: 2rem;
}

.starburst-icon.animation-spin {
    animation: spin 20s infinite linear;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hero-main-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 900px;
}

.hero-slogan {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.2vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

.hero-description {
    font-size: clamp(1.1rem, 1.7vw, 1.7rem);
    line-height: 1.5;
    color: var(--text-muted);
}

/* --- Philosophy Inline Stats --- */
.inline-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem 0;
    border-top: 2px solid var(--bg-primary);
}

.stat-h-text {
    font-size: clamp(1.8rem, 2.8vw, 2.8rem);
    font-weight: 800;
}

.stat-p-text {
    font-size: 1.15rem;
    font-weight: 500;
}

/* --- Services List Block --- */
.services-vertical-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-item-row {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.8rem 2.2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: var(--transition-smooth);
}

.service-item-row:hover {
    border-color: var(--glass-border-focus);
    background: var(--bg-tertiary);
}

.service-index {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-blue);
}

.service-text {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.service-text strong {
    color: white;
}

/* --- Results / Cases Block --- */
.results-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.results-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(90, 169, 255, 0.05);
}

.results-card.is-neutral {
    background: var(--bg-primary);
    border-color: var(--glass-border);
}

.results-card.is-neutral:hover {
    border-color: var(--glass-border-focus);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    display: block;
    overflow: hidden;
}

/* --- Timeline Steps Block --- */
.timeline-bar-wrapper {
    position: relative;
    width: 100%;
    padding: 3rem 0;
}

.timeline-line {
    position: absolute;
    top: 4.8rem;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    z-index: 1;
}

.relative-z {
    position: relative;
    z-index: 2;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.step-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 15px rgba(90, 169, 255, 0.5);
    margin-left: 0.5rem;
    transition: var(--transition-smooth);
}

.timeline-step:hover .step-dot {
    background: white;
    transform: scale(1.15);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 0.05em;
}

.timeline-step h4 {
    font-size: 1.25rem;
    font-weight: 800;
}

.step-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* --- Terms & Split Block --- */
.terms-share-card {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-blue);
    border-radius: 20px;
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(90, 169, 255, 0.05);
}

.share-percentage {
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 900;
    line-height: 0.85;
    color: var(--accent-blue);
}

.terms-coverage-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.coverage-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.coverage-list li {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    gap: 1rem;
}

.coverage-list li span {
    color: var(--accent-blue);
}

.badges-row-start {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 2rem;
}

.highlight-badge {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-blue);
    border: 1px solid rgba(90, 169, 255, 0.2);
    background: rgba(90, 169, 255, 0.05);
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    text-transform: uppercase;
}

/* --- Next Step Slide --- */
.next-step-visual {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.next-step-visual .starburst-icon {
    font-size: 4rem;
    margin-bottom: 0;
}

.txt-slide-title.size-large {
    font-size: clamp(2rem, 5vw, 5rem);
    max-width: 100%;
}

.footer-inline-meta {
    margin-top: 4rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* --- Cookies Popup --- */
.cookies-popup {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 999;
    max-width: 420px;
    background: rgba(10, 11, 13, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateY(150px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookies-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.txt-cookies-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: white;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.cookies-buttons {
    display: flex;
    gap: 1rem;
}

.cookies-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
}

.cookies-close-btn i {
    width: 16px;
    height: 16px;
}

/* --- Contact Popup Modal Form --- */
.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.popup-modal.open {
    display: flex;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1;
}

.popup-card-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 650px;
    padding: 2rem;
    margin: auto;
}

.popup-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border-focus);
    border-radius: 20px;
    padding: 3.5rem;
    box-shadow: var(--card-shadow);
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-modal.open .popup-card {
    transform: scale(1);
    opacity: 1;
}

.popup-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close-btn:hover {
    background: rgba(255,255,255,0.05);
    color: var(--accent-blue);
}

.popup-close-btn i {
    width: 20px;
    height: 20px;
}

.txt-popup-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    color: white;
}

.contact-form-y {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group-y {
    display: flex;
    flex-direction: column;
}

.form-group-y.col-span-2 {
    grid-column: span 2;
}

.txt-field-y {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
    width: 100%;
}

.txt-field-y:focus {
    outline: none;
    border-color: var(--glass-border-focus);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 15px rgba(90, 169, 255, 0.15);
}

/* Dropdown */
.select-wrapper {
    position: relative;
}

.select-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238b9bb0'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1.2rem;
    padding-right: 3rem;
}

.select-field option {
    background-color: var(--bg-secondary);
    color: white;
}

.txt-field-y.is-textarea {
    resize: none;
    height: 120px;
}

/* Conditional wrapper */
.optional-field-wrapper {
    display: none;
    grid-column: span 2;
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.form-status-y {
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    margin-top: 1rem;
}

.form-status-y.success { color: #10b981; }
.form-status-y.error { color: #ef4444; }

/* --- Scroll Reveal Base --- */
.reveal {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Directional fly-ins */
.reveal-up {
    transform: translateY(50px);
}

.reveal-down {
    transform: translateY(-50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-scale {
    transform: scale(0.95);
}

.reveal.revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Cascade effect for grids (animating children sequentially) */
.reveal-cascade {
    opacity: 1; /* parent wrapper itself is transparently active */
}

.reveal-cascade > * {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-cascade.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* Cascade timing delays */
.reveal-cascade.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-cascade.revealed > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-cascade.revealed > *:nth-child(3) { transition-delay: 0.35s; }
.reveal-cascade.revealed > *:nth-child(4) { transition-delay: 0.5s; }
.reveal-cascade.revealed > *:nth-child(5) { transition-delay: 0.65s; }
.reveal-cascade.revealed > *:nth-child(6) { transition-delay: 0.8s; }
.reveal-cascade.revealed > *:nth-child(7) { transition-delay: 0.95s; }
.reveal-cascade.revealed > *:nth-child(8) { transition-delay: 1.1s; }

/* Timeline bar animation */
.timeline-bar-wrapper.revealed .timeline-line {
    width: 100%;
}

.timeline-line {
    width: 0;
    transition: width 2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.1s;
}


/* --- Entry Fade-in Animations --- */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(35px);
    animation: fadeInUp 1s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up-delay-1 {
    opacity: 0;
    transform: translateY(35px);
    animation: fadeInUp 1s forwards cubic-bezier(0.16, 1, 0.3, 1);
    animation-delay: 0.2s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .grid-three-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-four-cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .services-vertical-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        transform: translateY(-100%);
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        align-items: center;
        padding: 3rem 0;
        gap: 2rem;
        transition: var(--transition-smooth);
        z-index: 999;
    }
    
    .nav-menu.open {
        transform: translateY(0);
        padding-top: 6rem;
    }
    
    .mobile-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-cta {
        display: none;
    }
    
    .slide-section {
        padding: 7rem 0;
    }
    
    .slide-meta-header,
    .slide-meta-footer {
        padding: 0 2rem;
    }
    
    .grid-two-cols {
        grid-template-columns: 1fr;
    }
    
    .grid-three-cols {
        grid-template-columns: 1fr;
    }
    
    .grid-four-cols {
        grid-template-columns: 1fr;
    }
    
    .timeline-line {
        display: none;
    }
    
    .step-dot {
        margin-left: 0;
    }
    
    .form-cols {
        grid-template-columns: 1fr;
    }
    
    .form-group-y.col-span-2,
    .optional-field-wrapper {
        grid-column: span 1 !important;
    }
    
    .popup-card {
        padding: 2.5rem 1.5rem;
    }
    
    .badges-row-start {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}

/* --- Calculator Styles --- */
.calculator-card {
    margin-top: 3.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border-focus);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    box-shadow: 0 10px 30px rgba(90, 169, 255, 0.05);
}

.calc-slider-box {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.calc-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 500;
}

.calc-label-text {
    color: var(--text-muted);
}

.calc-amount-val {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: white;
    font-weight: 700;
}

.calc-slider-input {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    transition: background 0.3s;
}

.calc-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(90, 169, 255, 0.8);
    transition: var(--transition-smooth);
}

.calc-slider-input::-webkit-slider-thumb:hover {
    background: white;
    transform: scale(1.15);
}

.calc-limits {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.calc-result-box {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calc-result-label {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.calc-result-val {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    color: var(--accent-blue);
    font-weight: 900;
}

