/* Enhanced sections */

/* Mission, vision, values */
.mv {
    position: relative;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.mv-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.mv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, #ffd700 50%, var(--primary) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mv-card:hover::before {
    opacity: 1;
}

.mv-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mv-card:hover::after {
    opacity: 1;
}

.mv-card:hover {
    transform: translateY(-10px);
    border-color: rgba(217, 119, 6, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                0 0 40px rgba(217, 119, 6, 0.08);
    background: var(--bg-card);
}

.mv-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 10px rgba(217, 119, 6, 0.2));
}

.mv-card:hover i {
    transform: scale(1.1) rotateY(360deg);
    filter: drop-shadow(0 0 20px rgba(217, 119, 6, 0.4));
}

.mv-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mv-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Services */
.services {
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 35px 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    z-index: 0;
}

.service-card:hover .service-number {
    color: rgba(0, 0, 0, 0.06);
    transform: scale(1.2);
}

.service-card .card-icon {
    width: 70px;
    height: 70px;
    background: rgba(217, 119, 6, 0.1);
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.service-card:hover .card-icon {
    background: rgba(217, 119, 6, 0.15);
    border-color: var(--primary);
    transform: rotateY(360deg);
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.15);
}

.service-card .card-icon i {
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.4s ease;
}

.service-card:hover .card-icon i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(217, 119, 6, 0.4));
}

.service-card .card-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.service-card:hover .card-title {
    color: var(--primary);
}

.service-card .card-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(217, 119, 6, 0.3);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12),
                0 0 30px rgba(217, 119, 6, 0.06);
    background: var(--bg-card);
}

/* CTA */
.cta {
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(217, 119, 6, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(217, 119, 6, 0.05) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 30px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.cta-content h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 50%, var(--text-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-shift 3s linear infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 16px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cta-buttons .btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    color: white;
}

.cta-buttons .btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

.cta-buttons .btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.cta-buttons .btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.3);
}

/* Stats */
.stats {
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(217, 119, 6, 0.04), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
    text-shadow: 0 0 20px rgba(217, 119, 6, 0.2);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Coverage */
.coverage {
    position: relative;
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.coverage-card {
    text-align: center;
    padding: 35px 25px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.coverage-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.coverage-card:hover::after {
    transform: scaleX(1);
}

.coverage-card.primary {
    border: 1px solid rgba(217, 119, 6, 0.3);
    background: var(--bg-card);
}

.coverage-card:hover {
    transform: translateY(-8px);
    border-color: rgba(217, 119, 6, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.coverage-icon {
    width: 60px;
    height: 60px;
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.coverage-card:hover .coverage-icon {
    background: rgba(217, 119, 6, 0.15);
    border-color: var(--primary);
    transform: rotateY(360deg);
}

.coverage-icon i {
    font-size: 1.8rem;
    color: var(--primary);
}

.coverage-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.coverage-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Team with 3D */
.team-section {
    position: relative;
    overflow: hidden;
}

.team-canvas-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 8% 16%, rgba(217, 119, 6, 0.10) 0%, transparent 48%),
        radial-gradient(ellipse at 90% 82%, rgba(51, 65, 85, 0.05) 0%, transparent 52%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.88) 0%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}

.team-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(51, 65, 85, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(217, 119, 6, 0.03) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.75;
}

.team-section .section-title {
    margin-bottom: 0.65rem;
    line-height: 0.92;
}

.team-section .section-title::before {
    content: 'ESTRUCTURA HUMANA';
    display: block;
    margin-bottom: 0.9rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--accent-light);
}

.team-section .section-title::after {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
    opacity: 0.85;
}

.team-section .section-subtitle {
    max-width: 720px;
    margin-bottom: 2.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
    margin-top: 34px;
    position: relative;
    z-index: 2;
}

.team-card {
    perspective: 1200px;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}

.team-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: 
        conic-gradient(from 0deg at 50% 50%,
            rgba(217, 119, 6, 0.15),   /* primary */
            rgba(30, 41, 59, 0.12),    /* accent */
            rgba(217, 119, 6, 0.15),
            rgba(217, 119, 6, 0.18),
            rgba(217, 119, 6, 0.15),
            rgba(30, 41, 59, 0.1),
            rgba(217, 119, 6, 0.12)
        );
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
    animation: teamBorderSpin 6s linear infinite;
}

.team-card:hover::after {
    opacity: 1;
}

@keyframes teamBorderSpin {
    to { transform: rotate(360deg); }
}

.team-card-inner {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-top: 3px solid rgba(217, 119, 6, 0.45);
    border-radius: 24px;
    padding: 20px;
    text-align: center;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    transform-style: flat;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    isolation: isolate;
}

.team-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(217, 119, 6, 0.06) 0%, transparent 42%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.team-card-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(240, 180, 41, 0.04) 50%, transparent 60%);
    background-size: 300% 300%;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
    pointer-events: none;
}

