/* ========================================
   WOLKOM TECHNOLOGIES - SUB PAGE STYLES
   Enhanced Professional Sub-page Design
   ======================================== */

/* Base layout for all sub-service pages */
.sub-service-page {
    padding-top: 70px; /* Slightly more breathing room below fixed navbar */
    background: linear-gradient(180deg, var(--bg-color) 0%, #eef3f8 40%, #ffffff 100%);
}

/* Constrain main content a bit more for readability on large screens */
.sub-service-page .container {
    max-width: 1100px;
}

/* ================================
   SERVICE HERO SECTION
   ================================ */

.service-hero {
    position: relative;
    background: radial-gradient(circle at 0% 0%, rgba(0, 168, 107, 0.3) 0, transparent 55%),
                radial-gradient(circle at 100% 0%, rgba(0, 86, 179, 0.45) 0, transparent 55%),
                linear-gradient(135deg, #0056b3 0%, #003366 100%);
    color: var(--white);
    padding: 6rem 1rem 4rem;
    text-align: center;
    overflow: hidden;
}

/* subtle overlay sheen */
.service-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        transparent 40%,
        transparent 60%,
        rgba(255, 255, 255, 0.06) 100%
    );
    mix-blend-mode: screen;
    opacity: 0.6;
    pointer-events: none;
}

.service-hero .container {
    position: relative;
    z-index: 1;
}

.service-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
    letter-spacing: 0.5px;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.service-hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 760px;
    margin: 0.5rem auto 0;
    line-height: 1.7;
}

/* optional small breadcrumb / label inside hero */
.service-hero .hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.12);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.2rem;
}

/* ================================
   MAIN SERVICE CONTENT
   ================================ */

.service-content {
    padding: 4rem 0 3.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
}

.service-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 2.75rem;
    align-items: flex-start;
}

/* Image block with subtle frame + glass effect */

.service-image {
    text-align: center;
}

.service-image-inner {
    position: relative;
    z-index: 0;
}

.service-image-inner img,
.service-image-inner .service-img {
    position: relative;
    z-index: 1;
}

/* base class used already in main styles, enhanced here */
.service-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 86, 179, 0.25);
    transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
    display: block;
}

.service-img:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 45px rgba(0, 86, 179, 0.3);
    filter: saturate(1.05) contrast(1.02);
}

/* Text block */

.service-details {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.service-details h2 {
    color: var(--primary-color);
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.service-details h2 span.badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    background: rgba(0, 168, 107, 0.08);
    color: var(--secondary-color);
    border: 1px solid rgba(0, 168, 107, 0.4);
}

.service-details p {
    margin-bottom: 0;
    color: #4a4f57;
    line-height: 1.7;
    font-size: 0.97rem;
}

/* subtle “info strip” under heading */
.service-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    font-size: 0.8rem;
    color: var(--gray);
}

.service-meta-strip span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ================================
   SERVICE FEATURE CARDS
   ================================ */

.service-card {
    position: relative;
    background-color: var(--white);
    border-radius: 14px;
    padding: 1.9rem 1.8rem;
    margin-bottom: 1.7rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 86, 179, 0.14);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    overflow: hidden;
}

/* colored accent border using gradient */
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #0056b3, #00a86b);
    opacity: 0;
    transition: opacity 0.02s ease;
    pointer-events: none;
}

.service-card-inner,
.service-card * {
    position: relative;
    z-index: 1;
}

/* So the gradient border only appears at the edge, not as a solid overlay */
.service-card::before {
    pointer-events: none;
    mix-blend-mode: normal;
}

.service-card:hover {
    background-color: #ffffff;   /* keep white */
    /* keep only shadow / transform */
}

.service-card:hover::before {
    opacity: 1;
}

.service-card h2 {
    color: var(--primary-color);
    margin-bottom: 0.85rem;
    font-size: 1.45rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.service-card h2 i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.service-card:hover h2 i {
    transform: scale(1.15) rotate(-4deg);
}

.service-card p {
    color: #555b63;
    line-height: 1.7;
    margin-bottom: 1.05rem;
    font-size: 0.95rem;
}

/* bullet list inside card */

.service-features {
    margin-top: 0.4rem;
    list-style: none;
    padding: 0;
}

.service-features li {
    margin-bottom: 0.55rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #3c4148;
    font-size: 0.9rem;
}

.service-features li i {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-top: 0.15rem;
}

/* optional subtle divider */
.service-card .card-divider {
    height: 1px;
    margin: 1.2rem 0 0.9rem;
    background: linear-gradient(
        90deg,
        rgba(0, 86, 179, 0.25),
        rgba(0, 168, 107, 0.1),
        transparent
    );
}

/* ================================
   TECHNOLOGIES SECTION
   ================================ */

.technologies-section {
    padding: 3.2rem 0 3.8rem;
    background-color: #f7f9fc;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.section-title {
    text-align: center;
    margin-bottom: 2.75rem;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.6rem;
    width: 68px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0056b3, #00a86b);
    transform: translateX(-50%);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.9rem;
}

.tech-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 1.9rem 1.7rem;
    text-align: center;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

/* top gradient strip */
.tech-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0056b3, #00a86b);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.tech-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 86, 179, 0.25);
}

.tech-card:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.tech-card i {
    font-size: 2.7rem;
    color: var(--primary-color);
    margin-bottom: 0.9rem;
}

.tech-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.tech-card p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ================================
   CTA SECTION
   ================================ */

