/* ----------------- Service Hero Section ------------------ */

.service-hero {
    width: 100%;
    padding: 50px 0 10px;
    background:#316ef9;
    background-size: cover;
    color: #fff;
    text-align: center;
    position: relative;
}

/* Glass Blur Overlay */
.service-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
}

/* Center Content */
.service-hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: auto;
    padding: 0 20px;
}

/* Subtitle */
.service-hero-subtitle {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Title */
.service-hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
}

.service-hero-title span {
    color: #1351D8;
}

/* Description */
.service-hero-text {
    font-size: 18px;
    margin: 18px auto 30px;
    max-width: 700px;
    opacity: 0.9;
}

/* Button */
.service-hero-btn {
    padding: 12px 30px;
    background: #1351D8;
    color: #fff;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s ease;
    box-shadow: 0 5px 15px #1351D8;
}

.service-hero-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px #1351D8;
}

/* Responsive */
@media(max-width: 768px) {
    .service-hero-title {
        font-size: 36px;
    }

    .service-hero-text {
        font-size: 16px;
    }
}




/* Portfolio Section */
.portfolio-section {
    padding: 50px 0;
    width: 100%;
}

/* Filter Buttons */
.portfolio-filters {
    text-align: center;
    margin-bottom: 35px;
}

.pf-btn {
    padding: 10px 18px;
    margin: 5px;
    border: none;
    background: #eee;
    font-weight:600;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.3s ease;
}

.pf-btn.active,
.pf-btn:hover {
    background: #1351D8;
    color: #fff;
}

/* Cards Grid – Always 3 per row */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 80%;   /* UPDATED width */
    margin: auto;
}

/* Card Style */
.pf-card {
    background: #fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transform: translateY(0);
    transition: 0.35s ease;
    opacity:1;
    height: 490px;   /* UPDATED height */
}

/* Image height adjusted to keep ratio clean */
.pf-card img {
    width:100%;
    height:280px;   /* updated so total height fits 450px */
    object-fit:cover;
}

/* Hover Animation */
.pf-card:hover {
    transform: translateY(-8px);
    box-shadow:0 12px 25px rgba(0,0,0,0.15);
}

.pf-info {
    padding:15px;
}

.pf-info p {
    font-size:13px;
    color:#1351D8;
    font-weight:600;
    margin-bottom:5px;
}

.pf-info h3 {
    font-size:18px;
    margin:0;
}

/* Responsive */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 90%; /* for better spacing on tablets */
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: repeat(1, 1fr);
        width: 100%; /* full width on mobile */
    }
}









