/* =============================================
   SARVESH D — Custom Styles (Bootstrap 5.3 Base)
   Only brand-specific, unique components here.
   Bootstrap handles: grid, spacing, flex, typography,
   buttons base, cards base, navbar base, offcanvas, etc.
   ============================================= */

/* ===== CSS VARIABLES ===== */
:root {
    --blue: #00508C;
    --blue-dark: #003D6B;
    --blue-light: #E6F0F8;
    --blue-bg: #F4F8FC;
    --orange: #FF6B35;
    --orange-dark: #E85A28;
    --orange-light: #FFF3EE;
    --green: #27AE60;
    --green-light: #E8F8F0;
    --text: #1A1A2E;
    --text-sec: #64648C;
    --border: #E8E8F0;
    --bg: #FAFAFE;
    --font-h: 'Plus Jakarta Sans', sans-serif;
    --font-a: 'Playfair Display', serif;
}

/* ===== GLOBAL OVERRIDES ===== */
body {
    font-family: var(--font-h);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

/* ===== CUSTOM COLORS (Bootstrap can't generate these) ===== */
.text-primary-custom { color: var(--blue) !important; }
.text-accent { color: var(--orange) !important; }
.text-white-75 { color: rgba(255,255,255,.75) !important; }
.bg-primary-custom { background-color: var(--blue) !important; }
.bg-accent { background-color: var(--orange) !important; }
.bg-light-custom { background-color: var(--bg) !important; }
.ls-wide { letter-spacing: 1.5px; }

/* ===== PILLS ===== */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .3px;
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-blue { background: var(--blue-light); color: var(--blue); }
.pill-orange { background: var(--orange-light); color: var(--orange); }
.pill-green { background: var(--green-light); color: var(--green); }
.pill-white { background: rgba(255,255,255,.15); color: #fff; backdrop-filter: blur(8px); }

/* ===== CUSTOM BUTTONS ===== */
.btn-primary-custom {
    background: var(--blue);
    color: #fff !important;
    border-color: var(--blue);
    font-weight: 600;
    transition: all .3s ease;
}
.btn-primary-custom:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,80,140,.3);
    color: #fff !important;
}
.btn-outline-custom {
    border: 2px solid var(--border);
    color: var(--text);
    background: #fff;
    font-weight: 600;
    transition: all .3s ease;
}
.btn-outline-custom:hover {
    border-color: var(--blue);
    color: var(--blue);
}

/* ===== NAVBAR (Desktop only — hidden on mobile via d-none d-lg-flex) ===== */
.sd-navbar {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all .3s ease;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 72px;
}
.sd-navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 2px 20px rgba(0,0,0,.04);
}
.sd-logo {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -.5px;
}
.sd-navbar .nav-link {
    font-size: .88rem;
    font-weight: 500;
    color: var(--text-sec);
    transition: color .3s ease;
    padding: .5rem .75rem;
}
.sd-navbar .nav-link:hover,
.sd-navbar .nav-link.active { color: var(--blue); }

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 140px 0 100px;
    background: linear-gradient(180deg, var(--blue-bg) 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,80,140,.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero-title {
    font-size: clamp(2.4rem, 4.5vw, 3.2rem);
    line-height: 1.12;
    letter-spacing: -1.5px;
}
.accent {
    font-family: var(--font-a);
    font-style: italic;
    color: var(--orange);
    font-weight: 600;
}
.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -1px;
}
.trusted-tech {
    font-size: .85rem;
    font-weight: 700;
    color: #B0B0C8;
    letter-spacing: .5px;
}

