/* 🟢 0. NAVIGATION */
.nav-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 10px 30px;
    border-radius: 40px;
    background: rgba(10, 10, 15, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-indigo);
}

/* MKTechs Global Design System & Utility Layer */

:root {
    /* Palette: Midnight Nebula */
    --bg-deep: #050505;
    --bg-charcoal: #0a0a0b;
    --text-primary: #e8e8e8;
    --text-muted: rgba(255, 255, 255, 0.6);
    --accent-indigo: #788cff;
    --accent-cyan: #00f5ff;

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(25px);
    --glow-subtle: 0 0 40px rgba(120, 140, 255, 0.1);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Base Setup */
html {
    background: transparent !important;
    overflow-x: hidden;
    width: 100%;
}

body {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

img,
video {
    max-width: 100%;
    height: auto;
}

/* Typography System (Apple-Level) */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 2rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.eyebrow {
    display: block;
    font-size: 11px;
    color: var(--accent-cyan);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 600;
}

.text-muted {
    color: var(--text-muted);
}

/* Glass Components */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glow-subtle);
    padding: 0px;
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-outline {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--accent-indigo);
    border-color: var(--accent-indigo);
    transform: translateY(-5px);
}

/* Layout Utilities */
.section-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 6vw;
}

.full-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 140px 0;
}

.section-header {
    margin-bottom: 80px;
}

/* 🟢 2. IDENTITY */
.identity-grid {
    display: grid;
    grid-template-columns: 30% 70%;
    /* IMAGE 30, TEXT 70 */
    gap: 8vw;
    align-items: center;
}

.visual-wrapper {
    aspect-ratio: 1/1;
    border-radius: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(120, 140, 255, 0.2) 0%, transparent 70%);
    box-shadow: 0 0 60px rgba(120, 140, 255, 0.1), inset 0 0 60px rgba(120, 140, 255, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(120, 140, 255, 0.3);
}

.visual-wrapper::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    opacity: 0.2;
}

.depth-placeholder {
    font-size: 14px;
    letter-spacing: 12px;
    color: var(--accent-indigo);
    font-weight: 700;
    z-index: 2;
    text-shadow: 0 0 15px rgba(120, 140, 255, 0.82);
    text-align: center;
}

.narrative p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: var(--text-muted);
}

.narrative .p-large {
    font-size: 28px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 40px;
    line-height: 1.3;
}

.phil-list {
    list-style: none;
    margin-top: 40px;
}

.phil-list li {
    margin-bottom: 24px;
    padding-left: 24px;
    border-left: 1px solid var(--accent-indigo);
}

.phil-list strong {
    display: block;
    color: var(--accent-indigo);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

/* 🟢 3. CAPABILITIES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    padding: 60px;
}

.service-icon {
    font-size: 11px;
    color: var(--accent-indigo);
    margin-bottom: 40px;
    opacity: 0.8;
    font-family: var(--font-heading);
}

/* 🟢 3.5 SOLUTIONS — SERVICE ARCHITECTURE */
.solutions-tagline {
    text-align: center;
    max-width: 620px;
    margin: -40px auto 60px;
    font-size: 15px;
    line-height: 1.7;
}

.service-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

.service-category {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
}

.service-category:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(120, 140, 255, 0.15);
}

.category-icon {
    font-size: 11px;
    color: var(--accent-indigo);
    margin-bottom: 24px;
    opacity: 0.8;
    font-family: var(--font-heading);
    letter-spacing: 4px;
}

.service-category h3 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 4px;
    color: #fff;
    letter-spacing: -0.02em;
}

.service-category ul {
    margin: 22px 0 24px;
    padding-left: 18px;
    line-height: 2;
    font-size: 14px;
    color: var(--text-muted);
    flex-grow: 1;
}

.service-category ul li {
    position: relative;
    list-style: none;
    padding-left: 14px;
}

.service-category ul li::before {
    content: '\2192';
    position: absolute;
    left: -14px;
    color: var(--accent-indigo);
    opacity: 0.6;
    font-size: 11px;
}

.service-category .text-muted {
    font-size: 13px;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Engagement Models */
.engagement-models {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 1px solid var(--glass-border);
}

.engagement-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.engagement-pill {
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s ease;
    cursor: default;
}

.engagement-pill:hover {
    background: rgba(120, 140, 255, 0.12);
    border-color: rgba(120, 140, 255, 0.3);
    color: var(--accent-indigo);
}

/* Legacy audience tags kept for backward compat */
.target-audience {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.audience-tag {
    padding: 8px 16px;
    background: rgba(120, 140, 255, 0.1);
    border: 1px solid rgba(120, 140, 255, 0.2);
    border-radius: 50px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-indigo);
}

/* 🟢 3.8 PROJECT SHOWCASE GRID (6 PROJECTS) */
.project-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.showcase-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 520px;
}

.card-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.card-actions .btn-outline {
    flex: 1;
}

