/* =========================================================
   KRISHNA CONSTRUCTION — HOME PAGE STYLES
   css/home.css  |  Included only on index.html
   ========================================================= */

/* ── Hero background ───────────────────────────────────── */
.hero-bg {
    background-color: #091628;
    background-image:
        radial-gradient(ellipse 65% 65% at 12% 55%, rgba(8,145,178,0.22) 0%, transparent 70%),
        radial-gradient(ellipse 55% 55% at 88% 18%, rgba(59,130,246,0.17) 0%, transparent 65%),
        radial-gradient(ellipse 40% 45% at 60% 85%, rgba(34,211,238,0.10) 0%, transparent 60%);
    min-height: 100vh;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
}

/* ── Hero decorative rings ─────────────────────────────── */
.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(34,211,238,0.10);
    pointer-events: none;
}

/* ── Stats strip below hero ────────────────────────────── */
.stats-strip {
    background: #0c1e3d;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stat-item {
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
    padding: 1.75rem 1rem;
}
.stat-value {
    font-size: 2.25rem; font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    color: #64748b; font-size: 0.75rem;
    font-weight: 600; letter-spacing: 0.07em;
    text-transform: uppercase; margin-top: 0.375rem;
}
.stat-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.08), transparent);
    align-self: stretch; margin: 0.5rem 0;
}

/* ── Department trust badges ───────────────────────────── */
.dept-badge {
    display: flex; align-items: center; gap: 0.875rem;
    padding: 1rem 1.5rem;
    border-radius: 0.875rem;
    border: 1px solid;
    transition: all 0.3s ease;
}

/* ── Services preview cards (home only) ────────────────── */
.svc-preview-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex; flex-direction: column;
}
.svc-preview-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.12);
}

/* ── Process strip (How we work) ───────────────────────── */
.process-strip {
    background: #091628;
    position: relative; overflow: hidden;
}
.process-strip::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 50% 100% at 25% 50%, rgba(8,145,178,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 45% 100% at 75% 50%, rgba(59,130,246,0.10) 0%, transparent 70%);
    pointer-events: none;
}
.process-step-num {
    width: 3rem; height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0891b2, #3b82f6);
    color: white; font-size: 1.0625rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 4px rgba(8,145,178,0.15), 0 4px 12px rgba(8,145,178,0.3);
    flex-shrink: 0;
    position: relative; z-index: 1;
}
.process-connector {
    flex: 1; height: 1px;
    background: linear-gradient(90deg, rgba(34,211,238,0.35), rgba(59,130,246,0.15));
    align-self: center; margin: 0 0.5rem;
    min-width: 1.5rem;
}

/* ── Why-choose-us teaser (home) ───────────────────────── */
.why-teaser-card {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: white;
    padding: 1.5rem;
    display: flex; align-items: flex-start; gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.why-teaser-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.09);
    border-color: #bae6fd;
}

/* ── CTA Banner ────────────────────────────────────────── */
.home-cta {
    background: linear-gradient(135deg, #0c1a35 0%, #0a2a5a 50%, #091a35 100%);
    position: relative; overflow: hidden;
}
.home-cta::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 90% at 8% 50%,  rgba(8,145,178,0.25) 0%, transparent 65%),
        radial-gradient(ellipse 50% 80% at 92% 50%,  rgba(59,130,246,0.20) 0%, transparent 65%);
    pointer-events: none;
}

/* Oversized background text watermark */
.hero-watermark {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22vw; font-weight: 900; letter-spacing: -0.04em;
    color: rgba(255,255,255,0.018);
    pointer-events: none; user-select: none;
    white-space: nowrap; line-height: 1;
}

/* Hero project dashboard card */
.hero-dashboard {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

/* Cap the live project rows so extra detail fields don't grow the
   card taller than the viewport (it pushed the card up under the
   fixed navbar on shorter screens) — scroll internally instead. */
#live-dashboard-projects {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.375rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}
#live-dashboard-projects::-webkit-scrollbar { width: 5px; }
#live-dashboard-projects::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 9999px;
}

/* Floating metric badges */
.hero-badge {
    position: absolute;
    background: rgba(15,30,60,0.9);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    border-radius: 0.875rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* Progress bar animation */
.prog-bar {
    height: 100%; border-radius: 9999px;
    transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

/* ── Featured projects strip (home) ────────────────────── */
.featured-proj-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .featured-proj-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .featured-proj-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── 3D Bubble Button ──────────────────────────────────── */
.bubble-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.95) 0%, rgba(234, 88, 12, 0.95) 100%);
    color: white !important;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 6px 20px rgba(234, 88, 12, 0.45), 
        inset 0 2px 4px rgba(255, 255, 255, 0.4), 
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.bubble-btn::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 10%;
    right: 10%;
    height: 35%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 9999px;
    pointer-events: none;
}

.bubble-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 12px 24px rgba(234, 88, 12, 0.65), 
        inset 0 3px 6px rgba(255, 255, 255, 0.6), 
        inset 0 -3px 6px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, rgba(252, 211, 77, 0.98) 0%, rgba(249, 115, 22, 0.98) 100%);
}

.bubble-btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 
        0 3px 10px rgba(234, 88, 12, 0.45), 
        inset 0 1px 2px rgba(255, 255, 255, 0.3), 
        inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}

