.services-grid .service-card:nth-child(n+5) {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.services-grid.is-expanded .service-card:nth-child(n+5) {
    display: block;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    animation: smoothDisplay 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.services-link .arrow-icon {
    transition: transform 0.3s ease;
}

.services-link.is-active .arrow-icon {
    transform: rotate(90deg);
}

@keyframes smoothDisplay {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-service-details {
    background: none;
    border: none;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.btn-service-details:hover {
    color: var(--color-accent);
    transform: translateX(4px);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 46, 85, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.service-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 52rem;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -10px 0 30px rgba(5, 46, 85, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-drawer.is-open {
    right: 0;
}

.drawer-header {
    padding: 3rem 2.4rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h2 {
    font-family: var(--font-headings);
    font-size: 2.1rem;
    color: var(--color-primary-dark);
    font-weight: 700;
    line-height: 1.5;
}

.btn-close-drawer {
    background: #f1f5f9;
    border: none;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-close-drawer:hover {
    background: #e2e8f0;
    color: var(--color-primary-dark);
}

.drawer-body {
    padding: 3rem 2.4rem;
    overflow-y: auto;
    flex: 1;
}

.drawer-subtitle {
    display: block;
    font-size: 1.4rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.5;
  }

.drawer-body p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 2.5rem;
}

.drawer-body h3 {
    font-family: var(--font-headings);
    font-size: 1.6rem;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.drawer-body ul {
    list-style: none;
}

.drawer-body li {
    font-size: 1.45rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 1.8rem;
    position: relative;
    padding-left: 2rem;
}

.drawer-body li::before {
    content: "•";
    color: var(--color-accent);
    font-weight: bold;
    font-size: 2rem;
    position: absolute;
    left: 0;
    top: -0.2rem;
}
