/* ============================================================
   ARPHATECH — Landing Page Stylesheet
   Depends on: base.css (color tokens, navbar, footer)
   ============================================================ */


/* ============================================================
   1. HERO
   ============================================================ */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: calc(100vh - var(--navbar-height, 70px));
    padding-block: clamp(1rem, 3vw, 2rem);
    gap: clamp(1rem, 3vw, 2rem);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    padding-block: 0;
}

/* ---------- Text column ---------- */
.hero__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 52ch;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

/* ---------- Media column ---------- */
.hero__media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image {
    width: 100%;
    max-width: 480px;
    max-height: 52vh;
    height: auto;
    object-fit: contain;
    animation: heroFadeUp 0.7s ease both;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Buttons ---------- */
.btn-cta {
    display: inline-block;
    padding: 0.8rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;

    transition: background-color 0.2s ease,
                color 0.2s ease,
                border-color 0.2s ease,
                transform 0.15s ease,
                box-shadow 0.2s ease;
}

.btn-cta:active {
    transform: translateY(1px);
}

.btn-cta--primary {
    background-color: var(--accent);
    color: var(--surface);
    border-color: var(--accent);
}

.btn-cta--primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--surface);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(212, 58, 56, 0.18);
}

.btn-cta--outline {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-cta--outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-soft);
    transform: translateY(-2px);
}


/* ============================================================
   2. SERVICES STRIP (landing only)
   ============================================================ */
.services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(0.75rem, 2vw, 1.2rem);
}

/* The Card itself - Matched to previous 120px height */
.service-card {
    position: relative;
    display: block;
    height: 120px; 
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect */
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(61, 87, 105, 0.15);
}

/* The Image Wrapper */
.service-card__image-wrapper {
    width: 100%;
    height: 100%;
}

/* The Image itself */
.service-card__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

/* Zoom effect on hover */
.service-card:hover .service-card__image-wrapper img {
    transform: scale(1.05);
}

/* The Text Overlay */
.service-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;     /* Centers vertically */
    justify-content: center; /* Centers horizontally */
    padding: 1rem;
    
    /* Gradient to make text readable, darker at the bottom */
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.85) 0%, 
        rgba(0, 0, 0, 0.4) 60%, 
        rgba(0, 0, 0, 0.1) 100%
    );
}

/* The Title Text */
.service-card__title {
    color: #ffffff;
    font-size: clamp(0.85rem, 1vw, 1rem);
    font-weight: 600;
    margin: 0;
    text-align: center;
    line-height: 1.25;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Empty state */
.services__empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 2rem 0;
    margin: 0;
}


/* ============================================================
   3. ABOUT SECTION
   ============================================================ */
.about {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2.5rem);

    margin-top: 0;
    padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.about__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.about__eyebrow {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: var(--accent);
    background-color: var(--accent-soft);
    border-radius: 999px;
}

.about__section-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--primary);
    margin: 0;
}

.about__section-sub {
    font-size: clamp(0.95rem, 1.15vw, 1.1rem);
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    max-width: 52ch;
}

.about__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(1.5rem, 4.5vw, 3.5rem);
}

.about__media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about__image {
    width: 100%;
    max-width: 540px;
    height: auto;
    object-fit: contain;

    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(41, 45, 48, 0.08);
    animation: aboutFadeIn 0.8s ease both;
}

.about__content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.about__title {
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin: 0;
}

.about__text {
    font-size: clamp(0.95rem, 1.05vw, 1.02rem);
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
    max-width: 58ch;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(0.75rem, 2vw, 1.25rem);

    margin-top: 1.25rem;
    padding-top: 1.25rem;
    /* border-top: 1px solid var(--border-light); */
}

.stat { text-align: left; }

.stat__value {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.stat__label {
    font-size: clamp(0.72rem, 0.85vw, 0.82rem);
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.about__actions { margin-top: 1.25rem; }

@keyframes aboutFadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   4. TRUSTED PARTNERS
   ============================================================ */
.partners {
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 3vw, 2rem);

    margin-top: 0;
    padding-block: clamp(2rem, 4vw, 3rem);
}

.partners__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.partners__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin: 0;
}

.partners__title-accent { color: var(--primary); }
.partner__title-brand   { color: var(--accent); }

.partners__subtitle {
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    max-width: 50ch;
}

/* ---------- Stats bar ---------- */
.partners__stats {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    align-self: center;
    gap: clamp(1rem, 3vw, 2.25rem);

    padding: 0.85rem clamp(1.25rem, 3vw, 2rem);
    margin-top: clamp(0.5rem, 1.5vw, 1rem);

    background-color: var(--surface);
    /* border: 1px solid var(--border-light); */
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(41, 45, 48, 0.05);
}

