/* Agile Innotech Creative Media Agency - Custom Visual Identity */

/* 1. Imports and Variables */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Sora:wght@600;700;800;900&display=swap');

:root {
    --bg-dark: #06080e;
    --bg-card: rgba(10, 13, 23, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.02);
    --border-glass: rgba(255, 255, 255, 0.06);
    --color-primary: #8a2be2; /* Neon Violet */
    --color-secondary: #00f0ff; /* Electric Cyan */
    --color-accent: #ec4899; /* Cyber Pink */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --glow-primary: 0 0 20px rgba(138, 43, 226, 0.4);
    --glow-secondary: 0 0 20px rgba(0, 240, 255, 0.45);
    --glow-accent: 0 0 20px rgba(236, 72, 153, 0.4);
}

html[data-media-theme="dark"] {
    color-scheme: dark;
}

html[data-media-theme="light"] {
    color-scheme: light;
    --bg-dark: #f7faff;
    --bg-card: rgba(255, 255, 255, 0.78);
    --bg-glass: rgba(4, 17, 36, 0.04);
    --border-glass: rgba(15, 23, 42, 0.12);
    --color-primary: #6d28d9;
    --color-secondary: #0284c7;
    --color-accent: #db2777;
    --text-main: #111827;
    --text-muted: #526173;
    --glow-primary: 0 14px 32px rgba(109, 40, 217, 0.18);
    --glow-secondary: 0 14px 32px rgba(2, 132, 199, 0.18);
    --glow-accent: 0 14px 32px rgba(219, 39, 119, 0.18);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-secondary), var(--color-accent));
}

/* 2. Global Resets and Aesthetics */
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.35s ease, color 0.35s ease;
}

/* Ambient cosmic mesh background & grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 25%, rgba(138, 43, 226, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(0, 240, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
    animation: backgroundShift 30s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

@keyframes backgroundShift {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.12) translate(3%, 3%);
    }
}

/* Floating Blur Orbs */
.blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
    animation: floatingOrb 20s infinite alternate ease-in-out;
}
.blur-circle-primary {
    width: 250px;
    height: 250px;
    background: var(--color-primary);
}
.blur-circle-secondary {
    width: 320px;
    height: 320px;
    background: var(--color-secondary);
    animation-duration: 25s;
}

@keyframes floatingOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(10%, 15%) scale(1.15);
    }
    100% {
        transform: translate(-10%, -5%) scale(0.9);
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #ffffff;
    line-height: 1.15;
}

/* Glowing text classes */
.text-glow-primary {
    text-shadow: 0 0 15px rgba(138, 43, 226, 0.6);
}
.text-glow-secondary {
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}
.text-gradient {
    background: linear-gradient(135deg, #ffffff 20%, var(--color-secondary) 70%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-purple {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 45%, var(--color-accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradientMove 4s linear infinite;
}

@keyframes textGradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary), var(--color-accent));
    z-index: 10000;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
    transition: width 0.1s ease;
}

/* 3. Navigation Header */
.navbar-media {
    background: rgba(6, 8, 14, 0.65) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1.3rem 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.navbar-media.scrolled {
    padding: 0.8rem 0;
    background: rgba(5, 6, 10, 0.85) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
.navbar-media .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 250px;
    text-decoration: none;
}
.media-brand-mark {
    width: 42px;
    height: 36px;
    object-fit: contain;
    flex: 0 0 auto;
    filter:
        drop-shadow(0 0 8px rgba(0, 240, 255, 0.48))
        drop-shadow(0 0 18px rgba(138, 43, 226, 0.28));
}
.media-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
    line-height: 1;
}
.media-brand-name {
    display: inline-block;
    width: fit-content;
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        var(--color-secondary) 22%,
        #4da3ff 42%,
        var(--color-primary) 64%,
        var(--color-accent) 82%,
        #ffffff 100%
    );
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: brandGradientLoop 5.8s linear infinite;
    font-size: 1.12rem;
    font-weight: 900;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}
.media-brand-subtitle {
    color: rgba(216, 224, 255, 0.72);
    font-size: 0.54rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    white-space: nowrap;
}
@keyframes brandGradientLoop {
    0% { background-position: 0% 50%; }
    100% { background-position: 260% 50%; }
}
@media (max-width: 991.98px) {
    .navbar-media .navbar-brand {
        min-width: 0;
    }
}
@media (max-width: 575.98px) {
    .navbar-media .navbar-brand {
        gap: 0.55rem;
    }
    .media-brand-mark {
        width: 34px;
        height: 29px;
    }
    .media-brand-name {
        font-size: 0.92rem;
        letter-spacing: 0.045em;
    }
    .media-brand-subtitle {
        font-size: 0.46rem;
        letter-spacing: 0.16em;
    }
}
.media-navbar-actions {
    flex-wrap: wrap;
}

.media-main-site-link {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    min-height: 40px;
    padding: 0.48rem 0.82rem;
    border-radius: 999px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    background:
        linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(138, 43, 226, 0.12)),
        rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(0, 240, 255, 0.22);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        0 12px 28px rgba(0, 240, 255, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.media-main-site-link i {
    color: var(--color-secondary);
}

.media-main-site-link:hover,
.media-main-site-link:focus {
    color: #ffffff;
    transform: translateY(-2px);
    border-color: rgba(236, 72, 153, 0.42);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        0 16px 36px rgba(138, 43, 226, 0.16);
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 40px;
    padding: 0.35rem 0.75rem 0.35rem 0.4rem;
    border: 1px solid var(--border-glass);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        0 10px 28px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.theme-toggle-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        0 14px 34px rgba(0, 240, 255, 0.12);
}
.theme-toggle-track {
    position: relative;
    width: 58px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.48rem;
    background:
        radial-gradient(circle at 25% 50%, rgba(138, 43, 226, 0.45), transparent 45%),
        linear-gradient(135deg, rgba(7, 10, 18, 0.96), rgba(24, 31, 55, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.theme-toggle-icon {
    position: relative;
    z-index: 2;
    font-size: 0.8rem;
    line-height: 1;
    transition: color 0.25s ease, opacity 0.25s ease;
}
.theme-toggle-icon-dark {
    color: #c4b5fd;
}
.theme-toggle-icon-light {
    color: rgba(255, 255, 255, 0.42);
}
.theme-toggle-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #ffffff 0%, #dbeafe 38%, #8b5cf6 100%);
    box-shadow:
        0 0 18px rgba(139, 92, 246, 0.55),
        0 3px 12px rgba(0, 0, 0, 0.28);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.18), background 0.25s ease, box-shadow 0.25s ease;
}
.theme-toggle-label {
    min-width: 34px;
    color: var(--text-main);
}
.navbar-media .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1.3rem !important;
    position: relative;
    transition: color 0.3s ease;
}
.navbar-media .nav-link:hover,
.navbar-media .nav-link.active {
    color: #ffffff !important;
}
.navbar-media .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1.3rem;
    right: 1.3rem;
    height: 2px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: right;
}
.navbar-media .nav-link:hover::after,
.navbar-media .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 4. Glassmorphism & UI Components */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.8rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn-media-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #ffffff;
    font-weight: 600;
    padding: 0.9rem 2.2rem;
    border-radius: 30px;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--glow-primary);
}
.btn-media-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}
.btn-media-primary:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}
.btn-media-primary:hover::before {
    opacity: 1;
}
.btn-media-primary:active {
    transform: translateY(-1px);
}

