/* ===================================
   css/pages.css
   Page-specific premium layout styles.
   Upgraded to elite dark-mode glassmorphic aesthetics.
   =================================== */

/* ── Breathing Pulse Animation for Premium Cards ── */
@keyframes pulse-indigo {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4), 0 10px 25px rgba(99, 102, 241, 0.1); }
    70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0), 0 10px 25px rgba(99, 102, 241, 0.1); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0), 0 10px 25px rgba(99, 102, 241, 0.1); }
}

/* ============================================================
   SERVICES PAGE  (services.html)
   ============================================================ */

/* ── Services Hero Banner ── */
.services-hero {
    padding: var(--hero-padding-desktop);
    background: radial-gradient(circle at 50% 120%, rgba(99, 102, 241, 0.12), transparent 70%), var(--dark-bg);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.services-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.2);
}

.services-hero p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--gray-text);
    max-width: 720px;
    margin: 0 auto;
    font-weight: 500;
}

/* ── Services Main Content Area ── */
.services-main {
    padding: var(--section-padding-desktop);
    background: radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.02), transparent 50%), var(--dark-bg);
}

/* ── Service Boxes Grid ── */
.service-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.service-box {
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.service-box:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15), 0 0 1px rgba(99, 102, 241, 0.2);
}

/* Glowing left indicators */
.service-box.blue   { border-left: 4px solid var(--primary-blue); }
.service-box.green  { border-left: 4px solid var(--primary-green); }
.service-box.orange { border-left: 4px solid var(--primary-orange); }

.service-box.blue:hover   { border-left-color: #38bdf8; }
.service-box.green:hover  { border-left-color: #4ade80; }
.service-box.orange:hover { border-left-color: #fb923c; }

/* Service box icon (emoji above heading) */
.service-box-icon {
    font-size: 2rem;
    margin-bottom: 0.65rem;
    display: block;
    line-height: 1;
}

/* Service box headings */
.service-box h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

/* Sub-heading */
.service-box h3 {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ── Service List ── */
.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 0.65rem 0;
    color: var(--gray-text);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.service-list li:hover {
    color: #ffffff;
}

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

.service-list li::before {
    content: "✓";
    color: #10b981;
    font-weight: 800;
    font-size: 1.15rem;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.35);
}

/* ── Academic Subjects & Tech sections ── */
.subjects-section,
.tech-section {
    margin-bottom: 5rem;
}

.subjects-section h2,
.tech-section h2 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    color: #ffffff;
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

/* ── Subjects Grid ── */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.1rem;
    text-align: center;
}

.subject-item {
    padding: 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--gray-text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.subject-item:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    color: #ffffff;
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.25), 0 0 1px rgba(99, 102, 241, 0.3);
}

/* ── Tech Badges Grid ── */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.1rem;
}

.tech-badge {
    padding: 0.9rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-badge:hover {
    background: var(--primary-green);
    color: #0f172a;
    border-color: transparent;
    transform: scale(1.06);
    box-shadow: 0 12px 24px rgba(34, 197, 94, 0.25);
}

/* ── CTA Section ── */
.cta-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 4rem 3rem;
    border-radius: 24px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cta-section h2 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.cta-section p {
    font-size: 1.15rem;
    margin-bottom: 2.25rem;
    color: var(--gray-text);
    max-width: 600px;
    margin-inline: auto;
}

/* ── WhatsApp CTA Button ── */
.whatsapp-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 2.25rem;
    background: #25D366;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

.whatsapp-cta:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
}

/* ============================================================
   PORTFOLIO PAGE  (portfolio.html)
   ============================================================ */

/* ── Portfolio Hero Banner ── */
.portfolio-hero {
    padding: var(--hero-padding-desktop);
    background: radial-gradient(circle at 50% 120%, rgba(139, 92, 246, 0.12), transparent 70%), var(--dark-bg);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.portfolio-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
}

.portfolio-hero p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--gray-text);
    max-width: 720px;
    margin: 0 auto;
    font-weight: 500;
}

/* ── Satisfaction badge row ── */
.satisfaction-badge-row {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 0.65rem 1.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.sat-badge-item {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sat-badge-item span {
    color: #f59e0b;
}

.sat-badge-item.divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.15);
}

/* ── Portfolio Categories Selector ── */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
}

.filter-btn {
    padding: 0.65rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    color: var(--gray-text);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* ── Portfolio Main Content Area ── */
.portfolio-main {
    padding: var(--section-padding-desktop);
    background: radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.02), transparent 50%), var(--dark-bg);
}

/* ── Portfolio Grid ── */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* ── Portfolio Card ── */
.portfolio-card {
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 290px;
}

.portfolio-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15), 0 0 1px rgba(99, 102, 241, 0.2);
}