/* ===== CODE EDITOR (Fully Custom) ===== */
.code-editor {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.15), 0 0 0 1px rgba(255,255,255,.05);
    background: #1E1E2E;
    font-family: 'Courier New', Consolas, monospace;
    transform: perspective(800px) rotateY(-2deg) rotateX(1deg);
    transition: transform .4s ease;
}
.code-editor:hover { transform: perspective(800px) rotateY(0) rotateX(0); }
.code-titlebar {
    background: #181825;
    padding: 12px 16px;
    border-bottom: 1px solid #313244;
}
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot-red { background: #F38BA8; }
.dot-yellow { background: #F9E2AF; }
.dot-green { background: #A6E3A1; }
.code-filename { font-size: .72rem; color: #6C7086; }
.code-tab {
    font-size: .68rem;
    padding: 4px 12px;
    border-radius: 6px 6px 0 0;
    color: #6C7086;
    background: transparent;
}
.code-tab.active { background: #1E1E2E; color: #CDD6F4; }
.code-body { padding: 20px 0; min-height: 340px; overflow: hidden; }
.code-line {
    padding: 2px 20px 2px 0;
    font-size: .82rem;
    line-height: 1.7;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: background .2s;
}
.code-line:hover { background: rgba(255,255,255,.03); }
.ln {
    display: inline-block;
    width: 44px;
    text-align: right;
    padding-right: 16px;
    margin-right: 12px;
    color: #45475A;
    font-size: .75rem;
    user-select: none;
    border-right: 1px solid #313244;
    flex-shrink: 0;
}
.ck { color: #CBA6F7; }
.cc { color: #F9E2AF; }
.cf { color: #89B4FA; }
.ca { color: #F38BA8; }
.cs { color: #A6E3A1; }
.cp { color: #9399B2; }
.cv { color: #CDD6F4; }
.cm { color: #6C7086; font-style: italic; }
.cursor { color: #F5C2E7; animation: blink 1s step-end infinite; font-weight: 300; margin-left: 2px; }
@keyframes blink { 0%,50% { opacity:1; } 51%,100% { opacity:0; } }
.code-statusbar {
    background: var(--blue);
    padding: 5px 16px;
    font-size: .65rem;
    color: rgba(255,255,255,.8);
    letter-spacing: .3px;
}

/* ===== CARD HOVER (all sd-card elements) ===== */
.sd-card {
    border-color: var(--border) !important;
    border-radius: 16px !important;
    transition: all .3s ease;
}
.sd-card:hover {
    border-color: var(--blue) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,80,140,.08);
}

/* ===== ICON BOXES ===== */
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.icon-purple { background: var(--blue-light); }
.icon-orange { background: var(--orange-light); }
.icon-green { background: var(--green-light); }
.icon-blue-bg { background: var(--blue-light); }
.icon-orange-bg { background: var(--orange-light); }
.icon-green-bg { background: var(--green-light); }

/* ===== FOR-YOU CHECK ICON ===== */
.for-check-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--green-light);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== SERVICE CARDS ===== */
.service-card { position: relative; overflow: hidden; }
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card.blue-top::before { background: var(--blue); }
.service-card.orange-top::before { background: var(--orange); }
.service-card.green-top::before { background: var(--green); }
.service-card.recommended {
    border-color: var(--blue) !important;
    box-shadow: 0 8px 30px rgba(0,80,140,.08);
}
.service-card.recommended::before { transform: scaleX(1); }
.recommended-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    letter-spacing: .3px;
}
.service-list li {
    font-size: .84rem;
    color: var(--text-sec);
    padding: 5px 0 5px 20px;
    position: relative;
}
.service-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 700;
    font-size: .8rem;
}
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .88rem;
    transition: gap .3s ease;
    text-decoration: none;
}
.service-link:hover { gap: 10px; }

/* Progress bar custom colors */
.bg-primary-custom { background-color: var(--blue) !important; }
.bg-accent { background-color: var(--orange) !important; }
.progress { background-color: var(--border); border-radius: 10px; }
.progress-fill { transition: width 1s ease; }

/* ===== TECH GRID ===== */
.tech-card { cursor: default; }
.tech-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.tech-name {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text);
}

/* ===== STATS ===== */
.stat-number {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

/* ===== TESTIMONIALS ===== */
.testimonial-quote-mark {
    font-size: 2rem;
    color: var(--blue);
    font-weight: 800;
    line-height: 0;
    vertical-align: -.3em;
    margin-right: 4px;
}
.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-light), var(--orange-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    color: var(--blue);
    flex-shrink: 0;
}
.testimonial-highlight {
    border-color: var(--blue) !important;
    background: var(--blue-bg) !important;
}
.testimonial-name-link:hover { color: var(--blue) !important; }

/* ===== CTA BANNER ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--blue) 0%, #1A6FAF 50%, var(--blue-dark) 100%);
    padding: 80px 60px;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
    pointer-events: none;
}
.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,107,53,.12) 0%, transparent 70%);
    pointer-events: none;
}

/* ===== FOOTER ===== */
.footer-link:hover { color: var(--blue) !important; }
.footer-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-sec);
    transition: all .3s ease;
    text-decoration: none;
}
.footer-social-icon:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-light);
}

/* =============================================
   BOTTOM APP BAR (Mobile/Tablet)
   Visibility controlled by Bootstrap: d-flex d-lg-none
   So NO display property here — Bootstrap handles show/hide
   ============================================= */
.bottom-app-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: space-around !important;
    padding: 6px 8px 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 20px rgba(0, 0, 0, .06);
}
.bottom-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--text-sec);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .2px;
    transition: color .2s ease;
    padding: 4px 8px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}
.bottom-bar-item i {
    font-size: 1.25rem;
    transition: transform .2s ease;
}
.bottom-bar-item:hover,
.bottom-bar-item.active {
    color: var(--blue);
}
.bottom-bar-item.active i {
    transform: scale(1.1);
}

/* Center CTA Button (Book a Call) */
.bottom-bar-cta {
    position: relative;
    margin-top: -20px;
    color: var(--blue);
}
.bottom-bar-cta-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), #1A6FAF);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 80, 140, .35);
    transition: all .3s ease;
}
.bottom-bar-cta-icon i {
    color: #fff;
    font-size: 1.3rem;
}
.bottom-bar-cta:hover .bottom-bar-cta-icon {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 80, 140, .45);
}
.bottom-bar-cta span {
    color: var(--blue);
    font-weight: 700;
    margin-top: 4px;
}

/* ===== RESPONSIVE TWEAKS ===== */
/* Tablet & Mobile — below Bootstrap lg (992px) */
@media (max-width: 991.98px) {
    .code-editor { transform: none; max-width: 100%; margin: 0 auto; }
    .code-editor:hover { transform: none; }
    body { padding-bottom: 80px; }
    .hero-section { padding: 40px 0 60px; }
}
@media (max-width: 768px) {
    .cta-banner { padding: 50px 24px; }
    .code-body { min-height: 280px; }
    .code-line { font-size: .72rem; }
    .ln { width: 32px; padding-right: 10px; margin-right: 8px; font-size: .65rem; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .cta-banner { margin-left: 12px !important; margin-right: 12px !important; }
    .code-body { min-height: 240px; }
    .code-line { font-size: .65rem; }
}