/* ===============================
   FONT IMPORT
=============================== */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --main-green: #1b6331;
    --gray-text: #555;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* ===============================
   BASE
=============================== */
.tech-page {
    font-family: 'Pretendard', 'Jost', sans-serif;
    background: #fff;
    color: #111;
    text-align: center;
    letter-spacing: -0.02em;
    overflow-x: hidden;
}

/* ===============================
   1. HEADER (카탈로그와 동일한 반응형)
=============================== */
.tech-header {
    text-align: center;
    padding: 0;
}

.tech-header .top-title {
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    font-weight: 400;
    color: #222;
    margin-bottom: 0.6rem;
}

.tech-header .top-sub {
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    color: #777;
    margin-bottom: 1.2rem;
}

.tech-header .main-title {
    font-family: 'Jost', sans-serif;
    color: var(--main-green);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 4rem;
}

/* ===============================
   2. INTRO
=============================== */
.tech-intro {
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.tech-intro .tech-logo {
    width: 90px;
    margin-bottom: 1rem;
}

.tech-intro h4 {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tech-intro .desc {
    font-size: clamp(0.9rem, 1.3vw, 0.95rem);
    color: var(--gray-text);
    line-height: 1.9;
    max-width: 800px;
    margin: 0 auto;
}

/* ===============================
   3. CERTIFICATES
=============================== */
.tech-certificates {
    padding: 2rem 1rem 4rem;
}

.cert-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    max-width: 1500px;
    margin: 0 auto;
}

.cert-item {
    width: 180px;
    text-align: center;
    transition: all 0.3s ease;
}

.cert-item img {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: 0.3s ease;
}

.cert-item img:hover {
    transform: scale(1.05);
}

.cert-item p {
    font-size: 0.85rem;
    color: #444;
    margin-top: 0.6rem;
}

/* ===============================
   4. VALUES (원형)
=============================== */
.tech-values {
    padding: 5rem 1rem 6rem;
    background: #fff;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    justify-items: center;
    max-width: 1500px;
    margin: 0 auto;
}

.value-item {
    aspect-ratio: 1 / 1;
    width: 270px;
    border: 1px solid #bbb;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.value-item:hover {
    border-color: var(--main-green);
    transform: translateY(-4px);
}

.value-item img {
    width: 55px;
    height: 55px;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.value-item h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #222;
}

.value-item p {
    font-size: 0.8rem;
    color: #444;
    line-height: 1.6;
}

/* ===============================
   5. FOOTER
=============================== */
.tech-footer {
    border-top: 1px solid #eee;
    padding: 2rem 0;
    font-size: 0.85rem;
    color: #666;
}

/* ===============================
   RESPONSIVE
=============================== */

/* --- 1400px 이하 : 간격 축소 --- */
@media (max-width: 1400px) {
    .cert-grid {
        gap: 2rem;
    }

    .values-grid {
        gap: 2.5rem;
    }
}

/* --- 1200px 이하 : values 2열 고정 --- */
@media (max-width: 1200px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .value-item {
        width: 100%;
        max-width: 320px;
    }
}

/* --- 1024px 이하 : cert 4개로 변경 --- */
@media (max-width: 1024px) {
    .cert-item {
        width: 160px;
    }

    .cert-grid {
        gap: 1.8rem;
    }

    .tech-intro .desc {
        font-size: 0.9rem;
    }
}

/* --- 900px 이하 : cert 3개로 변경 --- */
@media (max-width: 900px) {
    .cert-grid {
        gap: 1.5rem;
    }

    .cert-item {
        width: 150px;
    }

    .value-item {
        max-width: 280px;
    }
}

/* --- 600px 이하 : cert 2개씩 / 비율 줄이기 --- */
@media (max-width: 600px) {
    .cert-grid {
        justify-content: center;
        gap: 1rem;
    }

    .cert-item {
        width: 45%;
        max-width: 160px;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .value-item {
        max-width: 240px;
    }

    .tech-intro h4 {
        font-size: 1.1rem;
    }
    .value-item p {
        display: none;
    }
    .tech-values {
        padding: 1rem 1rem 3rem;
    }
}

/* --- 400px 이하 : cert 2개 고정 / 텍스트 축소 --- */
@media (max-width: 400px) {
    .cert-grid {
        gap: 0.8rem;
    }

    .cert-item {
        width: 48%;
    }

    .value-item {
        max-width: 220px;
        padding: 1.2rem;
    }

    .value-item h5 {
        font-size: 0.9rem;
    }

    .value-item p {
        font-size: 0.75rem;
        line-height: 1.5;
    }
}
