/* ==================================================================
   PROGRAMMING ZONE — Light SaaS theme (Autonex-inspired)
   Clean white surfaces, ink text, indigo accent, soft shadows.
================================================================== */

:root {
    --ink:        #0a0f1e;   /* headings & dark buttons            */
    --body:       #55607a;   /* paragraph text                     */
    --brand:      #4f46e5;   /* indigo accent                      */
    --brand-soft: #eef0ff;   /* tinted chips & badges              */
    --bg-soft:    #f7f8fc;   /* alternating sections               */
    --border:     #e8eaf1;   /* hairlines                          */
    --shadow-soft: 0 6px 24px -8px rgba(10, 15, 30, .12);
    --shadow-lift: 0 18px 44px -14px rgba(10, 15, 30, .22);
}

html { scroll-behavior: smooth; }

/* ---------- Scrollbar & selection -------------------------------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f3fa; }
::-webkit-scrollbar-thumb { background: #c3c9dd; border-radius: 8px; border: 2px solid #f1f3fa; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }
::selection { background: rgba(79, 70, 229, .18); color: var(--ink); }

/* ---------- Hero background decor -------------------------------- */
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(38rem 22rem at 12% 8%,  rgba(79, 70, 229, .09), transparent 60%),
        radial-gradient(34rem 20rem at 88% 18%, rgba(139, 92, 246, .10), transparent 60%),
        radial-gradient(30rem 18rem at 50% 105%, rgba(14, 165, 233, .07), transparent 60%);
    pointer-events: none;
}
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(10, 15, 30, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 15, 30, .04) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
    pointer-events: none;
}

/* ---------- Badges & pills ---------------------------------------- */
.badge-pill {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .45rem 1rem;
    border-radius: 999px;
    font-size: .74rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-soft);
    border: 1px solid #dfe3ff;
}

/* ---------- Buttons ------------------------------------------------ */
.btn-dark {
    display: inline-flex; align-items: center;
    font-weight: 600; color: #fff;
    background: var(--ink);
    border-radius: .9rem;
    border: 1px solid var(--ink);
    cursor: pointer;
    transition: all .3s cubic-bezier(.22, 1, .36, 1);
}
.btn-dark:hover {
    background: var(--brand); border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px rgba(79, 70, 229, .5);
}
.btn-dark:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.btn-outline {
    display: inline-flex; align-items: center;
    font-weight: 600; color: var(--ink);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: .9rem;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all .3s cubic-bezier(.22, 1, .36, 1);
}
.btn-outline:hover {
    border-color: var(--brand); color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -10px rgba(79, 70, 229, .25);
}

.btn-light {
    display: inline-flex; align-items: center;
    font-weight: 600; color: var(--ink);
    background: #fff;
    border-radius: .9rem;
    border: none;
    cursor: pointer;
    transition: all .3s cubic-bezier(.22, 1, .36, 1);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .35); }

.btn-whatsapp {
    display: inline-flex; align-items: center;
    font-weight: 600; color: #fff;
    background: #25d366;
    border-radius: .9rem;
    border: 1px solid #25d366;
    cursor: pointer;
    transition: all .3s cubic-bezier(.22, 1, .36, 1);
}
.btn-whatsapp:hover {
    background: #1fb958; border-color: #1fb958;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .55);
}

/* ---------- Navbar -------------------------------------------------- */
#navbar.nav-scrolled #nav-inner {
    background: rgba(255, 255, 255, .95);
    border-color: var(--border);
    box-shadow: var(--shadow-soft);
}
.nav-link {
    position: relative;
    padding: .5rem .85rem;
    font-size: .9rem; font-weight: 500;
    color: #5b6579;
    border-radius: .6rem;
    transition: color .25s, background .25s;
}
.nav-link:hover { color: var(--ink); background: #f2f4fa; }
.nav-link.is-active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }

/* ---------- Section headings ----------------------------------------- */
.section-title {
    margin: 1.1rem auto 0;
    max-width: 44rem;
    font-family: "Sora", sans-serif;
    font-size: clamp(1.9rem, 3.4vw, 2.75rem);
    font-weight: 700; line-height: 1.16; color: var(--ink);
}
.section-sub {
    margin: 1.1rem auto 0;
    max-width: 40rem;
    color: var(--body); line-height: 1.75; font-size: .98rem;
}