.team-card:hover .team-card-inner::before {
    opacity: 1;
}

.team-card:hover .team-card-inner::after {
    opacity: 1;
    animation: teamShimmer 2.5s ease infinite;
}

@keyframes teamShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

@keyframes teamPulse {
    0% { transform: translateY(-10px) scale(1.01); }
    50% { transform: translateY(-15px) scale(1.03); }
    100% { transform: translateY(-10px) scale(1.01); }
}

.team-card:hover .team-card-inner {
    transform: translateY(-15px) scale(1.04) rotateX(5deg) rotateY(5deg);
    border-color: rgba(217, 119, 6, 0.3);
    box-shadow: 
      0 10px 30px rgba(217, 119, 6, 0.1),
      0 20px 60px rgba(217, 119, 6, 0.15),
      0 0 0 2px rgba(217, 119, 6, 0.1),
      inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    filter: drop-shadow(0 0 20px rgba(217, 119, 6, 0.4));
}

.team-card:focus-visible .team-card-inner {
    transform: translateY(-8px);
    border-color: rgba(217, 119, 6, 0.28);
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(217, 119, 6, 0.16);
}

.team-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    z-index: 1;
    margin-bottom: 12px;
}

.team-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.08), transparent 50%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.team-card:hover .team-photo::before {
    opacity: 1;
}

.team-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.08), rgba(51, 65, 85, 0.03), rgba(217, 119, 6, 0.05));
    background-size: 200% 200%;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease,
                background-position 0.6s ease;
    animation: teamBgShift 8s ease-in-out infinite alternate;
}

