/* SEO Optimization Page Specific Styles */

/* Page Header */
.page-header {
    position: relative;
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a3c5d 50%, #3a4c6d 100%);
    color: var(--color-background);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 0;
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s forwards;
}

.page-header h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-background);
    line-height: 1.1;
}

.page-header h1 .highlight {
    color: var(--color-secondary);
    position: relative;
    display: inline-block;
}

.page-description {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(245, 241, 233, 0.9);
}

/* Service Detail Layout */
.service-detail {
    padding: 5rem 0;
    background-color: var(--color-background);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 3rem;
}

.service-detail-content {
    padding-right: 2rem;
}

/* Service Introduction */
.service-intro {
    margin-bottom: 4rem;
}

.service-intro h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.service-intro h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 3px;
}

.service-intro p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--color-text);
}

/* Service Features */
.service-features {
    margin-bottom: 4rem;
}

.feature-item-large {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
    padding: 2rem;
    border-radius: 1rem;
    background: rgba(245, 241, 233, 0.5);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.feature-item-large:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: var(--color-secondary);
}

.feature-item-large .feature-icon {
    background: rgba(26, 43, 76, 0.1);
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-item-large:hover .feature-icon {
    background: var(--color-primary);
    color: var(--color-background);
    transform: scale(1.1) rotate(10deg);
}

.feature-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.feature-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

/* Service Process */
.service-process {
    margin-bottom: 4rem;
}

.service-process h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.service-process h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 3px;
}

.process-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    color: var(--color-text);
}

.process-steps {
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1.2rem;
    width: 2px;
    background: var(--color-border);
    z-index: 0;
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content {
    padding-top: 0.25rem;
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.step-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

/* Ranking Factors Section */
.ranking-factors {
    margin-bottom: 4rem;
}

.ranking-factors h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.ranking-factors h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 3px;
}

.factors-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    color: var(--color-text);
}

.factors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.factor-card {
    padding: 1.75rem;
    border-radius: 1rem;
    background: rgba(245, 241, 233, 0.5);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.factor-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: var(--color-secondary);
}

.factor-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(26, 43, 76, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.factor-card:hover .factor-icon {
    background: var(--color-primary);
    color: var(--color-background);
    transform: scale(1.1);
}

.factor-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.factor-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

/* Sidebar Styles */
.service-sidebar {
    position: sticky;
    top: 6rem;
    align-self: start;
}

.sidebar-card, .cta-card {
    padding: 2rem;
    border-radius: 1rem;
    background: rgba(245, 241, 233, 0.5);
    border: 1px solid var(--color-border);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.sidebar-card:hover, .cta-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.sidebar-card h3, .cta-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}

.service-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.service-list li i {
    color: var(--color-secondary);
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.service-list li span {
    color: var(--color-text-light);
}

.service-list li:hover {
    transform: translateX(5px);
}

.cta-card {
    background: var(--color-primary);
    color: var(--color-background);
    text-align: center;
}

.cta-card h3 {
    color: var(--color-background);
}

.cta-card p {
    margin-bottom: 1.5rem;
    color: rgba(245, 241, 233, 0.9);
}

.btn-primary.full-width {
    width: 100%;
    justify-content: center;
}

/* Results Section */
.results-section {
    padding: 6rem 0;
    background-color: var(--color-primary);
    color: var(--color-background);
    position: relative;
    overflow: hidden;
}

.results-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.results-section .section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.results-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-background);
}

.results-section .section-header p {
    color: rgba(245, 241, 233, 0.9);
    font-size: 1.125rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.result-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.result-percentage {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1;
    display: inline-block;
    position: relative;
}

.result-symbol {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-secondary);
    display: inline-block;
    margin-left: 0.25rem;
}

.result-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
    color: var(--color-background);
}

.result-card p {
    font-size: 0.95rem;
    color: rgba(245, 241, 233, 0.7);
}

/* Project Showcase */
.project-showcase {
    position: relative;
    overflow: visible;
}

.project-showcase .container {
    position: relative;
    z-index: 5;
}

