/* ============================================
   FEATURED SERVICES SECTION
   Premium layout with particles, glow effects,
   cursor-following thumbnails, and animations
   ============================================ */

/* --- Section Base --- */
.sf-services {
    position: relative;
    padding: 80px 0 70px;
    overflow: hidden;
    background: var(--dark-color, #0a1628);
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sf-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.sf-bg-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.85;
    z-index: 1;
}

.sf-services .container {
    position: relative;
    z-index: 5;
}

/* Wide container for services */
.sf-container-wide {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

@media (min-width: 1600px) {
    .sf-container-wide {
        padding: 0 60px;
    }
}

@media (min-width: 2000px) {
    .sf-container-wide {
        padding: 0 80px;
    }
}

/* --- Particle Canvas --- */
.sf-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* --- Floating Geometric Shapes --- */
.sf-geo {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    z-index: 2;
    pointer-events: none;
}

.sf-geo-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #c8a45a 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: sfFloat 20s ease-in-out infinite;
}

.sf-geo-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #0c9ddb 0%, transparent 70%);
    bottom: -50px;
    left: -80px;
    animation: sfFloat 25s ease-in-out infinite reverse;
}

.sf-geo-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #c8a45a 0%, transparent 70%);
    top: 40%;
    left: 50%;
    animation: sfFloat 18s ease-in-out infinite 5s;
}

@keyframes sfFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 30px) scale(1.02); }
}

/* --- Section Header --- */
.sf-header {
    text-align: center;
    margin-bottom: 40px;
}

.sf-header .section-tag {
    margin-bottom: 16px;
}

.sf-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.sf-title span {
    background: linear-gradient(135deg, #c8a45a, #e8d48b, #c8a45a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sf-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Content Layout: Image + Cards --- */
.sf-content {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 40px;
    align-items: center;
}

/* --- Left: Featured Image --- */
.sf-image-col {
    position: relative;
}

.sf-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: visible;
}

.sf-image-glow {
    position: absolute;
    inset: -4px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(200, 164, 90, 0.3), rgba(12, 157, 219, 0.15), rgba(200, 164, 90, 0.2));
    filter: blur(20px);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.sf-image-wrapper:hover .sf-image-glow {
    opacity: 1;
}

.sf-main-image {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 24px;
    position: relative;
    z-index: 1;
    display: block;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.sf-image-wrapper:hover .sf-main-image {
    transform: scale(1.02);
}

.sf-image-border {
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    border: 2px solid rgba(200, 164, 90, 0.2);
    z-index: 2;
    pointer-events: none;
    transition: border-color 0.4s ease;
}

.sf-image-wrapper:hover .sf-image-border {
    border-color: rgba(200, 164, 90, 0.5);
}

/* --- Badge --- */
.sf-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, #c8a45a, #a88832);
    border-radius: 16px;
    padding: 20px 24px;
    z-index: 10;
    text-align: center;
    box-shadow: 0 12px 40px rgba(200, 164, 90, 0.3);
    min-width: 120px;
}

.sf-badge-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #0a1628;
    line-height: 1;
}

.sf-badge-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #0a1628;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Badge as Button */
.sf-badge-btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

.sf-badge-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 50px rgba(200, 164, 90, 0.4);
}

.sf-badge-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #0a1628;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sf-badge-link i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.sf-badge-btn:hover .sf-badge-link i {
    transform: translateX(4px);
}

/* --- Right: Cards Grid --- */
.sf-cards-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sf-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

/* --- Service Card --- */
.sf-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 18px 16px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                background 0.4s ease;
}

.sf-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.06);
}

/* Card glow on hover */
.sf-card-glow {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    opacity: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(200, 164, 90, 0.12) 0%, transparent 60%);
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.sf-card:hover .sf-card-glow {
    opacity: 1;
}

/* Card border */
.sf-card-border {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1;
    pointer-events: none;
    transition: border-color 0.4s ease;
}

.sf-card:hover .sf-card-border {
    border-color: rgba(200, 164, 90, 0.3);
}

/* Card content */
.sf-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.sf-card-info {
    flex: 1;
    min-width: 0;
}

.sf-card-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid rgba(200, 164, 90, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s ease;
}

.sf-card:hover .sf-card-icon {
    border-color: rgba(200, 164, 90, 0.7);
    background: rgba(200, 164, 90, 0.08);
    transform: scale(1.08);
}

