/* public/css/services.css */

/* ═══════════════════════════════
   SERVICE HERO SECTION
═══════════════════════════════ */
.service-hero {
    position: relative;
    padding: 60px 0 80px;
    background: linear-gradient(120deg, #f8fafc, #eef2ff, #f0fdf4);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.sh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}
.sh-blob-1 {
    width: 600px;
    height: 600px;
    background: rgba(11, 94, 221, 0.08);
    top: -150px;
    left: -150px;
    animation: moveBlob1 15s ease-in-out infinite alternate;
}
.sh-blob-2 {
    width: 500px;
    height: 500px;
    background: rgba(22, 182, 124, 0.08);
    bottom: -150px;
    right: -100px;
    animation: moveBlob2 18s ease-in-out infinite alternate-reverse;
}

@keyframes moveBlob1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 80px) scale(1.1); }
}
@keyframes moveBlob2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-100px, -50px) scale(1.2); }
}

.sh-grid {
    position: absolute;
    inset: -50px; /* extended to allow moving without cutting off edges */
    background-image: radial-gradient(#94a3b8 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    opacity: 0.25;
    z-index: 1;
    pointer-events: none;
    animation: moveDots 10s linear infinite;
}
@keyframes moveDots {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

.sh-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Left Content */
.sh-content {
    position: relative;
    z-index: 5;
}
.sh-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(40,120,255,0.1);
    color: #2878FF;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}
.sh-badge .badge-dot {
    width: 6px;
    height: 6px;
    background: #2878FF;
    border-radius: 50%;
}
.sh-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 25px;
}
.text-gradient {
    background: linear-gradient(135deg, #0b5edd 20%, #16b67c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sh-desc {
    font-size: 1.15rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 90%;
}
.sh-buttons {
    display: flex;
    gap: 20px;
}
.btn-gradient {
    background: linear-gradient(135deg, #0b5edd 0%, #16b67c 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(11, 94, 221, 0.3);
    border: none;
    transition: all 0.3s ease;
}
.btn-gradient:hover {
    background: linear-gradient(135deg, #094eb8 0%, #10b981 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(11, 94, 221, 0.4);
}

/* Right Animated Graphic: SEO Ranking Widget */
.sh-graphic {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.seo-ranking-widget {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    transform: rotate(3deg) translateY(0);
    position: relative;
    z-index: 10;
    margin: 0 auto;
    border: 1px solid #f1f5f9;
    animation: floatSeoWidget 6s ease-in-out infinite;
}
@keyframes floatSeoWidget {
    0% { transform: rotate(3deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-15px); }
    100% { transform: rotate(3deg) translateY(0); }
}

/* Search Bar */
.seo-search-bar {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 12px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
}
.seo-search-bar svg {
    margin-right: 12px;
}
.typing-cursor {
    color: #10b981;
    font-weight: bold;
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* Map Mockup */
.seo-map-area {
    height: 120px;
    background: #e2e8f0;
    border-radius: 12px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 10px 10px;
}
.map-pin {
    width: 24px;
    height: 24px;
    background: #ef4444;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    position: absolute;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}
.pin-1 { top: 30%; left: 30%; opacity: 0.5; }
.pin-3 { bottom: 30%; right: 20%; opacity: 0.5; }
.pin-main {
    top: 40%;
    left: 45%;
    width: 32px;
    height: 32px;
    background: #10b981; /* Green for #1 */
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: rotate(-45deg) scale(0);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.pin-main.active {
    opacity: 1;
    transform: rotate(-45deg) scale(1);
    animation: bouncePin 2s infinite ease-in-out;
    animation-delay: 0.5s;
}
.pin-main span {
    transform: rotate(45deg);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
}
@keyframes bouncePin {
    0%, 100% { transform: rotate(-45deg) scale(1); }
    50% { transform: rotate(-45deg) scale(1.1); }
}

/* Local Pack Listings */
.seo-listings {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.seo-listing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.seo-listing.highlighted {
    background: rgba(16, 185, 129, 0.05);
    border-color: #10b981;
}
.listing-info strong {
    display: block;
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 3px;
}
.seo-listing.highlighted .listing-info strong {
    color: #059669;
}
.listing-rating {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 2px;
}
.listing-rating .stars {
    color: #f59e0b;
    letter-spacing: -1px;
}
.listing-cat {
    font-size: 0.75rem;
    color: #94a3b8;
}
.listing-rank-badge {
    background: #10b981;
    color: white;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

/* Checklist */
.seo-checklist {
    border-top: 1px dashed #e2e8f0;
    padding-top: 15px;
}
.cl-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}
.cl-check {
    width: 20px;
    height: 20px;
    background: #0b5edd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}
.cl-check svg {
    width: 12px;
    height: 12px;
}

/* ═══════════════════════════════
   OPTIMIZATION FEATURES SECTION
═══════════════════════════════ */
.opt-features-section {
    padding: 50px 0 80px;
    background: #ffffff;
}
.section-header {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
}
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 20px;
}
.section-title span {
    color: #0b5edd;
}
.section-desc {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.feature-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 40px 30px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.feature-card::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0b5edd 0%, #16b67c 100%);
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(11, 94, 221, 0.2);
    border-color: #0b5edd;
}
.feature-card:hover::before {
    top: 0;
}
.fc-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(11,94,221,0.1), rgba(22,182,124,0.1));
    color: #0b5edd;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}
.fc-icon svg {
    width: 28px;
    height: 28px;
}
.fc-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 15px;
    transition: color 0.4s ease;
}
.fc-desc {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    transition: color 0.4s ease;
}

/* Hover State Text Colors */
.feature-card:hover .fc-title,
.feature-card:hover .fc-desc {
    color: #ffffff;
}
.feature-card:hover .fc-icon {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
}

/* ═══════════════════════════════
   OPTIMIZATION PROCESS SECTION
═══════════════════════════════ */
.opt-process-section {
    padding: 40px 0 100px;
    background: #f8fafc;
}
.process-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}
.process-line {
    position: absolute;
    top: 45px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(11, 94, 221, 0.2) 20%, rgba(22, 182, 124, 0.2) 80%, transparent);
    z-index: 0;
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}
.process-step {
    text-align: center;
}
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    font-size: 2.2rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    background-clip: padding-box;
}
.step-number::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b5edd, #16b67c);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.process-step:hover .step-number {
    color: #ffffff;
    border-color: transparent;
    transform: scale(1.05);
    transition: all 0.4s ease;
}
.process-step:hover .step-number::before {
    opacity: 1;
}

.step-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 25px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    text-align: left;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.process-step:hover .step-card {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(11, 94, 221, 0.08);
}
.step-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
}
.step-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* ═══════════════════════════════
   FAQ SECTION
═══════════════════════════════ */
.opt-faq-section {
    padding: 40px 0 100px;
    background: #ffffff;
}
.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
}
.faq-left {
    position: sticky;
    top: 40px;
}
.faq-left .section-title {
    margin-bottom: 25px;
}
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.faq-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.faq-item:hover {
    border-color: #cbd5e1;
}
.faq-item.active {
    background: #ffffff;
    border-color: #10b981;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.faq-icon {
    font-size: 1.5rem;
    color: #0b5edd;
    font-weight: 300;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: #10b981;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease;
}
.faq-item.active .faq-answer {
    max-height: 200px; /* arbitrary large value for smooth transition */
    margin-top: 15px;
}
.faq-answer p {
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* ═══════════════════════════════
   FINAL CTA SECTION
═══════════════════════════════ */
.opt-cta-section {
    padding: 0 0 40px;
    background: #ffffff;
}
.cta-banner {
    background: linear-gradient(135deg, #0b5edd, #16b67c, #0b5edd);
    background-size: 200% 200%;
    animation: gradientShiftCTA 10s ease infinite;
    border-radius: 24px;
    padding: 50px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(11, 94, 221, 0.2);
}
@keyframes gradientShiftCTA {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.cta-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}
.cta-blob-1 {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.25);
    top: -100px;
    left: -50px;
    animation: moveCtaBlob1 8s ease-in-out infinite alternate;
}
.cta-blob-2 {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.15);
    bottom: -150px;
    right: -100px;
    animation: moveCtaBlob2 10s ease-in-out infinite alternate-reverse;
}
@keyframes moveCtaBlob1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.1); }
}
@keyframes moveCtaBlob2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, -30px) scale(1.1); }
}
.cta-content {
    max-width: 700px;
    margin: 0 auto;
}
.cta-content h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 15px;
}
.cta-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 30px;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.btn-light {
    background: #ffffff;
    color: #0b5edd;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: none;
    font-weight: 700;
}
.btn-light:hover {
    background: #f8fafc;
    color: #094eb8;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-weight: 700;
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .service-hero { padding: 40px 0 60px; }
    .sh-layout { grid-template-columns: 1fr; }
    .sh-graphic { margin-top: 40px; width: 100%; overflow: hidden; padding: 10px; }
    .sh-title { font-size: 2.8rem; }
    .ai-review-widget {
        max-width: 100%;
        transform: rotate(0deg); /* Reset rotation on mobile to prevent cut-offs */
    }
    
    .process-line { display: none; }
    .process-steps { grid-template-columns: 1fr; gap: 40px; }
    .step-number { margin-bottom: 15px; }
    
    .faq-layout { grid-template-columns: 1fr; gap: 40px; }
    .faq-left { position: static; text-align: center; }
    
    .cta-banner { padding: 40px 20px; }
    .cta-content h2 { font-size: 2.2rem; }
    .cta-buttons { flex-direction: column; gap: 15px; width: 100%; }
    .cta-buttons .btn { width: 100%; }
}
