/* =========================================
   SERVICES PAGE HERO SECTION
   High-Impact Purple/Gold Design
   ========================================= */

.services-hero {
    position: relative;
    margin-top: calc(var(--nav-height) * -1);
    /* Pull under navbar if nav is transparent */
    padding-top: calc(var(--space-20) + var(--nav-height));
    padding-bottom: var(--space-8);
    /* Reduced from space-20 to tighten the gap */
    background: linear-gradient(135deg, #1E0B4D 0%, #341270 100%);
    color: var(--color-white);
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Tighten gap to next section */
.services-hero+.section {
    padding-top: var(--space-8);
}

/* Background Dots (Matching Screenshot style) */
.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    z-index: 0;
    mask-image: radial-gradient(circle at right, black, transparent 70%);
    opacity: 0.6;
}

.services-hero .container {
    position: relative;
    z-index: 2;
}

.services-hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

/* --- Left Column: Content --- */
.services-hero-content {
    animation: heroFadeInUp 0.8s ease-out forwards;
}

.services-hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: var(--space-6);
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.title-highlight {
    color: var(--color-gold);
    background: linear-gradient(to right, var(--color-gold), #FFF 150%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-highlight-box {
    display: inline-block;
    background: var(--color-gold);
    color: #120733;
    /* Extra deep navy for high contrast */
    padding: 0px 18px;
    border-radius: 8px;
    margin: 5px 4px 0 0;
    box-shadow: 0 4px 25px rgba(253, 183, 26, 0.4);
    transform: translateY(-2px);
}

.not-tech-refine {
    font-size: 0.78em; /* Shrunk for sleek single-line fit */
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.services-hero-description {
    font-size: var(--text-lg);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 560px;
    font-family: 'Outfit', sans-serif;
    animation: heroFadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

/* --- Hero CTA Swag Button --- */
.hero-cta-wrapper {
    margin-top: var(--space-8);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centered under the title/layout */
    animation: heroFadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
    max-width: fit-content;
    /* Ensure wrapper only as wide as content */
}

@media (min-width: 993px) {
    .hero-cta-wrapper {
        align-items: flex-start;
        /* Keep left-aligned on desktop grid */
    }
}

.btn-hero-swag {
    display: inline-block;
    padding: var(--space-4) var(--space-10);
    background: linear-gradient(135deg, var(--color-gold) 0%, #FDC94A 100%);
    color: #120733;
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(253, 183, 26, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Fill wrapper width */
}

.btn-hero-swag::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    pointer-events: none;
}

.btn-hero-swag:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(253, 183, 26, 0.5);
    color: #120733;
}

.btn-hero-swag:hover::before {
    left: 100%;
}

.hero-cta-microcopy {
    margin-top: var(--space-3);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: center;
    width: 100%;
}

/* --- Right Column: Visual --- */
.services-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: heroFadeInRight 1s ease-out forwards;
}

.services-hero-visual::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(253, 183, 26, 0.1) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
}

.hero-graphic-main {
    max-width: 110%;
    /* Allow it to break out slightly for impact */
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: servicesHeroFloat 6s ease-in-out infinite alternate;
}

.static-graphic {
    animation: none !important;
    transform: none !important;
}

/* Animations */
@keyframes servicesHeroFloat {
    from {
        transform: translateY(0) rotate(-1deg);
    }

    to {
        transform: translateY(-20px) rotate(1deg);
    }
}

@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Responsive Styles --- */
@media (max-width: 1200px) {
    .services-hero-grid {
        gap: var(--space-8);
    }
}

@media (max-width: 992px) {
    .services-hero {
        padding-top: calc(var(--space-12) + var(--nav-height));
        padding-bottom: var(--space-6);
        text-align: center;
        min-height: auto;
    }

    .services-hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .services-hero-description {
        margin: 0 auto;
    }

    .services-hero-visual {
        max-width: 480px;
        margin: 0 auto;
        order: -1;
        /* Graphic on top for mobile */
    }

    .hero-graphic-main {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .services-hero-title {
        font-size: 2.25rem;
    }

    .hero-highlight-box {
        padding: 0px 12px;
        border-radius: 6px;
    }

    .services-hero-description {
        font-size: var(--text-base);
    }
}