.btn-media-outline {
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    padding: 0.9rem 2.2rem;
    border-radius: 30px;
    border: 2px solid var(--color-secondary);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.btn-media-outline:hover {
    background: var(--color-secondary);
    color: #06080e;
    box-shadow: var(--glow-secondary);
    transform: translateY(-3px);
}

/* 5. Hero Section styling */
.hero-agency {
    padding: 11rem 0 8rem 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.hero-agency::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(6, 8, 14, 0.88) 0%, rgba(6, 8, 14, 0.56) 35%, rgba(6, 8, 14, 0.14) 66%, rgba(6, 8, 14, 0.46) 100%),
        linear-gradient(180deg, rgba(6, 8, 14, 0.14) 0%, rgba(6, 8, 14, 0) 45%, var(--bg-dark) 100%);
}
.hero-agency > .container {
    position: relative;
    z-index: 1;
}
.hero-bg-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    opacity: 0.48;
    filter: saturate(1.05) brightness(1.12) blur(0.1px);
    pointer-events: none;
}
.hero-bg-video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to bottom, transparent 40%, var(--bg-dark) 100%),
        linear-gradient(to right, var(--bg-dark) 0%, transparent 15%, transparent 85%, var(--bg-dark) 100%);
    pointer-events: none;
}
.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-title {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1.8rem;
    letter-spacing: -0.03em;
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 2.8rem;
    max-width: 600px;
}
.hero-tagline-ticker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.3rem;
    background: rgba(138, 43, 226, 0.12);
    border: 1px solid rgba(138, 43, 226, 0.25);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-secondary);
    margin-bottom: 1.6rem;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

/* 6. Demo Video Section */
.video-preview-wrapper {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        0 30px 70px rgba(0, 0, 0, 0.6);
    aspect-ratio: 16/9;
    cursor: pointer;
}
.video-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    background: #06080e;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.video-preview-wrapper:hover .video-thumbnail {
    transform: scale(1.06);
}
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 8, 14, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.video-preview-wrapper:hover .video-overlay {
    background: rgba(6, 8, 14, 0.2);
}
.play-btn-glowing {
    width: 84px;
    height: 84px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 2rem;
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.play-btn-glowing i {
    margin-left: 6px; /* Offset center for play icon */
}
.video-preview-wrapper:hover .play-btn-glowing {
    transform: scale(1.15);
    background: var(--color-secondary);
    color: var(--bg-dark);
    box-shadow: var(--glow-secondary);
}

/* Video Lightbox */
.media-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 5, 8, 0.97);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.media-lightbox.active {
    display: flex;
    opacity: 1;
}
.media-lightbox-content {
    width: 92%;
    max-width: 1050px;
    aspect-ratio: 16/9;
    background: #000000;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: 0 0 60px rgba(138, 43, 226, 0.45);
    position: relative;
}
.media-lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    color: #ffffff;
    font-size: 2.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}
.media-lightbox-close:hover {
    color: var(--color-accent);
}

/* 7. Services Layout */
.service-card {
    background: rgba(14, 18, 30, 0.45);
    border: 1px solid var(--border-glass);
    border-radius: 28px;
    padding: 2.8rem 2.2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: left;
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(138, 43, 226, 0.12);
    background: rgba(14, 18, 30, 0.75);
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-icon-box {
    width: 68px;
    height: 68px;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.25);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.85rem;
    color: var(--color-secondary);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.service-card:hover .service-icon-box {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: var(--glow-primary);
    transform: rotate(-6deg) scale(1.08);
}
.service-card-title {
    font-size: 1.45rem;
    margin-bottom: 1.1rem;
}
.service-card-text {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* 8. Filterable Showcase / Portfolio */
.portfolio-filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}
.portfolio-filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 0.65rem 1.6rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.portfolio-filter-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
}
.portfolio-filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    box-shadow: var(--glow-primary);
}

.portfolio-grid-item {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.portfolio-card {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-glass);
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}
.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.portfolio-card:hover .portfolio-image {
    transform: scale(1.08);
}
.portfolio-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.2rem;
    background: linear-gradient(to top, rgba(6, 8, 14, 0.98) 0%, rgba(6, 8, 14, 0.6) 65%, transparent 100%);
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.portfolio-card:hover .portfolio-card-overlay {
    opacity: 1;
    transform: translateY(0);
}
.portfolio-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-secondary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: inline-block;
}
.portfolio-title {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    font-family: var(--font-heading);
}
.portfolio-stats {
    font-size: 0.88rem;
    color: var(--color-accent);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* 9. Interactive Brief Creator Wizard */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3.5rem;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.wizard-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}
.wizard-progress-bar {
    position: absolute;
    top: 20px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary), var(--color-accent));
    z-index: 2;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 0 10px var(--color-secondary);
}
.wizard-step-node {
    width: 44px;
    height: 44px;
    background: #0d111d;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.4s ease;
}
.wizard-step-node.active {
    border-color: var(--color-secondary);
    color: #ffffff;
    box-shadow: var(--glow-secondary);
}
.wizard-step-node.completed {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: var(--glow-primary);
}

.wizard-panel {
    display: none;
}
.wizard-panel.active {
    display: block;
    animation: slideFadeIn 0.5s ease forwards;
}

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

