/* =========================================================================
   Technology Page - Hero Section
   ========================================================================= */

html, body {
    overflow-x: hidden;
}

.technology-page {
    width: 100%;
}

.tech-hero-section {
    padding: 80px 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

/* Space between multiple sections */
.tech-hero-section+.tech-hero-section {
    padding-top: 0;
}

.tech-hero-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 120px;
    max-width: 1291px;
    width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ---- Reversed Layout: Video on left, text on right ---- */
.tech-hero--reversed .tech-hero-container {
    flex-direction: row-reverse;
}

/* ---- Text Column ---- */
.tech-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    flex: 1 1 0;
    min-width: 0;
}

.tech-hero-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.tech-hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 48px;
    line-height: 120%;
    letter-spacing: -0.01em;
    color: #0A1837;
    margin: 0;
}

.tech-hero--first .tech-hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 110%;
}

.tech-hero-description-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.tech-hero-description {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 160%;
    color: #0A1837;
    margin: 0;
}

/* ---- Media Column (Video / Image) ---- */
.tech-hero-media-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    flex: 1 1 0;
    min-width: 0;
}

.tech-hero-media-container {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.tech-hero-media-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 16px;
}

.tech-hero-media-container video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 16px;
    aspect-ratio: 1 / 1;
}

/* Play/Pause Button Overlay */
.tech-hero-play-btn {
    position: absolute;
    bottom: 26px;
    left: 26px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(217, 217, 217, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
    padding: 0;
}

.tech-hero-play-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

.tech-hero-play-btn svg {
    width: 32px;
    height: 32px;
    fill: #D9D9D9;
}

/* =========================================================================
   Technology Page - Placeholder Section
   ========================================================================= */

.tech-placeholder-section {
    padding: 80px 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.tech-placeholder-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    max-width: 1291px;
    width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
    box-sizing: border-box;
}

/* =========================================================================
   Technology Page - Credibility / Awards Section
   ========================================================================= */

.tech-credibility-section {
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden; /* Prevent edge overflow */
}

.tech-credibility-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
    max-width: 1291px;
    padding: 0 1rem; /* Standard theme padding */
    margin: 0 auto;
    box-sizing: border-box;
}

/* Header */
.tech-credibility-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 24px;
    max-width: 863px;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.tech-credibility-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 40px;
    line-height: 120%;
    letter-spacing: -0.01em;
    color: #0A1837;
    margin: 0;
}

.tech-credibility-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 140%;
    color: #4A5565;
    margin: 0;
}

/* Card Grid */
.tech-credibility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
    max-width: 970px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Individual Card */
.tech-credibility-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 12px;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.tech-credibility-card-image {
    width: 100px;
    height: 100px;
    min-width: 100px;
    background: #D9D9D9;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-credibility-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-credibility-card-content {
    display: flex;
    flex-direction: column;
}

.tech-credibility-card-year {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 100%;
    color: #4A5565;
    margin-bottom: 16px;
    display: block;
}

.tech-credibility-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0.01em;
    color: #1E2939;
    margin: 0 0 8px 0;
}

.tech-credibility-card-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: #4A5565;
    margin: 0;
}

/* =========================================================================
   Technology Page - Responsive
   ========================================================================= */

@media (max-width: 1200px) {
    .tech-hero-container {
        gap: 60px;
    }

    .tech-hero-title {
        font-size: 52px;
    }
}

@media (max-width: 1024px) {
    .tech-hero-container {
        flex-direction: column;
        gap: 48px;
        align-items: center;
    }

    /* On mobile, always stack text first regardless of layout */
    .tech-hero--reversed .tech-hero-container {
        flex-direction: column;
    }

    .tech-hero-content {
        max-width: 100%;
    }

    .tech-hero-media-wrapper {
        max-width: 100%;
    }

    .tech-hero-title {
        font-size: 48px;
    }

    .tech-credibility-container {
        padding: 0 40px;
    }

    .tech-credibility-grid {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
    }

    /* Center align cards on tablet */
    .tech-credibility-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tech-credibility-card-content {
        align-items: center;
    }

    .tech-credibility-card-year {
        margin-bottom: 12px;
    }
}

@media (max-width: 768px) {
    .tech-hero-section {
        padding: 40px 0;
    }

    .tech-hero-container {
        gap: 32px;
    }

    .tech-hero-title {
        font-size: 36px;
    }

    .tech-hero-description {
        font-size: 16px;
    }

    .tech-hero-play-btn {
        width: 56px;
        height: 56px;
        bottom: 16px;
        left: 16px;
    }

    .tech-hero-play-btn svg {
        width: 24px;
        height: 24px;
    }

    .tech-credibility-container {
        padding: 0 16px;
    }

    .tech-credibility-title {
        font-size: 32px;
    }

    .tech-credibility-subtitle {
        font-size: 16px;
    }

    .tech-credibility-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .tech-credibility-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0;
        gap: 16px;
    }

    .tech-credibility-card-content {
        align-items: center;
    }

    .tech-credibility-card-image {
        width: 80px;
        height: 80px;
        min-width: 80px;
    }
    
    .tech-credibility-card-year {
        margin-bottom: 8px;
    }
}

@media (max-width: 425px) {
    .tech-credibility-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   Animations (Ported from About Us)
   ========================================================================= */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.fade-in-up {
    transform: translateY(40px);
}

.animate-on-scroll.fade-in-left {
    transform: translateX(40px);
}

.animate-on-scroll.fade-in-right {
    transform: translateX(-40px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}