/* ============================================
   SERVICES PAGE — POWERFUL DESIGN
============================================ */

/* ---------- HERO SECTION ---------- */
.services-hero {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
}

.hero-bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: floatCircle 8s ease-in-out infinite;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: #eab308;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: #f59e0b;
    bottom: -50px;
    left: -80px;
    animation-delay: 2s;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: #fbbf24;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes floatCircle {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-30px) scale(1.05); }
}

.grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(234, 179, 8, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(234, 179, 8, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.services-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: #eab308;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #eab308;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.gradient-text {
    background: linear-gradient(135deg, #eab308, #f59e0b, #fbbf24, #eab308);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: 18px;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #eab308, transparent);
}

.divider-diamond {
    width: 10px;
    height: 10px;
    background: #eab308;
    transform: rotate(45deg);
    animation: rotateDiamond 6s linear infinite;
}

@keyframes rotateDiamond {
    0%   { transform: rotate(45deg); }
    100% { transform: rotate(405deg); }
}

/* ---------- STATS BAR ---------- */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px 50px;
    margin-bottom: 70px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.05), rgba(0, 0, 0, 0.5));
    border: 1px solid rgba(234, 179, 8, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #eab308, transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 100%; }
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #eab308;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: #9ca3af;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, rgba(234, 179, 8, 0.3), transparent);
}

/* ---------- SERVICES GRID ---------- */
.services-section {
    background: #000;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ---------- SERVICE CARD ---------- */
.service-card {
    position: relative;
    background: linear-gradient(160deg, #0d0d0d, #111111);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    animation: fadeInUp 0.6s ease calc(var(--delay) * 0.15s) both;
}

.service-card:hover {
    transform: translateY(-12px);
    border-color: rgba(234, 179, 8, 0.3);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(234, 179, 8, 0.08);
}

/* Card Glow */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(234, 179, 8, 0.06) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.service-card:hover .card-glow {
    opacity: 1;
}

/* Corner Accents */
.corner-accent {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: rgba(234, 179, 8, 0);
    border-style: solid;
    border-width: 0;
    transition: all 0.5s ease;
    z-index: 5;
}

.corner-accent.top-left {
    top: 12px; left: 12px;
    border-top-width: 2px; border-left-width: 2px;
    border-top-left-radius: 6px;
}

.corner-accent.top-right {
    top: 12px; right: 12px;
    border-top-width: 2px; border-right-width: 2px;
    border-top-right-radius: 6px;
}

.corner-accent.bottom-left {
    bottom: 12px; left: 12px;
    border-bottom-width: 2px; border-left-width: 2px;
    border-bottom-left-radius: 6px;
}

.corner-accent.bottom-right {
    bottom: 12px; right: 12px;
    border-bottom-width: 2px; border-right-width: 2px;
    border-bottom-right-radius: 6px;
}

.service-card:hover .corner-accent {
    border-color: rgba(234, 179, 8, 0.4);
}

/* Card Number */
.card-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 64px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    line-height: 1;
    z-index: 1;
    transition: all 0.5s ease;
    letter-spacing: -3px;
}

.service-card:hover .card-number {
    color: rgba(234, 179, 8, 0.08);
    transform: scale(1.1);
}

/* Card Image */
.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    filter: brightness(0.7) saturate(0.8);
}

.service-card:hover .card-image img {
    transform: scale(1.1);
    filter: brightness(0.9) saturate(1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.95) 100%
    );
    z-index: 1;
}

.image-border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #eab308, transparent);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover .image-border {
    opacity: 1;
}

/* Card Content */
.card-content {
    position: relative;
    padding: 30px 28px 32px;
    z-index: 2;
}

/* Card Icon */
.card-icon {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1), rgba(234, 179, 8, 0.02));
    border: 1px solid rgba(234, 179, 8, 0.15);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: #eab308;
    transition: all 0.4s ease;
}

.icon-ring {
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(234, 179, 8, 0.1);
    border-radius: 20px;
    transition: all 0.4s ease;
}

.service-card:hover .card-icon {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(234, 179, 8, 0.05));
    border-color: rgba(234, 179, 8, 0.3);
    transform: scale(1.05);
}

.service-card:hover .icon-ring {
    inset: -8px;
    border-color: rgba(234, 179, 8, 0.08);
    border-radius: 24px;
}

.service-card:hover .card-icon svg {
    transform: rotate(5deg) scale(1.1);
}

/* Card Title */
.card-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.service-card:hover .card-title {
    color: #eab308;
}

/* Card Divider */
.card-divider {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #eab308, transparent);
    border-radius: 2px;
    margin-bottom: 14px;
    transition: width 0.5s ease;
}

.service-card:hover .card-divider {
    width: 70px;
}

/* Card Description */
.card-description {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.7;
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

.service-card:hover .card-description {
    color: #b0b7c3;
}

/* Card Link */
.card-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    text-decoration: none;
    color: #eab308;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(234, 179, 8, 0.25);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.4s ease;
    letter-spacing: 0.3px;
}

.link-text {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.link-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.link-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #eab308, #f59e0b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 50px;
}

.card-link:hover .link-bg {
    transform: scaleX(1);
}

.card-link:hover .link-text {
    color: #000;
}

.card-link:hover .link-icon {
    color: #000;
    transform: translateX(4px);
}

.card-link:hover {
    border-color: #eab308;
    box-shadow: 0 4px 20px rgba(234, 179, 8, 0.25);
}

/* ---------- BOTTOM CTA ---------- */
.services-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 80px;
    padding: 50px 60px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.06), rgba(0, 0, 0, 0.6));
    border: 1px solid rgba(234, 179, 8, 0.12);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.services-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #eab308, transparent);
}

.services-cta::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.08), transparent 60%);
    right: -50px;
    top: -100px;
    pointer-events: none;
}

.cta-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.cta-content p {
    font-size: 16px;
    color: #9ca3af;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #eab308, #f59e0b);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border-radius: 50px;
    transition: all 0.4s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(234, 179, 8, 0.3);
}

.cta-btn svg {
    transition: transform 0.3s ease;
}

.cta-btn:hover svg {
    transform: translateX(4px);
}

/* ---------- NO SERVICES ---------- */
.no-services {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #9ca3af;
    font-size: 16px;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stats-bar {
        gap: 24px;
        padding: 30px;
    }

    .stat-number {
        font-size: 28px;
    }

    .services-cta {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .stats-bar {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        flex: 1 1 40%;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .card-image {
        height: 200px;
    }

    .card-content {
        padding: 24px 22px 28px;
    }

    .card-title {
        font-size: 20px;
    }

    .card-number {
        font-size: 48px;
    }

    .services-cta {
        padding: 30px 24px;
    }

    .cta-content h3 {
        font-size: 22px;
    }

    .cta-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .stats-bar {
        padding: 24px 20px;
    }

    .stat-item {
        flex: 1 1 100%;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 16px;
    }

    .card-link {
        width: 100%;
        justify-content: center;
    }
}