/**
 * Technology section (homepage feature cards).
 *
 * Same card design as the magnaterra.com.au landing page (rounded bordered cards,
 * orange glow at the top that grows on hover, lift on hover) but using the new
 * brand colours: Secondary/Orange #F65B1B (rgb 246, 91, 27).
 *
 * Rules are scoped under .technology-cards-section so they override the older,
 * unscoped .tech-card / .card-* rules in home.css (which still use the legacy
 * orange #F95035).
 */

.technology-cards-section {
    --tech-orange: #F65B1B;
    --tech-orange-strong: rgba(246, 91, 27, 0.6);
    --tech-orange-soft: rgba(246, 91, 27, 0.36);
    background-color: #000;
    padding: clamp(3.5rem, 8vw, 100px) 0;
}

.technology-cards-section .section-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: clamp(1.25rem, 5vw, 5rem);
    padding-right: clamp(1.25rem, 5vw, 5rem);
}

/* Title: matches the "Our Partners" eyebrow (Desktop/Body/Large | Caps) */
.technology-cards-section .section-title {
    color: #fff;
    font-family: "forma-djr-text", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 2rem;
}

.technology-cards-section .technology-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.technology-cards-section .tech-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 40px 30px;
    min-height: 520px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    background-color: #050505;
    text-align: left; /* override .tech-card { text-align: center } in components.css */
    transition: transform 0.3s ease;
}

/* Orange glow at the top — fades smoothly to transparent (no hard edge),
   grows downward on hover. */
.technology-cards-section .tech-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(
        180deg,
        rgba(246, 91, 27, 0.55) 0%,
        rgba(246, 91, 27, 0.22) 38%,
        rgba(246, 91, 27, 0) 100%
    );
    transition: height 0.6s ease;
    z-index: 0;
}

/* Crisp, complete border drawn above the glow so all four sides read evenly. */
.technology-cards-section .tech-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 26px;
    pointer-events: none;
    z-index: 2;
}

.technology-cards-section .tech-card:hover {
    transform: translateY(-10px);
}

.technology-cards-section .tech-card:hover::before {
    height: 82%;
}

.technology-cards-section .tech-card > * {
    position: relative;
    z-index: 1;
}

.technology-cards-section .card-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    object-position: left;
}

.technology-cards-section .card-title {
    color: #fff;
    font-family: "Forma DJR Text", "forma-djr-text", sans-serif;
    font-size: clamp(1.75rem, 3vw, 40px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 1.6px;
    margin: 0;
}

.technology-cards-section .card-line {
    width: 100%;
    max-width: none; /* override .tech-card .card-line { max-width: 60px } in components.css */
    height: 0.5px;
    border: none;
    border-top: none;
    background: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.technology-cards-section .card-description {
    color: #a6a6a6;
    font-family: "Forma DJR Text", "forma-djr-text", sans-serif;
    font-size: clamp(1rem, 1.6vw, 20px);
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 0.8px;
    margin: 0;
}

@media (max-width: 992px) {
    .technology-cards-section .technology-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .technology-cards-section .tech-card {
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    .technology-cards-section .technology-cards {
        grid-template-columns: 1fr;
    }
    .technology-cards-section .tech-card {
        min-height: 0;
    }
}

@media (max-width: 767px) {
    .technology-cards-section .section-title {
        font-size: 16px;
        letter-spacing: 1.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .technology-cards-section .tech-card,
    .technology-cards-section .tech-card::before {
        transition: none;
    }
    .technology-cards-section .tech-card:hover {
        transform: none;
    }
}
