/* ============================================================
   KRADS - PREMIUM SERVICES DETAIL PAGE
   ============================================================ */

/* --- Service Rows (Detail View) --- */
.service-details {
    background: var(--k-dark-bg);
    padding-bottom: 120px;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 130px;
    position: relative;
}

.service-row.reverse { direction: rtl; }
.service-row.reverse > * { direction: ltr; }

/* Connector line between rows */
.service-row::after {
    content: '';
    position: absolute;
    bottom: -65px; left: 50%;
    transform: translateX(-50%);
    width: 1px; height: 65px;
    background: linear-gradient(180deg, rgba(255, 222, 89, 0.2), transparent);
}

/* --- Service Number --- */
.service-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px; height: 50px;
    border: 1px solid rgba(255, 222, 89, 0.3);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--k-accent);
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.service-text h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.service-text h2 span { color: var(--k-accent); }

.service-text .body-text {
    color: var(--k-text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* --- Feature Checklist --- */
.feature-list {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--k-text-muted);
    font-size: 0.9rem;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.feature-list li:hover {
    background: rgba(255, 222, 89, 0.04);
    border-color: rgba(255, 222, 89, 0.15);
    color: var(--k-text-light);
}

.feature-list i { color: var(--k-accent); font-size: 0.8rem; }

/* --- Service Image --- */
.service-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.service-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 222, 89, 0.08) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.service-image img {
    width: 100%;
    border-radius: 24px;
    display: block;
    filter: brightness(0.85);
    transition: all 0.6s ease;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.service-row:hover .service-image img {
    filter: brightness(1);
    transform: scale(1.02);
}

/* Corner bracket decoration */
.service-image::after {
    content: '';
    position: absolute;
    bottom: 15px; right: 15px;
    width: 50px; height: 50px;
    border-bottom: 2px solid rgba(255, 222, 89, 0.4);
    border-right: 2px solid rgba(255, 222, 89, 0.4);
    pointer-events: none;
    z-index: 2;
    border-radius: 0 0 8px 0;
}

/* ============================================================
   HOME PAGE: SERVICE CARDS (Grid Section)
   ============================================================ */
.services-section { background-color: var(--k-dark-bg); }

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

.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    padding: 50px 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 40px; height: 40px;
    border-top: 2px solid transparent;
    border-right: 2px solid transparent;
    transition: all 0.4s ease;
    border-radius: 0 16px 0 0;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 222, 89, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    border-color: rgba(255, 222, 89, 0.6);
    top: 15px; right: 15px;
}

.service-icon {
    font-size: 3rem;
    color: var(--k-accent);
    margin-bottom: 30px;
    transition: all 0.4s ease;
    display: inline-block;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 222, 89, 0.5));
}

.service-info h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--k-text-light);
    letter-spacing: -0.5px;
}

.service-info p {
    color: var(--k-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-card .btn-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--k-accent);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.service-card:hover .btn-text { opacity: 1; }

/* ============================================================
   TOTAL DOMINANCE: 10-SERVICE ARSENAL GRID
   ============================================================ */
.services-arsenal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.arsenal-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    min-height: 320px; /* Standardize card size */
}

.arsenal-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 222, 89, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.arsenal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.a-num {
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--k-accent);
    letter-spacing: 2px;
    opacity: 0.6;
}

.arsenal-header i {
    font-size: 2.5rem;
    color: var(--k-accent);
    opacity: 0.8;
    transition: all 0.4s ease;
}

.arsenal-card:hover .arsenal-header i {
    transform: scale(1.1) rotate(-5deg);
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 222, 89, 0.4));
}

.arsenal-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--k-text-light);
    letter-spacing: -0.5px;
}

.arsenal-card p {
    color: var(--k-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.a-more {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--k-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
}


/* Corner bracket on hover */
.arsenal-card::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 0; height: 0;
    border-bottom: 2px solid var(--k-accent);
    border-right: 2px solid var(--k-accent);
    transition: all 0.4s ease;
    border-radius: 0 0 20px 0;
}

.arsenal-card:hover::after {
    width: 30px; height: 30px;
}

/* ============================================================
   SERVICE INTELLIGENCE MODAL (Premium Expansion)
   ============================================================ */
.service-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.service-modal.active {
    display: flex;
}

.s-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-modal.active .s-modal-overlay {
    opacity: 1;
}

.s-modal-box {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh; /* Ensure it fits in viewport */
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow-x: hidden;
    overflow-y: auto; /* Allow vertical scroll */
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.service-modal.active .s-modal-box {
    transform: scale(1);
    opacity: 1;
}

/* Hide scrollbar for aesthetics but keep functionality */
.s-modal-box::-webkit-scrollbar {
    width: 4px;
}
.s-modal-box::-webkit-scrollbar-thumb {
    background: var(--k-accent);
    border-radius: 10px;
}

.s-modal-close {
    position: sticky; /* Keep close button visible when scrolling */
    top: 25px; 
    float: right;
    margin-right: 25px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s;
}

.s-modal-close:hover {
    background: var(--k-accent);
    color: black;
}

.s-modal-hero {
    position: relative;
    height: 300px;
    width: 100%;
}

.s-modal-hero img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.s-modal-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0a0a0a 0%, transparent 100%);
    z-index: 1;
}