@keyframes teamBgShift {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.team-photo-placeholder i {
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.6;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.4s ease;
    filter: drop-shadow(0 2px 8px rgba(30, 41, 59, 0.15));
}

.team-photo-role {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    line-height: 1.2;
    padding: 0 10px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                color 0.3s ease;
}

.team-card:hover .team-photo-placeholder {
    transform: scale(1.04);
    box-shadow: 0 16px 40px rgba(217, 119, 6, 0.18);
    border-color: rgba(217, 119, 6, 0.25);
}

.team-card:hover .team-photo-placeholder i {
    transform: scale(1.1) translateY(-2px);
    opacity: 0.9;
    filter: drop-shadow(0 4px 12px rgba(217, 119, 6, 0.25));
}

.team-card:hover .team-photo-role {
    transform: scale(1.05);
    color: #b45309;
}

.team-dept-label {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.team-card:hover .team-dept-label {
    color: var(--primary);
}

/* Team connection */
.team-connections {
    position: relative;
    width: 100%;
    height: 60px;
    margin-top: 40px;
    z-index: 1;
    overflow: visible;
}

.team-conn-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: teamDrawLine 3s ease forwards 1s;
}

@keyframes teamDrawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes teamCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.team-card:nth-child(odd) .team-card-inner {
    animation: teamCardFloat 5s ease-in-out infinite;
}

.team-card:nth-child(even) .team-card-inner {
    animation: teamCardFloat 6s ease-in-out infinite 0.5s;
}

.team-card:nth-child(3n) .team-card-inner {
    animation: teamCardFloat 4s ease-in-out infinite 1s;
}

/* Responsive */
@media (max-width: 768px) {
    .mv-grid,
    .services-grid,
    .stats-grid,
    .coverage-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .team-section .section-title::before {
        font-size: 0.7rem;
        letter-spacing: 0.24em;
    }

    .team-section .section-subtitle {
        margin-bottom: 2rem;
    }
    
    .team-photo {
        margin-bottom: 10px;
    }

    .team-photo-placeholder i {
        font-size: 2.4rem;
    }

    .team-photo-role {
        font-size: 0.85rem;
    }

    .team-card-inner {
        padding: 20px;
        border-radius: 20px;
    }

    .team-connections {
        height: 30px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    

    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* Team modal overlay */
.team-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(15, 23, 42, 0.70);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.team-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}


.team-modal-container {
    position: relative;
    width: 100%;
    max-width: 820px;
    max-height: 85vh;
    background: var(--bg-primary);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 22px;
    overflow: hidden;
    transform: scale(0.90) translateY(36px);
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.team-modal-overlay.open .team-modal-container {
    transform: scale(1) translateY(0);
}


.team-modal-container::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.10), transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.team-modal-container::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(51, 65, 85, 0.06), transparent 68%);
    pointer-events: none;
    z-index: 0;
}


.team-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(217, 119, 6, 0.09);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-modal-close:hover {
    background: rgba(217, 119, 6, 0.18);
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 22px rgba(217, 119, 6, 0.22);
}


.team-modal-header {
    padding: 28px 36px 22px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
}

.team-modal-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: 50px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    background: rgba(217, 119, 6, 0.11);
    border: 1px solid rgba(217, 119, 6, 0.25);
    color: var(--primary);
    margin-bottom: 12px;
}

.team-modal-header h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
    letter-spacing: 0.3px;
}

.team-modal-header h2 .modal-highlight {
    color: var(--primary);
}

.team-modal-header p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.65;
    max-width: 560px;
}


.team-modal-body {
    padding: 24px 36px 34px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    position: relative;
    z-index: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(217, 119, 6, 0.22) transparent;
}

.team-modal-body::-webkit-scrollbar {
    width: 5px;
}

.team-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.team-modal-body::-webkit-scrollbar-thumb {
    background: rgba(217, 119, 6, 0.22);
    border-radius: 999px;
}


.team-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 16px;
}


.team-modal-member {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px 18px 18px;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: default;
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    transition:
        opacity    0.55s cubic-bezier(0.23, 1, 0.32, 1),
        transform  0.55s cubic-bezier(0.23, 1, 0.32, 1),
        border-color 0.3s ease,
        box-shadow   0.3s ease;
}


.team-modal-member::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -70%;
    width: 45%;
    height: 210%;
    background: linear-gradient(
        112deg,
        transparent 30%,
        rgba(217, 119, 6, 0.065) 50%,
        transparent 70%
    );
    transform: skewX(-20deg);
    transition: left 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.team-modal-member:hover::before {
    left: 120%;
}


.team-modal-member::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.team-modal-member:hover {
    border-color: rgba(217, 119, 6, 0.22);
    box-shadow: 0 10px 36px rgba(217, 119, 6, 0.09), 0 0 0 4px rgba(217,119,6,0.07);
    transform: translateY(-4px) scale(1.02);
}

.team-modal-member:hover::after {
    opacity: 1;
    left: 5%;
    right: 5%;
}


.team-modal-avatar {
    width: 60px;
    height: 60px;
    margin: 0 auto 13px;
    position: relative;
}

.team-modal-avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(217, 119, 6, 0.18);
    animation: modalRingPulse 3.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes modalRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.18); opacity: 1; }
}