.partners-stat {
    position: relative;
    text-align: center;
    padding-inline: clamp(0.5rem, 1.5vw, 1rem);
}

.partners-stat + .partners-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    /* background-color: var(--border-light); */
}

.partners-stat__value {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.partners-stat__label {
    font-size: clamp(0.65rem, 0.8vw, 0.72rem);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* ---------- Marquee ---------- */
.marquee {
    position: relative;
    width: 100%;
    margin-top: clamp(1rem, 2.5vw, 1.75rem);
    overflow: hidden;

    -webkit-mask-image: linear-gradient(
        to right, transparent 0%, #000 8%, #000 92%, transparent 100%
    );
    mask-image: linear-gradient(
        to right, transparent 0%, #000 8%, #000 92%, transparent 100%
    );
}

.marquee--reverse {
    margin-top: clamp(0.75rem, 1.5vw, 1.25rem);
}

.marquee__track {
    display: flex;
    align-items: stretch;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);

    width: max-content;

    animation: marqueeScroll 40s linear infinite;
    will-change: transform;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

.marquee--reverse .marquee__track {
    animation-direction: reverse;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- Partner card ---------- */
.partner-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    width: clamp(120px, 14vw, 170px);
    padding: clamp(0.75rem, 1.5vw, 1.15rem) clamp(0.5rem, 1vw, 0.75rem);

    background-color: var(--surface);
    /* border: 1px solid var(--border-light); */
    border-radius: 12px;

    text-decoration: none;
    color: var(--text-muted);

    transition: transform 0.2s ease,
                box-shadow 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease;
}

.partner-card:hover {
    transform: translateY(-3px);
    border-color: var(--border);
    box-shadow: 0 8px 20px rgba(41, 45, 48, 0.07);
    color: var(--text-primary);
}

.partner-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: clamp(28px, 3vw, 40px);
}

.partner-card__logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner-card__name {
    font-size: clamp(0.62rem, 0.75vw, 0.72rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-align: center;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}


/* ============================================================
   5. PROJECTS
   ============================================================ */
.projects {
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 3vw, 2rem);

    margin-top: 0;
    padding-block: clamp(2rem, 4vw, 3rem);
}

.projects__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.projects__eyebrow {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: var(--accent);
    background-color: var(--accent-soft);
    border-radius: 999px;
}

.projects__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin: 0;
}

.projects__title-accent { color: var(--primary); }

.projects__subtitle {
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    max-width: 52ch;
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-top: clamp(1rem, 2.5vw, 1.75rem);
}

/* ---------- Project card ---------- */
.project-card {
    position: relative;
    display: flex;
    flex-direction: column;

    background-color: var(--surface);
    /* border: 1px solid var(--border-light); */
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(41, 45, 48, 0.06);

    text-decoration: none;
    color: inherit;
    cursor: pointer;

    transition: transform 0.2s ease,
                box-shadow 0.2s ease,
                border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(41, 45, 48, 0.10);
}

.project-card:focus {
    outline: none;
}

.project-card:focus-visible {
    outline: 3px solid var(--primary-soft);
    outline-offset: 2px;
    border-color: var(--primary);
}

.project-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: var(--surface-alt);
    overflow: hidden;
}

.project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.project-card:hover .project-card__media img {
    transform: scale(1.04);
}

.project-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: clamp(1rem, 1.8vw, 1.25rem);
    flex: 1;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.project-card__category {
    display: inline-block;
    align-self: flex-start;

    padding: 0.3rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    color: var(--primary);
    background-color: var(--primary-soft);
    border-radius: 6px;
}

.project-card__tag {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
}

.project-card__title {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin: 0;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card__desc {
    font-size: clamp(0.85rem, 0.95vw, 0.92rem);
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
    text-overflow: ellipsis;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card__stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;

    list-style: none;
    padding: 0;
    margin: auto 0 0;
}

.project-card__stack li {
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);

    background-color: var(--surface-alt);
    /* border: 1px solid var(--border-light); */
    border-radius: 6px;
    white-space: nowrap;

    transition: background-color 0.2s ease, color 0.2s ease;
}

.project-card:hover .project-card__stack li {
    background-color: var(--surface-hover);
}

.projects__actions {
    display: flex;
    justify-content: center;
    margin-top: clamp(1rem, 2vw, 1.5rem);
}

.projects__empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 2rem 0;
    margin: 0;
}

/* ============================================================
   6. FAQ
   ============================================================ */
.faq {
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 3vw, 2rem);

    margin-top: 0;
    padding-block: clamp(2rem, 4vw, 3rem);
}

.faq__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.faq__eyebrow {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: var(--accent);
    background-color: var(--accent-soft);
    border-radius: 999px;
}