.sf-card-icon i {
    font-size: 1rem;
    color: #c8a45a;
    transition: color 0.3s ease;
}

.sf-card:hover .sf-card-icon i {
    color: #e8d48b;
}

.sf-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.sf-card-excerpt {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin-bottom: 14px;
}

.sf-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #c8a45a;
    text-decoration: none;
    transition: color 0.3s ease, gap 0.3s ease;
}

.sf-card-link:hover {
    color: #e8d48b;
    gap: 10px;
}

.sf-card-link i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.sf-card:hover .sf-card-link i {
    transform: translateX(3px);
}

/* --- CTA Button --- */
.sf-cta {
    text-align: left;
    margin-top: 10px;
}

.sf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #c8a45a, #a88832);
    color: #0a1628;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 20px rgba(200, 164, 90, 0.2);
    position: relative;
    overflow: hidden;
}

.sf-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #e8d48b, #c8a45a);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.sf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(200, 164, 90, 0.35);
    color: #0a1628;
}

.sf-btn:hover::before {
    opacity: 1;
}

.sf-btn span,
.sf-btn i {
    position: relative;
    z-index: 1;
}

.sf-btn i {
    transition: transform 0.3s ease;
}

.sf-btn:hover i {
    transform: translateX(4px);
}

/* --- Cursor Following Thumbnail --- */
.sf-cursor-thumb {
    position: fixed;
    width: 160px;
    height: 120px;
    border-radius: 14px;
    overflow: hidden;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: scale(0.6) rotate(-3deg);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(200, 164, 90, 0.3);
}

.sf-cursor-thumb.active {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.sf-cursor-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Shimmer Loading Effect --- */
@keyframes sfShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.sf-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(200, 164, 90, 0.04), transparent);
    z-index: 0;
    transition: left 0.6s ease;
}

.sf-card:hover::after {
    left: 150%;
}

/* --- Entrance Animations --- */
.sf-card {
    opacity: 0;
    transform: translateY(30px);
}

.sf-card.sf-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.sf-card:nth-child(1).sf-visible { transition-delay: 0.1s; }
.sf-card:nth-child(2).sf-visible { transition-delay: 0.2s; }
.sf-card:nth-child(3).sf-visible { transition-delay: 0.3s; }
.sf-card:nth-child(4).sf-visible { transition-delay: 0.4s; }
.sf-card:nth-child(5).sf-visible { transition-delay: 0.5s; }
.sf-card:nth-child(6).sf-visible { transition-delay: 0.6s; }
.sf-card:nth-child(7).sf-visible { transition-delay: 0.7s; }
.sf-card:nth-child(8).sf-visible { transition-delay: 0.8s; }
.sf-card:nth-child(9).sf-visible { transition-delay: 0.9s; }
.sf-card:nth-child(10).sf-visible { transition-delay: 1.0s; }
.sf-card:nth-child(11).sf-visible { transition-delay: 1.1s; }
.sf-card:nth-child(12).sf-visible { transition-delay: 1.2s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .sf-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sf-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sf-image-col {
        max-width: 500px;
        margin: 0 auto;
    }

    .sf-main-image {
        height: 400px;
    }

    .sf-badge {
        bottom: -15px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    .sf-services {
        padding: 70px 0 60px;
    }

    .sf-header {
        margin-bottom: 40px;
    }

    .sf-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .sf-card {
        padding: 14px 12px;
    }

    .sf-card-content {
        gap: 10px;
    }

    .sf-card-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .sf-card-icon i {
        font-size: 0.85rem;
    }

    .sf-card-title {
        font-size: 0.8rem;
    }

    .sf-main-image {
        height: 320px;
    }

    .sf-cursor-thumb {
        display: none;
    }

    .sf-badge {
        padding: 14px 18px;
    }

    .sf-badge-number {
        font-size: 1.5rem;
    }
    
    .sf-container-wide {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .sf-title {
        font-size: 1.6rem;
    }

    .sf-subtitle {
        font-size: 0.92rem;
    }

    .sf-main-image {
        height: 260px;
        border-radius: 16px;
    }

    .sf-card {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .sf-card-icon {
        width: 48px;
        height: 48px;
    }

    .sf-btn {
        padding: 12px 28px;
        font-size: 0.88rem;
    }
}
