:root {
    --accent: #4f46e5;
    --accent-glow: rgba(79, 70, 229, 0.4);
    --accent-glow-strong: rgba(79, 70, 229, 0.7);
    --text-main: #ffffff;
    --text-dim: #a1a1aa;
    --bg-dark: #0a0a0a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Wrappers */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0a0a0a 100%);
}

.glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
    z-index: 0;
}

/* Global Sticky Header Navigation Bar */
header.nav-bar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-15px);
    width: 90%;
    max-width: 1000px;
    z-index: 100;
    background: rgba(10, 10, 10, 0.45);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

header.nav-bar.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
    gap: 0.75rem;
}

.nav-brand img {
    height: 32px;
    width: 32px;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--text-main);
}

/* Dropdown Menu for Services */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0.75rem;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    z-index: 101;
    /* Hidden via visibility/opacity, NOT display:none,
       so the element stays in the DOM and can be hovered */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}


.nav-dropdown:hover .nav-dropdown-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.nav-dropdown-item {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-dropdown-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    padding-left: 1.25rem;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* Layout Sections */
section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem 4rem;
    position: relative;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 72px);
    padding-top: 2rem;
    padding-bottom: 12vh;
    flex-direction: column;
    text-align: center;
}

.logo-img {
    width: 110px;
    height: 110px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px var(--accent-glow));
    animation: pulse 4s infinite ease-in-out;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(to right, #ffffff, #d4d4d8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.hero p.subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.35rem;
    font-weight: 400;
}

/* Service Detail Articles */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    min-height: 80vh;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 4rem;
    margin-bottom: 4rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.category-tag {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.glass-panel h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 2rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    max-width: 800px;
    line-height: 1.8;
}

/* Pillar Grids */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.pillar {
    border-left: 2px solid var(--accent);
    padding: 0.5rem 0 0.5rem 1.5rem;
    transition: border-color 0.3s;
}

.pillar h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.pillar p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* Spec Boxes */
.spec-box {
    background: rgba(255, 255, 255, 0.015);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.spec-box h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.spec-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.spec-list li {
    color: var(--text-dim);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.spec-list li::before {
    content: "→";
    color: var(--accent);
    margin-right: 12px;
    font-weight: bold;
}

/* Grid of Cards on Landing Page */
.content-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    z-index: 2;
    padding: 2rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.glass-card h2 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--accent);
    letter-spacing: -0.5px;
    font-weight: 700;
}

.glass-card p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-dim);
    font-size: 0.75rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    opacity: 0;
    text-decoration: none;
    animation: fadeIn 0.4s ease-out 0.3s forwards, bounce 2s infinite 1.8s;
}

/* Footer Section */
footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    to {
        opacity: 0.5;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px var(--accent-glow));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 30px var(--accent-glow-strong));
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Rules */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 1.5rem 2rem;
        gap: 1.5rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0.5rem 0 0 1rem;
        display: flex;
        transform: none;
        /* Override desktop visibility hiding — always shown on mobile */
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transition: none;
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    .nav-dropdown-item:hover {
        padding-left: 1rem;
    }

    .content-container {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }

    .hero {
        padding-bottom: 5vh;
    }

    .glass-panel {
        padding: 2.5rem 1.5rem;
        margin-bottom: 2rem;
        border-radius: 24px;
    }

    .spec-list {
        grid-template-columns: 1fr;
    }
}

/* Custom Dropdown Navigation Category */
.dropdown-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    color: var(--accent);
    padding: 0.6rem 1rem 0.2rem;
    font-weight: 700;
    display: block;
}

/* Back Button for Service Pages */
.back-btn {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.back-btn:hover {
    color: var(--accent);
    transform: translateX(-5px);
}

/* Three-Pillar Grid Layout */
.pillars-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    z-index: 2;
    padding: 2rem;
}

