/* =========================================================
   SECURETECHLABS — MODERN VISUAL REFINEMENT LAYER
   Purpose: break up the repeated "icon + h3 + p" card pattern
   that recurs across sections, add depth, motion and rhythm.
   No copy/content is changed by this file — visuals only.
   ========================================================= */

/* ---------- 1. Global card foundation ----------
   Every repeated card type gets a shared modern treatment:
   numbered index watermark, gradient top edge that cycles
   colour per position, glass hover sheen and lift. */

.security-card,
.security-specialty-card,
.development-card,
.home-pillar,
.home-service-card{
    position:relative;
    isolation:isolate;
    overflow:hidden;
}

.security-services-grid{counter-reset:card-index}
.security-card{counter-increment:card-index}

/* Numbered watermark only suits text-only cards; image-led
   cards (specialty/development/pillar) get the accent bar
   and icon motion below instead, so photos stay unobstructed. */
.security-card::after{
    content:counter(card-index,decimal-leading-zero);
    position:absolute;
    top:-.18em;
    right:14px;
    font-family:var(--heading);
    font-size:3.6rem;
    font-weight:700;
    line-height:1;
    color:rgba(255,255,255,.045);
    letter-spacing:-.02em;
    pointer-events:none;
    z-index:0;
}

.security-card::before,
.security-specialty-card::before,
.development-card::before,
.home-pillar::before,
.home-service-card::before{
    content:"";
    position:absolute;
    inset:0 0 auto 0;
    height:3px;
    background:linear-gradient(90deg,#20E3A2,#38BDF8);
    transform:scaleX(0);
    transform-origin:left;
    transition:transform .45s cubic-bezier(.22,1,.36,1);
    z-index:2;
}

/* Cycle the accent colour per card position so grids of
   identical cards read as distinct, not stamped-out copies */
.security-card:nth-child(3n+2)::before,
.security-specialty-card:nth-child(3n+2)::before,
.development-card:nth-child(4n+2)::before,
.home-pillar:nth-child(3n+2)::before{background:linear-gradient(90deg,#38BDF8,#A855F7)}
.security-card:nth-child(3n+3)::before,
.security-specialty-card:nth-child(3n+3)::before,
.development-card:nth-child(4n+3)::before,
.home-pillar:nth-child(3n+3)::before{background:linear-gradient(90deg,#A855F7,#20E3A2)}
.development-card:nth-child(4n+4)::before{background:linear-gradient(90deg,#20E3A2,#F59E0B)}

.security-card:hover::before,
.security-specialty-card:hover::before,
.development-card:hover::before,
.home-pillar:hover::before,
.home-service-card:hover::before{transform:scaleX(1)}

.security-card > *,
.security-specialty-body > *,
.development-card > *,
.home-pillar > div > *{position:relative;z-index:1}

/* Slightly more generous, less uniform rounding */
.security-card{border-radius:20px 20px 26px 20px}
.security-specialty-card,
.development-card,
.home-pillar{border-radius:22px}

/* ---------- 2. Icon treatment ---------- */

.security-card .icon{
    border-radius:16px;
    background:linear-gradient(135deg,#20E3A2,#38BDF8);
    transition:transform .4s cubic-bezier(.34,1.56,.64,1),box-shadow .4s ease;
    box-shadow:0 10px 24px rgba(32,227,162,.18);
}
.security-card:nth-child(3n+2) .icon{background:linear-gradient(135deg,#38BDF8,#A855F7);box-shadow:0 10px 24px rgba(56,189,248,.18)}
.security-card:nth-child(3n+3) .icon{background:linear-gradient(135deg,#A855F7,#20E3A2);box-shadow:0 10px 24px rgba(168,85,247,.18)}
.security-card:hover .icon{transform:rotate(-6deg) scale(1.08)}

.development-card>i{transition:transform .4s cubic-bezier(.34,1.56,.64,1)}
.development-card:hover>i{transform:scale(1.12) rotate(6deg)}

/* ---------- 3. Lift + glass sheen on hover ---------- */

.security-card,
.security-specialty-card,
.development-card,
.home-pillar,
.home-service-card{
    transition:transform .4s cubic-bezier(.22,1,.36,1),
               border-color .4s ease,
               box-shadow .4s ease,
               background .4s ease;
}

.security-card:hover,
.development-card:hover,
.home-pillar:hover{transform:translateY(-8px) scale(1.012)}

.security-specialty-card:hover .security-specialty-image img{filter:saturate(1.15)}

/* ---------- 4. Section-title rhythm ----------
   Alternate alignment/accent so consecutive sections don't
   all read as "centered eyebrow + heading + paragraph". */

.section-title span{
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:10px;
}
.section-title span::before{
    content:"";
    width:26px;
    height:2px;
    background:linear-gradient(90deg,#20E3A2,#38BDF8);
    display:inline-block;
    border-radius:2px;
}

body section:nth-of-type(even) .section-title{
    text-align:left;
    margin-left:0;
    margin-right:auto;
}
body section:nth-of-type(even) .section-title span{
    flex-direction:row-reverse;
}

/* Keep hero, CTA/consultation boxes and anything explicitly
   flagged centered from being pulled left by the rule above */
.hero .section-title,
.home-consultation .section-title,
.development-cta .section-title,
.faq-page-hero .section-title,
.reports-hero .section-title,
.security-hero .section-title{
    text-align:center;
    margin-left:auto;
    margin-right:auto;
}

/* ---------- 5. Bento-style asymmetry ----------
   Break the "every card is identical width" pattern on the
   two widest, most repetitive grids at desktop size. */

@media(min-width:1001px){
    .development-card-grid{grid-template-columns:repeat(4,1fr)}
    .development-card-grid .development-card:first-child{grid-column:span 2}
    .development-card-grid .development-card:first-child img{height:210px}

    .home-pillar-grid{grid-template-columns:repeat(3,1fr)}
    .home-pillar-grid .home-pillar:first-child{grid-column:span 2}
    .home-pillar-grid .home-pillar:first-child img{height:260px}
}

/* ---------- 6. CTA / callout boxes ----------
   Give each recurring "gradient box, text left, button right"
   pattern its own subtle fingerprint. */

.home-consultation-box,
.development-cta-box,
.security-reports-box,
.faq-bottom-cta{
    position:relative;
    overflow:hidden;
}
.home-consultation-box::after,
.development-cta-box::after,
.security-reports-box::after,
.faq-bottom-cta::after{
    content:"";
    position:absolute;
    width:260px;
    height:260px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(32,227,162,.14),transparent 70%);
    top:-120px;
    right:-80px;
    pointer-events:none;
}
.security-reports-box::after{background:radial-gradient(circle,rgba(56,189,248,.16),transparent 70%)}
.faq-bottom-cta::after{background:radial-gradient(circle,rgba(168,85,247,.16),transparent 70%)}
.development-cta-box::after{top:auto;bottom:-120px;left:-80px;right:auto}

/* ---------- 7. Buttons: modern sweep + press ---------- */

.btn-primary,.btn-outline{
    position:relative;
    overflow:hidden;
    transition:transform .3s cubic-bezier(.22,1,.36,1),box-shadow .3s ease,background .3s ease,border-color .3s ease;
}
.btn-primary::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(115deg,transparent 20%,rgba(255,255,255,.35) 40%,transparent 60%);
    transform:translateX(-120%);
    transition:transform .6s ease;
}
.btn-primary:hover::before{transform:translateX(120%)}
.btn-primary:active,.btn-outline:active{transform:scale(.97)}

/* ---------- 8. Section separators & background rhythm ----------
   Faint top hairline gradient so stacked sections don't blur
   into one continuous wall regardless of matching bg colour. */

.home-pillars,.development-services,.development-systems,
.security-services,.security-specialty-showcase,.home-industries,
.faq-page-section,.reports-library{
    position:relative;
}
.home-pillars::before,.development-services::before,.development-systems::before,
.security-services::before,.security-specialty-showcase::before,.home-industries::before,
.faq-page-section::before,.reports-library::before{
    content:"";
    position:absolute;
    top:0;left:50%;
    transform:translateX(-50%);
    width:min(88%,1240px);
    height:1px;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.12),transparent);
}

/* ---------- 9. Custom scrollbar (modern touch) ---------- */

::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:#050C15}
::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#20E3A2,#38BDF8);border-radius:20px;border:2px solid #050C15}
html{scrollbar-color:#20E3A2 #050C15;scrollbar-width:thin}

/* ---------- 10. Motion accessibility ---------- */

@media(prefers-reduced-motion:reduce){
    *{animation:none!important;transition:none!important}
}

/* ---------- 12. Portfolio downloads (Our Work page only) ---------- */

.portfolio-downloads{padding:100px 0;background:#081521}
.downloads-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:26px;
    margin-top:55px;
}
.download-card{
    position:relative;
    text-align:center;
    padding:40px 30px;
    border-radius:22px;
    background:#0B1B2A;
    border:1px solid rgba(255,255,255,.09);
    transition:transform .4s cubic-bezier(.22,1,.36,1),border-color .4s ease,box-shadow .4s ease;
}
.download-card:hover{transform:translateY(-8px);border-color:rgba(32,227,162,.5);box-shadow:0 20px 55px rgba(0,0,0,.28)}
.download-card .icon{
    width:64px;height:64px;
    margin:0 auto 22px;
    display:grid;place-items:center;
    border-radius:16px;
    background:linear-gradient(135deg,#20E3A2,#38BDF8);
    color:#06111F;
    font-size:1.5rem;
}
.download-card:nth-child(2) .icon{background:linear-gradient(135deg,#38BDF8,#A855F7)}
.download-card:nth-child(3) .icon{background:linear-gradient(135deg,#A855F7,#20E3A2)}
.download-card h3{color:#F4F8FB;font-size:1.25rem;margin-bottom:12px}
.download-card p{color:#AFC0CE;line-height:1.75;margin-bottom:24px}
.download-btn{display:inline-flex;align-items:center;gap:9px;justify-content:center;width:100%}
.download-btn-pending{
    border:1px solid rgba(255,255,255,.14);
    border-radius:999px;
    padding:11px 22px;
    color:#94A9BB;
    background:rgba(255,255,255,.03);
    cursor:default;
}
.download-pending-note{
    display:block;
    margin-top:10px;
    font-size:.82rem;
    color:#71879A;
    font-style:italic;
}
@media(max-width:900px){.downloads-grid{grid-template-columns:1fr}}

/* ---------- 13. Header: phone number ---------- */

.nav-phone{
    display:none;
    align-items:center;
    gap:8px;
    color:#CBD5E1;
    font-size:.92rem;
    font-weight:500;
    white-space:nowrap;
    margin-right:22px;
    transition:color .3s ease;
}
.nav-phone i{
    display:grid;
    place-items:center;
    width:26px;height:26px;
    border-radius:50%;
    background:rgba(32,227,162,.12);
    color:#20E3A2;
    font-size:.72rem;
}
.nav-phone:hover{color:#fff}
@media(min-width:1301px){.nav-phone{display:flex}}

/* ---------- 14. Footer redesign ---------- */

.footer{
    background:#050D18;
    position:relative;
    overflow:hidden;
    padding:0;
}
.footer::before{
    content:"";
    position:absolute;
    top:0;left:0;right:0;
    height:1px;
    background:linear-gradient(90deg,transparent,#20E3A2,#38BDF8,#A855F7,transparent);
}
.footer::after{
    content:"";
    position:absolute;
    width:480px;height:480px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(32,227,162,.06),transparent 70%);
    top:-260px;right:-120px;
    pointer-events:none;
}

.footer-main{
    grid-template-columns:1.6fr 1fr 1fr 1fr 1.15fr;
    gap:36px;
    padding:80px 0 50px;
    position:relative;
    z-index:1;
}

.footer-brand{padding-right:20px}
.footer-logo{
    width:52px;height:52px;
    border-radius:14px;
    margin-bottom:18px;
    box-shadow:0 10px 26px rgba(32,227,162,.18);
}
.footer-main .footer-brand h3{
    font-size:1.4rem;
    margin-bottom:14px;
    background:linear-gradient(90deg,#fff,#9FE8CB);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
}
.footer-brand p{font-size:.93rem;max-width:280px}

.footer-col h4{
    position:relative;
    font-size:1rem;
    letter-spacing:.02em;
    padding-bottom:12px;
    margin-bottom:16px;
}
.footer-col h4::after{
    content:"";
    position:absolute;
    left:0;bottom:0;
    width:28px;height:2px;
    background:linear-gradient(90deg,#20E3A2,#38BDF8);
    border-radius:2px;
}
.footer-col a{
    position:relative;
    display:flex;
    align-items:center;
    gap:7px;
    margin:0 0 12px;
    font-size:.92rem;
    transition:color .3s ease,transform .3s ease,padding-left .3s ease;
}
.footer-col a::before{
    content:"\f105";
    font-family:"Font Awesome 6 Free";
    font-weight:900;
    font-size:.7rem;
    color:#20E3A2;
    opacity:0;
    transform:translateX(-6px);
    transition:opacity .3s ease,transform .3s ease;
}
.footer-col a:hover{transform:translateX(3px)}
.footer-col a:hover::before{opacity:1;transform:translateX(0)}

.footer-contact a{
    align-items:center;
}
.footer-contact a i{
    width:26px;height:26px;
    display:inline-grid;
    place-items:center;
    border-radius:50%;
    background:rgba(56,189,248,.12);
    color:#38BDF8;
    font-size:.72rem;
    flex-shrink:0;
}
.footer-contact a::before{display:none}

.footer-bottom{
    position:relative;
    z-index:1;
    border-top:1px solid rgba(255,255,255,.07);
    padding:26px 0;
}
.footer-bottom span{
    display:inline-flex;
    align-items:center;
    gap:8px;
}
.footer-bottom span::before{
    content:"";
    width:6px;height:6px;
    border-radius:50%;
    background:#20E3A2;
    box-shadow:0 0 10px rgba(32,227,162,.7);
}

@media(max-width:1100px){.footer-main{grid-template-columns:1.4fr 1fr 1fr 1fr}.footer-contact{grid-column:span 2}}
@media(max-width:900px){.footer-main{grid-template-columns:1fr 1fr;padding:60px 0 40px}.footer-contact{grid-column:span 1}}
@media(max-width:550px){.footer-main{grid-template-columns:1fr}.footer-brand{padding-right:0}}

/* ---------- 15. Responsive corrections for the bento spans ---------- */

@media(max-width:1000px){
    .development-card-grid .development-card:first-child,
    .home-pillar-grid .home-pillar:first-child{grid-column:auto}
}


/* ---------- Consultation form: WhatsApp submission ---------- */
.consultation-submit{gap:8px;}
.form-whatsapp-note{
    margin:10px 0 0;
    color:#6B7F90;
    font-size:.78rem;
    line-height:1.5;
}
.form-whatsapp-note i{color:#20E3A2;margin-right:5px;}
@media(max-width:520px){
    .consultation-submit{width:100%;font-size:.9rem;padding:13px 16px;}
}


.mobile-nav-phone{display:none;}
.mobile-nav-phone a{align-items:center;gap:10px;}
.mobile-nav-phone i{color:#20E3A2;}
@media(max-width:1300px){
    .nav-phone{display:none !important;}
    .mobile-nav-phone{display:block;}
}