.faq__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin: 0;
}

.faq__title-accent { color: var(--primary); }

.faq__subtitle {
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    max-width: 50ch;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;

    max-width: 820px;
    width: 100%;
    margin: 0 auto;
}

/* ---------- FAQ item ---------- */
.faq-item {
    background-color: var(--surface);
    /* border: 1px solid var(--border-light); */
    border-radius: 12px;
    overflow: hidden;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
    border-color: var(--border);
    box-shadow: 0 6px 18px rgba(41, 45, 48, 0.05);
}

.faq-item:hover {
    border-color: var(--border);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    padding: clamp(0.9rem, 1.6vw, 1.15rem) clamp(1rem, 2vw, 1.35rem);

    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;

    cursor: pointer;
    list-style: none;
    transition: color 0.2s ease;
}

.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__question::marker { content: ""; }

.faq-item__question:hover { color: var(--primary); }

.faq-item__question:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
    border-radius: 12px;
}

.faq-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;
    flex-shrink: 0;

    color: var(--text-secondary);
    background-color: var(--surface-alt);
    border-radius: 50%;

    transition: transform 0.25s ease,
                background-color 0.2s ease,
                color 0.2s ease;
}

.faq-item[open] .faq-item__icon {
    transform: rotate(180deg);
    color: var(--surface);
    background-color: var(--primary);
}

.faq-item__answer {
    padding: clamp(0.85rem, 1.6vw, 1rem) clamp(1rem, 2vw, 1.35rem)
             clamp(1rem, 1.8vw, 1.25rem);

    color: var(--text-secondary);
    font-size: clamp(0.88rem, 1vw, 0.95rem);
    line-height: 1.7;

    /* border-top: 1px solid var(--border-light); */
}

.faq-item__answer p {
    margin: 0;
    max-width: 68ch;
}

.faq-item[open] .faq-item__answer {
    animation: faqFadeIn 0.25s ease;
}

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- FAQ footer ---------- */
.faq__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;

    margin-top: clamp(0.5rem, 1.5vw, 1rem);
    text-align: center;
}

.faq__footer-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}


/* ============================================================
   7. TEAM
   ============================================================ */
.team {
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 3vw, 2rem);

    margin-top: 0;
    padding-block: clamp(2rem, 4vw, 3rem);
}

.team__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.team__eyebrow {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: var(--accent);
    background-color: var(--accent-soft);
    border-radius: 999px;
}

.team__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin: 0;
}

.team__title-accent { color: var(--primary); }

.team__subtitle {
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    max-width: 50ch;
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-top: clamp(1rem, 2.5vw, 1.75rem);
}

/* ---------- Team card ---------- */
.team-card {
    position: relative;
    display: flex;
    flex-direction: column;

    background-color: var(--surface);
    /* border: 1px solid var(--border-light); */
    border-radius: 14px;
    overflow: hidden;

    text-decoration: none;
    color: inherit;
    cursor: pointer;

    transition: transform 0.2s ease,
                box-shadow 0.2s ease,
                border-color 0.2s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(41, 45, 48, 0.10);
}

.team-card:focus-visible {
    outline: 3px solid var(--primary-soft);
    outline-offset: 2px;
    border-color: var(--primary);
}

.team-card__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--surface-alt);
    overflow: hidden;
}

.team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.team-card:hover .team-card__photo img {
    transform: scale(1.05);
}

.team-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: clamp(0.2rem, 1vw, 1.1rem);
    text-align: center;
    flex: 1;
}

.team-card__name {
    font-size: clamp(0.95rem, 1.75vw, 1.75rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--primary);
    margin: 0;
}

.team-card__company {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin: 0;
}

.team-card__role {
    font-size: 0.90rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    
}

