/* ==========================================================
   HOMEPAGE CUSTOM ARCHITECTURE
   ========================================================== */

/* -----------------------------------
   HERO BADGES
----------------------------------- */
.hero-badges {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUpElevate 0.8s 0.6s ease forwards;
}

.hero-badges .badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.light-mode .hero-badges .badge {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.05);
    color: var(--text-1);
}

/* -----------------------------------
   METRICS STRIP
----------------------------------- */
.metrics-strip {
    background: var(--surface-1);
    padding: 4rem 0 3rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 10;
}

.metrics-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.metric-value {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-1);
    line-height: 1;
    letter-spacing: -0.05em;
}

.metric-label {
    font-size: 0.95rem;
    color: var(--text-2);
    font-weight: 500;
    line-height: 1.4;
}

.metric-divider {
    width: 1px;
    height: 80px;
    background: var(--border);
    align-self: center;
}

.metrics-trust-line {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

@media (max-width: 900px) {
    .metrics-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .metric-divider {
        width: 100px;
        height: 1px;
        margin: 1rem 0;
    }
}

/* -----------------------------------
   CORE CAPABILITIES (SECTION 2)
----------------------------------- */
.capabilities-section {
    padding: 8rem 0;
    background: var(--bg);
}

.capabilities-header {
    text-align: center;
    margin-bottom: 5rem;
}

.capabilities-header .section-lead {
    margin: 1.5rem auto 0;
    max-width: 700px;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.capability-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.capability-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(198, 255, 0, 0.3);
    /* Accent glow */
}

.light-mode .capability-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.cap-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(198, 255, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 2rem;
    transition: transform 0.4s ease;
}

.capability-card:hover .cap-icon-wrapper {
    transform: scale(1.1);
    background: var(--accent);
    color: #0b0b0b;
}

.capability-card h3 {
    font-size: 1.5rem;
    color: var(--text-1);
    margin-bottom: 1rem;
}

.cap-desc {
    color: var(--text-2);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cap-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-1);
    font-size: 0.95rem;
}

.cap-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.cap-footer {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 3rem;
}

.cap-footer p {
    color: var(--text-2);
    margin-bottom: 1rem;
}

@media (max-width: 1024px) {
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------------
   PROCESS TIMELINE (SECTION 3)
----------------------------------- */
.process-timeline-section {
    padding: 8rem 0;
    background: var(--surface-1);
    position: relative;
    border-bottom: 1px solid var(--border);
}

.timeline-header {
    text-align: center;
    margin-bottom: 5rem;
}

.timeline-header .section-lead {
    margin: 1.5rem auto 0;
    max-width: 800px;
}

.impl-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 2rem;
    padding-top: 3rem;
    margin-bottom: 4rem;
}

/* Desktop Connecting Line */
.impl-timeline-track {
    position: absolute;
    top: 54px;
    /* Align with center of step markers */
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--border);
    z-index: 1;
}

.impl-step {
    flex: 1;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-marker {
    width: 48px;
    height: 48px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-2);
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.impl-step:hover .step-marker {
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(198, 255, 0, 0.2);
}

.step-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    width: 100%;
    transition: transform 0.3s;
}

.impl-step:hover .step-card {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.step-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 1.5rem;
    color: var(--text-1);
    opacity: 0.8;
}

.impl-step:hover .step-icon {
    color: var(--accent);
    opacity: 1;
}

.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--text-1);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.5;
}

.timeline-footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.timeline-footer p {
    color: var(--text-2);
    margin-bottom: 1rem;
}

/* Tablet / Mobile Timeline (Vertical progressive) */
@media (max-width: 1024px) {
    .impl-timeline {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-top: 0;
    }

    .impl-timeline-track {
        top: 0;
        bottom: 0;
        left: 24px;
        /* Move track to the left edge */
        width: 2px;
        height: auto;
        right: auto;
    }

    .impl-step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        margin-bottom: 2rem;
    }

    .step-marker {
        margin-bottom: 0;
        margin-right: 2rem;
        flex-shrink: 0;
    }

    .step-card {
        padding: 1.5rem;
    }

    .step-icon {
        margin: 0 0 1rem 0;
        /* Align left */
    }
}

