/* Services Section */
#services {
    padding: 80px 0;
    background-color: #121212;
    color: #e0e0e0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 350px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 48px;
    color: #e6b800;
    margin-bottom: 20px;
}

.service-item h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-item p {
    color: #bbb;
    margin-bottom: 15px;
}

/* Service Details */
.service-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 15px;
    padding: 0 15px;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-item.active .service-details {
    max-height: 2000px;
    opacity: 1;
    padding: 15px 0;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.service-features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #ddd;
}

.service-features li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #e6b800;
    font-weight: bold;
}

.service-note {
    font-style: italic;
    font-size: 0.9rem;
    color: #aaa;
}

/* Read More Button */
.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #e6b800;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    padding-right: 20px;
}

.read-more:hover {
    color: #ffd700;
}

.read-more::after {
    content: '→';
    position: absolute;
    right: 0;
    transition: transform 0.3s ease;
}

.service-item.active .read-more::after {
    transform: rotate(90deg);
}
.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #e6b800;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #fff;
    text-decoration: none;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.service-item.active .read-more i {
    transform: rotate(180deg);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Active state */
.service-item.active {
    min-height: auto;
    padding-bottom: 30px;
}

.service-item.active .service-details {
    display: block;
}

/* Button container */
#services .text-center {
    position: relative;
    z-index: 2;
    margin-top: 20px;
    clear: both;
    padding-top: 30px;
}

/* Ensure proper stacking context */
#services .container {
    position: relative;
    z-index: 1;
}