.team-modal-avatar-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.17), rgba(217, 119, 6, 0.04));
    border: 2px solid rgba(217, 119, 6, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: var(--primary);
    position: relative;
    z-index: 1;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-modal-member:hover .team-modal-avatar-circle {
    border-color: var(--primary);
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.18), 0 0 0 3px rgba(217,119,6,0.09);
}


.team-modal-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.team-modal-member:hover .team-modal-name {
    color: var(--primary);
}


.team-modal-role {
    display: inline-block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(217, 119, 6, 0.09);
    padding: 2px 10px;
    border-radius: 16px;
    border: 1px solid rgba(217, 119, 6, 0.18);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.team-modal-member:hover .team-modal-role {
    background: rgba(217, 119, 6, 0.15);
    border-color: rgba(217, 119, 6, 0.35);
}


.team-modal-email {
    display: block;
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
    text-decoration: none;
}

.team-modal-email:hover {
    color: var(--primary);
}


.team-modal-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 5px 16px;
    border-radius: 20px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: none;
}

.team-modal-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.28);
    color: var(--bg-primary);
}

/* Modal responsive */
@media (max-width: 900px) {
    .team-modal-container {
        max-height: 90vh;
    }

    .team-modal-header {
        padding: 22px 22px 18px;
    }

    .team-modal-header h2 {
        font-size: 1.5rem;
    }

    .team-modal-body {
        padding: 18px 22px 26px;
    }

    .team-modal-close {
        top: 14px;
        right: 14px;
        width: 36px;
        height: 36px;
    }

    .team-modal-grid {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
        gap: 12px;
    }

    .team-modal-avatar {
        width: 52px;
        height: 52px;
    }

    .team-modal-avatar-circle {
        font-size: 1.2rem;
    }
}

@media (max-width: 500px) {
    .team-modal-container {
        max-width: 100%;
        border-radius: 16px;
    }

    .team-modal-header {
        padding: 18px 16px 14px;
    }

    .team-modal-body {
        padding: 14px 16px 20px;
    }

    .team-modal-header h2 {
        font-size: 1.25rem;
    }

    .team-modal-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .team-modal-avatar {
        width: 46px;
        height: 46px;
    }
}

    
    .cta-buttons .btn {
        width: 100%;
    }


/* Team expand/collapse */
.team-card-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    flex-shrink: 0;
}

.team-card:hover .team-card-toggle {
    background: rgba(217, 119, 6, 0.15);
    border-color: rgba(217, 119, 6, 0.3);
    box-shadow: 0 0 16px rgba(217, 119, 6, 0.15);
}

.team-card-toggle i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.team-card.expanded .team-card-toggle i {
    transform: rotate(180deg);
}

.team-card.expanded .team-card-toggle {
    background: rgba(217, 119, 6, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.25);
}


.team-member-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity      0.4s ease,
                margin       0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    margin-top: 0;
    overflow: hidden;
    pointer-events: none;
}

.team-member-panel.open {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 22px;
    pointer-events: all;
}

.team-member-panel-inner {
    min-height: 0;
}


.team-member-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217, 119, 6, 0.25), transparent);
    margin-bottom: 22px;
}


.team-panel-heading {
    text-align: center;
    margin-bottom: 24px;
}

.team-panel-heading h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.team-panel-heading h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}


.team-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
}


.team-member-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px 18px 18px;
    text-align: center;
    cursor: default;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
}

.team-member-panel.open .team-member-card {
    opacity: 1;
    transform: translateY(0);
}


.team-member-card:nth-child(1)  { transition-delay: 0.05s; }
.team-member-card:nth-child(2)  { transition-delay: 0.10s; }
.team-member-card:nth-child(3)  { transition-delay: 0.15s; }
.team-member-card:nth-child(4)  { transition-delay: 0.20s; }
.team-member-card:nth-child(5)  { transition-delay: 0.25s; }
.team-member-card:nth-child(6)  { transition-delay: 0.30s; }
.team-member-card:nth-child(7)  { transition-delay: 0.35s; }
.team-member-card:nth-child(8)  { transition-delay: 0.40s; }
.team-member-card:nth-child(9)  { transition-delay: 0.45s; }
.team-member-card:nth-child(10) { transition-delay: 0.50s; }