/* Clickable Services Checkcards */
.brief-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.4rem;
}
.service-checkcard {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.2rem 1.3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    user-select: none;
}
.service-checkcard input[type="checkbox"] {
    position: absolute;
    top: 12px;
    right: 12px;
    opacity: 0;
}
.service-checkcard-icon {
    font-size: 2.3rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
}
.service-checkcard-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #ffffff;
}
.service-checkcard-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.service-checkcard:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
}
/* Selected state */
.service-checkcard.selected {
    border-color: var(--color-secondary);
    background: rgba(0, 240, 255, 0.04);
    box-shadow: 
        0 15px 30px rgba(0, 240, 255, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}
.service-checkcard.selected .service-checkcard-icon {
    color: var(--color-secondary);
    transform: scale(1.1);
}

/* Custom interactive sliders */
.custom-range-slider-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2.2rem;
    margin-top: 1.5rem;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}
.custom-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    margin: 1.5rem 0;
}
.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-secondary);
    cursor: pointer;
    box-shadow: var(--glow-secondary);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    background: var(--color-accent);
    box-shadow: var(--glow-accent);
}
.slider-value-display {
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Success Animation and Details */
.brief-success-card {
    text-align: center;
    padding: 3rem 2rem;
}
.success-checkmark-wrapper {
    width: 96px;
    height: 96px;
    background: rgba(0, 240, 255, 0.1);
    border: 2px solid var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.8rem;
    color: var(--color-secondary);
    margin: 0 auto 2.2rem auto;
    animation: scalePulse 1.5s infinite alternate ease-in-out;
}
@keyframes scalePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    }
    100% {
        transform: scale(1.08);
        box-shadow: 0 0 35px rgba(0, 240, 255, 0.6);
    }
}

/* 10. Footer Section */
.footer-media {
    background: #030408;
    border-top: 1px solid var(--border-glass);
    padding: 5.5rem 0 2rem 0;
    color: var(--text-muted);
}
.footer-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.6rem;
}
.footer-logo {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.3rem;
}
.media-brand-footer .media-brand-mark {
    width: 46px;
    height: 39px;
}
.media-brand-footer .media-brand-name {
    font-size: 1.24rem;
}
.media-brand-footer .media-brand-subtitle {
    font-size: 0.58rem;
}
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links-list li {
    margin-bottom: 0.8rem;
}
.footer-links-list a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}
.footer-links-list a:hover {
    color: var(--color-secondary);
    transform: translateX(4px);
}
.social-icons-wrapper {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
.social-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.15rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
}
.social-icon-btn:hover {
    color: #ffffff;
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--glow-primary);
    transform: translateY(-4px);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    margin-top: 4.5rem;
    font-size: 0.85rem;
}

/* Custom styles for form components */
.form-media-control {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--border-glass) !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    padding: 0.85rem 1.3rem !important;
    transition: all 0.3s ease !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}
.form-media-control:focus {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: var(--color-secondary) !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.3) !important;
}
.form-media-control::placeholder {
    color: #3f4859 !important;
}

.border-dashed {
    border-style: dashed !important;
    border-width: 2px !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    transition: border-color 0.3s ease;
}
.service-card.border-dashed:hover {
    border-color: var(--color-secondary) !important;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

/* ============================================================
   11. Utility Classes & Contrast Fixes
   These helpers are referenced throughout the media views but were
   previously undefined, which caused the low-contrast text, invisible
   "glass" sections, missing borders and un-styled labels.
   ============================================================ */

html {
    scroll-behavior: smooth;
}

::selection {
    background: rgba(138, 43, 226, 0.45);
    color: #ffffff;
}

/* Bootstrap's default .text-muted resolves to a near-black grey that is
   almost invisible on this dark cosmic canvas. Pin it to the brand's
   readable muted tone. */
.text-muted {
    color: var(--text-muted) !important;
}

/* Keep intro / lead paragraphs at a comfortable reading measure */
.max-width-600 {
    max-width: 600px;
}

/* Typography helpers (headings, stat blocks, eyebrow labels) */
.font-heading {
    font-family: var(--font-heading) !important;
}
.font-weight-bold {
    font-weight: 700 !important;
}
.font-size-xs {
    font-size: 0.72rem !important;
}
.letter-spacing-1 {
    letter-spacing: 0.08em !important;
}
.tracking-2 {
    letter-spacing: 0.16em;
}
.uppercase {
    text-transform: uppercase;
}

/* Frosted-glass full-width section background */
.bg-glass {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0%, rgba(255, 255, 255, 0.004) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: var(--border-glass) !important;
}

/* Subtle glass hairline used on imagery / cards */
.border-glass {
    border: 1px solid var(--border-glass) !important;
}

/* Neon aura for hero / CTA glass panels */
.border-glow {
    border: 1px solid rgba(0, 240, 255, 0.22) !important;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        0 0 45px rgba(138, 43, 226, 0.22),
        0 0 80px rgba(0, 240, 255, 0.10) !important;
}

/* Give the accent Bootstrap-Icons their intended neon colour (headings
   stay white because they are never .bi elements). */
i.bi.text-glow-primary {
    color: var(--color-primary);
}
i.bi.text-glow-secondary {
    color: var(--color-secondary);
}

/* Re-skin the stray Bootstrap primary badge to match the palette */
.badge.bg-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent)) !important;
    color: #ffffff !important;
    letter-spacing: 0.08em;
    box-shadow: var(--glow-primary);
}

/* Prevent gradient-text descenders (g, p, y) from being clipped */
.text-gradient,
.text-gradient-purple {
    display: inline-block;
    padding-bottom: 0.06em;
}

