/* ==========================================================================
   Godo Premium Glassmorphism & Micro-animations Services Sheet
   ========================================================================== */

.section-page-hero {
    padding: 48px 0 24px;
}

.section-page-hero__inner {
    position: relative;
    overflow: hidden;
    padding: 50px 40px;
    border-radius: 32px;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(10, 25, 47, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        0 24px 70px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(110, 168, 255, 0.12);
    color: var(--primary, #6ea8ff);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    border: 1px solid rgba(110, 168, 255, 0.2);
}

.section-page-hero h1 {
    margin: 0 0 16px;
    font-size: 2.2rem;
    font-weight: 850;
    line-height: 1.3;
}

.section-page-hero p {
    max-width: 780px;
    margin: 0;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.services-list-section {
    padding: 30px 0 100px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

/* --- Premium Glass Card with Custom Effects --- */
.glass-card {
    position: relative;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
        rgba(13, 27, 49, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 18px 45px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.service-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    overflow: hidden;
    isolation: isolate;
    transition: 
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.4s ease,
        box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Card Hover Spotlight Effect */
.card-spotlight {
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--x, 50%) var(--y, 50%), rgba(110, 168, 255, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

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

/* Card Hover Shimmer Light Line */
.card-shimmer {
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    z-index: 2;
    pointer-events: none;
}

.service-card:hover .card-shimmer {
    animation: shimmerEffect 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes shimmerEffect {
    100% {
        left: 200%;
    }
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(110, 168, 255, 0.28);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 35px 70px rgba(0, 0, 0, 0.4);
}

.service-card > * {
    position: relative;
    z-index: 3;
}

/* --- Premium Icon Glass Styling --- */
.service-card__icon-wrap {
    margin-bottom: 24px;
}

.service-card__icon {
    position: relative;
    width: 80px;
    height: 80px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: 
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.4s ease,
        background 0.4s ease;
}

.service-card:hover .service-card__icon {
    transform: scale(1.04) rotate(2deg);
    border-color: rgba(110, 168, 255, 0.35);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
}

/* --- SVG Micro-Animations (Soft transition backward & forward) --- */
.service-icon {
    width: 46px;
    height: 46px;
    display: block;
}

/* تنظیم انیمیشن فوق‌العاده نرم با بازگشت روان */
.service-icon path, 
.service-icon circle, 
.service-icon rect {
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), 
                stroke 0.4s ease, 
                fill-opacity 0.4s ease,
                opacity 0.4s ease;
    transform-origin: center;
}

/* 1. انیمیشن طراحی وب (پنجره و شیشه‌ها) */
.service-card:hover .service-icon--design .icon-orb {
    fill-opacity: 0.25;
    transform: scale(1.1);
}
.service-card:hover .service-icon--design .icon-glow-line {
    transform: translateX(3px);
}
.service-card:hover .service-icon--design .icon-glow-line--delay {
    transform: translateX(5px);
}
.service-card:hover .service-icon--design .icon-frame {
    transform: scale(1.03);
}

/* 2. انیمیشن سئو (لنز و جرقه‌ها) */
.service-card:hover .service-icon--seo .icon-lens {
    transform: scale(1.08) translate(-1px, -1px);
}
.service-card:hover .service-icon--seo .icon-handle {
    transform: translate(2px, 2px);
}
.service-card:hover .service-icon--seo .icon-spark--pulse {
    transform: scale(1.25);
    opacity: 0.9;
}

/* 3. انیمیشن برندینگ (سپر و تیک) */
.service-card:hover .service-icon--branding .icon-shield {
    transform: scale(1.04);
}
.service-card:hover .service-icon--branding .icon-check {
    transform: translate(1px, -1px) scale(1.08);
}
.service-card:hover .service-icon--branding .icon-dot {
    transform: translateY(-4px) scale(1.3);
}

/* 4. انیمیشن توسعه اختصاصی (کراکت‌ها و کد) */
.service-card:hover .service-icon--development .icon-bracket-left {
    transform: translateX(-4px);
}
.service-card:hover .service-icon--development .icon-bracket-right {
    transform: translateX(4px);
}
.service-card:hover .service-icon--development .icon-slash {
    transform: rotate(5deg) scale(0.95);
}
.service-card:hover .service-icon--development .icon-node {
    transform: scale(1.35);
}

/* 5. انیمیشن تجربه کاربری (پنل و کرسر) */
.service-card:hover .service-icon--ux .icon-panel {
    transform: scale(0.98);
}
.service-card:hover .service-icon--ux .icon-cursor {
    transform: translate(3px, -3px);
}
.service-card:hover .service-icon--ux .icon-cursor-tail {
    transform: translate(2px, -2px);
}

/* --- Content Styling --- */
.service-card__content h2 {
    margin: 0 0 14px;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text, #eaf1ff);
}

.service-card__content p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.service-card__meta {
    margin-top: auto;
    margin-bottom: 22px;
}

.service-card__price {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-weight: 750;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.service-card__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Responsive Rules */
@media (max-width: 1080px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .section-page-hero__inner {
        padding: 30px 20px;
    }
    .service-card {
        padding: 24px;
    }
}
