.features-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(176,0,42,0.03) 0%, rgba(255,30,86,0.03) 100%);
    flex: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,30,86,0.1);
    box-shadow: 0 5px 15px rgba(255,30,86,0.1);
    display: flex;
    flex-direction: column;
    min-height: 180px;
    position: relative;
    padding-bottom: 40px; /* Reduced from 50px */
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255,30,86,0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card h3 {
    color: #B0002A;
    margin: 0 0 15px;
    font-size: 1.4em;
}

.view-details {
    background: linear-gradient(135deg, #B0002A 0%, #FF1E56 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
    margin-bottom: 0px; /* Reduced from 35px */
}

.view-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,30,86,0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    margin: auto;
    border-radius: 15px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #B0002A;
}

.modal-body {
    padding: 30px;
}

.feature-details h2 {
    color: #B0002A;
    margin-bottom: 20px;
}

.feature-details .description {
    margin-bottom: 25px;
    line-height: 1.6;
}

.feature-commands {
    background: rgba(176,0,42,0.05);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.feature-commands code {
    display: block;
    padding: 8px;
    background: rgba(255,255,255,0.8);
    border-radius: 5px;
    margin: 5px 0;
    font-family: monospace;
    direction: ltr;
}

.feature-preview {
    margin-top: 20px;
    text-align: center;
    gap: 20px;
    display: flex;
    flex-direction: column;
    

}

.feature-preview img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 0 auto;
    display: block;
}

/* Dark Mode Overrides */
body.dark-mode .feature-card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .modal-content {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .feature-commands {
    background: rgba(255,255,255,0.1);
}

body.dark-mode .feature-commands code {
    background: rgba(0,0,0,0.3);
    color: #e0e0e0;
}

body.dark-mode .feature-commands code::-webkit-scrollbar {
    height: 6px;
}

body.dark-mode .feature-commands code::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.feature-tags {
    position: absolute;
    bottom: 10px; /* Reduced from 15px */
    left: 0;
    right: 0;
    display: flex;
    gap: 6px; /* Reduced from 8px */
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 10px;
}

.feature-tag {
    padding: 3px 8px; /* Reduced from 4px 12px */
    border-radius: 10px; /* Reduced from 12px */
    font-size: 0.7em; /* Reduced from 0.8em */
    font-weight: 500;
    color: white;
}

.feature-tag.green {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.feature-tag.orange {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.feature-tag.blue {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.feature-tag.purple {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.feature-tag.red {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.feature-tag.yellow {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
}

.modal .feature-tags {
    position: static;
    margin: 20px 0;
    justify-content: flex-start;
    padding: 0;
}

/* Dark mode adjustments */
body.dark-mode .feature-tag {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.modal .feature-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
}

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.filter-tag {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
    color: #666;
    border: 1px solid rgba(176,0,42,0.2);
    position: relative;
    overflow: hidden;
    background: transparent;
}

.filter-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(176,0,42,0.1) 0%, rgba(255,30,86,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.filter-tag:hover::before,
.filter-tag.active::before {
    opacity: 1;
}

.filter-tag.active {
    background: linear-gradient(135deg, #B0002A 0%, #FF1E56 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,30,86,0.2);
}

/* Dark mode support */
body.dark-mode .filter-tag {
    background: rgba(255,255,255,0.05);
    color: #e0e0e0;
    border-color: rgba(255,255,255,0.2);
}

/* Search Bar Styles */
.search-container {
    max-width: 600px;
    margin: 0 auto 30px;
    padding: 0 20px;
}
.section-title{
    text-align: center;
}

.search-input {
    width: calc(100% - 40px);
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid rgba(176,0,42,0.2);
    background: rgba(255,255,255,0.9);
    font-size: 1.1em;
    transition: all 0.3s ease;
    color: #333;
}

.search-input:focus {
    outline: none;
    border-color: #FF1E56;
    box-shadow: 0 0 15px rgba(255,30,86,0.2);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: #999;
}

/* Dark Mode Support */
body.dark-mode .search-input {
    background: rgba(255,255,255,0.1);
    color: #e0e0e0;
    border-color: rgba(255,255,255,0.2);
}

body.dark-mode .search-input::placeholder {
    color: #666;
}

.feature-card {
    display: flex;
    transition: all 0.3s ease;
}

.feature-card.hidden {
    display: none;
}