/* Gentle attention pulse on the video play button */
.play-btn-glowing {
    animation: playPulse 2.6s ease-in-out infinite;
}
@keyframes playPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 255, 255, 0.5); }
    50%      { box-shadow: 0 0 55px rgba(0, 240, 255, 0.7); }
}
.video-preview-wrapper:hover .play-btn-glowing {
    animation-play-state: paused;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================================
   Agile Media Portal Expansion & UX Physics Overrides
   ======================================================== */

/* Scroll Reveal Entries */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(5px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Neomorphic Mechanical Push Buttons */
.btn-neomorphic-secondary {
    background: #0d1222;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-secondary);
    box-shadow: 
        -3px -3px 8px rgba(255, 255, 255, 0.02),
        3px 3px 8px rgba(0, 0, 0, 0.6);
    transition: all 0.2s ease;
    border-radius: 12px;
}
.btn-neomorphic-secondary:active,
.btn-neomorphic-secondary.active {
    box-shadow: 
        inset -2px -2px 6px rgba(255, 255, 255, 0.02),
        inset 2px 2px 6px rgba(0, 0, 0, 0.8);
    color: #ffffff;
    border-color: rgba(0, 240, 255, 0.2);
}

/* 3D Perspective Card Tilt Hover */
.card-tilt-hover {
    perspective: 1000px;
    transition: transform 0.4s ease;
}
.card-tilt-hover:hover {
    transform: rotateY(5deg) rotateX(2deg) scale(1.02);
}

/* Border-Beam Glowing Loop Animation */
.border-beam-container {
    position: relative;
    overflow: hidden;
}
.border-beam-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        rgba(0, 240, 255, 0.4), 
        rgba(138, 43, 226, 0.4), 
        transparent 30%
    );
    animation: borderBeamRotate 6s linear infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes borderBeamRotate {
    100% { transform: rotate(360deg); }
}
.border-beam-content {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    margin: 1px;
    border-radius: inherit;
    height: calc(100% - 2px);
}

/* FAQs Accordion styling */
.faq-accordion-custom {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.faq-item-custom {
    background: rgba(13, 17, 28, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item-custom.active {
    border-color: rgba(138, 43, 226, 0.3);
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.1);
    background: rgba(13, 17, 28, 0.6);
}
.faq-trigger-custom {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.faq-trigger-custom h4 {
    margin: 0;
    font-size: 1.15rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: #ffffff;
    transition: color 0.3s ease;
}
.faq-item-custom.active .faq-trigger-custom h4 {
    color: var(--color-secondary);
}
.faq-icon-custom {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}
.faq-item-custom.active .faq-icon-custom {
    transform: rotate(180deg);
    color: var(--color-secondary);
}
.faq-content-custom {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.faq-content-inner {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.96rem;
}

/* Client Dashboard Mockup styling */
.dashboard-mockup-wrapper {
    background: rgba(8, 10, 16, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 1.8rem;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.7),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
}
.dashboard-mockup-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 1.2rem;
    margin-bottom: 1.5rem;
}
.dashboard-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.dashboard-dot-red { background: #ff5f56; }
.dashboard-dot-yellow { background: #ffbd2e; }
.dashboard-dot-green { background: #27c93f; }

.dashboard-nav-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.dashboard-nav-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.dashboard-nav-btn.active {
    background: rgba(138, 43, 226, 0.15);
    color: #ffffff;
    border-color: rgba(138, 43, 226, 0.3);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.2);
}
.dashboard-panel-inner {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}
.dashboard-panel-inner.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.dashboard-card-mini {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 1.2rem;
}
.dashboard-metric-value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

/* Animated SVG Chart */
.svg-chart-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: svgChartDraw 3.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards infinite alternate;
}
@keyframes svgChartDraw {
    to { stroke-dashoffset: 0; }
}

/* Dynamic ROI Calculator widget styles */
.roi-calculator-wrapper {
    background: linear-gradient(135deg, rgba(14, 18, 30, 0.8), rgba(8, 10, 16, 0.95));
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 28px;
    padding: 3rem;
    box-shadow: 
        0 20px 50px rgba(0, 240, 255, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}
.roi-metric-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.01);
    border: 3px solid rgba(0, 240, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.05);
    transition: all 0.3s ease;
}
.roi-calculator-wrapper:hover .roi-metric-circle {
    border-color: var(--color-secondary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

/* ========================================================
   Light Theme: luminous studio glass
   ======================================================== */
html[data-media-theme="light"] body {
    background:
        linear-gradient(135deg, #f7faff 0%, #eef7ff 42%, #fff7fb 100%);
    color: var(--text-main);
}

html[data-media-theme="light"] body::before {
    background:
        radial-gradient(circle at 12% 18%, rgba(2, 132, 199, 0.16) 0%, transparent 42%),
        radial-gradient(circle at 88% 18%, rgba(219, 39, 119, 0.13) 0%, transparent 38%),
        radial-gradient(circle at 52% 78%, rgba(109, 40, 217, 0.14) 0%, transparent 46%);
    opacity: 1;
}

html[data-media-theme="light"] body::after {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
}

html[data-media-theme="light"] ::-webkit-scrollbar-track {
    background: #eaf2ff;
}

html[data-media-theme="light"] h1,
html[data-media-theme="light"] h2,
html[data-media-theme="light"] h3,
html[data-media-theme="light"] h4,
html[data-media-theme="light"] h5,
html[data-media-theme="light"] h6 {
    color: #0f172a;
}

html[data-media-theme="light"] .text-white {
    color: #0f172a !important;
}

html[data-media-theme="light"] .text-muted {
    color: var(--text-muted) !important;
}

html[data-media-theme="light"] .text-gradient {
    background: linear-gradient(135deg, #0f172a 8%, var(--color-secondary) 58%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

html[data-media-theme="light"] .navbar-media {
    background: rgba(255, 255, 255, 0.78) !important;
    border-bottom-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 16px 46px rgba(15, 23, 42, 0.08);
}

html[data-media-theme="light"] .navbar-media.scrolled {
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
    border-bottom-color: rgba(15, 23, 42, 0.12);
}

html[data-media-theme="light"] .navbar-media .nav-link {
    color: #586174 !important;
}

html[data-media-theme="light"] .navbar-media .nav-link:hover,
html[data-media-theme="light"] .navbar-media .nav-link.active {
    color: #0f172a !important;
}

html[data-media-theme="light"] .navbar-toggler {
    border-color: rgba(15, 23, 42, 0.16);
    background: rgba(255, 255, 255, 0.58);
}

html[data-media-theme="light"] .navbar-toggler-icon {
    filter: invert(1) grayscale(1);
}

html[data-media-theme="light"] .media-brand-mark {
    filter:
        drop-shadow(0 8px 18px rgba(2, 132, 199, 0.18))
        drop-shadow(0 0 8px rgba(109, 40, 217, 0.2));
}

html[data-media-theme="light"] .media-brand-name {
    background: linear-gradient(
        90deg,
        #071b55 0%,
        #0284c7 24%,
        #2563eb 44%,
        #6d28d9 66%,
        #db2777 84%,
        #071b55 100%
    );
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
}

html[data-media-theme="light"] .media-brand-subtitle {
    color: rgba(15, 23, 42, 0.64);
}

html[data-media-theme="light"] .theme-toggle-btn {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(239, 246, 255, 0.72));
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.75),
        0 12px 28px rgba(15, 23, 42, 0.1);
}

html[data-media-theme="light"] .theme-toggle-track {
    background:
        radial-gradient(circle at 72% 45%, rgba(251, 191, 36, 0.64), transparent 42%),
        linear-gradient(135deg, #dff4ff, #fff1f7);
    border-color: rgba(2, 132, 199, 0.18);
}

html[data-media-theme="light"] .theme-toggle-icon-dark {
    color: rgba(15, 23, 42, 0.35);
}

html[data-media-theme="light"] .theme-toggle-icon-light {
    color: #f59e0b;
}

html[data-media-theme="light"] .theme-toggle-thumb {
    transform: translateX(28px);
    background:
        radial-gradient(circle at 35% 30%, #ffffff 0%, #fde68a 44%, #f59e0b 100%);
    box-shadow:
        0 0 18px rgba(245, 158, 11, 0.42),
        0 3px 12px rgba(15, 23, 42, 0.18);
}

html[data-media-theme="light"] .theme-toggle-label {
    color: #0f172a;
}

html[data-media-theme="light"] .media-main-site-link {
    color: #0f172a;
    background:
        linear-gradient(135deg, rgba(0, 174, 255, 0.13), rgba(236, 72, 153, 0.1)),
        rgba(255, 255, 255, 0.78);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

html[data-media-theme="light"] .media-main-site-link:hover,
html[data-media-theme="light"] .media-main-site-link:focus {
    color: #0f172a;
    border-color: rgba(0, 174, 255, 0.32);
}

html[data-media-theme="light"] .hero-agency {
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.72) 0%, rgba(239, 246, 255, 0.52) 46%, rgba(236, 253, 255, 0.42) 100%);
}

html[data-media-theme="light"] .hero-agency::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 250, 255, 0.64) 36%, rgba(236, 253, 255, 0.2) 68%, rgba(255, 247, 251, 0.44) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 48%, var(--bg-dark) 100%);
}

html[data-media-theme="light"] .hero-bg-video-container {
    opacity: 0.34;
    filter: saturate(1.04) brightness(1.08) blur(0.1px);
}

html[data-media-theme="light"] .hero-title {
    text-shadow: 0 12px 34px rgba(15, 23, 42, 0.14);
}

html[data-media-theme="light"] .hero-subtitle {
    color: #3e4a5d;
}

html[data-media-theme="light"] .hero-tagline-ticker {
    background: rgba(255, 255, 255, 0.68);
    border-color: rgba(109, 40, 217, 0.18);
    color: #075985;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.8),
        0 12px 28px rgba(109, 40, 217, 0.1);
}

html[data-media-theme="light"] .btn-media-outline {
    color: #075985;
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(2, 132, 199, 0.74);
}

html[data-media-theme="light"] .btn-media-outline:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    border-color: transparent;
}

html[data-media-theme="light"] .glass-panel,
html[data-media-theme="light"] .service-card,
html[data-media-theme="light"] .service-checkcard,
html[data-media-theme="light"] .custom-range-slider-wrapper,
html[data-media-theme="light"] .faq-item-custom,
html[data-media-theme="light"] .dashboard-card-mini {
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(15, 23, 42, 0.11);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.82),
        0 18px 48px rgba(15, 23, 42, 0.08);
}

html[data-media-theme="light"] .glass-panel:hover,
html[data-media-theme="light"] .service-card:hover,
html[data-media-theme="light"] .service-checkcard:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(2, 132, 199, 0.2);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.9),
        0 24px 56px rgba(15, 23, 42, 0.12);
}

html[data-media-theme="light"] .bg-glass {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(239, 246, 255, 0.4) 100%);
    border-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-media-theme="light"] .border-glow {
    border-color: rgba(2, 132, 199, 0.22) !important;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.86),
        0 20px 52px rgba(109, 40, 217, 0.14),
        0 0 74px rgba(2, 132, 199, 0.1) !important;
}