.pillar-card {
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Coloured Glass Tints for Pillars */
.pillar-card.pillar-strategy {
    --pillar-accent: #4f46e5;
    --pillar-glow: rgba(79, 70, 229, 0.15);
    background: rgba(79, 70, 229, 0.02);
    border-color: rgba(79, 70, 229, 0.15);
}

.pillar-card.pillar-strategy:hover {
    border-color: var(--pillar-accent);
    background: rgba(79, 70, 229, 0.04);
    box-shadow: 0 30px 60px rgba(79, 70, 229, 0.25);
    transform: translateY(-6px);
}

.pillar-card.pillar-software {
    --pillar-accent: #06b6d4;
    --pillar-glow: rgba(6, 182, 212, 0.15);
    background: rgba(6, 182, 212, 0.02);
    border-color: rgba(6, 182, 212, 0.15);
}

.pillar-card.pillar-software:hover {
    border-color: var(--pillar-accent);
    background: rgba(6, 182, 212, 0.04);
    box-shadow: 0 30px 60px rgba(6, 182, 212, 0.25);
    transform: translateY(-6px);
}

.pillar-card.pillar-media {
    --pillar-accent: #d946ef;
    --pillar-glow: rgba(217, 70, 239, 0.15);
    background: rgba(217, 70, 239, 0.02);
    border-color: rgba(217, 70, 239, 0.15);
}

.pillar-card.pillar-media:hover {
    border-color: var(--pillar-accent);
    background: rgba(217, 70, 239, 0.04);
    box-shadow: 0 30px 60px rgba(217, 70, 239, 0.25);
    transform: translateY(-6px);
}

.pillar-title {
    font-size: 1.8rem;
    color: #ffffff;
    margin: 1.5rem 0 0.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-align: center;
}

.pillar-subtitle {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}

.pillar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
    width: 100%;
}

.pillar-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pillar-link-item {
    display: flex;
    flex-direction: column;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    min-height: 110px;
    justify-content: center;
}

.pillar-link-item:hover {
    background: rgba(255, 255, 255, 0.025);
    border-color: var(--pillar-accent);
    padding-left: 1.5rem;
}

.pillar-link-item .link-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    transition: color 0.3s;
}

.pillar-link-item:hover .link-title {
    color: var(--pillar-accent);
}

.pillar-link-item .link-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.4;
}

.pillar-link-item .link-arrow {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pillar-accent);
    font-size: 1.2rem;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.pillar-link-item:hover .link-arrow {
    opacity: 1;
    right: 1rem;
    transform: translateY(-50%) translateX(4px);
}

/* Case Study Carousel track and styling */
.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    margin-top: 2rem;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: carousel-scroll 250s linear infinite;
}

.carousel-wrapper:hover .carousel-track {
    animation-play-state: paused;
}

@keyframes carousel-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.carousel-card {
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.8rem;
    width: 460px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: left;
    text-decoration: none !important;
    color: inherit;
}

.carousel-card:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    text-decoration: none !important;
}

.carousel-tag {
    font-size: 0.65rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05rem;
    margin-bottom: 0.5rem;
    text-decoration: none !important;
}

.carousel-card h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-decoration: none !important;
}

.carousel-card p {
    text-decoration: none !important;
}

.carousel-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* Modal detail overlays */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Capacity forms and fields */
.capacity-form-container {
    margin-top: 2.5rem;
    width: 100%;
    max-width: 500px;
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.form-input,
.form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit-btn {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-submit-btn:hover {
    background: #4338ca;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

/* SVG Animations */
.pillar-svg {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.anim-rotate {
    animation: spin 12s linear infinite;
}

.anim-draw-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw 4s ease-in-out infinite alternate;
}

.anim-pulse-dot {
    animation: pulse-dot 2s infinite ease-in-out;
}

.anim-node {
    animation: pulse-node 3s infinite ease-in-out alternate;
}

.anim-packet-1 {
    animation: packet-pulse 1.5s infinite ease-in-out;
}

.anim-packet-2 {
    animation: packet-pulse 1.5s infinite 0.5s ease-in-out;
}

.anim-packet-3 {
    animation: packet-pulse 1.5s infinite 1s ease-in-out;
}

.anim-wave-accent {
    animation: wave-motion 4s infinite ease-in-out alternate;
    transform-origin: center;
}

.anim-wave {
    animation: wave-motion 6s infinite ease-in-out alternate;
    transform-origin: center;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

@keyframes pulse-node {
    0% {
        fill: rgba(255, 255, 255, 0.15);
        stroke: var(--accent);
    }

    100% {
        fill: rgba(79, 70, 229, 0.4);
        stroke: #ffffff;
    }
}

@keyframes packet-pulse {

    0%,
    100% {
        r: 1px;
        opacity: 0.3;
    }

    50% {
        r: 3px;
        opacity: 1;
    }
}

@keyframes wave-motion {
    0% {
        transform: scaleY(0.7) skewX(-2deg);
    }

    100% {
        transform: scaleY(1.2) skewX(2deg);
    }
}

/* Adjust Responsive for Pillars */
@media (max-width: 1024px) {
    .pillars-container {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        gap: 1.5rem;
    }
}

.nav-client-login {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, rgba(124, 58, 237, 0.1) 100%);
    color: #ffffff !important;
    padding: 0.6rem 1.4rem !important;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.15);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none !important;
}

.nav-client-login:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.35) 0%, rgba(124, 58, 237, 0.25) 100%);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35), 0 0 10px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    text-decoration: none !important;
}


