/* Enhanced Ecosystem Section Visibility Fixes */

/* Ensure text visibility */
.ecosystem-grid, .service-grid, .contact-options {
    visibility: visible !important;
    display: grid !important;
}

.ecosystem-card, .service-card, .contact-card {
    visibility: visible !important;
    display: block !important;
    opacity: 1 !important;
}

.ecosystem-card {
    padding: 2.5rem;
    border: 2px solid var(--smoky-graphite) !important;
    background: linear-gradient(135deg, rgba(91, 108, 125, 0.1) 0%, rgba(59, 30, 51, 0.1) 100%) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    min-height: 280px;
    transform: translateZ(0);
    will-change: transform;
}

.ecosystem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(198, 166, 100, 0.05) 0%, rgba(198, 166, 100, 0.02) 100%);
    opacity: 1;
    z-index: 0;
}

.ecosystem-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(198, 166, 100, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
    transform: scale(0);
}

.ecosystem-card:hover {
    transform: translateY(-5px);
    border-color: var(--antique-gold) !important;
    box-shadow: 0 15px 30px rgba(198, 166, 100, 0.25);
}

.ecosystem-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.ecosystem-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    color: var(--text-light) !important;
}

.ecosystem-card:hover h3 {
    color: var(--antique-gold) !important;
    transform: translateX(5px);
}

.ecosystem-card .role {
    color: var(--antique-gold) !important;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    font-weight: 600;
}

.ecosystem-card p {
    color: var(--text-muted) !important;
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

/* Enhanced Ecosystem Links */
.ecosystem-link {
    display: inline-flex;
    align-items: center;
    color: var(--antique-gold) !important;
    text-decoration: none;
    font-size: 0.95rem;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid var(--antique-gold);
    background: rgba(198, 166, 100, 0.1);
}

.ecosystem-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.ecosystem-link:hover {
    transform: translateX(5px);
    background: var(--antique-gold);
    color: var(--eerie-black) !important;
}

.ecosystem-link:hover::after {
    transform: translateX(3px);
}

/* Enhanced Service Cards */
.service-card {
    padding: 2rem;
    border: 2px solid var(--smoky-graphite) !important;
    background: linear-gradient(135deg, rgba(91, 108, 125, 0.05) 0%, rgba(59, 30, 51, 0.05) 100%) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    min-height: 200px;
    transform: translateZ(0);
    will-change: transform;
}

.service-grid {
    perspective: 1000px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(198, 166, 100, 0.1) 0%, rgba(198, 166, 100, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: var(--antique-gold) !important;
    box-shadow: 0 20px 40px rgba(198, 166, 100, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card h3 {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    color: var(--text-light) !important;
}

.service-card:hover h3 {
    color: var(--antique-gold) !important;
}

.service-card p {
    color: var(--text-muted) !important;
    position: relative;
    z-index: 1;
}

/* Enhanced Contact Cards */
.contact-card {
    padding: 2rem;
    border: 2px solid var(--smoky-graphite) !important;
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.8) 0%, rgba(59, 30, 51, 0.2) 100%) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    min-height: 400px;
    transform: translateZ(0);
    will-change: transform;
}

.contact-options {
    perspective: 1000px;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(198, 166, 100, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.contact-card:hover {
    border-color: var(--antique-gold) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(198, 166, 100, 0.2);
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card h3 {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    color: var(--text-light) !important;
}

.contact-card:hover h3 {
    color: var(--antique-gold) !important;
}

.contact-card p {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    color: var(--text-muted) !important;
}

/* Enhanced Form Elements */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light) !important;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(28, 28, 28, 0.8);
    border: 2px solid var(--smoky-graphite);
    color: var(--text-light) !important;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--antique-gold);
    box-shadow: 0 0 10px rgba(198, 166, 100, 0.2);
}