main {
    padding: var(--spacing-2xl) var(--spacing-lg);
}

/* ===============================
   Section 1: Hero
   =============================== */
.tech-hero {
    min-height: 80vh;
    padding: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 55%),
        radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.14), transparent 55%),
        linear-gradient(135deg, #f9fafb, #eff6ff);
    box-shadow: var(--shadow-lg);
    align-items: center;
    position: relative;
    overflow: hidden;
}

.tech-hero-text {
    flex: 1.5;
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.tech-kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xs);
}

.tech-hero-text h1 {
    font-size: var(--font-size-4xl);
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.tech-hero-body {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-top: 0.25rem;
}

.tech-hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.tech-hero-image::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.25), transparent 65%);
    filter: blur(4px);
    z-index: 0;
}

.tech-hero-image img {
    max-width: 100%;
    border-radius: 22px;
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* ===============================
   Section 2: Technical Services
   =============================== */
.tech-section {
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
}

.tech-section:nth-of-type(even) {
    background-color: var(--bg-light);
}

.tech-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--spacing-xl);
}

.tech-section-header h2 {
    font-size: var(--font-size-3xl);
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.tech-section-header p {
    color: var(--text-light);
}

.tech-services-grid {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--spacing-lg);
    position: relative;
}

.tech-services-grid::before {
    content: "";
    position: absolute;
    left: 1.25rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(to bottom, rgba(148, 163, 184, 0.35), rgba(59, 130, 246, 0.35));
}

.tech-service-card {
    background-color: var(--bg-white);
    border-radius: 18px;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) 3.25rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.tech-service-card::before {
    content: "";
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 3px rgba(191, 219, 254, 0.7);
    position: absolute;
    left: 0.8rem;
    top: 1.4rem;
    z-index: 2;
}

.tech-service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(37, 99, 235, 0.06));
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
}

.tech-service-card h3 {
    position: relative;
    z-index: 1;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--primary-dark);
}

.tech-service-card:hover::after {
    opacity: 1;
}

.tech-service-desc {
    position: relative;
    z-index: 1;
    font-size: var(--font-size-xs);
    color: var(--text-light);
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), opacity var(--transition-slow), margin-top var(--transition-base);
}

.tech-service-card.is-open .tech-service-desc {
    margin-top: var(--spacing-xs);
    max-height: 4.5rem;
    opacity: 1;
}

/* ===============================
   Section 3: Safety & Security
   =============================== */
.safety-section {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.05), transparent 55%), var(--bg-light);
}

.safety-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-lg);
}

.safety-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    background-color: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: 18px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background-color var(--transition-base);
}

.safety-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: var(--font-size-sm);
    flex-shrink: 0;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.safety-icon svg {
    width: 1.4rem;
    height: 1.4rem;
}

.safety-content h3 {
    font-size: var(--font-size-base);
    margin-bottom: 0.25rem;
    color: var(--primary-dark);
}

.safety-content p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.safety-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
    background-color: #ffffff;
}

.safety-item:hover .safety-icon {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
}

/* ===============================
   Section 4–6 shared layout
   =============================== */
.tech-section-split {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: var(--spacing-xl);
    align-items: flex-start;
}

.tech-section-text h2 {
    font-size: var(--font-size-3xl);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.tech-section-text p {
    color: var(--text-light);
}

.tech-section-list ul {
    list-style: none;
    padding-left: 0;
    color: var(--text-light);
    font-size: var(--font-size-sm);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-sm) var(--spacing-lg);
}

.tech-section-list li {
    position: relative;
    padding: 0.75rem 0.75rem 0.75rem 2.4rem;
    border-radius: 12px;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.tech-section-list li::before {
    content: "";
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.tech-section-alt {
    background-color: var(--bg-light);
}

/* ===============================
   Reveal-on-scroll animation
   =============================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================
   Responsive
   =============================== */
@media (max-width: 960px) {
    .tech-hero {
        flex-direction: column-reverse;
        padding: var(--spacing-xl);
    }

    .tech-services-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tech-section-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .tech-section-list ul {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    main {
        padding: var(--spacing-xl) var(--spacing-sm);
    }

    .tech-hero-text h1 {
        font-size: var(--font-size-3xl);
    }

    .tech-services-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .safety-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