.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 2rem auto 4rem;
    max-width: 1000px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--accent);
    color: #ffffff;
    background: rgba(79, 70, 229, 0.15);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.case-card {
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.case-card:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.025);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.case-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.case-card h3 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.case-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.case-card .read-more {
    margin-top: auto;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.3s;
}

.case-card:hover .read-more {
    gap: 0.5rem;
}

.dcs-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: color .3s;
    position: relative;
    padding: 10px 0;
}

.dcs-link::before {
    content: '';
    position: absolute;
    left: -20px;
    right: -20px;
    top: -20px;
    bottom: -20px;
    z-index: -1;
}

.dcs-link:hover {
    color: #000;
}

.dcs-logo {
    height: 20px;
    width: 20px;
    margin-right: 8px;
    object-fit: contain;
    border-radius: 4px;
    transition: transform .4s ease, border-radius .2s ease, mask-image .2s ease, -webkit-mask-image .2s ease;
}

.dcs-text-container {
    display: inline-flex;
    align-items: center;
    position: relative;
    pointer-events: none;
}

.dcs-word {
    font-weight: 600;
    position: absolute;
    left: 0;
    white-space: nowrap;
    transition: opacity .3s ease, transform .3s ease;
}

.dcs-remainder {
    white-space: pre;
    transition: margin-left .5s cubic-bezier(0.25, 1, 0.5, 1);
}

.dcs-link.dcs-dark {
    color: #eee;
}

.dcs-link.dcs-dark:hover {
    color: #fff;
}

.dcs-link.dcs-dark .dcs-logo {
    background-color: rgba(255, 255, 255, 0.1);
}


.portal-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    align-items: center;
}

.features-showcase {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.025);
    transform: translateX(5px);
}

.feature-icon-wrapper {
    background: rgba(79, 70, 229, 0.1);
    color: var(--accent);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.feature-text h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-text p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
}

.login-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    position: relative;
}

.login-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.login-card .subtitle {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.2);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, rgba(79, 70, 229, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
    filter: brightness(1.1);
}

.error-banner {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-align: left;
}

@media (max-width: 900px) {
    .portal-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 8rem;
    }

    .features-showcase {
        order: 2;
    }

    .login-card {
        order: 1;
    }
}

/* --- Inline Style Replacements (SEO Optimization) --- */

#services {
    flex-direction: column;
    min-height: auto;
    padding: 8rem 2rem 4rem;
}

.section-header {
    text-align: center;
    padding: 0 1rem 4rem;
    max-width: 950px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-subtitle {
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-dim);
    font-size: 1.2rem;
    line-height: 1.9;
}

.why-us {
    min-height: auto;
    padding: 6rem 2rem;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.why-us-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
}

.why-us-text {
    flex: 1 1 450px;
}

.why-us-description {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.why-us-card {
    flex: 1 1 350px;
    background: rgba(10, 10, 10, 0.45);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.why-us-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.why-us-list-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.why-us-checkmark {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.why-us-item-text {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.95rem;
}

#case-studies {
    flex-direction: column;
    min-height: auto;
    padding: 6rem 2rem;
    text-align: center;
}

.case-studies-header {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.view-all-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    border-color: var(--accent);
    background: rgba(79, 70, 229, 0.1);
}

#faq {
    flex-direction: column;
    min-height: auto;
    padding: 6rem 2rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 4rem;
    width: 100%;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.faq-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
}

.faq-question {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.faq-answer {
    color: var(--text-dim);
    line-height: 1.7;
    font-size: 0.95rem;
}

#contact {
    padding-bottom: 8rem;
}

.contact-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.contact-card {
    text-align: center;
    align-items: center;
    max-width: 600px;
    width: 100%;
    border-radius: 28px;
    padding: 3rem;
}

.contact-description {
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: var(--text-dim);
}

.form-error-text {
    display: none;
    margin-top: 1.5rem;
    color: #ef4444;
    font-weight: 600;
    font-style: italic;
    font-size: 0.95rem;
}

.form-success-text {
    display: none;
    margin-top: 1.5rem;
    color: #34d399;
    font-weight: 600;
    font-style: italic;
    font-size: 0.95rem;
}