/* ===========================
   PAGE-SPECIFIC STYLES
   (About, Contact, Blog, Services, Service Detail Pages)
   =========================== */

/* Page Headers */
.page-header {
    padding-top: 6rem;
    padding-bottom: 3rem;
}

.page-header h1 {
    animation: fadeInDown 0.6s ease;
}

/* Section Spacing */
.section-spacing {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .section-spacing {
        padding: 5rem 0;
    }
}

/* Mission/Vision Cards */
.mission-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    padding-left: 1rem;
}

.mission-card:hover {
    border-left-color: #2563eb;
    padding-left: 1.5rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border-radius: 1rem;
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

.service-icon {
    transition: all 0.3s ease;
    font-size: 2rem;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(-5deg);
    filter: brightness(1.2);
}

/* About Page Specific */
.about-image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.about-badge {
    position: absolute;
    bottom: -1rem;
    left: -2rem;
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Contact Form */
.contact-form {
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.form-input {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Map Container */
.map-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.blog-post {
    transition: all 0.3s ease;
    border-radius: 1.5rem;
    overflow: hidden;
}

.blog-post:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-post:hover .blog-image img {
    transform: scale(1.1);
}

/* Tags and Categories */
.tag {
    display: inline-block;
    padding: 0.25rem 1rem;
    background-color: #eff6ff;
    color: #2563eb;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #2563eb;
    color: white;
}

/* Timeline */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #e5e7eb;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    margin-right: 50%;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    text-align: left;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        margin-left: 60px;
        text-align: left;
    }
}

/* Value Cards */
.value-card {
    padding: 1.5rem;
    background-color: #f3f4f6;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.value-card:hover {
    background-color: #eff6ff;
    border-left: 4px solid #2563eb;
    transform: translateX(4px);
}

/* Service Cards (Services Page) */
.service-card {
    transition: all 0.3s ease;
    background-color: white;
    border-radius: 1rem;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

/* Category Cards */
.category-card {
    transition: all 0.3s ease;
    background-color: white;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

/* Badge Pill */
.badge-pill {
    border-radius: 9999px;
    transition: all 0.3s ease;
}

/* Founder Section */
.founder-image {
    position: relative;
    overflow: hidden;
    border-radius: 9999px;
}

.founder-badge {
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===========================
   SERVICE DETAIL PAGE CARDS
   (feature-card, plan-card, process-step, etc.)
   =========================== */

.feature-card,
.plan-card,
.process-step,
.highlight-card,
.platform-card,
.usecase-card,
.stack-card {
    transition: all 0.3s ease;
}

.feature-card:hover,
.plan-card:hover,
.process-step:hover,
.highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.platform-card:hover,
.usecase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.stack-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

/* Metric Cards */
.metric-card {
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e40af;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-down {
    animation: fadeInDown 0.6s ease;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease;
}

/* ===========================
   HERO PATTERN BACKGROUND
   =========================== */
.hero-pattern {
    background-color: #f8f9fa;
    background-image: 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='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v6h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ===========================
   FAQ ACCORDION
   =========================== */
.faq-item {
    cursor: pointer;
}

.faq-item:hover {
    background-color: #f9fafb;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer.active {
    max-height: 600px;
}

/* ── Blog: dark gradient hero ─────────────────────────────────── */
.blog-hero-pattern {
    background-color: #0f172a;
    background-image: radial-gradient(circle at top left, #1d4ed8 0, transparent 50%),
                      radial-gradient(circle at top right, #a855f7 0, transparent 55%);
}

/* ── Blog: article prose typography ──────────────────────────── */
.prose p  { margin-bottom: 1rem; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.5rem; font-weight: 700; color: #1e293b; }
.prose h3 { margin-top: 1.75rem; margin-bottom: 0.75rem; font-size: 1.2rem; font-weight: 600; color: #1e293b; }
.prose ul { margin-bottom: 1rem; }

/* ── Blog: sticky sidebar ─────────────────────────────────────── */
@media (min-width: 1024px) {
    .sticky-sidebar { position: sticky; top: 7rem; }
}

/* ── Blog: TOC link hover ─────────────────────────────────────── */
.toc-link:hover { color: #2563eb; }
