/* Features Page Styles */

/* Hero Section */
.features-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(31, 157, 39, 0.05) 0%, 
        rgba(0, 0, 0, 0.8) 100%);
    padding: 4rem 2rem 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.features-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(31, 157, 39, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(31, 157, 39, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.features-hero-content {
    max-width: 1200px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.features-hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(31, 157, 39, 0.15);
    line-height: 1.2;
}

.hero-description {
    font-size: 1.15rem;
    color: #e0e0e0;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    background: var(--background-color, #1a1a1a);
    padding: 4rem 0;
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Feature Panel */
.feature-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
    padding: 3rem;
    background: linear-gradient(135deg, 
        rgba(31, 157, 39, 0.02) 0%, 
        rgba(0, 0, 0, 0.3) 100%);
    border-radius: 24px;
    border: 1px solid rgba(153, 153, 153, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(31, 157, 39, 0.3) 0%, 
        transparent 50%, 
        rgba(31, 157, 39, 0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-panel:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 0 40px rgba(31, 157, 39, 0.15),
                0 8px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.feature-panel:hover::before {
    opacity: 1;
}

/* Alternate layout for right-aligned images */
.feature-panel-right .feature-content {
    order: 2;
}

.feature-panel-right .feature-image {
    order: 1;
}

/* Feature Content */
.feature-content {
    padding: 1rem;
}

.feature-content h2 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
}

.feature-content h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--bs-primary);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(31, 157, 39, 0.5);
}

.feature-content p {
    font-size: 1.08rem;
    color: #c0c0c0;
    line-height: 1.7;
    margin-top: 2rem;
}

/* Feature Image */
.feature-image {
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    aspect-ratio: 2 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.feature-panel:hover .feature-image {
    border-color: rgba(31, 157, 39, 0.5);
    box-shadow: 0 0 20px rgba(31, 157, 39, 0.2);
}

.image-placeholder {
    font-size: 1.5rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .feature-panel {
        gap: 3rem;
        padding: 2.5rem;
        margin-bottom: 4rem;
    }
    
    .feature-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 900px) {
    .features-hero {
        min-height: 50vh;
        padding: 4rem 1.5rem 3rem 1.5rem;
    }
    
    .features-hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1.05rem;
    }
    
    .feature-panel {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
        margin-bottom: 3rem;
    }
    
    .feature-panel-right .feature-content {
        order: 1;
    }
    
    .feature-panel-right .feature-image {
        order: 2;
    }
    
    .feature-content h2 {
        font-size: 1.8rem;
    }
    
    .feature-content p {
        font-size: 1rem;
    }
    
    .feature-image {
        min-height: 300px;
    }
}

@media (max-width: 600px) {
    .features-hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .feature-panel {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .feature-content h2 {
        font-size: 1.5rem;
    }
    
    .feature-image {
        min-height: 250px;
    }
}