html[data-media-theme="light"] .service-icon-box {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.18);
    color: #0369a1;
}

html[data-media-theme="light"] .portfolio-filter-btn {
    background: rgba(255, 255, 255, 0.66);
    border-color: rgba(15, 23, 42, 0.12);
    color: #526173;
}

html[data-media-theme="light"] .portfolio-filter-btn:hover {
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    border-color: rgba(2, 132, 199, 0.22);
}

html[data-media-theme="light"] .portfolio-filter-btn.active {
    color: #ffffff;
}

html[data-media-theme="light"] .portfolio-card {
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
}

html[data-media-theme="light"] .portfolio-card-overlay,
html[data-media-theme="light"] .portfolio-card-overlay h1,
html[data-media-theme="light"] .portfolio-card-overlay h2,
html[data-media-theme="light"] .portfolio-card-overlay h3,
html[data-media-theme="light"] .portfolio-card-overlay h4,
html[data-media-theme="light"] .portfolio-card-overlay h5,
html[data-media-theme="light"] .portfolio-card-overlay h6,
html[data-media-theme="light"] .portfolio-card-overlay .text-white {
    color: #ffffff !important;
}

html[data-media-theme="light"] .wizard-steps::before,
html[data-media-theme="light"] .custom-slider {
    background: rgba(15, 23, 42, 0.12);
}

html[data-media-theme="light"] .wizard-step-node {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.12);
    color: #526173;
}

html[data-media-theme="light"] .wizard-step-node.active,
html[data-media-theme="light"] .wizard-step-node.completed {
    color: #ffffff;
}

