/* ============================================
   PAGE-SPECIFIC CSS
   Homepage, Services, Contact, Blog, Wikipedia, Privacy
   ============================================ */

/* ===== HOMEPAGE ===== */

/* Section subtitle - centered intro text below section titles */
.section-subtitle {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 40px;
    color: var(--color-body-text);
    font-size: 18px;
    line-height: 1.7;
}


/* Homepage services grid — 4 vertical cards */
.home-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.home-service-card {
    text-decoration: none;
    color: inherit;
    text-align: center;
    padding: 35px 25px;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    color: inherit;
}

.home-service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.home-service-card:hover .home-service-icon {
    transform: scale(1.1);
}

.home-service-icon svg {
    width: 32px;
    height: 32px;
}

.home-service-icon.icon-blue {
    background: rgba(46, 163, 242, 0.12);
    color: #2ea3f2;
}

.home-service-icon.icon-green {
    background: rgba(52, 199, 89, 0.12);
    color: #34c759;
}

.home-service-icon.icon-orange {
    background: rgba(242, 131, 107, 0.12);
    color: #f2836b;
}

.home-service-icon.icon-purple {
    background: rgba(134, 134, 255, 0.12);
    color: #8686ff;
}

.home-service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--color-heading);
    transition: color 0.3s ease;
}

.home-service-card:hover h3 {
    color: var(--color-primary);
}

.home-service-card p {
    font-size: 15px;
    color: var(--color-body-text);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Fade-up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.fade-up.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-up.animate-in:nth-child(2) { animation-delay: 0.1s; }
.fade-up.animate-in:nth-child(3) { animation-delay: 0.2s; }
.fade-up.animate-in:nth-child(4) { animation-delay: 0.3s; }

/* Clickable service cards on homepage */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.service-card-link:hover {
    color: inherit;
}

.service-card-link h3 {
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.service-card-link:hover h3 {
    color: var(--color-primary-dark);
}

/* Dark section theme (homepage services) */
.section-dark {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.9);
    padding: 85px 0;
}

.section-dark .section-title {
    color: #ffffff;
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.section-dark .service-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid var(--color-primary);
    padding: 35px 30px;
    border-radius: 10px;
}

.section-dark .service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(46, 163, 242, 0.3);
    border-top-color: #5bbdf7;
    box-shadow: 0 8px 30px rgba(46, 163, 242, 0.15);
}

.section-dark .service-card-icon {
    background: rgba(46, 163, 242, 0.12);
}

.section-dark .service-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    line-height: 1.7;
}

.section-dark .service-card-link h3 {
    color: #ffffff;
    font-size: 20px;
}

.section-dark .service-card-link:hover h3 {
    color: #5bbdf7;
}

/* Stats bar (homepage) */
.stats-bar {
    background: linear-gradient(130deg, #352597 0%, #8686ff 100%);
    padding: 50px 20px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.stat-item h3 {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 5px;
    line-height: 1.2;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* How It Works section (homepage) */
.how-it-works {
    padding: 85px 0 40px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #352597 0%, #8686ff 100%);
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.1);
}

.step-icon svg {
    width: 32px;
    height: 32px;
}

.step-icon.icon-blue {
    background: rgba(46, 163, 242, 0.12);
    color: #2ea3f2;
}

.step-icon.icon-orange {
    background: rgba(242, 131, 107, 0.12);
    color: #f2836b;
}

.step-icon.icon-green {
    background: rgba(52, 199, 89, 0.12);
    color: #34c759;
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--color-heading);
}

.step-card p {
    font-size: 15px;
    color: var(--color-body-text);
    line-height: 1.8;
    margin-bottom: 0;
}

.steps-cta {
    text-align: center;
    margin-top: 40px;
}

/* Portfolio section */
.portfolio-section {
    background-color: #ffffff;
    padding: 85px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio-item {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    aspect-ratio: 4 / 3;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Process section */
.process-section {
    padding: 85px 0;
}

.process-section > .container > p {
    margin-bottom: 30px;
}

.step-item {
    display: flex;
    gap: 18px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.step-item .step-icon {
    color: var(--color-link);
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.step-item .step-icon svg {
    width: 20px;
    height: 20px;
}

.step-item:hover .step-icon {
    transform: translateX(4px);
}

.step-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Portfolio Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 36px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    z-index: 10001;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffffff;
    font-size: 48px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    z-index: 10001;
    padding: 20px;
    line-height: 1;
}

.lightbox-nav:hover {
    opacity: 1;
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-align: center;
}

/* ===== CONTACT PAGE ===== */

.contact-info-section {
    background-color: var(--color-light-bg);
    padding: 85px 20px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: var(--max-width);
    margin: 0 auto;
}

.info-card {
    text-align: center;
    padding: 40px 25px;
    border-right: 1px solid #ddd;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
}

.info-card:last-child {
    border-right: none;
}

.info-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.info-card:hover .info-card-icon {
    transform: translateY(-5px);
}

.info-card-icon svg {
    width: 32px;
    height: 32px;
}

.info-card-icon.location {
    background: rgba(108, 99, 255, 0.12);
    color: #6c63ff;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.15);
}

.info-card:hover .info-card-icon.location {
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.25);
}

.info-card-icon.contact-icon {
    background: rgba(255, 107, 107, 0.12);
    color: #ff6b6b;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.15);
}

.info-card:hover .info-card-icon.contact-icon {
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.25);
}

.info-card-icon.hours {
    background: rgba(255, 165, 0, 0.12);
    color: #ffa500;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.15);
}

.info-card:hover .info-card-icon.hours {
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.25);
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 16px;
    color: var(--color-body-text);
    margin-bottom: 5px;
}

/* Contact form section */
.contact-form-section {
    padding: 85px 20px;
}

.contact-form-inner {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 45px 50px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--color-primary);
}