.team-member-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        115deg,
        transparent 30%,
        rgba(217, 119, 6, 0.07) 50%,
        transparent 70%
    );
    transform: skewX(-18deg);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.team-member-card:hover::before {
    left: 110%;
}


.team-member-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease, left 0.3s ease, right 0.3s ease;
    z-index: 1;
}

.team-member-card:hover::after {
    opacity: 0.9;
    left: 6%;
    right: 6%;
}


.team-member-avatar {
    width: 68px;
    height: 68px;
    margin: 0 auto 14px;
    position: relative;
    z-index: 1;
}

.team-member-avatar-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.18), rgba(217, 119, 6, 0.05));
    border: 2px solid rgba(217, 119, 6, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    color: var(--primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}


.team-member-avatar-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217,119,6,0.12), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    pointer-events: none;
}

.team-member-card:hover .team-member-avatar-circle::before {
    width: 140%;
    height: 140%;
}

.team-member-card:hover .team-member-avatar-circle {
    border-color: var(--primary);
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 12px 32px rgba(217, 119, 6, 0.18), 0 0 0 4px rgba(217,119,6,0.08);
}


.team-member-card:hover .team-member-avatar::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.25);
}

.team-member-avatar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 78px;
    height: 78px;
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: 0;
}


.team-member-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    transition: color 0.3s ease;
    pointer-events: none;
    z-index: 1;
    position: relative;
}

.team-member-card:hover .team-member-name {
    color: var(--primary);
}


.team-member-role {
    display: inline-block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(217, 119, 6, 0.09);
    border: 1px solid rgba(217, 119, 6, 0.18);
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1;
    position: relative;
}

.team-member-card:hover .team-member-role {
    background: rgba(217, 119, 6, 0.16);
    border-color: rgba(217, 119, 6, 0.35);
    box-shadow: 0 0 14px rgba(217, 119, 6, 0.1);
}


.team-member-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
    pointer-events: none;
    z-index: 1;
    position: relative;
}

.team-member-actions a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(217, 119, 6, 0.06);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.team-member-actions a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px) scale(1.12);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.28);
}


.team-member-contact {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
    z-index: 1;
    position: relative;
    pointer-events: none;
}

.team-member-contact i {
    color: var(--primary);
    margin-right: 5px;
}


.team-member-card.coming-soon {
    opacity: 0.45;
    filter: grayscale(0.5);
    pointer-events: none;
}

.team-member-card.coming-soon .team-member-avatar-circle {
    background: linear-gradient(135deg, rgba(148,163,184,0.12), transparent);
    border-color: rgba(148,163,184,0.18);
    color: var(--text-muted);
}

/* Responsive — team panels */
@media (max-width: 768px) {
    .team-member-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }

    .team-member-avatar {
        width: 56px;
        height: 56px;
    }

    .team-member-avatar-circle {
        font-size: 1.35rem;
    }

    .team-member-avatar-circle::before,
    .team-member-avatar::after {
        display: none;
    }

    .team-member-name {
        font-size: 0.95rem;
    }

    .team-member-role {
        font-size: 0.72rem;
        padding: 2px 10px;
    }

    .team-member-panel.open {
        margin-top: 16px;
    }

    .team-card-toggle {
        width: 28px;
        height: 28px;
        top: 12px;
        right: 12px;
        font-size: 0.78rem;
    }

    .team-panel-heading {
        margin-bottom: 18px;
    }

    .team-panel-heading h4 {
        font-size: 0.92rem;
    }
}