/* MAIN PURPLE HERO SECTION */
.project-hero {
    width: 100%;
    background: linear-gradient(135deg, #5A00F0 0%, #6800FF 100%);
    padding: 70px 0;
    color: #fff;
}

.project-container {
    width: 85%;
    max-width: 1200px;
    margin: auto;
}

/* TOP TITLE */
.project-category {
    font-size: 13px;
    opacity: 0.8;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.project-title {
    font-size: 48px;
    font-weight: 700;
    margin-top: 10px;
}

/* PROJECT INFO GRID */
.project-info-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 20px;
}

.label {
    font-size: 12px;
    opacity: 0.7;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-box h4 {
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
}

/* LIVE BUTTON */
.live-btn {
    padding: 10px 18px;
    background: #fff;
    color: #5A00F0;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s ease;
}

.live-btn:hover {
    background: rgba(255,255,255,0.8);
}

/* PROJECT IMAGE SECTION */
.project-image-section {
    background: #ffffff;
    padding: 40px 0;
    display: flex;
    justify-content: center;
}

.project-image-box {
    width: 80%;
    max-width: 1200px;
    background: #eef4ff;
    border-radius: 20px;
    padding: 40px;
}

.project-image-box img {
    width: 100%;
    border-radius: 15px;
    object-fit: cover;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .project-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-title {
        font-size: 38px;
    }
}

@media (max-width: 600px) {
    .project-info-grid {
        grid-template-columns: 1fr;
    }

    .project-title {
        font-size: 32px;
    }

    .project-image-box {
        width: 90%;
        padding: 20px;
    }
}



 /* small responsive tweaks */
    @media (min-width: 1024px) {
      #kk-track .kk-item { min-width: calc(100% / 3); } /* 3 visible */
      #kk-track .kk-item img { height: 260px; }
    }
    @media (min-width: 640px) and (max-width: 1023px) {
      #kk-track .kk-item { min-width: calc(100% / 2); } /* 2 visible */
      #kk-track .kk-item img { height: 240px; }
    }
    @media (max-width: 639px) {
      #kk-track .kk-item { min-width: 100%; } /* 1 visible */
      #kk-track .kk-item img { height: 190px; }
      #kk-prev, #kk-next { width:36px;height:36px;font-size:18px; }
    }

    /* hover effect */
    #kk-track .kk-item img { transition: transform .25s ease, box-shadow .25s ease; }
    #kk-track .kk-item img:hover { transform: scale(1.02); box-shadow:0 8px 20px rgba(0,0,0,0.12); }



    .img{
      height: 180px;
      width: full;
    border-radius: 8px;
    }




    /* Outer Wrapper */
.portfolio-img-wrapper {
    max-width: 1200px;
    margin: auto;
}

/* Center Container */
.portfolio-img-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: -220px;
    z-index: 0;
}

/* Main Image */
.portfolio-main-img {
    width: 100%;
    max-width: 1100px;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
    position: relative;
}


/* Wrapper */
.portfolio-wrapper {
    display: flex;
    gap: 25px;
    margin-top: 35px;
    flex-wrap: wrap;
}

/* Images fully responsive */
.portfolio-img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* Tablet View (2 columns) */
@media (min-width: 600px) {
    .portfolio-img {
        width: calc(50% - 12.5px); /* 2 images per row */
    }
}

/* Desktop View (2 columns or adjust if needed) */
@media (min-width: 992px) {
    .portfolio-img {
        width: calc(50% - 12.5px); /* Keep 2-column layout */
    }
}


    /* ========== Animated Rotating Gradient Border ========== */

.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    padding: 30px;
    background: #fff;
    z-index: 1;
}

/* Border animation box */
.service-card::before {
    content: "";
    position: absolute;
    inset: 2px;
    background: linear-gradient(0deg,
        #ff0080,
        #ff8c00,
        #40e0d0,
        #8a2be2,
        #ff0080);
    background-size: 400% 400%;
    z-index: -1;
    animation: rotateBorder 8s linear infinite;
}

/* Inner white layer */
.service-card::after {
    content: "";
    position: absolute; 
    inset: 1px;
    background: #fff;
    border-radius: 12px;
    z-index: -1;
}

/* Animation Keyframes */
@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}




/* home page animated gradient border  start */
.service-card {
        transition: all 0.3s ease;
        border-radius: 10px;
       border-radius: 12px;
    }

    .service-card:hover {
        transform: translateY(-10px) scale(1.03);
        box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.15);
        background: rgba(36, 4, 241, 1);
    }

    .service-card:hover h3 a {
        color: #007bff;
        /* hover par text color change */
    }

    .service-card:hover p {
        color: #333;
    }

    .service-card:hover img {
        transform: scale(1.1);
        transition: 0.3s ease;
    }

    .service-card img {
        transition: 0.3s ease;
    } 

    
/* home page animated gradient border  end  */

/* =====---==============----------=-=-================== Portfolio Card Wrapper ================================================================================= */
.pf-card {
    position: relative;
    display: block;
}

/* ===== Hero Image ===== */
.pf-card img.main-image {
    width: 100%;
    display: block;
    border-radius: 8px;
}

/* ===== Logo Wrapper Box (Bottom-Left) ===== */
.logo-box {
    position: absolute;
    left: 10px;
    bottom: 16px;
    width: 100px;
    height: 36px;
    background: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 12px;
}

/* ===== Logo Inside the Box ===== */
.logo-box img {
    width: 100%;
    height: 80%;
    object-fit: contain;
}

/* ===== Portfolio Info Text Styling ===== */
.pf-info h2 {
    color: #023020;
}

.pf-info h3 {
    color: #36454F;
    font-size: medium;
}


   .service-card {
        background: #fff;
        padding: 25px;
        border-radius: 12px;
        text-align: center;
        transition: 0.3s;
    }

    .service-card:hover {
        transform: translateY(-5px);
    }

    .service-icon {
        width: 60px;
        margin-bottom: 15px;
    }

    .swiper-slide {
        display: flex;
        justify-content: center;
    }