.cta-section {
    background: linear-gradient(135deg, #f0f4f8 0%, #e4edf8 100%);
    padding: 3.6rem 1rem 3.9rem;
    text-align: center;
}

.cta-content {
    max-width: 780px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.05rem;
    margin-bottom: 0.9rem;
    color: #123455;
    font-weight: 600;
}

.cta-section p {
    font-size: 1.02rem;
    margin-bottom: 2rem;
    color: #505662;
    line-height: 1.7;
}

/* upgrade CTA button with pill style + soft shadow */

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.85rem 2.4rem;
    text-decoration: none;
    border-radius: 999px;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 168, 107, 0.35);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.cta-button:hover {
    background-color: #008c5a;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 168, 107, 0.45);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(0, 168, 107, 0.3);
}
 


/* --- ULTRA-PREMIUM PORTFOLIO SLIDER --- */
/* --- PREMIUM SLIDER (FAIL-SAFE VERSION) --- */
/* --- PREMIUM SLIDER OVERRIDES --- */
/* --- PREMIUM SLIDER (Restored & Enhanced) --- */

/* --- PREMIUM SLIDER (Fast 2s Version) --- */
/* --- FIXED PREMIUM SLIDER --- */

/* 1. Main Container */
.template-showcase {
    background-color: #ffffff;
    padding: 80px 20px;
    position: relative;
    z-index: 1;
}

/* 2. Slider Frame (Fixed Height is Crucial) */
.slider-container {
    position: relative;
    max-width: 1000px;
    height: 550px; /* Keeps the box open so images show */
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background-color: #f0f0f0; 
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.25);
}

/* 3. Slider Track */
.slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: block; /* Ensures images stack correctly */
}

/* 4. Slide Animation */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Hidden by default */
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
}

/* Active State (Toggled by JS) */
.slide.active {
    opacity: 1 !important;
    z-index: 2;
}

/* CRITICAL FIX: Make first slide visible if JS fails or delays */
.slide:first-child {
    opacity: 1;
    z-index: 2;
}

/* Image Styling */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 3s ease;
}

.slide.active img {
    transform: scale(1);
}

/* 5. Gradient Overlay */
.slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 3;
    pointer-events: none; /* Allows clicks to pass through to buttons */
}

/* 6. Title Card */
.slide-title {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 5;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.slide.active .slide-title {
    opacity: 1;
    transform: translateY(0);
}

/* 7. Buttons - Fixed Z-Index Conflict */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100; /* Must be higher than 5 */
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: white;
    color: black;
    transform: translateY(-50%) scale(1.1);
}

.prev { left: 20px; }
.next { right: 20px; }

/* 8. Dots Navigation */
.slider-nav {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: flex;
    gap: 10px;
}

.slider-nav-item {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav-item.active {
    background-color: #007aff;
    width: 30px;
    border-radius: 10px;
}










/* --- NEW PREMIUM SLIDER STYLES --- */

.pro-showcase {
    background: #ffffff;
    padding: 80px 20px;
    position: relative;
    z-index: 10;
}

.pro-showcase h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #111;
}

/* 1. The Wrapper (Frame) */
.pro-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 550px; /* Fixed height prevents "invisible image" bug */
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background-color: #000; /* Black background if image fails to load */
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

/* 2. The Slide (Stacked) */
.pro-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

/* Force Active Slide Visible */
.pro-slide.active {
    opacity: 1 !important;
    z-index: 2;
}

/* 3. The Image (Ken Burns Zoom Effect) */
.pro-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 3s ease; /* Smooth slow zoom */
}

.pro-slide.active img {
    transform: scale(1);
}

/* 4. Gradient Overlay (For Text Readability) */
.pro-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 3;
    pointer-events: none; /* Allows clicks to pass through */
}

/* 5. Text Content (Glassmorphism) */
.pro-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.pro-content h3 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.pro-slide.active .pro-content {
    opacity: 1;
    transform: translateY(0);
}

/* 6. Navigation Buttons */
.pro-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.pro-btn:hover {
    background: white;
    color: black;
    transform: translateY(-50%) scale(1.1);
}

.pro-prev { left: 20px; }
.pro-next { right: 20px; }

/* 7. Dots Navigation */
.pro-dots {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.pro-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: 0.3s;
}

.pro-dot.active {
    background: #007aff;
    width: 30px; /* Pill Shape */
    border-radius: 10px;
}











/* ================================
   RESPONSIVE ADJUSTMENTS
   ================================ */

@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .sub-service-page .container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding: 4.5rem 1.2rem 3rem;
    }

    .service-hero h1 {
        font-size: 2.1rem;
    }

    .service-hero p {
        font-size: 1.02rem;
    }

    .service-card {
        padding: 1.6rem 1.5rem;
    }

    .service-card h2 {
        font-size: 1.25rem;
    }

    .tech-card {
        padding: 1.6rem 1.4rem;
    }
}

@media (max-width: 480px) {
    .service-hero h1 {
        font-size: 1.7rem;
    }

    .service-hero p {
        font-size: 0.95rem;
    }

    .service-content {
        padding: 3rem 0 2.5rem;
    }

    .service-card {
        padding: 1.3rem 1.2rem;
        border-radius: 10px;
    }

    .cta-section {
        padding: 3rem 1.2rem 3.2rem;
    }

    .cta-section h2 {
        font-size: 1.6rem;
    }

    .cta-section p {
        font-size: 0.98rem;
    }
}

/* ================================
   REDUCED MOTION
   ================================ */

@media (prefers-reduced-motion: reduce) {
    * ,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .service-img:hover,
    .service-card:hover,
    .tech-card:hover,
    .cta-button:hover {
        transform: none;
        box-shadow: none;
    }
}
