/* Services Overview Page Specific Styles */

.hero-page {
    position: relative;
    z-index: 2;
}

.hero-page-content {
    animation: fadeInUp 0.8s ease-out;
}

.content-section {
    position: relative;
    z-index: 2;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* All Bento Grid styles are now in bento-grid.css */

/* Services Hero Section */
.services-hero {
    height: 70vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 8rem 4rem 6rem 4rem;
    position: relative;
}

.services-hero .hero-page-content {
    text-align: left;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.services-hero .hero-page-title {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.services-hero .hero-page-subtitle {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    line-height: 1.7;
    color: var(--text-gray);
    opacity: 0.9;
    max-width: 700px;
    margin-bottom: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services Bento Section */
.services-bento {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: visible;
    box-sizing: border-box;
}

/* Hero Page Grid Background */
.hero-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

/* Hero-specific Blurred Blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    will-change: transform;
    z-index: 2;
}

.hero-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    top: 20%;
    left: 15%;
    animation: hero-blob-float-1 25s ease-in-out infinite;
}

.hero-blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200, 200, 200, 0.18) 0%, transparent 70%);
    top: 60%;
    left: 40%;
    animation: hero-blob-float-2 30s ease-in-out infinite 5s;
}

.hero-blob-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 70%);
    top: 35%;
    right: 20%;
    animation: hero-blob-float-3 28s ease-in-out infinite 10s;
}

@keyframes hero-blob-float-1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-30px, 40px) scale(1.05);
    }
    66% {
        transform: translate(20px, -30px) scale(0.95);
    }
}

@keyframes hero-blob-float-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(40px, -25px) scale(1.08);
    }
    66% {
        transform: translate(-35px, 30px) scale(0.92);
    }
}

@keyframes hero-blob-float-3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-25px, -40px) scale(0.98);
    }
    66% {
        transform: translate(35px, 35px) scale(1.06);
    }
}

/* Letter Glitch Background */
.letter-glitch-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 40%, rgba(0,0,0,0) 70%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 40%, rgba(0,0,0,0) 70%);
}

.letter-glitch-bg .glitch-letter {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 28px;
    color: rgba(180, 180, 180, 0.2);
    font-weight: 600;
    pointer-events: none;
    top: 0;
    will-change: transform, opacity;
    filter: blur(5px);
}

/* Services Text Section - Redesigned */
.services-text {
    position: relative;
    padding: 8rem 2rem;
    z-index: 2;
}

.services-text-container {
    max-width: 1400px;
    margin: 0 auto;
}

.services-text-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-text-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.services-text-intro {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.7;
    color: var(--text-gray);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Features Grid */
.services-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    position: relative;
    background: linear-gradient(135deg, rgba(40, 40, 45, 0.6) 0%, rgba(30, 30, 35, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--accent-color);
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(99, 102, 241, 0.15) 100%);
    transform: scale(1.1);
}

.feature-card:hover .feature-icon i {
    transform: rotateY(180deg);
}

.feature-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-gray);
    opacity: 0.85;
}

/* CTA Section - Full Redesign */
.cta-section {
    position: relative;
    padding: 10rem 2rem;
    overflow: hidden;
}

.cta-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(40, 40, 45, 0.95) 100%);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 40px;
    padding: 5rem 4rem;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

/* Animated Background Pattern */
.cta-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg, rgba(99, 102, 241, 0.03) 0px, transparent 1px, transparent 40px, rgba(99, 102, 241, 0.03) 41px),
        repeating-linear-gradient(90deg, rgba(99, 102, 241, 0.03) 0px, transparent 1px, transparent 40px, rgba(99, 102, 241, 0.03) 41px);
    opacity: 0.5;
    pointer-events: none;
}

/* Gradient Orbs */
.cta-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite;
}

.cta-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    top: -250px;
    right: -100px;
    animation-delay: 0s;
}

.cta-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.3) 0%, transparent 70%);
    bottom: -200px;
    left: -50px;
    animation-delay: 2s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Main Content */
.cta-main-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.cta-text-block {
    max-width: 650px;
}

.cta-eyebrow {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
}

.cta-heading {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.cta-heading-accent {
    display: block;
    background: linear-gradient(135deg, var(--accent-color) 0%, rgba(147, 51, 234, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtext {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.7;
    color: var(--text-gray);
    opacity: 0.9;
}

/* Action Block */
.cta-action-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-end;
}

.cta-primary-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem 3.5rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, rgba(79, 82, 221, 1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4);
}

.cta-primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.cta-primary-btn:hover::before {
    left: 100%;
}

.cta-primary-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 80px rgba(99, 102, 241, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-btn-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.01em;
}

.cta-btn-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cta-btn-icon i {
    font-size: 1.5rem;
    color: var(--text-white);
    transition: transform 0.3s ease;
}

.cta-primary-btn:hover .cta-btn-icon {
    background: rgba(255, 255, 255, 0.3);
}

.cta-primary-btn:hover .cta-btn-icon i {
    transform: translate(3px, -3px);
}

/* Meta Info */
.cta-meta-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.cta-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.cta-meta-item i {
    font-size: 1.25rem;
    color: var(--accent-color);
}

/* Stats Row */
.cta-stats-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cta-stat-value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-white);
    line-height: 1;
}

.cta-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

.cta-stat-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Responsive Design */
@media (max-width: 968px) {
    .cta-main-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cta-action-block {
        align-items: flex-start;
    }

    .cta-stats-row {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .cta-stat-divider {
        display: none;
    }
}