/* Team detail page */
.team-detail-page {
    position: relative;
    background: 
        radial-gradient(circle at 15% 20%, rgba(217, 119, 6, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(51, 65, 85, 0.08) 0%, transparent 45%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    overflow: hidden;
    isolation: isolate;
}

.team-detail-page::before {
    opacity: 0.8;
}

.team-detail-page::after {
    opacity: 0.8;
}

.team-detail-page .container::before {
    background-image:
        linear-gradient(rgba(217, 119, 6, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(217, 119, 6, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.7;
}

.team-detail-page .blueprint-corner {
    border-color: rgba(217, 119, 6, 0.22);
}

.team-detail-page .gradient-orb.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.12), transparent 70%);
    top: -10%;
    left: -15%;
    animation: orbFloat 24s ease-in-out infinite;
}

.team-detail-page .gradient-orb.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(51, 65, 85, 0.08), transparent 70%);
    bottom: -10%;
    right: -10%;
    animation: orbFloat 20s ease-in-out infinite -5s;
}

.team-detail-page .gradient-orb.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.06), transparent 70%);
    top: 35%;
    left: 45%;
    animation: orbFloat 22s ease-in-out infinite -10s;
}


.team-detail-card {
    background: rgba(255, 255, 255, 0.82) !important;
    border: 1px solid rgba(217, 119, 6, 0.12) !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06), 
                0 4px 12px rgba(217, 119, 6, 0.02) !important;
}


.team-detail-page .construction-lines::before {
    background: linear-gradient(90deg,
        transparent,
        rgba(217, 119, 6, 0.15) 20%,
        rgba(51, 65, 85, 0.2) 50%,
        rgba(217, 119, 6, 0.15) 80%,
        transparent
    );
}

.team-detail-page .construction-lines::after {
    background: linear-gradient(180deg,
        transparent,
        rgba(217, 119, 6, 0.12) 30%,
        rgba(217, 119, 6, 0.12) 70%,
        transparent
    );
}

/* ── Construction floating shapes ── */
.team-detail-page .constr-shape {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.1;
}

.team-detail-page .constr-hex {
    width: 60px;
    height: 60px;
    background: var(--primary);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    top: 12%;
    left: 4%;
    animation: constrFloatHex 14s ease-in-out infinite;
}

.team-detail-page .constr-cross {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 55%;
    right: 6%;
    animation: constrFloatCross 12s ease-in-out infinite;
}

.team-detail-page .constr-cross::before,
.team-detail-page .constr-cross::after {
    content: '';
    position: absolute;
    background: var(--primary);
    border-radius: 2px;
}

.team-detail-page .constr-cross::before {
    width: 100%;
    height: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.team-detail-page .constr-cross::after {
    width: 4px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.team-detail-page .constr-bracket {
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary);
    border-radius: 4px;
    top: 70%;
    left: 8%;
    animation: constrFloatBracket 10s ease-in-out infinite, constrSpin 25s linear infinite;
}

.team-detail-page .constr-ruler {
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--primary) 0px,
        var(--primary) 6px,
        transparent 6px,
        transparent 12px
    );
    top: 25%;
    right: 10%;
    width: 120px;
    animation: constrRulerSlide 6s ease-in-out infinite;
}

.team-detail-page .constr-ruler-v {
    width: 2px;
    background: repeating-linear-gradient(
        180deg,
        var(--primary) 0px,
        var(--primary) 6px,
        transparent 6px,
        transparent 12px
    );
    bottom: 18%;
    left: 15%;
    height: 100px;
    animation: constrRulerSlideV 7s ease-in-out infinite 1s;
}

.team-detail-page .constr-triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid var(--primary-light);
    top: 40%;
    left: 2%;
    animation: constrFloatTriangle 16s ease-in-out infinite;
}

.team-detail-page .constr-dot-grid {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, var(--primary) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    bottom: 10%;
    right: 4%;
    opacity: 0.08;
    animation: constrFloatDots 20s ease-in-out infinite;
}