/* ---------- Feature / content cards ----------------------------------- */
.feature-card {
    display: flex; flex-direction: column;
    padding: 1.6rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: all .35s cubic-bezier(.22, 1, .36, 1);
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: #d6daff;
    box-shadow: var(--shadow-lift);
}
.feature-icon {
    display: grid; place-items: center;
    width: 3rem; height: 3rem;
    border-radius: .9rem;
    color: var(--brand);
    font-size: 1.1rem;
    background: var(--brand-soft);
    border: 1px solid #dfe3ff;
    transition: all .35s;
}
.feature-card:hover .feature-icon {
    background: var(--brand); color: #fff;
    transform: rotate(-6deg) scale(1.05);
    box-shadow: 0 10px 24px -8px rgba(79, 70, 229, .55);
}
.process-num {
    font-family: "Sora", sans-serif;
    font-size: 2.4rem; font-weight: 800; line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px #c9cff2;
}

/* ---------- Stats band (dark rounded) ----------------------------------- */
.stats-band {
    background: var(--ink);
    background-image:
        radial-gradient(28rem 14rem at 15% 0%, rgba(79, 70, 229, .35), transparent 60%),
        radial-gradient(26rem 14rem at 85% 100%, rgba(139, 92, 246, .3), transparent 60%);
    overflow: hidden;
    position: relative;
}

/* ---------- CTA banner ---------------------------------------------------- */
.cta-banner {
    background: var(--ink);
    background-image:
        radial-gradient(30rem 16rem at 80% 0%,  rgba(79, 70, 229, .4), transparent 60%),
        radial-gradient(26rem 16rem at 10% 100%, rgba(139, 92, 246, .35), transparent 60%);
    overflow: hidden;
    position: relative;
}

/* ---------- Marquee --------------------------------------------------------- */
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
            mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    padding-right: 3rem;
    animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-chip {
    display: inline-flex; align-items: center; gap: .7rem;
    font-family: "Sora", sans-serif;
    font-size: 1.15rem; font-weight: 700;
    color: #aab1c5;
    white-space: nowrap;
    transition: color .3s;
}
.logo-chip:hover { color: var(--ink); }
.tech-chip {
    display: inline-flex; align-items: center; gap: .7rem;
    padding: .8rem 1.4rem;
    border-radius: .95rem;
    font-size: .9rem; font-weight: 500;
    color: #3d4761;
    white-space: nowrap;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: all .3s;
}
.tech-chip:hover { color: var(--ink); border-color: #c9cff2; transform: translateY(-3px); }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Floating chips ------------------------------------------------------ */
.floating-chip { animation: floatY 5.5s ease-in-out infinite; z-index: 5; }
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-11px); }
}

/* ---------- Typing caret ------------------------------------------------------------ */
.type-caret {
    display: inline-block;
    width: 3px; height: .95em;
    margin-left: 5px;
    vertical-align: -0.1em;
    background: var(--brand);
    animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ---------- Portfolio ------------------------------------------------------------------ */
.project-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.4rem;
    background: linear-gradient(to top, rgba(10, 15, 30, .95) 14%, rgba(10, 15, 30, .45) 55%, transparent 100%);
    opacity: 0;
    transform: translateY(12px);
    transition: all .45s cubic-bezier(.22, 1, .36, 1);
}
.project-card:hover .project-overlay,
.project-card:focus-visible .project-overlay { opacity: 1; transform: translateY(0); }

.overlay-icon {
    display: grid; place-items: center;
    width: 2.6rem; height: 2.6rem;
    border-radius: .8rem;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(8px);
    transition: all .3s;
}
.overlay-icon:hover {
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 0 20px rgba(79, 70, 229, .55);
    transform: translateY(-2px);
}