.project-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231A2B4C' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.project-showcase .section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.project-showcase .section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.project-showcase .section-header p {
    color: var(--color-text-light);
    font-size: 1.125rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.showcase-item {
    border-radius: 1rem;
    overflow: hidden;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-secondary);
}

.showcase-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.showcase-item:hover .showcase-image img {
    transform: scale(1.1);
}

.showcase-content {
    padding: 1.5rem;
}

.showcase-category {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: rgba(26, 43, 76, 0.1);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    margin-bottom: 0.75rem;
}

.showcase-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.showcase-content p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.showcase-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.25rem;
}

.showcase-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.showcase-link:hover {
    gap: 0.75rem;
    color: var(--color-secondary);
}

.showcase-link:hover::after {
    width: 100%;
}

.showcase-cta {
    text-align: center;
    margin-top: 3rem;
    position: relative;
    z-index: 10;
}

.showcase-cta .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--color-primary);
    font-weight: 600;
    border: 2px solid var(--color-primary);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer !important; /* Force cursor to be pointer */
    position: relative;
    z-index: 15; /* Even higher z-index */
    overflow: visible; /* Ensure no overflow is hidden */
}

.showcase-cta .btn-secondary i {
    transition: transform 0.3s ease;
}

.showcase-cta .btn-secondary:hover i,
.showcase-cta .btn-secondary:focus i {
    transform: translateX(5px);
}

.showcase-cta .btn-secondary:hover,
.showcase-cta .btn-secondary:focus {
    background: var(--color-primary);
    color: var(--color-background);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.showcase-cta .btn-secondary:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Tools Section */
.tools-section {
    padding: 6rem 0;
    background-color: var(--color-background);
    position: relative;
}

.tools-section .section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.tools-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.tools-section .section-header p {
    color: var(--color-text-light);
    font-size: 1.125rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tool-card {
    padding: 2rem;
    border-radius: 1rem;
    background: rgba(245, 241, 233, 0.5);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    height: 100%;
}

.tool-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: var(--color-secondary);
}

.tool-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(26, 43, 76, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    background: var(--color-primary);
    color: var(--color-background);
    transform: scale(1.1);
}

.tool-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--color-primary);
}

.tool-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tool-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--color-text-light);
}

.tool-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-size: 1.2rem;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background-color: var(--color-background-alt);
}

.faq-section .section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.faq-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.faq-section .section-header p {
    color: var(--color-text-light);
    font-size: 1.125rem;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--color-secondary);
}

.faq-question {
    padding: 1.5rem;
    background: rgba(245, 241, 233, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}

.faq-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer p {
    padding: 0 0 1.5rem;
    margin: 0;
    color: var(--color-text-light);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 600px; /* Increase for longer answers */
}

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

.faq-item.active .faq-question {
    border-bottom: 1px solid var(--color-border);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a3c5d 50%, #3a4c6d 100%);
    color: var(--color-background);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-background);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(245, 241, 233, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.cta-section .btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-background);
    border: 1px solid var(--color-background);
    transition: all 0.3s ease;
    font-weight: 600;
}