/* ── Card Header (badge row) ── */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    width: 100%;
}

/* ── Category Badges ── */
.category-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.category-badge.web      { background: rgba(14, 165, 233, 0.15); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.25); }
.category-badge.research { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.25); }
.category-badge.mobile   { background: rgba(251, 146, 60, 0.15); color: #fb923c; border: 1px solid rgba(251, 146, 60, 0.25); }
.category-badge.data     { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.25); }
.category-badge.business { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.25); }
.category-badge.academic { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; border: 1px solid rgba(20, 184, 166, 0.25); }

/* ── Grade Badge ── */
.grade-badge {
    padding: 0.3rem 0.8rem;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* ── Portfolio Card Text ── */
.portfolio-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.portfolio-card .subject {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.portfolio-card .subject::before {
    content: "📁";
    font-size: 0.8rem;
    opacity: 0.8;
}

.portfolio-card .description {
    font-size: 0.95rem;
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* ── Tech Used line ── */
.tech-used {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.85rem;
    width: 100%;
}

.tech-used strong {
    color: #94a3b8;
    font-weight: 700;
}

/* ── Portfolio CTA overrides (scoped — more compact than services CTA) ── */
.portfolio-main .cta-section       { padding: 3rem 2.5rem; border-radius: 20px; }
.portfolio-main .cta-section h2    { font-size: 2rem; margin-bottom: 0.75rem; }
.portfolio-main .cta-section p     { font-size: 1.05rem; margin-bottom: 1.75rem; }

/* ── Start Project Button (portfolio only) ── */
.start-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: #10B981;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.25);
}

.start-project-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.4);
}

/* ============================================================
   PRICING PAGE  (pricing.html)
   ============================================================ */

/* ── Pricing Hero ── */
.pricing-hero {
    padding: var(--hero-padding-desktop);
    background: radial-gradient(circle at 50% 120%, rgba(99, 102, 241, 0.12), transparent 70%), var(--dark-bg);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pricing-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.2);
}

.pricing-hero p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--gray-text);
    max-width: 720px;
    margin: 0 auto 1.5rem;
    font-weight: 500;
}

.pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-top: 0.25rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    letter-spacing: 0.01em;
}

/* ── Pricing Main ── */
.pricing-main {
    padding: var(--section-padding-desktop);
    background: radial-gradient(circle at 0% 100%, rgba(99, 102, 241, 0.02), transparent 50%), var(--dark-bg);
}

/* ── Billing Toggle ── */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.toggle-label {
    font-weight: 700;
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 32px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider::before {
    content: '';
    position: absolute;
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked + .slider {
    background: #6366f1;
    border-color: #818cf8;
}

.toggle-switch input:checked + .slider::before {
    transform: translateX(28px);
}

.save-tag {
    background: rgba(251, 146, 60, 0.2);
    color: #ffedd5;
    border: 1px solid rgba(251, 146, 60, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 800;
    margin-left: 0.25rem;
    letter-spacing: 0.02em;
}

/* ── Pricing Cards ── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.price-card {
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2.75rem 2.25rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

.price-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.price-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15), 0 0 1px rgba(99, 102, 241, 0.2);
}

.price-card.popular {
    border: 2px solid #6366f1;
    animation: pulse-indigo 3s infinite;
}

.price-card.popular::after {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(255, 255, 255, 0.02));
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #6366f1;
    color: #ffffff;
    padding: 0.45rem 1.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.card-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.card-desc {
    font-size: 0.92rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 500;
}

.price-wrap {
    margin-bottom: 1.75rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.price-from {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 2.85rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
}

.price-amount sup {
    font-size: 1.35rem;
    vertical-align: top;
    margin-top: 0.5rem;
    display: inline-block;
}

.price-unit {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 0.25rem;
}

.price-features {
    list-style: none;
    margin-bottom: 2.25rem;
}

.price-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.92rem;
    color: var(--gray-text);
}

.price-features li:last-child {
    border-bottom: none;
}

.price-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
    text-shadow: 0 0 6px rgba(16, 185, 129, 0.3);
}

.price-btn {
    display: block;
    width: 100%;
    padding: 0.95rem;
    text-align: center;
    background: #6366f1;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1.5px solid transparent;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.2);
}

.price-btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35);
}

.price-btn:active {
    transform: translateY(0) scale(0.98);
}

.price-btn.outline {
    background: transparent;
    border: 1.5px solid #6366f1;
    color: #818cf8;
    box-shadow: none;
}

.price-btn.outline:hover {
    background: #6366f1;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.25);
}

/* ── Academic Guarantees Grid ── */
.guarantees-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    color: #ffffff;
    margin: 5rem auto 2.5rem;
    letter-spacing: -0.01em;
}

.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto 5rem;
}

.guarantee-card {
    background: rgba(30, 41, 59, 0.35);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.75rem;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.guarantee-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.25);
    background: rgba(30, 41, 59, 0.5);
}

