/* ====================================================
   KRADS DIGITAL AGENCY - Cyber-Ops Redesign Stylesheet
   Theme: HUD Dashboard, Scanline Atmosphere, Gold Trims
   ==================================================== */

/* --- HUD MONITORS & BRACKETS --- */
.hud-monitor-panel {
    position: relative;
    background: rgba(10, 10, 15, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* scanlines animation overlay */
.hud-monitor-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 6px 100%;
    z-index: 5;
    pointer-events: none;
    opacity: 0.7;
}

.hud-brackets span {
    position: absolute;
    width: 15px;
    height: 15px;
    border-color: var(--k-accent);
    border-style: solid;
    z-index: 10;
}

.br-tl { top: 15px; left: 15px; border-width: 2px 0 0 2px; }
.br-tr { top: 15px; right: 15px; border-width: 2px 2px 0 0; }
.br-bl { bottom: 15px; left: 15px; border-width: 0 0 2px 2px; }
.br-br { bottom: 15px; right: 15px; border-width: 0 2px 2px 0; }

.hud-status-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    z-index: 6;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.green {
    background: #00e676;
    box-shadow: 0 0 10px #00e676;
    animation: blink 1.5s infinite alternate;
}

@keyframes blink {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.status-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1.5px;
}

.hud-image-wrapper {
    width: 100%;
    height: 280px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hud-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%) contrast(110%);
    mix-blend-mode: luminosity;
    opacity: 0.85;
}

.hud-stats-overlay {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    position: relative;
    z-index: 6;
}

.hud-stat-pill {
    background: rgba(255, 222, 89, 0.05);
    border: 1px solid rgba(255, 222, 89, 0.15);
    padding: 6px 12px;
    border-radius: 4px;
    color: var(--k-accent);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.hud-stat-pill.font-mono {
    font-family: monospace;
}

/* --- PARTNER & PLATFORM NETWORK --- */
.partner-network-section {
    padding: 100px 0;
    background: #030305;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.partner-network-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 128, 255, 0.02) 0%, rgba(255, 222, 89, 0.015) 60%, transparent 100%);
    filter: blur(100px);
    z-index: 1;
    pointer-events: none;
}

.partner-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.partner-badge-card {
    background: rgba(12, 12, 16, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 45px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.partner-badge-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.partner-badge-card.meta-blue-border:hover {
    border-color: rgba(0, 128, 255, 0.25);
}

.partner-badge-card.google-gold-border:hover {
    border-color: rgba(255, 222, 89, 0.25);
}

.badge-header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
}

.badge-glow-effect {
    position: absolute;
    width: 200px;
    height: 80px;
    filter: blur(20px);
    opacity: 0.45;
    z-index: 1;
    border-radius: 50%;
    animation: badgePulse 4s infinite alternate ease-in-out;
}

.blue-glow {
    background: radial-gradient(circle, rgba(0, 128, 255, 0.2) 0%, transparent 70%);
}

.gold-glow {
    background: radial-gradient(circle, rgba(255, 222, 89, 0.2) 0%, transparent 70%);
}

@keyframes badgePulse {
    0% { transform: scale(0.9); opacity: 0.35; }
    100% { transform: scale(1.1); opacity: 0.55; }
}

.partner-img {
    height: 65px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.partner-badge-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.partner-badge-card p {
    color: var(--k-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.badge-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.badge-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    font-weight: 550;
}

.badge-bullets li i {
    color: var(--k-accent);
    font-size: 0.88rem;
}

.partner-badge-card.meta-blue-border li i {
    color: #0080ff;
}

/* Ecosystem platform items list */
.ecosystem-mini-wrapper {
    text-align: center;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 50px;
    position: relative;
    z-index: 2;
}

/* --- REDESIGNED INTEGRATED PLATFORM ECOSYSTEM --- */
.ecosystem-mini-wrapper {
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 50px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.eco-mini-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--k-accent, #ffd700);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.eco-pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--k-accent, #ffd700);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--k-accent, #ffd700);
    animation: ecoPulse 2s infinite ease-in-out;
}

@keyframes ecoPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.3); }
}

.eco-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.eco-subtitle {
    font-size: 0.9rem;
    color: var(--k-text-muted, #94a3b8);
    max-width: 620px;
    margin: 0 auto 35px auto;
    line-height: 1.5;
}

.eco-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 860px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .eco-mini-grid {
        grid-template-columns: 1fr;
    }
}

/* --- AUDIT NICHE SELECTION STYLING --- */
.niche-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 12px;
    margin-bottom: 28px;
}

