/* =========================
   SERVICES SECTION
========================= */
.services {
    position: relative;
    background: linear-gradient(180deg, #000 0%, #0a0a0a 50%, #000 100%);
}

/* Background Elements */
.services-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: #eab308;
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: #3b82f6;
    top: 50%;
    right: -5%;
    animation-delay: -7s;
}

.circle-3 {
    width: 350px;
    height: 350px;
    background: #8b5cf6;
    bottom: 10%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

/* =========================
   SERVICES HEADER
========================= */
.services-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 1;
}

.services-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: #eab308;
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease;
}

.tag-icon {
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.services-title span {
    background: linear-gradient(135deg, #eab308 0%, #fbbf24 50%, #eab308 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.services-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #eab308, transparent);
    border-radius: 2px;
}

.services-desc {
    font-size: 18px;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   SERVICES GRID
========================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* =========================
   SERVICE CARD
========================= */
.service-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(234, 179, 8, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8),
                0 0 40px rgba(234, 179, 8, 0.1);
}

/* Card Number */
.card-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    z-index: 3;
    transition: all 0.3s ease;
}

.service-card:hover .card-number {
    color: rgba(234, 179, 8, 0.6);
}

/* Card Image */
.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.6) 100%);
    transition: all 0.3s ease;
}

.service-card:hover .card-overlay {
    background: linear-gradient(180deg, 
        rgba(234, 179, 8, 0.1) 0%, 
        rgba(0, 0, 0, 0.8) 100%);
}

/* Card Content */
.card-content {
    padding: 30px;
    position: relative;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2) 0%, rgba(234, 179, 8, 0.05) 100%);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #eab308;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .card-icon {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    color: #000;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(234, 179, 8, 0.3);
}

.card-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.service-card:hover .card-content h3 {
    color: #eab308;
}

.card-content p {
    font-size: 15px;
    color: #9ca3af;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Card Link */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.card-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #eab308;
    transition: width 0.3s ease;
}

.card-link:hover {
    color: #eab308;
}

.card-link:hover::before {
    width: 100%;
}

.card-link svg {
    transition: transform 0.3s ease;
}

.card-link:hover svg {
    transform: translateX(5px);
}

/* Card Glow Effect */
.card-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(circle at 50% 50%, 
        rgba(234, 179, 8, 0.15) 0%, 
        transparent 70%);
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card:hover .card-glow {
    opacity: 1;
}

/* =========================
   SERVICES CTA
========================= */
.services-cta {
    text-align: center;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .section-padding {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .services-header {
        margin-bottom: 50px;
    }
    
    .services-desc {
        font-size: 16px;
    }
    
    .card-image {
        height: 180px;
    }
    
    .card-content {
        padding: 25px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .services-tag {
        font-size: 12px;
        padding: 8px 18px;
    }
    
    .services-title {
        font-size: 32px;
    }
    
    .card-content h3 {
        font-size: 20px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
    }
    
    .btn-primary {
        padding: 14px 28px;
        font-size: 14px;
    }
}

/* =========================
   ANIMATION ON SCROLL (Optional)
========================= */
.service-card {
    opacity: 0;
    transform: translateY(50px);
    animation: cardFadeIn 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}