/* ========== PRODUCTS PAGE ========== */
.products-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.product-grid-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

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

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

/* ========== SERVICES PAGE ========== */
.services-hero-icons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.process-section {
    background: var(--bg-secondary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 56px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.process-step {
    text-align: center;
    position: relative;
}

.step-num {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: white;
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 24px var(--shadow-lg);
}

.process-step h4 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.process-step p {
    font-size: 0.85rem;
}

.tech-stack {
    background: var(--bg-secondary);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.tech-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    transition: all var(--transition);
}

.tech-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}

.tech-item .tech-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.tech-item span {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
}

@media (max-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 640px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-steps {
        grid-template-columns: 1fr 1fr;
    }

    .process-steps::before {
        display: none;
    }
}

/* ========== ABOUT PAGE ========== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 56px;
}

/* .team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    transition: all var(--transition);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px var(--shadow);
    border-color: var(--primary-light);
}

.team-avatar {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
} */

/* ===== TEAM CARD IMAGE FIX ===== */
/* .team-avatar {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center top;
    display: block;
    background: #0A0F1E;
} */

/* Black bg photo — show it full bleed with dark base */
/* .team-card {
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px var(--shadow);
    border-color: var(--primary-light);
} */

/* Image wrapper — gives a gradient fade from photo into card body */
/* .team-card .team-avatar {
    height: 260px;
    object-fit: cover;
    object-position: top center;
    background: transparent;
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
} */

/* ===== TEAM CARD IMAGE FIX ===== */
/* ===== TEAM CARD IMAGE FIX ===== */
.team-avatar {
    width: 100%;
    height: 280px;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    background: #fff;
}

.team-card {
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px var(--shadow);
    border-color: var(--primary-light);
}

.team-card .team-avatar {
    width: 100%;
    height: 280px;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    background: var(--bg-secondary);
    -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
}

[data-theme="dark"] .team-card .team-avatar {
    background: #0D1626;
}

.team-avatar-placeholder {
    width: 100%;
    height: 220px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

.team-body {
    padding: 20px;
}

.team-body h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.team-body p {
    font-size: 0.82rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.team-socials {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.team-social {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
}

.team-social:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.team-social svg {
    width: 14px;
    height: 14px;
}

.values-grid {
    margin-top: 56px;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px var(--shadow);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.value-card h4 {
    margin-bottom: 10px;
}

.value-card p {
    font-size: 0.9rem;
}

.milestones {
    background: var(--bg-secondary);
}

.timeline {
    max-width: 700px;
    margin: 56px auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

.timeline-item {
    display: flex;
    gap: 24px;
    margin-bottom: 36px;
    position: relative;
}

.timeline-dot {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: 0 4px 16px var(--shadow-lg);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    flex: 1;
}

.timeline-content h4 {
    margin-bottom: 6px;
    font-size: 1rem;
}

.timeline-content p {
    font-size: 0.88rem;
}

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

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

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

/* ========== CONTACT PAGE ========== */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-map {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
    overflow: hidden;
    position: relative;
}

.map-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.map-placeholder svg {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    color: var(--primary);
}

.map-placeholder p {
    font-size: 0.85rem;
}

.faq-section {
    background: var(--bg-secondary);
}

.faq-list {
    max-width: 760px;
    margin: 50px auto 0;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: color var(--transition);
}

.faq-q:hover {
    color: var(--primary);
}

.faq-q svg {
    flex-shrink: 0;
    transition: transform var(--transition);
    width: 18px;
    height: 18px;
}

.faq-item.open .faq-q svg {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0 24px;
}

.faq-item.open .faq-a {
    max-height: 200px;
    padding: 0 24px 20px;
}

@media (max-width: 900px) {
    .contact-page-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== PAGES MOBILE RESPONSIVE ========== */

/* Products page */
@media (max-width: 900px) {
    .product-grid-page {
        grid-template-columns: 1fr 1fr;
    }

    .products-filter {
        gap: 8px;
    }

    .filter-btn {
        padding: 7px 14px;
        font-size: 0.82rem;
    }
}

@media (max-width: 580px) {
    .product-grid-page {
        grid-template-columns: 1fr;
    }

    .products-filter {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Services page */
@media (max-width: 900px) {
    .process-steps {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .process-steps::before {
        display: none;
    }

    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 580px) {
    .process-steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .process-step {
        text-align: left;
        display: flex;
        gap: 16px;
        align-items: flex-start;
    }

    .step-num {
        flex-shrink: 0;
        width: 48px;
        height: 48px;
        font-size: 1rem;
        margin: 0;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .tech-item {
        padding: 14px 10px;
    }

    .tech-item .tech-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 400px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* About page */
@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .team-avatar-placeholder {
        height: 160px;
        font-size: 2rem;
    }

    .team-body {
        padding: 14px;
    }

    .team-body h4 {
        font-size: 0.9rem;
    }

    .team-body p {
        display: none;
    }

    /* Leadership (3-col) responsive */
    div[style*="grid-template-columns:repeat(3,1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Timeline */
    .timeline::before {
        left: 22px;
    }

    .timeline-dot {
        width: 46px;
        height: 46px;
        font-size: 0.72rem;
    }

    .timeline-content {
        padding: 14px 16px;
    }

    /* Values grid */
    .values-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .value-card {
        padding: 20px 16px;
    }

    .value-icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    /* Milestones */
    .milestones .timeline {
        margin-top: 36px;
    }
}

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

    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact page */
@media (max-width: 900px) {
    .contact-page-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 28px 22px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .form-group-full {
        grid-column: 1;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 22px 16px;
    }

    .contact-map {
        height: 200px;
    }

    .faq-q {
        font-size: 0.88rem;
        padding: 16px 18px;
    }

    .faq-a {
        padding: 0 18px;
    }

    .faq-item.open .faq-a {
        padding: 0 18px 16px;
    }
}

/* Page hero mobile */
@media (max-width: 768px) {
    .page-hero {
        padding: 110px 0 56px;
    }

    .page-hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }

    .page-hero p {
        font-size: 1rem;
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 96px 0 44px;
    }

    .page-hero h1 {
        font-size: clamp(1.7rem, 8vw, 2.4rem);
    }
}

/* Stats section on about page */
@media (max-width: 640px) {
    div.grid-4.card {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Shared service card grid on services page */
@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .service-card {
        padding: 22px 18px;
    }

    .service-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .service-icon svg {
        width: 22px;
        height: 22px;
    }
}

/* Leadership grid responsive */
@media (max-width: 768px) {
    .leadership-grid {
        grid-template-columns: 1fr !important;
        max-width: 400px;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Stats grid responsive */
@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 400px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}