/* -----------------------------------
   WHY CHOOSE US (SECTION 4)
----------------------------------- */
.why-choose-section {
    padding: 8rem 0;
    background: var(--bg);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.why-visual {
    position: relative;
}

.why-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--surface-1);
}

.why-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.why-image-wrapper:hover .why-img {
    transform: scale(1.05);
}

.why-overlay-badge {
    position: absolute;
    bottom: 2rem;
    right: -2rem;
    /* Pull out slightly */
    background: var(--surface-1);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.light-mode .why-overlay-badge {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.badge-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.why-content {
    display: flex;
    flex-direction: column;
}

.why-content .section-title {
    margin-bottom: 1.5rem;
}

.why-content .section-lead {
    margin-bottom: 4rem;
}

.credibility-blocks {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.credibility-block {
    display: flex;
    gap: 1.5rem;
}

.cred-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 0.25rem;
}

.cred-text h3 {
    font-size: 1.25rem;
    color: var(--text-1);
    margin-bottom: 0.5rem;
}

.cred-text p {
    font-size: 0.95rem;
    color: var(--text-2);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .why-overlay-badge {
        right: 2rem;
    }
}

/* -----------------------------------
   INDUSTRY EXPERTISE (SECTION 5)
----------------------------------- */
.expertise-section {
    padding: 8rem 0;
    background: var(--surface-1);
    border-top: 1px solid var(--border);
}

.expertise-header {
    text-align: center;
    margin-bottom: 4rem;
}

.expertise-header .section-lead {
    margin: 1.5rem auto 0;
    max-width: 600px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.expert-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 8px;
    transition: transform 0.3s, border-color 0.3s;
}

.expert-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.expert-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.expert-card h3 {
    font-size: 1.25rem;
    color: var(--text-1);
    margin-bottom: 1rem;
}

.expert-card p {
    font-size: 0.95rem;
    color: var(--text-2);
    line-height: 1.5;
}

.expert-trust-strip {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-3);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 1024px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------------
   INDUSTRY PRESENCE (SECTION 6)
----------------------------------- */
.presence-section {
    padding: 8rem 0;
    background: var(--bg);
}

.presence-header {
    text-align: center;
    margin-bottom: 5rem;
}

.presence-header .section-lead {
    margin: 1.5rem auto 0;
    max-width: 700px;
}

.presence-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 5rem;
}

.pillar-col {
    text-align: center;
}

.pillar-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    color: var(--accent);
}

.pillar-col h3 {
    font-size: 1.25rem;
    color: var(--text-1);
    margin-bottom: 1rem;
}

.pillar-col p {
    font-size: 0.95rem;
    color: var(--text-2);
    line-height: 1.6;
}

.presence-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.gallery-img-wrapper {
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    overflow: hidden;
    background: var(--surface-1);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.5s ease;
}

.gallery-img-wrapper:hover .gallery-img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.presence-vision {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-1);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .presence-pillars {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .presence-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* -----------------------------------
   CASE STUDY (SECTION 7)
----------------------------------- */
.case-study-section {
    padding: 6rem 0 8rem;
    background: var(--bg);
}

.case-study-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 3rem;
}

.cs-header {
    background: rgba(198, 255, 0, 0.05);
    padding: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.light-mode .cs-header {
    background: rgba(0, 0, 0, 0.03);
}

.cs-header h3 {
    font-size: 1.5rem;
    color: var(--text-1);
    margin-bottom: 0.5rem;
}

.cs-duration {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.light-mode .cs-duration {
    color: var(--text-2);
}

.cs-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 3rem 2.5rem;
}

.cs-stat {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.css-check {
    color: var(--accent);
    font-size: 1.25rem;
    line-height: 1;
}

.cs-stat p {
    font-size: 1.05rem;
    color: var(--text-1);
    font-weight: 500;
    margin: 0;
}

@media (max-width: 768px) {
    .cs-body {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------------
   HIGH-IMPACT CTA (SECTION 8)
----------------------------------- */
.action-section {
    position: relative;
    padding: 8rem 0;
    background: #000;
    text-align: center;
    overflow: hidden;
}

.action-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(198, 255, 0, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

.action-inner {
    position: relative;
    z-index: 2;
}

.action-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.action-sub {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.action-ghost {
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.action-ghost:hover {
    border-color: var(--accent) !important;
    background: rgba(198, 255, 0, 0.05) !important;
}

.action-trust {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}