.audit-btn-wrapper {
    margin-top: 32px !important;
}

@media (max-width: 900px) {
    .niche-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .niche-grid {
        grid-template-columns: 1fr;
    }
}

.niche-card {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.niche-card i {
    font-size: 1.3rem;
    color: var(--k-accent, #ffd700);
    transition: transform 0.3s ease;
}

.niche-card:hover {
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
}

.niche-card.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.18) 0%, rgba(255, 170, 0, 0.08) 100%);
    border-color: var(--k-accent, #ffd700);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.25);
}

.niche-card.active i {
    transform: scale(1.15);
}

/* Custom Styled Select HUD */
.form-select-hud {
    width: 100%;
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    padding: 14px 18px !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffd700' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.form-select-hud:focus {
    border-color: var(--k-accent, #ffd700) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2) !important;
}

.eco-mini-card {
    position: relative;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    overflow: hidden;
}

.eco-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(var(--brand-rgb), 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.eco-mini-card:hover .eco-card-glow {
    opacity: 1;
}

.eco-mini-card:hover {
    border-color: rgba(var(--brand-rgb), 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -8px rgba(var(--brand-rgb), 0.35);
    background: rgba(20, 30, 55, 0.85);
}

.eco-icon-wrapper {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--brand-color);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.35s ease;
}

.eco-mini-card:hover .eco-icon-wrapper {
    background: rgba(var(--brand-rgb), 0.15);
    border-color: rgba(var(--brand-rgb), 0.4);
    transform: scale(1.1);
}

.eco-card-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.eco-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.eco-status {
    font-size: 0.72rem;
    color: var(--k-text-muted, #94a3b8);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.eco-status i {
    font-size: 0.4rem;
    color: var(--brand-color);
    opacity: 0.8;
}

/* --- INTERACTIVE WEAPONS ARSENAL GRID --- */
.services-grid-hud {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card-hud {
    background: rgba(12, 12, 16, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 40px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 1;
    transform: none;
}

.service-card-hud.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Stagger each card */
.service-card-hud:nth-child(1).revealed { transition-delay: 0s; }
.service-card-hud:nth-child(2).revealed { transition-delay: 0.1s; }
.service-card-hud:nth-child(3).revealed { transition-delay: 0.2s; }
.service-card-hud:nth-child(4).revealed { transition-delay: 0.3s; }
.service-card-hud:nth-child(5).revealed { transition-delay: 0.4s; }
.service-card-hud:nth-child(6).revealed { transition-delay: 0.5s; }

/* scanline lines pattern in backgrounds */
.service-card-hud::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

.card-hud-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--k-accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.service-card-hud:hover .card-hud-glow,
.service-card-hud.active .card-hud-glow {
    opacity: 1;
}

.service-card-hud:hover {
    border-color: rgba(255, 222, 89, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.service-card-hud.active {
    border-color: var(--k-accent);
    box-shadow: 0 15px 35px rgba(255, 222, 89, 0.06);
}

.card-hud-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.card-hud-icon {
    font-size: 1.8rem;
    color: var(--k-accent);
    filter: drop-shadow(0 0 5px rgba(255, 222, 89, 0.2));
}

.card-hud-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.card-hud-desc {
    color: var(--k-text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.card-hud-trigger {
    font-family: monospace;
    font-size: 0.72rem;
    color: var(--k-accent);
    letter-spacing: 1px;
    font-weight: 700;
    position: relative;
    z-index: 2;
    transition: letter-spacing 0.3s ease;
}

.service-card-hud:hover .card-hud-trigger {
    letter-spacing: 1.5px;
}

.service-card-hud.active .card-hud-trigger {
    color: rgba(255, 255, 255, 0.4);
    content: '[ CLICK TO COLLAPSE ]';
}

/* Sliding detail tray */
.card-details-tray {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    margin-top: 20px;
    padding-top: 0;
    position: relative;
    z-index: 2;
}

.service-card-hud.active .card-details-tray {
    padding-top: 20px;
}

.card-details-tray ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-details-tray li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
}

.card-details-tray li i {
    color: var(--k-accent);
    font-size: 0.7rem;
}

/* --- THE DEPLOYMENT SEQUENCE (ALTERNATING VERTICAL TIMELINE) --- */
.process-timeline {
    position: relative;
    max-width: 960px;
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0;
}

.timeline-line {
    position: absolute;
    top: 60px;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    z-index: 1;
}

.timeline-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0%;
    background: linear-gradient(180deg, var(--k-accent) 0%, #ffde59 80%, #ffffff 100%);
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(255, 222, 89, 0.8);
    will-change: height;
}

.timeline-line-fill::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--k-accent);
    box-shadow: 0 0 12px 3px var(--k-accent);
}

/* Portfolio Reveal transition */
.portfolio-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.portfolio-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

.timeline-step {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 120px;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-step.revealed {
    opacity: 1;
    transform: translateY(0);
}

.timeline-step:nth-child(2).revealed { transition-delay: 0.1s; }
.timeline-step:nth-child(3).revealed { transition-delay: 0.25s; }
.timeline-step:nth-child(4).revealed { transition-delay: 0.4s; }
.timeline-step:nth-child(5).revealed { transition-delay: 0.55s; }

.step-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #09090c;
    border: 2px solid rgba(255, 222, 89, 0.3);
    color: var(--k-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    z-index: 4;
    box-shadow: 0 0 20px rgba(255, 222, 89, 0.08);
    transition: all 0.3s ease;
}

.timeline-step:hover .step-badge,
.timeline-step.revealed .step-badge {
    border-color: var(--k-accent);
    background: #0d0d12;
    box-shadow: 0 0 25px rgba(255, 222, 89, 0.3);
}

.step-content {
    width: calc(50% - 50px);
    background: rgba(15, 15, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 24px 28px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Left-aligned steps (01, 03 -> nth-child 2, 4) */
.timeline-step:nth-child(even) .step-content {
    margin-right: auto;
    margin-left: 0;
    text-align: right;
}

.timeline-step:nth-child(even) .step-content-header {
    justify-content: flex-end;
}

/* Right-aligned steps (02, 04 -> nth-child 3, 5) */
.timeline-step:nth-child(odd) .step-content {
    margin-left: auto;
    margin-right: 0;
    text-align: left;
}

.timeline-step:nth-child(odd) .step-content-header {
    justify-content: flex-start;
}

.step-content-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.step-content-header i {
    font-size: 1.2rem;
    color: var(--k-accent);
}

.step-content-header h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.step-content p {
    color: var(--k-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.timeline-step:nth-child(even):hover .step-content {
    border-color: rgba(255, 222, 89, 0.2);
    background: rgba(15, 15, 20, 0.75);
    transform: translateX(-6px);
}

.timeline-step:nth-child(odd):hover .step-content {
    border-color: rgba(255, 222, 89, 0.2);
    background: rgba(15, 15, 20, 0.75);
    transform: translateX(6px);
}

.step-content-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.step-content-header i {
    font-size: 1.2rem;
    color: var(--k-accent);
}

.step-content-header h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.step-content p {
    color: var(--k-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.timeline-step:hover .step-content i {
    color: var(--k-accent);
}

.step-content h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.step-content p {
    color: var(--k-text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* --- VICTORIES: PORTFOLIO --- */
.portfolio-grid-redesign {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-card-redesign {
    background: rgba(15, 15, 20, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-card-redesign:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-img-wrapper {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card-redesign:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-metric-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--k-accent);
    color: #000;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 222, 89, 0.3);
}

.card-details {
    padding: 30px;
}

.card-protocol {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--k-accent);
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 12px;
}

.card-details h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-details p {
    color: var(--k-text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.card-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.card-link i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.card-link:hover {
    color: var(--k-accent);
}

.card-link:hover i {
    transform: translateX(4px);
}

/* --- CALL TO ACTION --- */
.cta-box-outline {
    background: radial-gradient(circle at center, rgba(255, 222, 89, 0.025) 0%, transparent 80%);
    border: 1px dashed rgba(255, 222, 89, 0.2);
    border-radius: 16px;
    padding: 80px 40px;
    margin-top: 100px !important;
    position: relative;
    overflow: hidden;
}

.cta-box-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    pointer-events: none;
}

/* ====================================================
   RESPONSIVENESS OVERRIDES
   ==================================================== */
@media (max-width: 1024px) {
    .partner-cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .services-grid-hud {
        grid-template-columns: 1fr 1fr;
    }
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .timeline-line {
        display: none; /* Hide timeline connector line on grid wrap */
    }
    .portfolio-grid-redesign {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .partner-badge-card {
        padding: 30px 20px;
    }
    .services-grid-hud {
        grid-template-columns: 1fr;
    }
    .portfolio-grid-redesign {
        grid-template-columns: 1fr;
    }
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .eco-mini-grid {
        gap: 15px;
    }
}

/* --- Interactive Partner Badge Card & Benefits Modal --- */
.partner-badge-card.interactive-card {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    color: inherit;
}

.partner-badge-card.interactive-card:hover {
    border-color: rgba(0, 128, 255, 0.35);
    box-shadow: 0 20px 40px rgba(0, 128, 255, 0.08);
}

.partner-card-action {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    color: var(--k-accent, #ffde59);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.partner-badge-card.interactive-card:hover .partner-card-action {
    gap: 15px;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 128, 255, 0.4);
}

.partner-card-action i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.partner-badge-card.interactive-card:hover .partner-card-action i {
    transform: translateX(3px);
}

/* Modal Overlay styling */
.meta-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 3, 3, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    visibility: hidden;
}

.meta-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.meta-modal-box {
    background: #09090b;
    border: 1px solid rgba(0, 128, 255, 0.2);
    border-radius: 20px;
    width: 90%;
    max-width: 850px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 45px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 128, 255, 0.25);
}

.meta-modal-overlay.active .meta-modal-box {
    transform: translateY(0) scale(1);
}

.meta-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.meta-modal-close:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.meta-modal-header {
    text-align: center;
    margin-bottom: 35px;
}

.meta-modal-logo {
    height: 55px;
    width: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px rgba(0, 128, 255, 0.3));
}

.meta-modal-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.meta-modal-subtitle {
    color: var(--k-accent, #ffde59);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(0, 128, 255, 0.03);
    border-color: rgba(0, 128, 255, 0.15);
}

.benefit-icon {
    color: var(--k-accent, #ffde59);
    font-size: 1.1rem;
    margin-top: 2px;
}

.benefit-content h4 {
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.benefit-content p {
    color: var(--k-text-muted, #a1a1aa);
    font-size: 0.8rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .meta-modal-box {
        padding: 40px 20px 25px;
    }
    .meta-modal-header h2 {
        font-size: 1.4rem;
    }
}

/* --- Meta Partner Dedicated Page Styles --- */
.meta-partner-page {
    padding: 140px 0 80px;
    background: #030303;
    position: relative;
    overflow: hidden;
}

.back-btn-tactical {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--k-text-muted, #a1a1aa);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.back-btn-tactical:hover {
    color: var(--k-accent, #ffde59);
    transform: translateX(-5px);
}

.meta-page-header .large-logo {
    height: 90px;
}

.meta-page-header .large-glow {
    width: 280px;
    height: 120px;
}

.benefits-grid-page {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.benefit-card-tactical {
    background: rgba(12, 12, 16, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.benefit-card-tactical:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 128, 255, 0.25);
    box-shadow: 0 15px 30px rgba(0, 128, 255, 0.05);
}

.benefit-card-icon {
    background: rgba(0, 128, 255, 0.05);
    border: 1px solid rgba(0, 128, 255, 0.15);
    color: var(--k-accent, #ffde59);
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.benefit-card-tactical:hover .benefit-card-icon {
    background: var(--k-accent, #ffde59);
    color: #000;
    border-color: var(--k-accent, #ffde59);
    box-shadow: 0 0 15px rgba(255, 222, 89, 0.3);
}

.benefit-card-content h3 {
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.benefit-card-content p {
    color: var(--k-text-muted, #a1a1aa);
    font-size: 0.85rem;
    line-height: 1.6;
}

.meta-page-cta {
    background: radial-gradient(circle at center, rgba(0, 128, 255, 0.05) 0%, transparent 70%);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 60px 40px;
    margin-top: 60px;
}

.meta-page-cta h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 10px;
}

.meta-page-cta p {
    color: var(--k-text-muted, #a1a1aa);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .benefits-grid-page {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Detailed Report Styles */
.detailed-audit-report {
    background: rgba(8, 8, 12, 0.75);
    border: 1px solid rgba(255, 222, 89, 0.2);
    border-radius: 14px;
    padding: 28px;
    text-align: left;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.detailed-audit-report .report-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detailed-audit-report .report-header h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.detailed-audit-report .report-header i {
    font-size: 1.3rem;
    color: var(--k-accent);
}

.detailed-audit-report .report-body p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #e0e0e0;
}
/* --- AUDIT GAME COMPONENT --- */
.audit-game-section {
    padding: 100px 0;
    position: relative;
}

.audit-game-card {
    background: rgba(12, 12, 16, 0.7);
    border: 1px solid rgba(255, 222, 89, 0.15);
    border-radius: 20px;
    padding: 60px 40px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.audit-progress-bar-container {
    background: rgba(255, 255, 255, 0.05);
    height: 8px;
    border-radius: 10px;
    position: relative;
    margin: 40px 0 30px;
    overflow: hidden;
}

.audit-progress-fill {
    background: linear-gradient(90deg, var(--k-accent), #ffde59);
    height: 100%;
    border-radius: 10px;
    transition: width 0.4s ease;
}

.audit-step-indicator {
    position: absolute;
    right: 0;
    top: -24px;
    font-size: 0.75rem;
    color: var(--k-text-muted);
    font-weight: 700;
}

.audit-step-panel {
    display: none !important;
    animation: fadeIn 0.4s ease forwards;
}

.audit-step-panel.active {
    display: block !important;
}

.audit-step-heading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
}

.audit-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group-hud label {
    display: block;
    font-size: 0.85rem;
    color: var(--k-text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group-hud input,
.form-select-hud {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px 18px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-select-hud option {
    background: #0d0d12;
    color: #fff;
}

.audit-subheading {
    font-size: 0.95rem;
    color: var(--k-text-muted);
    font-weight: 600;
    text-align: center;
}

.form-group-hud input:focus {
    border-color: var(--k-accent);
    box-shadow: 0 0 15px rgba(255, 222, 89, 0.2);
}

.audit-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.audit-option-card {
    background: rgba(20, 20, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 22px 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    width: 100%;
}

.audit-option-card:hover {
    border-color: var(--k-accent);
    background: rgba(255, 222, 89, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 222, 89, 0.1);
}

.audit-option-card i {
    font-size: 1.4rem;
    color: var(--k-accent);
}

.audit-option-card span {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Spinner Calculation */
.audit-calc-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 30px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 222, 89, 0.1);
    border-top: 3px solid var(--k-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.calc-icon {
    font-size: 1.8rem;
    color: var(--k-accent);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Card */
.score-badge-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #000;
    border: 3px solid var(--k-accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(255, 222, 89, 0.3);
}

.score-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--k-accent);
    line-height: 1;
}

.score-denom {
    font-size: 0.75rem;
    color: var(--k-text-muted);
}

.audit-diagnosis-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.diag-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    color: #ddd;
}

.diag-item i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .audit-form-grid, .audit-options-grid {
        grid-template-columns: 1fr;
    }
    .audit-game-card {
        padding: 40px 20px;
    }
}