html[data-media-theme="light"] .service-checkcard.selected {
    background: rgba(2, 132, 199, 0.08);
    box-shadow:
        0 18px 42px rgba(2, 132, 199, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

html[data-media-theme="light"] .border-beam-content {
    background: rgba(255, 255, 255, 0.86);
}

html[data-media-theme="light"] .faq-item-custom.active {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(109, 40, 217, 0.2);
    box-shadow: 0 18px 42px rgba(109, 40, 217, 0.1);
}

html[data-media-theme="light"] .faq-trigger-custom h4 {
    color: #0f172a;
}

html[data-media-theme="light"] .dashboard-mockup-wrapper,
html[data-media-theme="light"] .roi-calculator-wrapper {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(239, 246, 255, 0.72));
    border-color: rgba(2, 132, 199, 0.16);
    box-shadow:
        0 24px 58px rgba(15, 23, 42, 0.12),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

html[data-media-theme="light"] .dashboard-mockup-header {
    border-bottom-color: rgba(15, 23, 42, 0.1);
}

html[data-media-theme="light"] .dashboard-nav-btn {
    color: #526173;
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.55);
}

html[data-media-theme="light"] .dashboard-nav-btn.active {
    background: rgba(109, 40, 217, 0.1);
    color: #4c1d95;
    border-color: rgba(109, 40, 217, 0.24);
}

html[data-media-theme="light"] .dashboard-metric-value {
    color: #0f172a;
}

html[data-media-theme="light"] .roi-metric-circle {
    background: rgba(255, 255, 255, 0.68);
    border-color: rgba(2, 132, 199, 0.18);
    box-shadow: inset 0 0 16px rgba(2, 132, 199, 0.08);
}

html[data-media-theme="light"] .form-media-control {
    background: rgba(255, 255, 255, 0.82) !important;
    border-color: rgba(15, 23, 42, 0.14) !important;
    color: #0f172a !important;
    box-shadow:
        inset 0 1px 2px rgba(15, 23, 42, 0.04),
        0 10px 24px rgba(15, 23, 42, 0.05) !important;
}

html[data-media-theme="light"] .form-media-control:focus {
    background: #ffffff !important;
    box-shadow:
        0 0 0 0.25rem rgba(2, 132, 199, 0.12),
        0 12px 28px rgba(2, 132, 199, 0.1) !important;
}

html[data-media-theme="light"] .form-media-control::placeholder {
    color: #8a97a8 !important;
}

html[data-media-theme="light"] .border-dashed {
    border-color: rgba(15, 23, 42, 0.16) !important;
}

html[data-media-theme="light"] .btn-neomorphic-secondary {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(15, 23, 42, 0.12);
    color: #075985;
    box-shadow:
        -3px -3px 8px rgba(255, 255, 255, 0.8),
        3px 3px 10px rgba(15, 23, 42, 0.1);
}

html[data-media-theme="light"] .btn-neomorphic-secondary:active,
html[data-media-theme="light"] .btn-neomorphic-secondary.active {
    color: #4c1d95;
    box-shadow:
        inset -2px -2px 6px rgba(255, 255, 255, 0.8),
        inset 2px 2px 6px rgba(15, 23, 42, 0.1);
}

html[data-media-theme="light"] .footer-media {
    background:
        linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(232, 242, 255, 0.98));
    border-top-color: rgba(15, 23, 42, 0.1);
    color: var(--text-muted);
}

html[data-media-theme="light"] .footer-title {
    color: #0f172a;
}

html[data-media-theme="light"] .social-icon-btn {
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(15, 23, 42, 0.12);
    color: #526173;
}

html[data-media-theme="light"] .social-icon-btn:hover {
    color: #ffffff;
}

html[data-media-theme="light"] .footer-bottom {
    border-top-color: rgba(15, 23, 42, 0.1);
}

@media (max-width: 991.98px) {
    .media-navbar-actions {
        align-items: flex-start !important;
        margin-top: 1rem;
    }
}

/* ========================================================
   Operational Division Cards & Detail Pages
   ======================================================== */
a.division-card-link {
    display: block;
    color: inherit;
    text-decoration: none !important;
    text-decoration-line: none !important;
    min-height: 100%;
}

a.division-card-link:hover,
a.division-card-link:focus,
a.division-card-link:visited {
    color: inherit;
    text-decoration: none !important;
    text-decoration-line: none !important;
}

a.division-card-link *,
a.division-card-link:hover *,
a.division-card-link:focus * {
    text-decoration: none !important;
    text-decoration-line: none !important;
}

.division-card-link .border-beam-content {
    display: flex;
    flex-direction: column;
}

.division-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    margin-top: 1.5rem;
    color: var(--color-secondary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: transform 0.25s ease, color 0.25s ease;
}

.division-card-link:hover .division-card-cta {
    color: var(--color-accent);
    transform: translateX(4px);
}

.division-detail-hero {
    --division-a: var(--color-secondary);
    --division-b: var(--color-primary);
    --division-c: var(--color-accent);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 11rem 0 5.5rem;
}

.division-hero-video-container {
    position: absolute;
    inset: 0;
    z-index: -4;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.34;
    background: #06080e;
}

.division-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04) brightness(0.84);
    transform: scale(1.025);
}

.division-detail-cinema .division-hero-video-container {
    opacity: 0.42;
}

.division-detail-performance {
    --division-a: #00f0ff;
    --division-b: #8a2be2;
    --division-c: #ec4899;
}

.division-detail-cinema {
    --division-a: #ec4899;
    --division-b: #8a2be2;
    --division-c: #00f0ff;
}

.division-detail-seo {
    --division-a: #00f0ff;
    --division-b: #22c55e;
    --division-c: #8a2be2;
}

.division-detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--division-a) 26%, transparent), transparent 38%),
        radial-gradient(circle at 84% 28%, color-mix(in srgb, var(--division-b) 24%, transparent), transparent 42%),
        radial-gradient(circle at 56% 78%, color-mix(in srgb, var(--division-c) 18%, transparent), transparent 45%),
        linear-gradient(135deg, rgba(6, 8, 14, 0.84), rgba(10, 13, 23, 0.76));
}

.division-detail-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.division-back-row {
    margin-bottom: 2rem;
}

.division-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.04em;
    transition: color 0.25s ease, transform 0.25s ease;
}

.division-back-link:hover {
    color: var(--color-secondary);
    transform: translateX(-4px);
}

.division-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    color: var(--division-a);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid color-mix(in srgb, var(--division-a) 34%, transparent);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.division-detail-title {
    max-width: 720px;
    margin: 1.4rem 0 1.4rem;
    font-size: clamp(3rem, 6vw, 6.2rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.division-detail-summary {
    max-width: 650px;
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.division-detail-copy {
    max-width: 650px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.division-detail-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.division-visual-shell {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    border-radius: 32px;
    padding: 1.3rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.018)),
        radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--division-a) 18%, transparent), transparent 45%);
    border: 1px solid var(--border-glass);
    box-shadow:
        0 34px 80px rgba(0, 0, 0, 0.38),
        inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.division-visual-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.6rem 0.8rem;
}

.division-visual-topline i {
    color: var(--division-a);
}