.filter-btn {
    padding: .6rem 1.3rem;
    border-radius: 999px;
    font-size: .82rem; font-weight: 600;
    color: #5b6579;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: all .3s;
}
.filter-btn:hover { color: var(--brand); border-color: #c9cff2; transform: translateY(-2px); }
.filter-btn.is-active {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 8px 22px -6px rgba(79, 70, 229, .5);
}

/* ---------- Testimonial slider -------------------------------------------------------------- */
.testimonial-slide { min-width: 100%; box-sizing: border-box; padding: 0 .75rem; }
@media (min-width: 1024px) { .testimonial-slide { min-width: 50%; } }

.monogram {
    display: grid; place-items: center;
    width: 3rem; height: 3rem;
    border-radius: 999px;
    font-size: .8rem; font-weight: 700;
    color: var(--brand);
    background: var(--brand-soft);
    border: 1px solid #dfe3ff;
    flex-shrink: 0;
}

.slider-btn {
    display: grid; place-items: center;
    width: 3rem; height: 3rem;
    border-radius: 1rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: all .3s;
}
.slider-btn:hover {
    color: #fff; background: var(--brand); border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgba(79, 70, 229, .5);
}
.t-dot {
    width: .55rem; height: .55rem;
    border-radius: 999px;
    background: #d3d8e8;
    border: none; cursor: pointer;
    transition: all .35s cubic-bezier(.22, 1, .36, 1);
}
.t-dot.active { width: 1.7rem; background: var(--brand); }

/* ---------- Blog cards ---------------------------------------------------------------------------- */
.blog-card {
    display: flex; flex-direction: column;
    border-radius: 1.25rem;
    padding: .9rem .9rem 1.2rem;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: all .35s cubic-bezier(.22, 1, .36, 1);
}
.blog-card:hover {
    transform: translateY(-6px);
    border-color: #d6daff;
    box-shadow: var(--shadow-lift);
}

/* ---------- Article body (blog detail) --------------------------------------------------------------- */
.article-body { color: var(--body); font-size: 1.02rem; line-height: 1.85; }
.article-body p { margin-bottom: 1.35em; }
.article-body h2, .article-body h3 {
    font-family: "Sora", sans-serif;
    color: var(--ink); font-weight: 700;
    margin: 1.6em 0 .6em;
}
.article-body strong { color: var(--ink); }
.article-body a { color: var(--brand); font-weight: 600; }
.article-body ul { margin: 0 0 1.35em 1.2em; list-style: disc; }

/* ---------- Pricing ------------------------------------------------------------------------------------ */
.pricing-card {
    position: relative;
    display: flex; flex-direction: column;
    padding: 2.2rem;
    border-radius: 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: all .35s cubic-bezier(.22, 1, .36, 1);
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: #d6daff; }
.pricing-card.is-featured {
    background: var(--ink);
    background-image: radial-gradient(24rem 12rem at 85% 0%, rgba(79, 70, 229, .35), transparent 60%);
    border-color: var(--ink);
    box-shadow: var(--shadow-lift);
}
.pricing-card.is-featured:hover { transform: translateY(-8px) scale(1.01); }
.pricing-badge {
    position: absolute; top: -0.85rem; left: 50%;
    transform: translateX(-50%);
    padding: .35rem 1rem;
    border-radius: 999px;
    font-size: .7rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: #fff;
    background: var(--brand);
    box-shadow: 0 8px 20px -6px rgba(79, 70, 229, .6);
    white-space: nowrap;
}
.check-dot-sm {
    display: grid; place-items: center;
    width: 1.3rem; height: 1.3rem;
    margin-top: .1rem;
    border-radius: 999px;
    font-size: .55rem;
    color: var(--brand);
    background: var(--brand-soft);
    flex-shrink: 0;
}
.check-dot-sm.on-dark { color: #a5b4fc; background: rgba(79, 70, 229, .25); }

/* ---------- FAQ (native details/summary) ------------------------------------------------------------------ */
.faq-item {
    border-radius: 1.1rem;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    padding: 1.15rem 1.4rem;
    transition: border-color .3s;
}
.faq-item[open] { border-color: #c9cff2; }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600; color: var(--ink);
    font-size: .96rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { color: var(--brand); transition: transform .3s; flex-shrink: 0; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p { margin-top: .8rem; font-size: .9rem; line-height: 1.7; color: var(--body); }

/* ---------- Contact ------------------------------------------------------------------------------------------- */
.contact-card {
    display: flex; align-items: center; gap: 1.1rem;
    padding: 1.3rem 1.4rem;
    border-radius: 1.1rem;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: all .35s cubic-bezier(.22, 1, .36, 1);
}
.contact-card:hover {
    transform: translateY(-4px) translateX(4px);
    border-color: #d6daff;
    box-shadow: var(--shadow-lift);
}
.contact-icon {
    display: grid; place-items: center;
    flex-shrink: 0;
    width: 3.2rem; height: 3.2rem;
    border-radius: 1rem;
    font-size: 1.05rem;
    color: var(--brand);
    background: var(--brand-soft);
    border: 1px solid #dfe3ff;
    transition: all .35s;
}
.contact-card:hover .contact-icon {
    background: var(--brand); color: #fff;
    transform: rotate(-6deg) scale(1.05);
    box-shadow: 0 10px 24px -8px rgba(79, 70, 229, .55);
}

.form-label { display: block; margin-bottom: .5rem; font-size: .85rem; font-weight: 600; color: var(--ink); }
.form-input {
    width: 100%;
    border-radius: .9rem;
    background: #fbfcfe;
    border: 1px solid var(--border);
    padding: .85rem 1.1rem;
    color: var(--ink);
    font-size: .95rem;
    transition: border-color .3s, box-shadow .3s;
}
.form-input::placeholder { color: #9aa3bb; }
.form-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}
.form-input.input-error { border-color: #e11d48; box-shadow: 0 0 0 4px rgba(225, 29, 72, .1); }
.field-error { display: none; margin-top: .45rem; font-size: .8rem; color: #e11d48; }
.field-error.visible { display: block; animation: errorIn .3s ease; }
@keyframes errorIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Footer ------------------------------------------------------------------------------------------------ */
.footer-heading {
    position: relative;
    font-family: "Sora", sans-serif;
    font-size: 1rem; font-weight: 600; color: var(--ink);
    padding-bottom: .8rem; margin-bottom: .2rem;
}
.footer-heading::after {
    content: "";
    position: absolute; left: 0; bottom: 0;
    width: 2.2rem; height: 2.5px; border-radius: 2px;
    background: linear-gradient(90deg, var(--brand), #8b5cf6);
}
.footer-link { color: #5b6579; transition: all .25s; display: inline-flex; align-items: center; }
.footer-link:hover { color: var(--brand); padding-left: .35rem; }

.social-btn {
    display: grid; place-items: center;
    width: 2.7rem; height: 2.7rem;
    border-radius: .85rem;
    font-size: .95rem;
    color: #5b6579;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: all .3s cubic-bezier(.22, 1, .36, 1);
}
.social-btn:hover {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 10px 24px -8px rgba(79, 70, 229, .55);
    transform: translateY(-4px) rotate(-6deg);
}

/* ---------- Modals ---------------------------------------------------------------------------------------------------- */
.modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(10, 15, 30, .55);
    backdrop-filter: blur(6px);
    animation: fadeIn .3s ease;
}
.modal-card { animation: modalIn .4s cubic-bezier(.22, 1, .36, 1); }
.modal-close {
    position: absolute; top: 1.1rem; right: 1.1rem;
    display: grid; place-items: center;
    width: 2.6rem; height: 2.6rem;
    border-radius: .8rem;
    color: #5b6579;
    background: rgba(255, 255, 255, .85);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all .3s;
    z-index: 5;
}
.modal-close:hover { color: #fff; background: #e11d48; border-color: #e11d48; transform: rotate(90deg); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ---------- Toasts --------------------------------------------------------------------------------------------------------- */
.toast {
    pointer-events: auto;
    display: flex; align-items: flex-start; gap: .8rem;
    min-width: 280px; max-width: 380px;
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    font-size: .88rem; line-height: 1.5;
    background: rgba(255, 255, 255, .97);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lift);
    color: var(--body);
    animation: toastIn .4s cubic-bezier(.22, 1, .36, 1);
}
.toast.leaving { animation: toastOut .3s ease forwards; }
.toast.success { border-color: #86e3b8; }
.toast.success i { color: #10b981; }
.toast.error   { border-color: #fda4af; }
.toast.error i { color: #e11d48; }
.toast.info    { border-color: #c9cff2; }
.toast.info i  { color: var(--brand); }
@keyframes toastIn  { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(60px); } }

/* ---------- Preloader ------------------------------------------------------------------------------------------------------------ */
#preloader { transition: opacity .5s ease, visibility .5s ease; }
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- WhatsApp float ----------------------------------------------------------------------------------------------------------- */
#whatsapp-float .relative:first-of-type { box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .55); }
#whatsapp-float:hover .relative:first-of-type { box-shadow: 0 18px 44px -8px rgba(37, 211, 102, .7); }

/* ---------- Utilities / line clamp ------------------------------------------------------------------------------------------------------ */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Responsive & accessibility ------------------------------------------------------------------------------------------------------ */
@media (max-width: 768px) {
    .hero-bg, .hero-grid { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    html { scroll-behavior: auto; }
}
