/* Catalogue Section Styles - "Ultra Modern" */

.catalogue-section {
    padding: 160px 0;
    background-color: #0b0b0b;
    position: relative;
    overflow: hidden;
    color: #fff;
}

/* Background Ambient Glow */
.catalogue-glow-effect {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 94, 0, 0.08) 0%, transparent 70%);
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
}

.catalogue-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Area */
.catalogue-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.catalogue-subtitle-badge {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: var(--primary-color, #ff5e00);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.catalogue-title-main {
    font-family: var(--_font-family---title-font);
    font-size: clamp(40px, 6vw, 90px);
    line-height: 1;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin: 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #666666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Showcase (Polo) */
.catalogue-showcase {
    position: relative;
    margin-bottom: 60px;
    border-radius: 30px;
    overflow: hidden;
    /* Glassmorphic border */
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.catalogue-showcase-inner {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 500px;
    max-height: 700px;
    overflow: hidden;
}

.catalogue-showcase-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.catalogue-showcase:hover .catalogue-showcase-bg {
    transform: scale(1);
}

.catalogue-showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.catalogue-showcase-content h3 {
    font-family: var(--_font-family---title-font);
    font-size: 48px;
    color: #fff;
    margin-bottom: 10px;
}

.catalogue-showcase-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0;
}

.catalogue-btn-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

.catalogue-showcase:hover .catalogue-btn-circle {
    transform: scale(1.1) rotate(45deg);
    background: var(--primary-color, #ff5e00);
    color: #fff;
}

/* Categories Grid (Bento Style) */
.catalogue-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.catalogue-category-card {
    position: relative;
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Stagger heights for a modern masonry feel or keep uniform */
/* Let's keep uniform for stability but style them nicely */

.catalogue-has-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.catalogue-category-card:hover .catalogue-has-image {
    transform: scale(1.1);
}

.catalogue-info-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.4s ease;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.catalogue-category-card:hover .catalogue-info-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.catalogue-cat-title {
    font-family: var(--_font-family---title-font);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    transform: translateY(20px);
    opacity: 0.9;
    transition: all 0.4s ease;
}

.catalogue-cat-line {
    width: 40px;
    height: 3px;
    background: var(--primary-color, #ff5e00);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.catalogue-category-card:hover .catalogue-cat-title {
    transform: translateY(0);
    opacity: 1;
}

.catalogue-category-card:hover .catalogue-cat-line {
    transform: scaleX(1);
}

/* --- Services Page Additions --- */

/* Service Details Grid */
.services-details-section {
    padding: 100px 0;
    background-color: #0b0b0b;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.detail-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 50px 30px;
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Hover State */
.detail-item:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
}

/* Icon Box */
.detail-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
}

.detail-icon {
    width: 36px;
    height: 36px;
    fill: currentColor;
    transition: transform 0.5s ease;
}

.detail-item:hover .detail-icon-box {
    background: #fff;
    transform: scale(1.1);
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.detail-item:hover .detail-icon {
    transform: scale(1.1);
}

/* Typography */
.detail-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.detail-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 2;
    max-width: 90%;
    transition: color 0.3s ease;
}

.detail-item:hover .detail-text {
    color: rgba(255, 255, 255, 0.9);
}

/* Ambient Glow Background on Hover */
.detail-glow {
    position: absolute;
    width: 150%;
    height: 150%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--glow-color, rgba(255, 255, 255, 0.1)) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.detail-item:hover .detail-glow {
    opacity: 0.2;
}

/* Responsive */
@media screen and (max-width: 991px) {
    .catalogue-categories-grid {
        grid-template-columns: 1fr;
    }

    .catalogue-category-card {
        height: 350px;
    }

    .catalogue-showcase-inner {
        height: 400px;
    }

    .catalogue-title-main {
        font-size: 48px;
    }

    .catalogue-showcase-overlay {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .services-details-section {
        padding: 60px 0;
    }

    .details-grid {
        gap: 15px;
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols on tablet */
    }

    .detail-item {
        min-height: 240px;
        padding: 30px 20px;
    }
}

@media screen and (max-width: 479px) {
    .details-grid {
        grid-template-columns: 1fr;
        /* 1 col on mobile */
    }
}