/* Animation Studio Page Styles */

/* Hero Section */
.service-hero {
    padding: 60px 0 0px;
    background: #130e0f;
    position: relative;
    overflow: hidden;
    min-height: 51vh;
    display: flex;
    align-items: center;
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    margin-left: -50vw;
    text-align: center;
    color: white;
}

.hero-text-column {
    flex: 0 0 40%;
    text-align: left;
    padding-right: 40px;
    z-index: 2;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-media-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: absolute;
    height: 100%;
    top: 0;
    right: 0;
    object-fit: fill;
}

@media (max-width: 768px) {
    .hero-image {
        display: none;
        margin-top: 30px;
    }

    .service-hero {
        padding: 40px 0;
        min-height: 61vh;
    }

    .hero-text-column {
        flex: 0 0 100%;
        padding-right: 0;
        text-align: center;
    }
}

/* Hero Badge - Running Line Style */
.hero-badge {
    display: inline-flex;
    align-items: center;
    color: #4facfe;
    /* Bright Blue */
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    background: transparent;
    border: none;
    padding: 0;
    backdrop-filter: none;
    border-radius: 0;
}

.hero-badge::before {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #4facfe;
    margin-right: 16px;
    border-radius: 2px;
    animation: running-line 2s ease-in-out infinite;
    transform-origin: left;
}

@keyframes running-line {
    0% {
        transform: scaleX(0.2);
        opacity: 0.5;
    }

    50% {
        transform: scaleX(1);
        opacity: 1;
    }

    100% {
        transform: scaleX(0.2);
        opacity: 0.5;
    }
}

.service-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.service-hero p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-hero .container {
    display: flex;
    gap: 60px;
}


@keyframes gradient-text-anim {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Comparison Slider Styles */
.comparison-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    cursor: col-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    pointer-events: none;
    transition: transform 0.1s;
}

.slider-handle:active {
    transform: translate(-50%, -50%) scale(1.1);
}

.slider-handle i {
    color: white;
    font-size: 1rem;
}

.label-badge {
    position: absolute;
    bottom: 20px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 5;
}

/* Section Basics */
.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: #f9fafb;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: #111827;
    text-align: center;
}

.text-center {
    text-align: center;
}

.text-white {
    color: white !important;
}

.text-white-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centered alignment */
    text-align: center;
    /* Centered text */
    position: relative;
    z-index: 10;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: white;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111827;
}

.feature-card p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Why Choose Section - Side Icon Layout (Clean) */
.why-choose-section {
    background: #ffffff;
    color: #111827;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    /* Wider columns for side layout */
    gap: 40px;
}

.why-card {
    display: flex;
    align-items: flex-start;
    /* Align top */
    background: transparent;
    border: none;
    padding: 0;
    transition: transform 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    background: transparent;
    box-shadow: none;
    border: none;
}

.why-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    /* Soft blue background */
    color: #2563eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    /* Space between icon and text */
    margin-bottom: 0;
    /* Reset bottom margin */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.why-card:hover .why-icon {
    background: #2563eb;
    color: white;
}

.why-content-wrapper {
    flex: 1;
}

.why-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    /* Tighter spacing */
    color: #111827;
}

.why-card p {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive adjustment for side layout */
@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-card {
        flex-direction: row;
        /* Keep side layout on mobile if possible, or stack if too narrow */
    }
}


/* Links */
.text-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s ease;
    position: relative;
    z-index: 10;
}

.text-link:hover {
    gap: 12px;
}

.cta-button {
    display: inline-block;
    background-color: #2563eb;
    color: white;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #1d4ed8;
}

/* FAQ */
.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    cursor: pointer;
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #111827;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-body {
    padding-bottom: 24px;
    color: #4b5563;
    line-height: 1.7;
    font-size: 1.1rem;
}

.faq-icon {
    color: #2563eb;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 992px) {
    .service-hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text-column {
        padding-right: 0;
        text-align: center;
    }

    .hero-media-column {
        width: 100%;
    }

    .service-hero h1 {
        font-size: 2.3rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid items */
.animate-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}

.animate-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.animate-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}

.animate-on-scroll:nth-child(4) {
    transition-delay: 0.4s;
}

.animate-on-scroll:nth-child(5) {
    transition-delay: 0.5s;
}

@media (min-width: 769px) and (max-width: 1023px) {
    .service-hero {
        padding: 87px 0 60px;
    }

    .hero-image {
        display: none;
    }
}