.guarantee-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.guarantee-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.guarantee-card p {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* ── FAQ Section ── */
.faq-section {
    max-width: 860px;
    margin: 5rem auto 0;
    padding: 0 1rem;
}

.faq-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    color: #ffffff;
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

.faq-item {
    background: rgba(30, 41, 59, 0.35);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: rgba(30, 41, 59, 0.45);
}

.faq-q {
    width: 100%;
    padding: 1.5rem 1.75rem;
    text-align: left;
    background: none;
    border: none;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-q:hover {
    background: rgba(255, 255, 255, 0.01);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
    color: #818cf8;
    line-height: 1;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-a.open {
    max-height: 350px;
}

.faq-a-inner {
    padding: 0.25rem 1.75rem 1.5rem;
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ── Pricing Bottom CTA ── */
.pricing-cta {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 4rem 2.5rem;
    text-align: center;
    color: #ffffff;
    max-width: 860px;
    margin: 4.5rem auto 0;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pricing-cta h2 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.pricing-cta p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2.25rem;
    color: var(--gray-text);
}

.wa-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1.1rem 2.25rem;
    background: #25D366;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

.wa-cta-btn:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
}

/* ============================================================
   CONTACT PAGE  (contact.html) — LAYOUT ONLY
   Form-specific styles are in css/forms.css.
   ============================================================ */

/* ── Contact Hero ── */
.contact-hero {
    padding: var(--hero-padding-desktop);
    background: radial-gradient(circle at 50% 120%, rgba(99, 102, 241, 0.12), transparent 70%), var(--dark-bg);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.contact-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.2);
}

.contact-hero p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--gray-text);
    max-width: 720px;
    margin: 0 auto;
    font-weight: 500;
}

/* ── Contact Main ── */
.contact-main {
    padding: var(--section-padding-desktop);
    background: radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.02), transparent 50%), var(--dark-bg);
}

/* ── Two-column layout grid ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 3rem;
    max-width: 1280px;
    margin: 0 auto;
    align-items: start;
}

/* ── Floating Contact Information Glass Control Panel ── */
.contact-info-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 100px;
}

.contact-info-box h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.contact-method {
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 1.5rem;
    border-radius: 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-method:hover {
    background: rgba(99, 102, 241, 0.04);
    border-color: rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.contact-method:last-child {
    margin-bottom: 0;
}

.contact-method h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.whatsapp-contact-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #25D366;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.whatsapp-contact-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.35);
}

.contact-method p {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.contact-method a {
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-method a:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

/* ── WhatsApp Channel Buttons (contact page) ── */
.wa-channel-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: #25D366;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.wa-channel-btn span {
    color: #ffffff !important;
    font-weight: 700;
    line-height: 1.3;
}

.wa-channel-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4);
    color: #ffffff !important;
}

.wa-channel-btn--blue {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
}

.wa-channel-btn--blue:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.4) !important;
}

.wa-btn-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
    padding-left: 0.25rem;
    line-height: 1.4;
}

/* ── Timezone badge ── */
.tz-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    vertical-align: middle;
    margin-left: 0.25rem;
}

/* ── US Timezone Equivalent Block ── */
.us-time-equiv {
    margin: 0.85rem 0 0.65rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
}

.us-tz-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.6rem;
}

.us-tz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.us-tz-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.55rem 0.4rem;
    text-align: center;
}

.us-tz-zone {
    font-size: 0.78rem;
    font-weight: 800;
    color: #818cf8;
    letter-spacing: 0.04em;
}

.us-tz-time {
    font-size: 0.72rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.3;
}

.us-tz-city {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 500;
}

/* ============================================================
   SERVICES PAGE — AUTHORITY ARCHITECTURE ADDITIONS
   ============================================================ */

/* ── Section Separator ── */
.section-sep {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06) 40%, rgba(255,255,255,0.06) 60%, transparent);
    margin: 3rem 0;
}

/* ── Authority Section Header ── */
.authority-section {
    margin-bottom: 0;
}

.authority-header {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    margin-bottom: 2rem;
}

.authority-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.authority-title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    margin: 0 0 0.3rem 0;
    line-height: 1.2;
}

.authority-sub {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

/* ── Academic Levels Track ── */
.level-track {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.level-connector {
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
    flex-shrink: 0;
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 50px;
    border: 1px solid;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
}

.level-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
    .level-track { gap: 0.75rem; }
    .level-connector { display: none; }
    .level-track { flex-direction: column; align-items: flex-start; }
}

/* ── Methodology Badge Variant ── */
.meth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #f0abfc !important;
    border-color: rgba(217,70,239,0.2) !important;
    background: rgba(217,70,239,0.06) !important;
}