.contact-form-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 30px;
}

/* First section after hero — tighter spacing since wave provides visual gap */
.hero + section {
    padding-top: 30px;
}

/* ===== SERVICE PAGES ===== */

/* SEO Rankings page */
.service-content {
    padding: 85px 0;
}

.service-content .container {
    display: flex;
    gap: 40px;
    align-items: center;
}

.service-content .text-col {
    flex: 1;
}

.service-content .image-col {
    flex: 1;
}

.service-content .image-col img {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.service-content h2 {
    font-size: 30px;
}

.service-content p {
    font-size: 16px;
    line-height: 1.8;
}

/* Service feature cards */
.service-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.service-card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 163, 242, 0.12);
    border-radius: 12px;
    color: var(--color-link);
    transition: transform 0.3s ease;
}

.service-card-icon svg {
    width: 28px;
    height: 28px;
}

.service-card:hover .service-card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Service card icon color variants */
.service-card-icon.icon-blue { background: rgba(46, 163, 242, 0.12); color: #2ea3f2; }
.service-card-icon.icon-green { background: rgba(52, 199, 89, 0.12); color: #34c759; }
.service-card-icon.icon-orange { background: rgba(242, 131, 107, 0.12); color: #f2836b; }
.service-card-icon.icon-purple { background: rgba(134, 134, 255, 0.12); color: #8686ff; }

.service-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Text following section titles (inner pages) */
.section-title + p {
    font-size: 18px;
    line-height: 1.7;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: var(--color-body-text);
    margin-bottom: 30px;
}

/* Checkmark list style */
.check-list {
    padding: 0;
    margin: 15px 0;
    font-size: 16px;
    line-height: 1.8;
}

.check-list li {
    padding: 4px 0 4px 28px;
    position: relative;
}

.check-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* ===== BLOG PAGES ===== */

/* Blog card grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.blog-card {
    background: var(--color-white);
    padding: 0;
    border-radius: 8px;
    border-top: 3px solid var(--color-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    color: inherit;
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    flex: 1;
    padding: 25px 30px 0;
}

.blog-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--color-heading);
    transition: color 0.3s ease;
}

.blog-card:hover h3 {
    color: var(--color-primary);
}

.blog-card p {
    font-size: 15px;
    color: var(--color-body-text);
    line-height: 1.7;
    margin-bottom: 0;
}

.blog-card-link {
    display: inline-block;
    margin-top: 20px;
    padding: 0 30px 25px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
}

.blog-card-link .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-link .arrow {
    transform: translateX(5px);
}

/* Blog pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 10px 18px;
    border: 1px solid #ddd;
    background: var(--color-white);
    color: var(--color-heading);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination-btn.active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn:disabled:hover {
    border-color: #ddd;
    color: var(--color-heading);
}

/* Blog featured image */
.blog-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Blog post footer */
.blog-post-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-tag {
    display: inline-block;
    background: rgba(46, 163, 242, 0.1);
    color: var(--color-primary);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.blog-back-link {
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 500;
}

.blog-back-link:hover {
    text-decoration: underline;
}

/* Blog post article (full-width, no sidebar) */
.blog-article {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 85px 20px;
}

/* Blog post single */
.blog-post-content {
    padding: 0;
}

.blog-post-content h1 {
    font-size: 30px;
    margin-bottom: 10px;
}

.blog-post-content h2 {
    font-size: 30px;
    margin-top: 30px;
}

.blog-post-content h3 {
    font-size: 20px;
    margin-top: 25px;
}

.blog-post-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.blog-post-content ul,
.blog-post-content ol {
    padding-left: 25px;
    margin-bottom: 15px;
}

.blog-post-content ul li {
    list-style: disc;
    margin-bottom: 5px;
}

.blog-post-content ol li {
    list-style: decimal;
    margin-bottom: 5px;
}

/* ===== WIKIPEDIA ENQUIRY PAGES ===== */

.wiki-section {
    padding: 85px 0;
}

.wiki-section h2 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 15px;
}

.wiki-section > .container > p {
    text-align: center;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.8;
}

.wiki-section > .container > p:last-of-type {
    margin-bottom: 30px;
}

.wiki-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 45px 50px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--color-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ===== PRIVACY POLICY ===== */

.privacy-content {
    padding: 85px 0;
}

.privacy-content h2 {
    font-size: 30px;
    margin-top: 30px;
    margin-bottom: 10px;
}

.privacy-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.privacy-content ul {
    padding-left: 25px;
    margin-bottom: 15px;
}

.privacy-content ul li {
    list-style: disc;
    margin-bottom: 5px;
}

/* ===== 404 PAGE ===== */

.error-page {
    text-align: center;
    padding: 100px 20px;
}

.error-page h1 {
    font-size: 80px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.error-page h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.error-page p {
    margin-bottom: 30px;
    color: var(--color-body-text);
}