.showcase-preview {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(20, 20, 25, 0.8), rgba(40, 40, 50, 0.4));
    border: 1px solid var(--glass-border);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.showcase-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(120, 140, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.showcase-card:hover .showcase-preview::after {
    opacity: 1;
}

.showcase-card:hover .showcase-preview {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 30px rgba(120, 140, 255, 0.1);
}

.showcase-body h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #fff;
    letter-spacing: 1px;
}

.showcase-tags {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.showcase-tags span {
    font-size: 10px;
    color: var(--accent-indigo);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 4px 10px;
    background: rgba(120, 140, 255, 0.05);
    border-radius: 4px;
}

.portfolio-section {
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
}

.portfolio-horizontal {
    display: flex;
    width: 400%;
    height: 100vh;
}

.project-panel {
    width: 100vw;
    height: 100vh;
    padding: 0 6vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.project-info h2 {
    font-size: clamp(3rem, 6vw, 6rem);
    margin-bottom: 20px;
}

.project-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 11px;
    color: var(--accent-cyan);
    letter-spacing: 3px;
}

.project-image {
    width: 100%;
    height: 50vh;
    /* border-radius: 32px; */
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* border-radius: 32px; */
    display: block;
}

/* 🟢 5. PROCESS */
.process-path {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-top: 80px;
}

.process-step {
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.step-num {
    font-size: 12px;
    color: var(--accent-indigo);
    margin-bottom: 20px;
    display: block;
}

/* 🟢 6. RESULTS */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-panel h4 {
    font-size: clamp(4rem, 8vw, 8rem);
    color: #fff;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-panel p {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-cyan);
}

/* 🟢 7. TRUST */
.trust-carousel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.testimonial-card p {
    font-size: 20px;
    font-style: italic;
    margin-bottom: 30px;
    color: #fff;
}

.client-info {
    font-size: 12px;
    color: var(--accent-indigo);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* 🟢 8. TECH STACK */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tech-item {
    text-align: center;
    padding: 40px;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 🟢 9. TIMELINE */
.timeline {
    position: relative;
    max-width: 800px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 60px;
}

.time-marker {
    font-size: 12px;
    color: var(--accent-cyan);
    margin-bottom: 15px;
    letter-spacing: 3px;
}

/* BADGES & OUTCOMES */
.badge-experimental {
    font-size: 9px;
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
}

.outcome-list li {
    position: relative;
    padding-left: 20px;
    list-style: none;
}

.outcome-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

/* 🟢 COLLABORATION SECTION */
.collab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.collab-card h4 {
    color: var(--accent-indigo);
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.collab-card ul {
    list-style: none;
    padding: 0;
}

.collab-card li {
    font-size: 13px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 1023px) {
    .nav-container {
        padding: 10px 24px;
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .nav-container {
        top: auto;
        bottom: 24px;
        width: max-content;
        max-width: calc(100% - 32px);
        padding: 12px 24px;
        gap: 16px;
        background: rgba(5, 5, 8, 0.85);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    }

    .nav-link {
        font-size: 10px;
        letter-spacing: 1px;
    }
}

@media (max-width: 1023px) {

    .identity-grid,
    .services-grid,
    .service-categories,
    .project-panel,
    .process-path,
    .metrics-row,
    .trust-carousel,
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .solutions-tagline {
        margin: -20px auto 40px;
    }

    .engagement-row {
        gap: 12px;
    }

    .engagement-pill {
        padding: 12px 20px;
    }

    /* ── Portfolio: keep horizontal scroll on mobile, adjust sizing ── */
    .portfolio-section {
        overflow: hidden;
        /* keep — clips the 400% wrapper correctly */
        min-height: 100vh;
    }

    /* Keep flex + 400% width so GSAP x-scrub still works */
    .portfolio-horizontal {
        display: flex;
        width: 400%;
        height: 100vh;
    }

    /* Each panel = full viewport, single-column grid on mobile */
    .project-panel {
        width: 100vw;
        height: 100vh;
        padding: 90px 20px 40px;
        grid-template-columns: 1fr;
        /* stack info above image */
        gap: 24px;
        align-content: center;
    }

    /* Image: shorter on mobile so text is still visible */
    .project-image {
        width: 100%;
        height: 70vh;
        min-height: 160px;
        max-height: 220px;
        /* border-radius: 16px; */
        overflow: hidden;
    }

    .project-info h2 {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

/* ── Small phones ── */
@media (max-width: 480px) {
    .project-panel {
        padding: 80px 16px 32px;
        gap: 18px;
    }

    .project-image {
        height: 50vw;
        /* min-height: 140px; */
        max-height: 260px;
        /* border-radius: 12px; */
    }
}

/* 🟢 10. MODALS & FORMS */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    position: relative;
    padding: 50px;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: inherit !important;
    visibility: inherit !important;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-cyan);
}

.modal-header {
    text-align: center;
    margin-bottom: 40px;
}

.modal-header h3 {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-indigo);
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-indigo);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 20px rgba(120, 140, 255, 0.1);
}

.form-group select option {
    background: var(--bg-charcoal);
    color: #fff;
}

.modal-form .btn-outline {
    margin-top: 10px;
}