.division-radar-graphic {
    position: relative;
    min-height: 350px;
    margin: 1rem 0;
    border-radius: 26px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 18%),
        radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--division-a) 28%, transparent), transparent 46%),
        linear-gradient(135deg, rgba(5, 7, 12, 0.68), rgba(12, 16, 28, 0.86));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.division-radar-ring,
.division-radar-beam,
.division-radar-core,
.division-radar-node {
    position: absolute;
}

.division-radar-ring {
    inset: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid color-mix(in srgb, var(--division-a) 28%, transparent);
    border-radius: 50%;
}

.division-radar-ring-one {
    width: 120px;
    height: 120px;
}

.division-radar-ring-two {
    width: 220px;
    height: 220px;
}

.division-radar-ring-three {
    width: 320px;
    height: 320px;
}

.division-radar-beam {
    inset: 8%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, color-mix(in srgb, var(--division-a) 36%, transparent) 24deg, transparent 62deg);
    animation: divisionRadarSweep 8s linear infinite;
}

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

.division-radar-core {
    top: 50%;
    left: 50%;
    width: 86px;
    height: 86px;
    transform: translate(-50%, -50%);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--division-a), var(--division-b));
    box-shadow:
        0 0 34px color-mix(in srgb, var(--division-a) 48%, transparent),
        inset 0 1px 1px rgba(255, 255, 255, 0.34);
}

.division-radar-node {
    z-index: 2;
    padding: 0.48rem 0.74rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid color-mix(in srgb, var(--division-a) 28%, transparent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.division-radar-node:nth-of-type(1) {
    top: 9%;
    left: 50%;
    transform: translateX(-50%);
}

.division-radar-node:nth-of-type(2) {
    top: 32%;
    right: 6%;
}

.division-radar-node:nth-of-type(3) {
    right: 14%;
    bottom: 13%;
}

.division-radar-node:nth-of-type(4) {
    left: 10%;
    bottom: 14%;
}

.division-radar-node:nth-of-type(5) {
    top: 32%;
    left: 6%;
}

.division-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.division-metric-tile {
    min-height: 102px;
    border-radius: 20px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.division-metric-tile strong {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.55rem;
    line-height: 1;
}

.division-metric-tile span {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 0.45rem;
    line-height: 1.35;
}

.division-detail-section {
    padding: 5rem 0;
}

.division-module-card,
.division-process-panel,
.division-deliverables-panel,
.division-stack-panel,
.division-next-panel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        0 24px 56px rgba(0, 0, 0, 0.24);
}

.division-module-card {
    padding: 2.2rem;
}

.division-module-card::before,
.division-process-panel::before,
.division-deliverables-panel::before,
.division-stack-panel::before,
.division-next-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--color-secondary) 12%, transparent), transparent 42%);
}

.division-module-number {
    display: inline-flex;
    margin-bottom: 1.4rem;
    font-family: var(--font-heading);
    color: var(--color-secondary);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.division-module-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.9rem;
}

.division-module-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.division-scene-panel {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: 2.2rem;
    align-items: center;
}

.division-scene-copy {
    position: relative;
    padding: 1.4rem 0 1.4rem 1.5rem;
}

.division-scene-copy::before {
    content: '';
    position: absolute;
    top: 1.6rem;
    bottom: 1.6rem;
    left: 0;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--division-a), var(--division-b), var(--division-c));
    box-shadow: 0 0 22px color-mix(in srgb, var(--division-a) 32%, transparent);
}

.division-scene-copy h2 {
    max-width: 520px;
}

.division-scene-copy p {
    max-width: 520px;
    line-height: 1.75;
}

.division-scene-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-rows: repeat(2, minmax(190px, 1fr));
    gap: 1rem;
    min-height: 500px;
}

.division-scene-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    margin: 0;
    border-radius: 26px;
    background:
        radial-gradient(circle at 18% 16%, color-mix(in srgb, var(--division-a) 26%, transparent), transparent 34%),
        linear-gradient(135deg, color-mix(in srgb, var(--division-b) 28%, #070a12), #070a12 56%, color-mix(in srgb, var(--division-c) 22%, #070a12));
    border: 1px solid color-mix(in srgb, var(--division-a) 22%, var(--border-glass));
    box-shadow:
        0 24px 58px rgba(0, 0, 0, 0.24),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 34px color-mix(in srgb, var(--division-b) 13%, transparent);
}

.division-scene-card-featured {
    grid-row: span 2;
}

.division-scene-card img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transform: scale(1.01);
    opacity: 0.82;
    filter: saturate(0.96) contrast(1.08) brightness(0.86);
    mix-blend-mode: normal;
    transition: transform 0.55s ease, filter 0.55s ease, opacity 0.55s ease;
}

.division-scene-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to top, rgba(6, 8, 14, 0.9), rgba(6, 8, 14, 0.26) 54%, rgba(6, 8, 14, 0.04)),
        linear-gradient(135deg, color-mix(in srgb, var(--division-a) 42%, transparent), transparent 42%),
        linear-gradient(315deg, color-mix(in srgb, var(--division-c) 36%, transparent), transparent 48%);
}

.division-scene-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.16) 44%, transparent 70%),
        radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--division-b) 42%, transparent), transparent 40%),
        radial-gradient(circle at 14% 88%, color-mix(in srgb, var(--division-a) 32%, transparent), transparent 42%);
    opacity: 0.62;
    mix-blend-mode: screen;
    transition: opacity 0.35s ease, transform 0.55s ease;
}

.division-scene-card:hover img {
    transform: scale(1.06);
    opacity: 0.94;
    filter: saturate(1.08) contrast(1.08) brightness(0.92);
}

.division-scene-card:hover::after {
    opacity: 0.88;
    transform: translateX(2%);
}

.division-scene-card figcaption {
    position: absolute;
    z-index: 2;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 1.1rem;
    display: grid;
    gap: 0.5rem;
}

.division-scene-card figcaption span {
    width: fit-content;
    padding: 0.34rem 0.58rem;
    border-radius: 999px;
    color: var(--division-a);
    background: rgba(6, 8, 14, 0.68);
    border: 1px solid color-mix(in srgb, var(--division-a) 34%, transparent);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.division-scene-card figcaption strong {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.18;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.division-process-panel,
.division-deliverables-panel,
.division-stack-panel,
.division-next-panel {
    padding: 2.4rem;
}

.division-process-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.division-process-list li {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.division-process-list span {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    font-weight: 900;
}

.division-process-list p {
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

.division-deliverables-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.95rem;
}

.division-deliverables-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: var(--text-main);
    line-height: 1.55;
}

.division-deliverables-list i {
    color: var(--color-secondary);
    font-size: 1.1rem;
    margin-top: 0.12rem;
}

.division-stack-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
    gap: 2rem;
    align-items: center;
}

.division-stack-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-end;
}