.team-detail-page .constr-circle {
    width: 70px;
    height: 70px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    top: 80%;
    right: 20%;
    animation: constrFloatCircle 13s ease-in-out infinite;
}

@keyframes constrFloatHex {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -25px) rotate(90deg); }
    50% { transform: translate(-10px, -10px) rotate(180deg); }
    75% { transform: translate(15px, 20px) rotate(270deg); }
}

@keyframes constrFloatCross {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-15px, -20px) rotate(15deg); }
    66% { transform: translate(10px, 15px) rotate(-10deg); }
}

@keyframes constrFloatBracket {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-18px, -22px); }
}

@keyframes constrSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes constrRulerSlide {
    0%, 100% { transform: translateX(0) scaleX(1); opacity: 0.1; }
    25% { transform: translateX(-15px) scaleX(1.1); opacity: 0.18; }
    75% { transform: translateX(10px) scaleX(0.9); opacity: 0.12; }
}

@keyframes constrRulerSlideV {
    0%, 100% { transform: translateY(0) scaleY(1); opacity: 0.1; }
    25% { transform: translateY(-12px) scaleY(1.1); opacity: 0.18; }
    75% { transform: translateY(10px) scaleY(0.9); opacity: 0.12; }
}

@keyframes constrFloatTriangle {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(25px, -18px) rotate(8deg); }
    66% { transform: translate(-10px, 22px) rotate(-5deg); }
}

@keyframes constrFloatDots {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
}

@keyframes constrFloatCircle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-15px, -25px) scale(1.15); }
}

/* ── Additional construction shapes ── */
.team-detail-page .constr-shape {
    opacity: 0.12;
}

.team-detail-page .constr-gear {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    top: 20%;
    left: 50%;
    animation: constrSpin 12s linear infinite, constrFloat 8s ease-in-out infinite;
}
.team-detail-page .constr-gear::before {
    content: '';
    position: absolute;
    inset: 8px;
    background: transparent;
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
}
.team-detail-page .constr-gear::after {
    content: '';
    position: absolute;
    inset: -6px;
    background: transparent;
    border-radius: 50%;
    border: 4px dashed var(--primary);
    opacity: 0.4;
}

.team-detail-page .constr-diamond {
    width: 44px;
    height: 44px;
    background: rgba(217, 119, 6, 0.2);
    border: 2px solid var(--primary);
    transform: rotate(45deg);
    top: 8%;
    right: 25%;
    animation: constrFloatDiamond 11s ease-in-out infinite;
}

.team-detail-page .constr-diamond-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    border: 1px solid var(--primary-light);
}

.team-detail-page .constr-plus {
    width: 40px;
    height: 40px;
    top: 45%;
    left: 12%;
    animation: constrFloatPlus 9s ease-in-out infinite;
}
.team-detail-page .constr-plus::before,
.team-detail-page .constr-plus::after {
    content: '';
    position: absolute;
    background: var(--primary);
    border-radius: 2px;
}
.team-detail-page .constr-plus::before {
    width: 100%;
    height: 3px;
    top: 50%;
    transform: translateY(-50%);
}
.team-detail-page .constr-plus::after {
    width: 3px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.team-detail-page .constr-dimension {
    height: 30px;
    width: 80px;
    top: 50%;
    right: 3%;
    animation: constrFloatDim 10s ease-in-out infinite;
}
.team-detail-page .constr-dimension::before,
.team-detail-page .constr-dimension::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid var(--primary);
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.team-detail-page .constr-dimension::before {
    left: 0;
    border-right: none;
    border-top: none;
}
.team-detail-page .constr-dimension::after {
    right: 0;
    border-left: none;
    border-bottom: none;
}
.team-detail-page .constr-dimension span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 1px;
    background: var(--primary);
}
.team-detail-page .constr-dimension span::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 0;
    border-top: 1px dashed var(--primary);
}