.cta-section .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* SEO-specific Animations */
@keyframes searchRankingPulse {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

@keyframes percentageGlow {
    0% { text-shadow: 0 0 5px rgba(255, 111, 97, 0.3); }
    50% { text-shadow: 0 0 15px rgba(255, 111, 97, 0.6); }
    100% { text-shadow: 0 0 5px rgba(255, 111, 97, 0.3); }
}

.factor-card:hover .factor-icon i {
    animation: searchRankingPulse 1.5s ease infinite;
}

.result-percentage {
    animation: percentageGlow 2s ease-in-out infinite;
}

/* Search ranking positions indicator for result card */
.result-position {
    position: relative;
    margin-top: 1.5rem;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.result-position::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 75%;
    background: var(--color-secondary);
    border-radius: 3px;
    animation: growWidth 1.5s ease-in-out;
}

@keyframes growWidth {
    0% { width: 0; }
    100% { width: 75%; }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .factors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .service-detail-content {
        padding-right: 0;
    }
    
    .service-sidebar {
        position: static;
    }
    
    .factors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-header h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .factors-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item-large {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }
    
    .feature-item-large .feature-icon {
        margin-bottom: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-description {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .service-detail {
        padding: 3rem 0;
    }
    
    .service-intro h2, 
    .service-process h2, 
    .ranking-factors h2 {
        font-size: 1.75rem;
    }
    
    .service-intro p {
        font-size: 1rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .result-percentage {
        font-size: 2.75rem;
    }
    
    .result-symbol {
        font-size: 2rem;
    }
    
    .result-card h3 {
        font-size: 1.1rem;
    }
    
    .tool-card,
    .factor-card {
        padding: 1.5rem;
    }
}

/* SEO-specific effects */

/* SERP result preview for showcase items */
.showcase-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #4285F4, #34A853, #FBBC05, #EA4335);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.showcase-item::before,
.showcase-item::after {
    pointer-events: none;
}

.showcase-item:hover::before {
    opacity: 1;
}

.showcase-cta .btn-secondary {
        width: 100%;
        justify-content: center;
    }

/* Search magnifying glass animation */
.page-header h1 .highlight::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border: 3px solid var(--color-secondary);
    border-radius: 50%;
    top: 15px;
    right: -25px;
    opacity: 0;
    animation: searchAppear 2s ease forwards 1s;
}

.page-header h1 .highlight::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 10px;
    background: var(--color-secondary);
    top: 30px;
    right: -22px;
    transform: rotate(-45deg);
    opacity: 0;
    animation: searchAppear 2s ease forwards 1s;
}

@keyframes searchAppear {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Keyword emphasis animation */
.keyword-highlight {
    background: linear-gradient(to right, rgba(255, 111, 97, 0.1), rgba(255, 111, 97, 0.2), rgba(255, 111, 97, 0.1));
    padding: 0 3px;
    border-radius: 3px;
    font-weight: 500;
    animation: keywordPulse 3s infinite;
}

@keyframes keywordPulse {
    0% { background-color: rgba(255, 111, 97, 0.1); }
    50% { background-color: rgba(255, 111, 97, 0.2); }
    100% { background-color: rgba(255, 111, 97, 0.1); }
}

/* Ranking visualization for factor cards */
.factor-rank {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--color-border);
    margin-top: 1rem;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.factor-rank::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--color-secondary);
    transition: width 0.8s ease;
}

.factor-card:hover .factor-rank::after {
    width: 100%;
}

/* SEO graph visualization */
.seo-graph {
    height: 4px;
    width: 100%;
    background: rgba(26, 43, 76, 0.1);
    border-radius: 2px;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.seo-graph::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 40%;
    left: 0;
    top: 0;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
}

.seo-graph::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 0;
    left: 40%;
    top: 0;
    background: var(--color-secondary);
    animation: graphGrow 1.5s ease-in-out forwards 0.5s;
}

@keyframes graphGrow {
    0% { width: 0; }
    100% { width: 50%; }
}

/* Placeholder for rank tracking visualization */
.rank-tracking {
    margin-top: 2rem;
    height: 150px;
    background: rgba(245, 241, 233, 0.5);
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
}

.rank-tracking::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top left, rgba(26, 43, 76, 0.1) 0%, rgba(26, 43, 76, 0.05) 50%, rgba(255, 111, 97, 0.05) 100%);
}

.rank-line {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(26, 43, 76, 0.2);
}

.rank-marker {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-secondary);
    bottom: 26px;
    transition: all 0.3s ease;
}

/* Interactive search position markers */
.rank-position-1 { left: 10%; bottom: 100px; }
.rank-position-2 { left: 20%; bottom: 70px; }
.rank-position-3 { left: 30%; bottom: 90px; }
.rank-position-4 { left: 40%; bottom: 40px; }
.rank-position-5 { left: 50%; bottom: 50px; }
.rank-position-6 { left: 60%; bottom: 30px; }
.rank-position-7 { left: 70%; bottom: 60px; }
.rank-position-8 { left: 80%; bottom: 20px; }
.rank-position-9 { left: 90%; bottom: 26px; }

.rank-tracking:hover .rank-marker {
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(255, 111, 97, 0.5);
}