/* ==========================================================================
   Home page - follows the approved "kdrsoft-technologies" homepage design.
   Loaded only on the home page, on top of app.css.
   ========================================================================== */

:root {
  --grad-primary: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
  --grad-orange: linear-gradient(135deg, #ff7a1a 0%, #ff9a4d 100%);
  --shadow-blue: 0 14px 30px rgba(37, 99, 235, .30);
  --shadow-orange: 0 14px 30px rgba(255, 122, 26, .34);
  --glass-bg: rgba(255, 255, 255, .07);
  --glass-brd: rgba(255, 255, 255, .16);
}
.section-py { padding-block: var(--section); }
.bg-light-blue { background: var(--soft); }
.section-title { font-size: clamp(1.85rem, 1.4rem + 1.9vw, 2.6rem); font-weight: 800; margin-bottom: 1rem; }
.section-lead { font-size: clamp(1rem, .95rem + .3vw, 1.12rem); max-width: 44rem; }
.head-center { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.head-center .section-lead { margin-inline: auto; }
.eyebrow.center { justify-content: center; }

/* ---------- Hero ---------- */
.hero-home { position: relative; overflow: hidden; background: linear-gradient(160deg, #2a65a8 0%, #485370 58%, #2a64af 100%); color: #fff; padding-block: clamp(1.5rem, 2.5vw, 2rem) clamp(4rem, 5vw, 4.5rem); }
.hero-home::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 26px 26px; opacity: .55; pointer-events: none; }
.hero-glow-1, .hero-glow-2 { position: absolute; border-radius: 50%; pointer-events: none; max-width: 85vw; }
.hero-glow-1 { top: -120px; right: -100px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(96, 165, 250, .24) 0%, transparent 70%); }
.hero-glow-2 { bottom: -160px; left: -120px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(37, 99, 235, .34) 0%, transparent 70%); }
.hero-home .container { position: relative; z-index: 2; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 992px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .75rem; padding: .4rem 1rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.hero-eyebrow .dot { background: var(--sky); }
.hero-title { color: #fff; font-size: clamp(1.75rem, 1.25rem + 2vw, 2.5rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin-bottom: .7rem; }
.hero-title .text-gradient { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(.95rem, .92rem + .2vw, 1.02rem); color: rgba(255, 255, 255, .82); max-width: 34rem; margin-bottom: 1.1rem; }
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .42); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); border-color: #fff; color: #fff; }
.hero-support-line { font-size: .83rem; font-weight: 600; color: rgba(255, 255, 255, .9); margin: .8rem 0 0; }
.hero-support-line .sep { color: var(--sky); margin: 0 .5rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-stat .num { font-size: clamp(1.4rem, 1.2rem + 1.1vw, 1.8rem); font-weight: 800; color: #fff; line-height: 1; }
.hero-stat .num span { color: var(--sky); }
.hero-stat .label { font-size: .77rem; color: rgba(255, 255, 255, .7); margin: .3rem 0 0; }

.hero-visual { position: relative; perspective: 1700px; max-width: 480px; width: 100%; margin-inline: auto; }
.hero-carousel-wrap { position: relative; transform: rotateY(-7deg) rotateX(3deg); transform-style: preserve-3d; transition: transform .6s ease; }
.hero-visual:hover .hero-carousel-wrap { transform: rotateY(-3deg) rotateX(1deg); }
@media (max-width: 991px) { .hero-visual { perspective: none; max-width: 520px; } .hero-carousel-wrap { transform: none !important; } }
.hero-carousel { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .12); background: #fff; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: contain; }
.slide-caption { position: absolute; left: 1rem; top: 1rem; z-index: 4; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem 1rem; border-radius: 999px; background: rgba(16, 28, 58, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.slide-caption:hover { color: #fff; background: rgba(37, 99, 235, .9); }
.slide-caption .icon { width: 16px; height: 16px; color: var(--sky); }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: .2rem; z-index: 3; display: flex; justify-content: center; gap: 6px; }
/* 24px tap target with a small visual dot */
.carousel-dots button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; }
.carousel-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(16, 28, 58, .25); transition: width .3s ease, background .3s ease; }
.carousel-dots button[aria-current="true"] { width: 34px; }
.carousel-dots button[aria-current="true"]::before { width: 22px; border-radius: 5px; background: var(--blue); }
.carousel-nav { position: absolute; top: 0; bottom: 0; z-index: 3; width: 12%; display: grid; place-items: center; border: 0; background: none; color: var(--navy); opacity: 0; transition: opacity var(--ease); }
.carousel-nav .icon { width: 30px; height: 30px; }
.carousel-nav.prev { left: 0; } .carousel-nav.next { right: 0; }
.hero-carousel:hover .carousel-nav, .carousel-nav:focus-visible { opacity: .9; }
.hero-float-card { position: absolute; z-index: 6; display: flex; align-items: center; gap: .7rem; padding: .8rem 1.05rem; border-radius: var(--r); background: rgba(16, 28, 58, .55); border: 1px solid var(--glass-brd); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); box-shadow: var(--shadow-lg); color: #fff; }
.hero-float-card .icon-wrap { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; }
.hero-float-card .fc-num { font-weight: 800; font-size: 1.1rem; line-height: 1.1; }
.hero-float-card .fc-label { font-size: .72rem; color: rgba(255, 255, 255, .82); line-height: 1.2; }
.hero-float-card.fc-a { left: -1rem; bottom: 1.4rem; animation: floatY 5.5s ease-in-out infinite; }
.hero-float-card.fc-a .icon-wrap { background: var(--grad-primary); }
.hero-float-card.fc-b { right: -1rem; top: 1.4rem; animation: floatY 6.5s ease-in-out infinite .6s; }
.hero-float-card.fc-b .icon-wrap { background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%); }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 575px) {
  .hero-float-card.fc-a { left: .4rem; bottom: .6rem; padding: .55rem .75rem; }
  .hero-float-card.fc-b { right: .4rem; top: .6rem; padding: .55rem .75rem; }
  .hero-float-card .icon-wrap { width: 34px; height: 34px; }
  .hero-cta-group .btn { width: 100%; }
}

/* Feature strip */
.hero-feature-strip { position: relative; z-index: 7; margin-top: -3.5rem; }
.hero-feature-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; padding: 1.4rem 1.2rem; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
@media (min-width: 768px) { .hero-feature-card { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .hero-feature-card { grid-template-columns: repeat(6, 1fr); } .hf-item + .hf-item { border-left: 1px solid var(--border); } }
.hf-item { display: flex; align-items: center; gap: .6rem; padding: .35rem .5rem; min-width: 0; }
.hf-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; background: rgba(37, 99, 235, .1); color: var(--blue); }
.hf-item:nth-child(even) .hf-ico { background: rgba(96, 165, 250, .18); color: var(--blue-700); }
.hf-ico .icon { width: 17px; height: 17px; }
.hf-item > div { min-width: 0; }
.hf-strong { font-weight: 700; font-size: .82rem; color: var(--heading); line-height: 1.2; white-space: nowrap; }
.hf-text { font-size: .72rem; color: var(--muted); white-space: nowrap; }

/* ---------- Core services band ---------- */
.core-badge { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem; padding: .42rem 1rem; border-radius: 999px; background: rgba(255, 122, 26, .12); color: #b23f08; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.core-badge .icon { color: var(--orange); }
.core-card { position: relative; height: 100%; padding: 1.75rem 1.4rem; overflow: hidden; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--r); transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.core-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); opacity: 0; transition: opacity var(--ease); }
.core-card > * { position: relative; z-index: 1; }
.core-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.core-card:hover::after { opacity: 1; }
.core-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 1.1rem; border-radius: 18px; background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-blue); transition: background var(--ease), color var(--ease); }
.core-icon .icon { width: 30px; height: 30px; }
.core-card:hover .core-icon { background: #fff; color: var(--blue); }
.core-card h3 { font-size: 1.15rem; margin-bottom: .55rem; transition: color var(--ease); }
.core-card p { font-size: .88rem; margin-bottom: 1rem; transition: color var(--ease); }
.core-tag { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .75rem; border-radius: 999px; background: rgba(37, 99, 235, .1); color: var(--blue-700); font-size: .74rem; font-weight: 700; transition: background var(--ease), color var(--ease); }
.core-tag .icon { width: 14px; height: 14px; }
.core-card:hover h3, .core-card:hover p { color: #fff; }
.core-card:hover .core-tag { background: rgba(255, 255, 255, .22); color: #fff; }
.core-cta-note { font-size: .92rem; }
.core-cta-note strong { color: var(--heading); }

/* ---------- Value proposition panel ---------- */
.valueprop-panel { position: relative; overflow: hidden; padding: clamp(2rem, 4vw, 3.5rem); border-radius: var(--r-lg); background: linear-gradient(160deg, #101c3a 0%, #16244a 58%, #101c3a 100%); box-shadow: var(--shadow-lg); color: #fff; }
.valueprop-panel::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 26px 26px; opacity: .5; pointer-events: none; }
.vp-glow-o { position: absolute; top: -120px; right: -80px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 26, .22) 0%, transparent 70%); pointer-events: none; }
.vp-glow-b { position: absolute; bottom: -140px; left: -80px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(37, 99, 235, .30) 0%, transparent 70%); pointer-events: none; }
.vp-grid { position: relative; z-index: 2; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 992px) { .vp-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.vp-eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ffb27a; }
.vp-eyebrow .dot { background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 122, 26, .22); }
.vp-title { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.25rem); font-weight: 800; line-height: 1.22; margin-bottom: 1rem; }
.vp-title .hl { position: relative; color: #ffb27a; }
.vp-title .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .1em; border-radius: 2px; background: var(--orange); opacity: .85; }
.vp-sub { color: rgba(255, 255, 255, .78); margin-bottom: 0; }
.vp-points { display: flex; flex-direction: column; gap: .9rem; }
.vp-point { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.15rem; border-radius: var(--r); background: var(--glass-bg); border: 1px solid var(--glass-brd); transition: transform var(--ease), background var(--ease); }
.vp-point:hover { transform: translateX(5px); background: rgba(255, 255, 255, .11); }
.vp-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; color: #fff; }
.vp-point:nth-child(1) .vp-ico { background: var(--grad-orange); box-shadow: var(--shadow-orange); }
.vp-point:nth-child(2) .vp-ico { background: var(--grad-primary); box-shadow: var(--shadow-blue); }
.vp-point:nth-child(3) .vp-ico { background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%); box-shadow: var(--shadow-blue); }
.vp-point h3 { color: #fff; font-size: 1.04rem; margin-bottom: .15rem; }
.vp-point p { color: rgba(255, 255, 255, .72); font-size: .82rem; line-height: 1.5; margin: 0; }
.vp-divider { position: relative; z-index: 2; height: 1px; margin: clamp(1.75rem, 3vw, 2.6rem) 0 clamp(1.25rem, 2vw, 1.75rem); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent); }
.vp-stats-cap { position: relative; z-index: 2; text-align: center; color: rgba(255, 255, 255, .72); font-size: .92rem; font-weight: 500; margin-bottom: clamp(1.25rem, 2vw, 1.75rem); }
.vp-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: center; }
@media (min-width: 768px) { .vp-stats { grid-template-columns: repeat(4, 1fr); gap: 0; } .vp-stat + .vp-stat { border-left: 1px solid rgba(255, 255, 255, .14); } }
.vp-sn { font-weight: 800; font-size: clamp(1.7rem, 1.35rem + 1.5vw, 2.3rem); color: #fff; line-height: 1; }
.vp-sn span { color: #ffb27a; }
.vp-sl { font-size: .86rem; color: rgba(255, 255, 255, .72); margin-top: .45rem; }

/* ---------- Why Kdrsoft ---------- */
.why-grid { display: grid; gap: 1.5rem; }
@media (min-width: 992px) { .why-grid { grid-template-columns: 1fr 2fr; } }
.why-features { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .why-features { grid-template-columns: 1fr 1fr; } }
.why-promo { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; padding: clamp(1.75rem, 3vw, 2.3rem); border-radius: var(--r-lg); background: linear-gradient(160deg, #101c3a 0%, #16244a 58%, #101c3a 100%); box-shadow: var(--shadow-lg); color: #fff; }
.why-promo::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 24px 24px; opacity: .5; pointer-events: none; }
.why-promo .wp-glow { position: absolute; top: -90px; right: -70px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 26, .26) 0%, transparent 70%); pointer-events: none; }
.why-promo > * { position: relative; z-index: 2; }
.wp-ico { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 1.2rem; border-radius: 16px; background: var(--grad-orange); color: #fff; box-shadow: var(--shadow-orange); }
.wp-ico .icon { width: 28px; height: 28px; }
.why-promo h3 { color: #fff; font-size: 1.4rem; line-height: 1.25; margin-bottom: .75rem; }
.why-promo p { color: rgba(255, 255, 255, .78); font-size: .92rem; margin-bottom: 0; }
.wp-stats { display: flex; gap: 2rem; margin: 1.4rem 0 1.6rem; }
.wp-stat .n { display: block; font-weight: 800; font-size: 1.6rem; color: #ffb27a; line-height: 1; }
.wp-stat .l { font-size: .78rem; color: rgba(255, 255, 255, .7); }
.why-promo .btn { margin-top: auto; align-self: flex-start; }
.why-feature { position: relative; height: 100%; overflow: hidden; padding: 1.6rem 1.5rem; background: #fff; border: 1px solid var(--border); border-radius: var(--r); transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.why-feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.why-feature::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(37, 99, 235, .08), transparent 70%); pointer-events: none; }
.wf-ico { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 1rem; border-radius: 14px; color: #fff; box-shadow: var(--shadow-blue); }
.wf-blue { background: var(--grad-primary); }
.wf-orange { background: var(--grad-orange); box-shadow: var(--shadow-orange); }
.wf-sky { background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%); }
.wf-navy { background: linear-gradient(135deg, #101c3a 0%, #2563eb 100%); }
.why-feature h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.why-feature p { font-size: .88rem; margin: 0; }

/* ---------- Blog / insights ---------- */
.insights-head { display: grid; gap: 1rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
@media (min-width: 992px) { .insights-head { grid-template-columns: 2fr 1fr; } .insights-head > :last-child { justify-self: end; } }
.blog-card { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--r); transition: transform var(--ease), box-shadow var(--ease); }
.blog-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.blog-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
.blog-tag { position: absolute; top: 1rem; left: 1rem; z-index: 2; padding: .35rem .85rem; border-radius: 999px; background: rgba(16, 28, 58, .38); border: 1px solid rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 6px 18px rgba(16, 28, 58, .25); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.blog-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem; }
.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: .7rem; font-size: .78rem; color: var(--muted); }
.blog-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.blog-meta .icon { width: 14px; height: 14px; color: var(--blue); }
.blog-body h3 { font-size: 1.12rem; line-height: 1.35; margin-bottom: .55rem; }
.blog-body h3 a { color: var(--heading); }
.blog-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.blog-body h3 a:hover { color: var(--blue); }
.blog-body p { flex: 1; font-size: .88rem; margin-bottom: 1rem; }
.blog-foot { padding-top: .9rem; border-top: 1px solid var(--border); }

/* ---------- Extra SEO blocks (FAQ + areas) ---------- */
.areas-head { max-width: 820px; margin: 0 auto 2rem; text-align: center; }
.areas-head .eyebrow::before { display: none; }
.areas-head .eyebrow .icon { width: 15px; height: 15px; color: var(--accent); }
.areas-head .section-lead { margin-inline: auto; }
.hl-text { position: relative; background: linear-gradient(135deg, #2563eb, #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl-text::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.05em; height: .12em; border-radius: 3px; background: linear-gradient(90deg, #ff7a1a, #ff9a4d); opacity: .85; }
.areas-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.2rem; }
.areas-badges span { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .95rem; border-radius: 999px; background: #fff; border: 1px solid #dbe6fb; box-shadow: var(--shadow-sm); font-size: .84rem; font-weight: 700; color: var(--heading); }
.areas-badges .icon { width: 16px; height: 16px; color: var(--blue); }
.areas-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; list-style: none; }
.areas-cloud a { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .7rem; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: .74rem; font-weight: 600; color: var(--text); }
.areas-cloud a:hover { border-color: var(--blue); color: var(--blue-700); }
.areas-cloud .icon { width: 12px; height: 12px; color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .hero-float-card { animation: none !important; }
  .hero-carousel-wrap { transform: none !important; }
}