.team-detail-page .constr-arc {
    width: 80px;
    height: 40px;
    border: 2px solid var(--primary);
    border-bottom: none;
    border-radius: 80px 80px 0 0;
    top: 65%;
    left: 3%;
    animation: constrFloatArc 13s ease-in-out infinite;
}

.team-detail-page .constr-angle {
    width: 0;
    height: 0;
    border-top: 50px solid transparent;
    border-bottom: 50px solid transparent;
    border-right: 50px solid rgba(217, 119, 6, 0.15);
    top: 30%;
    right: 2%;
    animation: constrFloatAngle 12s ease-in-out infinite;
}

.team-detail-page .constr-grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(217, 119, 6, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(217, 119, 6, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: constrGridPulse 8s ease-in-out infinite;
}

@keyframes constrGridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.team-detail-page .constr-connector-dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(217, 119, 6, 0.3);
    animation: constrDotPulse 2s ease-in-out infinite;
}
.team-detail-page .constr-connector-dot.dot-1 { top: 18%; left: 30%; }
.team-detail-page .constr-connector-dot.dot-2 { top: 18%; left: 70%; animation-delay: 0.5s; }
.team-detail-page .constr-connector-dot.dot-3 { top: 75%; left: 25%; animation-delay: 1s; }
.team-detail-page .constr-connector-dot.dot-4 { top: 75%; left: 75%; animation-delay: 1.5s; }

@keyframes constrDotPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 0.7; }
}

.team-detail-page .constr-level {
    width: 60px;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 3px;
    top: 85%;
    left: 5%;
    animation: constrFloatLevel 7s ease-in-out infinite, constrTilt 3s ease-in-out infinite;
}
.team-detail-page .constr-level::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 30%;
    width: 14px;
    height: 14px;
    background: var(--primary-light);
    border-radius: 50%;
    border: 2px solid var(--primary);
}

@keyframes constrTilt {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

.team-detail-page .constr-axis-x {
    position: absolute;
    left: 10px;
    bottom: 20px;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), transparent);
    z-index: 1;
    opacity: 0.15;
}
.team-detail-page .constr-axis-x::before {
    content: '>';
    position: absolute;
    right: -8px;
    top: -5px;
    color: var(--primary);
    font-size: 12px;
    font-weight: bold;
}

.team-detail-page .constr-axis-y {
    position: absolute;
    left: 10px;
    bottom: 20px;
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--primary), transparent);
    z-index: 1;
    opacity: 0.15;
}
.team-detail-page .constr-axis-y::before {
    content: '^';
    position: absolute;
    top: -12px;
    left: -6px;
    color: var(--primary);
    font-size: 12px;
    font-weight: bold;
}

@keyframes constrFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes constrFloatDiamond {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    25% { transform: rotate(55deg) translate(15px, -15px); }
    50% { transform: rotate(35deg) translate(-10px, -20px); }
    75% { transform: rotate(50deg) translate(10px, 10px); }
}

@keyframes constrFloatPlus {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(12px, -18px) rotate(15deg); }
    50% { transform: translate(-8px, 10px) rotate(-10deg); }
    75% { transform: translate(15px, 5px) rotate(5deg); }
}

@keyframes constrFloatDim {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-15px); }
}

@keyframes constrFloatArc {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(15px, -10px) rotate(5deg); }
    50% { transform: translate(-10px, -20px) rotate(-3deg); }
    75% { transform: translate(10px, 5px) rotate(4deg); }
}

@keyframes constrFloatAngle {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-15px, -20px) rotate(8deg); }
    66% { transform: translate(10px, 10px) rotate(-5deg); }
}

@keyframes constrFloatLevel {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 768px) {
    .team-detail-page .constr-shape,
    .team-detail-page .constr-grid-overlay,
    .team-detail-page .constr-connector-dot,
    .team-detail-page .constr-axis-x,
    .team-detail-page .constr-axis-y {
        display: none;
    }
}