.division-stack-cloud span {
    display: inline-flex;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border-glass);
    font-weight: 800;
    font-size: 0.86rem;
}

.division-next-card {
    min-height: 104px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 24px;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem;
    border-radius: 20px;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.division-next-card:hover {
    color: inherit;
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--color-secondary) 38%, transparent);
    background: rgba(255, 255, 255, 0.07);
}

.division-next-card > i:first-child {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    background: rgba(0, 240, 255, 0.08);
}

.division-next-card strong,
.division-next-card small {
    display: block;
}

.division-next-card strong {
    color: var(--text-main);
    font-family: var(--font-heading);
}

.division-next-card small {
    color: var(--text-muted);
    margin-top: 0.2rem;
}

html[data-media-theme="light"] .division-detail-hero::before {
    background:
        radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--division-a) 18%, transparent), transparent 38%),
        radial-gradient(circle at 84% 28%, color-mix(in srgb, var(--division-b) 16%, transparent), transparent 42%),
        radial-gradient(circle at 56% 78%, color-mix(in srgb, var(--division-c) 14%, transparent), transparent 45%),
        linear-gradient(135deg, rgba(248, 251, 255, 0.82), rgba(239, 246, 255, 0.74));
}

html[data-media-theme="light"] .division-hero-video-container {
    opacity: 0.2;
}

html[data-media-theme="light"] .division-hero-video {
    filter: saturate(0.94) contrast(0.94) brightness(1.08);
}

html[data-media-theme="light"] .division-detail-hero::after {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

html[data-media-theme="light"] .division-kicker,
html[data-media-theme="light"] .division-module-card,
html[data-media-theme="light"] .division-process-panel,
html[data-media-theme="light"] .division-deliverables-panel,
html[data-media-theme="light"] .division-stack-panel,
html[data-media-theme="light"] .division-next-panel {
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.86),
        0 22px 52px rgba(15, 23, 42, 0.08);
}

html[data-media-theme="light"] .division-detail-summary,
html[data-media-theme="light"] .division-metric-tile strong,
html[data-media-theme="light"] .division-radar-node,
html[data-media-theme="light"] .division-radar-core {
    color: #0f172a;
}

html[data-media-theme="light"] .division-visual-shell {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(239, 246, 255, 0.58)),
        radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--division-a) 14%, transparent), transparent 45%);
    box-shadow:
        0 28px 72px rgba(15, 23, 42, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

html[data-media-theme="light"] .division-radar-graphic {
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.9), transparent 18%),
        radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--division-a) 18%, transparent), transparent 46%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(239, 246, 255, 0.86));
    border-color: rgba(15, 23, 42, 0.08);
}

html[data-media-theme="light"] .division-radar-core {
    color: #ffffff;
}

html[data-media-theme="light"] .division-radar-node,
html[data-media-theme="light"] .division-metric-tile,
html[data-media-theme="light"] .division-process-list li,
html[data-media-theme="light"] .division-stack-cloud span,
html[data-media-theme="light"] .division-next-card {
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(15, 23, 42, 0.1);
}

html[data-media-theme="light"] .division-next-card:hover {
    background: rgba(255, 255, 255, 0.94);
}

html[data-media-theme="light"] .division-scene-copy::before {
    box-shadow: 0 0 18px color-mix(in srgb, var(--division-a) 24%, transparent);
}

html[data-media-theme="light"] .division-scene-card {
    background:
        radial-gradient(circle at 18% 16%, color-mix(in srgb, var(--division-a) 20%, transparent), transparent 34%),
        linear-gradient(135deg, color-mix(in srgb, var(--division-b) 18%, #ffffff), #ffffff 58%, color-mix(in srgb, var(--division-c) 16%, #ffffff));
    border-color: color-mix(in srgb, var(--division-a) 18%, rgba(15, 23, 42, 0.11));
    box-shadow:
        0 22px 52px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.68) inset;
}

html[data-media-theme="light"] .division-scene-card img {
    opacity: 0.84;
    filter: saturate(0.92) contrast(1.04) brightness(1);
}

html[data-media-theme="light"] .division-scene-card::before {
    background:
        linear-gradient(to top, rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.18) 58%, rgba(255, 255, 255, 0.04)),
        linear-gradient(135deg, color-mix(in srgb, var(--division-a) 34%, transparent), transparent 38%),
        linear-gradient(315deg, color-mix(in srgb, var(--division-c) 30%, transparent), transparent 42%);
}

html[data-media-theme="light"] .division-scene-card::after {
    opacity: 0.42;
}

@media (max-width: 991.98px) {
    .division-detail-hero {
        padding-top: 9.5rem;
    }

    .division-visual-shell {
        min-height: 500px;
    }

    .division-stack-panel {
        grid-template-columns: 1fr;
    }

    .division-stack-cloud {
        justify-content: flex-start;
    }

    .division-scene-panel {
        grid-template-columns: 1fr;
    }

    .division-scene-grid {
        min-height: 440px;
    }
}

@media (max-width: 575.98px) {
    .division-detail-hero {
        padding-top: 8.5rem;
    }

    .division-detail-title {
        font-size: clamp(2.35rem, 13vw, 4rem);
    }

    .division-detail-summary {
        font-size: 1.05rem;
    }

    .division-visual-shell,
    .division-process-panel,
    .division-deliverables-panel,
    .division-stack-panel,
    .division-next-panel {
        padding: 1.25rem;
        border-radius: 24px;
    }

    .division-radar-graphic {
        min-height: 310px;
    }

    .division-radar-ring-three {
        width: 260px;
        height: 260px;
    }

    .division-radar-node {
        font-size: 0.64rem;
        padding: 0.42rem 0.58rem;
    }

    .division-metric-grid {
        grid-template-columns: 1fr;
    }

    .division-process-list li {
        grid-template-columns: 1fr;
    }

    .division-scene-copy {
        padding-left: 1.1rem;
    }

    .division-scene-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        min-height: 0;
    }

    .division-scene-card,
    .division-scene-card-featured {
        grid-row: auto;
        min-height: 260px;
        border-radius: 22px;
    }
}