.s-modal-header {
    position: absolute;
    bottom: 25px; left: 40px;
    z-index: 5;
    width: calc(100% - 80px); /* Keep away from close button area */
}

.s-modal-tag {
    color: var(--k-accent);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.s-modal-header h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    margin-top: 5px;
    word-break: break-word; /* Fix long titles */
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.s-modal-body {
    padding: 30px 40px 40px;
    position: relative;
    z-index: 2;
    background: #0a0a0a;
}


.s-modal-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--k-text-muted);
    margin-bottom: 35px;
}

.s-modal-intel h4 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#sModalList {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

#sModalList li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--k-text-muted);
    font-size: 0.95rem;
}

#sModalList li::before {
    content: '\f058';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--k-accent);
}

.s-modal-cta {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
    .s-modal-hero { height: 220px; }
    .s-modal-header { left: 25px; bottom: 20px; }
    .s-modal-header h2 { font-size: 1.6rem; }
    .s-modal-body { padding: 25px; }
    #sModalList { grid-template-columns: 1fr; }
    .s-modal-close { top: 15px; right: 15px; width: 36px; height: 36px; }
}

@media (max-width: 992px) {
    .services-arsenal-grid { grid-template-columns: 1fr; }
    .arsenal-card { padding: 30px; }
}

@media (max-width: 992px) {
    .service-row {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 80px;
        direction: ltr;
    }
    .service-row.reverse { direction: ltr; }
    .feature-list { grid-template-columns: 1fr; }
    .service-row::after { display: none; }
}

@media (max-width: 480px) {
    .service-card { padding: 40px 25px; }
    .service-text h2 { font-size: 1.8rem; }
}

/* Dedicated Service Page Layout Styles */
.service-detail-section {
    padding: 90px 0;
    position: relative;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
}

.align-center {
    align-items: center;
}

.key-highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.highlight-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.highlight-box i {
    font-size: 1.5rem;
}

.glass-hud-card {
    background: rgba(12, 12, 18, 0.85);
    border: 1px solid rgba(255, 222, 89, 0.2);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hud-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.hud-badge {
    background: rgba(255, 222, 89, 0.15);
    color: var(--k-accent, #ffde59);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(255, 222, 89, 0.3);
}

.hud-feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hud-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #ddd;
}

.process-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.process-card-step {
    background: rgba(20, 20, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px 24px;
    position: relative;
    transition: all 0.3s ease;
}

.process-card-step:hover {
    border-color: var(--k-accent, #ffde59);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.process-card-step .step-num {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 2.2rem;
    font-weight: 900;
    color: rgba(255, 222, 89, 0.25);
    display: block;
    margin-bottom: 15px;
    line-height: 1;
}

.process-card-step h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.process-card-step p {
    font-size: 0.88rem;
    color: #aaa;
    line-height: 1.6;
}

.service-card-page-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--k-accent, #ffde59);
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: gap 0.3s ease;
}

.service-card-page-link:hover {
    gap: 14px;
}

.arsenal-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ============================================================
   SERVICE FAQ ACCORDION STYLES
   ============================================================ */
.service-faq-section {
    max-width: 850px;
    margin: 90px auto 100px auto;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item[open] {
    background: rgba(255, 222, 89, 0.03);
    border-color: rgba(255, 222, 89, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.faq-question {
    padding: 22px 26px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question i {
    color: var(--k-accent, #ffde59);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.faq-item[open] .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 26px 22px;
    color: #bbb;
    line-height: 1.7;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 5px;
    padding-top: 15px;
}

@media (max-width: 992px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
    .process-grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .process-grid-4, .key-highlights-grid {
        grid-template-columns: 1fr;
    }
    .faq-question {
        padding: 18px 20px;
        font-size: 0.98rem;
    }
    .faq-answer {
        padding: 0 20px 18px;
    }
}
