/* ==========================================================================
   XSECURE — SERVICE PAGES (services/xddos.html, xdr.html, xwaf.html)
   --------------------------------------------------------------------------
   1. Page layout
   2. Side dots navigation
   3. Generic content section (image + text, alternating)
   4. Section: Potential targets (XDDoS #materi-1)
   5. Section: Infographic + mitigation rules (XDDoS #materi-2)
   6. Responsive
   XDR-only sections live in xdr.css
   ========================================================================== */

/* 1. PAGE LAYOUT ========================================================== */
.page-service .main-wrapper {
    min-height: 100vh;
    background-size: cover;
    background-attachment: fixed;
}

.page-service .hero {
    min-height: 100vh;
    padding-left: 5%;
    padding-right: 5%;
}

/* Bigger hero illustration: it gets more of the row than the text */
.page-service .hero-container { max-width: 1500px; }
.page-service .hero-left      { flex: 1.3; min-width: 0; }
.page-service .hero-right     { flex: 1; }

.page-service .img-xsecure {
    width: 100%;
    max-width: 820px;
}

/* 2. SIDE DOTS NAVIGATION ================================================= */
.side-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all var(--transition);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.dot.active {
    background: var(--color-accent);
    box-shadow: 0 0 15px var(--color-accent);
    transform: scale(1.5);
}

/* 3. GENERIC CONTENT SECTION ============================================== */
.materi-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px var(--page-gutter);
}

.materi-container {
    display: flex;
    align-items: center;
    gap: 80px;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.materi-section--reverse .materi-container {
    flex-direction: row-reverse;
}

.materi-image,
.materi-text {
    flex: 1;
}

.materi-image img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(0, 217, 232, 0.2);
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Shown until the real image is added */
.materi-image--placeholder {
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(0, 217, 232, 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.35);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.materi-text p {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text-muted);
}

/* 4. SECTION: POTENTIAL TARGETS =========================================== */
.target-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.target-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.target-title-col {
    flex: 1;
}

.target-huge-title {
    font-family: var(--font-heading);
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 1px;
    color: var(--color-accent);
    text-transform: uppercase;
    text-shadow: 0 0 35px rgba(0, 217, 232, 0.4);
}

.target-cards-col {
    flex: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.target-row {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 60px;
}

.target-row--bottom {
    gap: 80px;
}

.target-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 190px;
    text-align: center;
}

.target-card img {
    width: 185px;
    height: 185px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 0 35px var(--color-accent-glow);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.target-card:hover img {
    transform: scale(1.08) translateY(-6px);
    box-shadow: 0 0 50px rgba(0, 217, 232, 0.85);
}

.target-card h3 {
    margin-top: 16px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.target-desc {
    border-top: 1px solid rgba(0, 217, 232, 0.2);
    padding-top: 30px;
}

.target-desc p {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 14px;
}

.target-desc strong {
    color: var(--color-accent);
    font-weight: 600;
}

/* 5. SECTION: INFOGRAPHIC + RULES ========================================= */
.infographic-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.infographic-title h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.infographic-title p {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--color-text-muted);
}

.infographic-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 217, 232, 0.08);
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.infographic-img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}

.rules-block {
    width: 100%;
    border-top: 1px solid rgba(0, 217, 232, 0.15);
    padding-top: 25px;
}

.rules-block h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.rule-card {
    --rule-color: var(--color-accent);
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid var(--rule-color);
    border-radius: 0 8px 8px 0;
    padding: 18px 22px;
}

.rule-card--international { --rule-color: var(--color-danger); }
.rule-card--local         { --rule-color: var(--color-accent); }

.rule-badge {
    display: inline-block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--rule-color);
}

.rule-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.rule-card strong {
    color: #ffffff;
    font-weight: 600;
}

/* 6. RESPONSIVE =========================================================== */
@media (min-width: 1500px) {
    .target-wrapper,
    .infographic-wrapper { max-width: 1400px; }
}

@media (max-width: 1366px) {
    .target-huge-title { font-size: 3.2rem; }
    .target-card       { width: 150px; }
    .target-card img   { width: 140px; height: 140px; }
    .target-row        { gap: 40px; }
    .target-row--bottom { gap: 50px; }

    .infographic-title h2 { font-size: 2.3rem; }
    .infographic-box      { padding: 25px; }
    .infographic-img      { max-height: 55vh; }
}

@media (max-width: 1024px) {
    .materi-container,
    .materi-section--reverse .materi-container,
    .target-split {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .target-huge-title { font-size: 3rem; }
    .target-desc       { text-align: center; }

    .infographic-title { text-align: center; }
    .infographic-title h2 { font-size: 2.2rem; }
    .materi-section    { padding: 100px 4%; }
}

@media (max-width: 768px) {
    .side-dots  { display: none; }
    .rules-grid { grid-template-columns: 1fr; }
    .page-service .main-wrapper { background-attachment: scroll; }
}

@media (max-width: 576px) {
    .page-service .img-xsecure { max-width: 100%; }

    .target-row,
    .target-row--bottom { flex-wrap: wrap; gap: 20px; }
    .target-card img    { width: 110px; height: 110px; }
    .target-huge-title  { font-size: 2.3rem; }
    .section-title      { font-size: 2rem; }

    .infographic-box { padding: 15px; }
    .infographic-img { max-height: none; }
}