.meth-badge:hover {
    border-color: rgba(217,70,239,0.45) !important;
    background: rgba(217,70,239,0.12) !important;
    box-shadow: 0 6px 20px rgba(217,70,239,0.12) !important;
}

/* ── Research Tool Badge Variants ── */
.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tool-stat {
    color: #fbbf24 !important;
    border-color: rgba(245,158,11,0.2) !important;
    background: rgba(245,158,11,0.06) !important;
}
.tool-stat:hover {
    border-color: rgba(245,158,11,0.45) !important;
    background: rgba(245,158,11,0.12) !important;
}

.tool-vis {
    color: #60a5fa !important;
    border-color: rgba(96,165,250,0.2) !important;
    background: rgba(96,165,250,0.06) !important;
}
.tool-vis:hover {
    border-color: rgba(96,165,250,0.45) !important;
    background: rgba(96,165,250,0.12) !important;
}

.tool-qual {
    color: #c084fc !important;
    border-color: rgba(192,132,252,0.2) !important;
    background: rgba(192,132,252,0.06) !important;
}
.tool-qual:hover {
    border-color: rgba(192,132,252,0.45) !important;
    background: rgba(192,132,252,0.12) !important;
}

/* ── Citation Styles Grid ── */
.citation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.citation-card {
    background: rgba(30,41,59,0.55);
    border: 1px solid rgba(255,255,255,0.07);
    border-top: 3px solid var(--cite-color, #818cf8);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.citation-card:hover {
    transform: translateY(-4px);
    border-color: var(--cite-color, #818cf8);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3), 0 0 0 1px var(--cite-color, #818cf8);
    background: rgba(30,41,59,0.8);
}

.cite-abbr {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--cite-color, #818cf8);
    letter-spacing: 0.02em;
    margin-bottom: 0.2rem;
}

.cite-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 0.4rem;
}

.cite-desc {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.4;
}

/* ── Tech Category Blocks (Grouped) ── */
.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.tech-cat-block {
    background: rgba(15,23,42,0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    transition: border-color 0.3s ease;
}

.tech-cat-block:hover {
    border-color: rgba(255,255,255,0.12);
}

.tech-cat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--cat-color, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tech-cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.cat-chip {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(var(--cc, #94a3b8), 0.08);
    color: var(--cc, #94a3b8);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
}

.cat-chip:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--cc, #94a3b8);
    transform: translateY(-1px);
}

/* Fix cat-chip color rendering with CSS color value directly */
.cat-chip { color: var(--cc); border-color: color-mix(in srgb, var(--cc) 20%, transparent); }

/* ── Trust Metrics Row ── */
.trust-metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin: 0 0 0.5rem 0;
}

.trust-metric-card {
    background: rgba(15,23,42,0.7);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-metric-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.trust-metric-icon {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
}

.trust-metric-num {
    font-size: 1.9rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.4rem;
    font-family: var(--font-display);
}

.trust-metric-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media (max-width: 600px) {
    .tech-categories { grid-template-columns: 1fr; }
    .citation-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-metrics-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── 480px polish: prevent auto-fit minmax overflow on very narrow screens ── */
@media (max-width: 480px) {

    /* Force service-boxes single column (override auto-fit minmax(300px, 1fr)) */
    .service-boxes {
        grid-template-columns: 1fr !important;
    }

    /* Force subjects grid to 2 fixed columns */
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Force tech grid to 2 fixed columns */
    .tech-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Force portfolio grid to single column */
    .portfolio-grid {
        grid-template-columns: 1fr !important;
    }

    /* Contact grid single column confirmed */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    /* Contact info box — very compact at 480px */
    .contact-info-box {
        padding: 1.35rem 1rem !important;
    }

    /* WhatsApp channel button — stack direction */
    .wa-channel-btn {
        font-size: 0.85rem;
        padding: 0.65rem 0.85rem;
    }

    /* Pricing grid confirm single col */
    .pricing-grid {
        grid-template-columns: 1fr !important;
    }

    /* Guarantees grid confirm single col */
    .guarantees-grid {
        grid-template-columns: 1fr !important;
    }

    /* Portfolio main section padding */
    .portfolio-main {
        padding: 3rem 0 !important;
    }

    /* Portfolio CTA section */
    .portfolio-main .cta-section {
        padding: 1.75rem 1rem;
        border-radius: 12px;
    }
    .portfolio-main .cta-section h2 { font-size: 1.4rem; }

    /* Start project button — full width on small phone */
    .start-project-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
        padding: 0.85rem 1.5rem;
    }
}