.team-card__desc {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.team-card__tech-stacks {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.team-card__tech-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    background-color: var(--primary-soft);
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.team-card__arrow {
    position: absolute;
    top: 12px;
    right: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    background-color: var(--surface);
    color: var(--primary);
    border-radius: 50%;

    opacity: 0;
    transform: translate(-4px, 4px);

    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.team-card:hover .team-card__arrow,
.team-card:focus-visible .team-card__arrow {
    opacity: 1;
    transform: translate(0, 0);
}

.team__empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 2rem 0;
    margin: 0;
}
.member__social {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.member__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    color: var(--text-secondary);
    background-color: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 10px;

    transition: color 0.2s ease,
                background-color 0.2s ease,
                border-color 0.2s ease,
                transform 0.15s ease;
}

.member__social a:hover {
    color: var(--surface);
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ============================================================
   8. RESPONSIVE — TABLET (≤ 991.98px)
   ============================================================ */
@media (max-width: 991.98px) {

    /* Hero */
    .hero {
        min-height: auto;
        padding-block: 2rem;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__text  { order: 1; }
    .hero__media { order: 2; }

    .hero__subtitle { margin-inline: auto; }
    .hero__actions  { justify-content: center; }

    /* Services */
    .services {
        grid-template-columns: repeat(2, 1fr);
    }

    /* About */
    .about__row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about__media   { order: 2; }
    .about__content {
        order: 1;
        align-items: center;
    }

    .about__text { margin-inline: auto; }

    .about__stats {
        width: 100%;
        max-width: 520px;
        margin-inline: auto;
    }

    .stat { text-align: center; }

    .about__actions {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* Projects */
    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Team */
    .team__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}


/* ============================================================
   9. RESPONSIVE — MOBILE (≤ 767.98px)
   ============================================================ */
@media (max-width: 767.98px) {

    /* Marquee speed */
    .marquee__track {
        animation-duration: 28s;
    }

    .partner-card {
        width: 130px;
    }
}


/* ============================================================
   10. RESPONSIVE — PHONE (≤ 575.98px)
   ============================================================ */
@media (max-width: 575.98px) {

    /* Hero */
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-cta {
        width: 100%;
        text-align: center;
    }

    .hero__image {
        max-width: 100%;
    }

    /* Services */
    .services {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }

    /* Partners marquee */
    .marquee__track {
        animation-duration: 22s;
    }

    .partner-card {
        width: 118px;
        padding: 0.65rem 0.5rem;
    }

    .partners__stats {
        flex-wrap: wrap;
        gap: 0.75rem 1.25rem;
        border-radius: 16px;
        padding: 0.75rem 1rem;
    }

    .partners-stat + .partners-stat::before { display: none; }
    .partners-stat { min-width: 90px; }

    /* Projects */
    .projects__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card__media {
        aspect-ratio: 16 / 9;
    }

    /* FAQ */
    .faq-item__question { gap: 0.75rem; }
    .faq-item__icon { width: 24px; height: 24px; }

    /* Team */
    .team__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 320px;
        margin-inline: auto;
    }
}


/* ============================================================
   11. RESPONSIVE — TINY PHONE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {

    .about__stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .stat {
        padding-block: 0.5rem;
        /* border-bottom: 1px solid var(--border-light); */
    }

    .stat:last-child { border-bottom: none; }
}


/* ============================================================
   12. UNIFIED CARD INTERACTIONS
   Applies consistent hover / focus / press behaviour to all cards
   ============================================================ */
.team-card,
.project-card,
.service-card,
.partner-card,
.job-card,
.perk-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;

    transition: transform 0.2s ease,
                box-shadow 0.2s ease,
                border-color 0.2s ease,
                background-color 0.2s ease;
}

@media (hover: hover) {
    .team-card:hover,
    .project-card:hover,
    .service-card:hover,
    .partner-card:hover,
    .job-card:hover,
    .perk-card:hover {
        transform: translateY(-4px);
        border-color: var(--primary);
        box-shadow: 0 12px 28px rgba(41, 45, 48, 0.10);
    }
}

.team-card:focus-visible,
.project-card:focus-visible,
.service-card:focus-visible,
.partner-card:focus-visible,
.job-card:focus-visible,
.perk-card:focus-visible {
    outline: 3px solid var(--primary-soft);
    outline-offset: 2px;
    border-color: var(--primary);
}

.team-card:active,
.project-card:active,
.service-card:active,
.partner-card:active,
.job-card:active,
.perk-card:active {
    transform: scale(0.985);
    transition-duration: 0.08s;
}

/* Image zoom inside cards */
.team-card__photo img,
.project-card__media img,
.service-card__image-wrapper img,
.partner-card__logo img,
.job-card__media img {
    transition: transform 0.4s ease;
}

.team-card:hover .team-card__photo img,
.project-card:hover .project-card__media img,
.service-card:hover .service-card__image-wrapper img,
.partner-card:hover .partner-card__logo img,
.job-card:hover .job-card__media img {
    transform: scale(1.05);
}


/* ============================================================
   13. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

    .hero__image,
    .about__image {
        animation: none;
    }

    .btn-cta,
    .faq-item__icon,
    .faq-item__answer,
    .team-card,
    .team-card__photo img,
    .team-card__arrow,
    .project-card,
    .project-card__media img,
    .service-card,
    .service-card__image-wrapper img,
    .partner-card,
    .partner-card__logo img,
    .job-card,
    .job-card__media img,
    .perk-card {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }

    /* Keep arrow + filter buttons visible without hover */
    .team-card__arrow {
        opacity: 1;
        transform: none;
    }

    .marquee__track {
        animation: none;
    }

    .marquee {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .marquee::-webkit-scrollbar { display: none; }
}