/* =========================
   SERVICES PAGE
========================= */

.services-intro {
    max-width: 600px;
    margin-bottom: 60px;
}

/* GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* SERVICE ITEM */
.service-item {
    cursor: pointer;
}

.service-inner {
    padding: 40px;
    border: 1px solid #1a1a1a;
    transition: all 0.4s ease;
}

/* Index */
.service-index {
    color: #C8A96A;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

/* Hover */
.service-item:hover .service-inner {
    border-color: #C8A96A;
    transform: translateY(-8px);
}

/* ACTIVE */
.service-item.active .service-inner {
    background: rgba(255, 255, 255, 0.03);
    border-color: #C8A96A;
}

/* DETAIL PANEL */
.service-detail {
    background: #0f0f0f;
}

.detail-content {
    max-width: 700px;
}

.detail-content h2 {
    margin-bottom: 20px;
}


/* =========================
   IMMERSIVE SERVICE PANEL
========================= */

.service-overlay {
    position: fixed;
    inset: 0;
    background: #0B0B0B;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.service-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Background */
.overlay-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    opacity: 0.2;
    transition: all 1s ease;
}

/* Dark overlay */
.overlay-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 11, 11, 0.8);
}

/* Content */
.overlay-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 100px auto;
    padding: 40px;
}

/* Close button */
.overlay-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 30px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* Inner content */
.overlay-inner h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.overlay-inner p {
    margin-bottom: 20px;
    font-size: 18px;
}

/* Smooth entry */
.overlay-inner {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.service-overlay.active .overlay-inner {
    opacity: 1;
    transform: translateY(0);
}

.overlay-bg {
    z-index: 0;
    pointer-events: none;
    /* 👈 IMPORTANT */
}

.overlay-content {
    position: relative;
    z-index: 2;
}

.overlay-close {
    z-index: 3;
    cursor: pointer;
}

.service-overlay {
    overflow-y: auto;
}

/* .services-hero {
    height: 50vh;
    background: linear-gradient(rgba(13, 13, 13, 0.7), rgba(13, 13, 13, 0.9)),
        url('../../img/profile/media.jpg') center/cover no-repeat !important;
} */