/* ============================================================
   style.css — Main stylesheet for the public website
   Premium, modern, clean, responsive design
   Developer: gsmhimelbd.com
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #4f46e5;        /* indigo */
    --primary-dark: #4338ca;
    --accent: #0ea5e9;         /* sky blue */
    --accent-2: #22c55e;       /* green */
    --dark: #0f172a;           /* slate-900 */
    --dark-2: #1e293b;         /* slate-800 */
    --light: #f8fafc;
    --muted: #64748b;
    --radius: 1rem;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, .10);
    --shadow-lg: 0 20px 60px rgba(79, 70, 229, .18);
    --gradient: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--dark);
    background-color: #fff;
    padding-top: 72px; /* space for fixed navbar */
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { color: var(--dark); }

.text-accent { color: var(--accent) !important; }

a { text-decoration: none; }

code {
    background: rgba(79, 70, 229, .08);
    color: var(--primary);
    border-radius: .35rem;
    padding: .1rem .4rem;
}

/* ---------- Preloader ---------- */
#preloader {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .35s ease, visibility .35s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }

/* ---------- Navbar ---------- */
.navbar {
    background: rgba(15, 23, 42, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(15, 23, 42, .25);
    padding-top: .75rem;
    padding-bottom: .75rem;
    transition: background .3s ease;
}
.navbar .nav-link {
    color: #cbd5e1;
    font-weight: 500;
    margin: 0 .25rem;
    padding: .45rem .9rem;
    border-radius: .6rem;
    transition: color .2s ease, background .2s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: #fff; background: rgba(255, 255, 255, .08); }

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: .7rem;
    background: var(--gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 6px 16px rgba(79, 70, 229, .4);
}
.brand-text { font-weight: 700; font-size: 1.15rem; color: #fff; letter-spacing: .2px; }

/* Accent buttons */
.btn-accent {
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: .7rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(79, 70, 229, .35);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-accent:hover,
.btn-accent:focus { color: #fff; filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(79, 70, 229, .45); }
.btn-accent:disabled { opacity: .75; transform: none; }

/* ---------- Hero ---------- */
.hero-section {
    min-height: 62vh;
    background: var(--gradient);
    background-attachment: fixed;
    color: #fff;
    padding: 5rem 0 6rem;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.5), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,.4), transparent),
        radial-gradient(3px 3px at 60% 20%, rgba(255,255,255,.45), transparent),
        radial-gradient(2px 2px at 80% 60%, rgba(255,255,255,.5), transparent),
        radial-gradient(2px 2px at 90% 80%, rgba(255,255,255,.4), transparent);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 2rem;
    padding: .4rem 1.1rem;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}
.hero-title {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, .2);
    margin-bottom: .75rem;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, .9);
    margin-bottom: 2.2rem;
}

/* ---------- IMEI search box ---------- */
.imei-search-form { max-width: 640px; width: 100%; }

.imei-search-form .input-group {
    background: #fff;
    border-radius: 1.1rem;
    padding: .4rem;
    box-shadow: var(--shadow-lg);
}
.imei-search-form .input-group-text {
    background: transparent;
    border: none;
    font-size: 1.3rem;
    color: var(--primary);
    padding-left: 1.1rem;
}
.imei-search-form .form-control {
    border: none;
    box-shadow: none;
    font-size: 1.05rem;
    padding: .7rem .5rem;
    background: transparent;
}
.imei-search-form .form-control:focus { outline: none; }
.imei-search-form .btn-accent {
    border-radius: .85rem;
    padding: .75rem 1.6rem;
    font-size: 1.05rem;
    white-space: nowrap;
}
.imei-search-form .form-hint { color: rgba(255, 255, 255, .85); font-size: .85rem; }

/* Errors + results */
#imeiError { color: #ffd6d6; font-size: .9rem; margin-top: .5rem; }
#imeiError::before { content: "\26A0\FE0F  "; }

.result-section { padding: 3.5rem 0 4rem; }

/* ---------- Result cards ---------- */
.result-card {
    border: none;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.result-card .card-header {
    background: var(--gradient);
    color: #fff;
    border: none;
    padding: 1.2rem 1.5rem;
}
.result-header-title { font-size: 1.25rem; font-weight: 700; margin: 0; color: #fff; }

.result-summary { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem 1rem;
    border-radius: 2rem;
    font-size: .85rem;
    font-weight: 700;
}
.status-pill.success { background: rgba(34, 197, 94, .15); color: #16a34a; }
.status-pill.warning { background: rgba(245, 158, 11, .15); color: #d97706; }
.status-pill.danger  { background: rgba(239, 68, 68, .15); color: #dc2626; }
.status-pill.info    { background: rgba(14, 165, 233, .15); color: #0284c7; }

.info-card {
    border: 1px solid #eef2f7;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
}
.info-card .card-body { padding: 1.25rem; }
.info-title {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: .25rem;
}
.info-value { font-size: 1.05rem; font-weight: 600; color: var(--dark); word-break: break-word; }

/* Attribute table */
.attr-table td {
    padding: .6rem .9rem;
    border-color: #eef2f7;
    font-size: .95rem;
}
.attr-table tr td:first-child {
    color: var(--muted);
    font-weight: 600;
    width: 40%;
    background: #f8fafc;
}

/* Result error box */
.result-error {
    border-radius: 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 1.2rem 1.4rem;
}
.result-error .icon { font-size: 1.6rem; }

/* ---------- Section helpers ---------- */
.section-head { max-width: 700px; margin-left: auto; margin-right: auto; }
.section-tag {
    display: inline-block;
    background: rgba(79, 70, 229, .1);
    color: var(--primary);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .35rem 1rem;
    border-radius: 2rem;
    margin-bottom: .8rem;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.section-sub { font-size: 1.05rem; }

/* ---------- Feature cards ---------- */
.features-section { background: #fff; }
.feature-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: var(--radius);
    padding: 1.8rem 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(79, 70, 229, .25); }
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    background: rgba(79, 70, 229, .1);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.1rem;
}
.feature-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.feature-desc { color: var(--muted); font-size: .95rem; }

/* ---------- How it works ---------- */
.how-section { background: var(--light); }
.step-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.step-number {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(79, 70, 229, .35);
}
.step-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.step-desc { color: var(--muted); font-size: .95rem; }
.step-arrow { position: absolute; top: 50%; right: -1.2rem; transform: translateY(-50%); color: var(--primary); font-size: 1.5rem; z-index: 2; }

/* ---------- Stats ---------- */
.stats-section { background: var(--gradient); color: #fff; }
.stat-number { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: #fff; }
.stat-label { color: rgba(255, 255, 255, .8); font-weight: 600; }

/* ---------- Tools ---------- */
.tool-card {
    display: block;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: var(--radius);
    padding: 1.8rem 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
    color: var(--dark);
}
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); color: var(--dark); }
.tool-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    background: rgba(14, 165, 233, .1);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.tool-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.tool-desc { color: var(--muted); font-size: .9rem; }
.tool-link { color: var(--primary); font-weight: 600; font-size: .9rem; }
.tool-link i { transition: transform .2s ease; }
.tool-card:hover .tool-link i { transform: translateX(4px); }

/* ---------- CTA ---------- */
.cta-section { background: var(--light); }
.cta-box {
    background: var(--gradient);
    border-radius: 1.5rem;
    padding: 3.5rem 2rem;
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.cta-title { color: #fff; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-text { color: rgba(255, 255, 255, .9); margin-bottom: 1.5rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    background: var(--gradient);
    color: #fff;
    padding: 4.5rem 0 5rem;
    position: relative;
}
.page-hero::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 50px;
    background: #fff;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.page-hero-title { color: #fff; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .5rem; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.6); }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .85); }
.page-hero .breadcrumb .active { color: #fff; }

/* ---------- FAQ ---------- */
.faq-accordion .accordion-item {
    border: 1px solid #eef2f7;
    border-radius: .9rem !important;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.faq-accordion .accordion-button {
    font-weight: 600;
    background: #fff;
    color: var(--dark);
    padding: 1.1rem 1.4rem;
}
.faq-accordion .accordion-button:not(.collapsed) { color: var(--primary); background: #f5f5ff; }
.faq-accordion .accordion-body { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-info li { display: flex; align-items: center; margin-bottom: 1rem; color: var(--dark); font-weight: 500; }

/* ---------- Social links ---------- */
.social-links { display: flex; gap: .6rem; }
.social-link {
    width: 40px;
    height: 40px;
    border-radius: .6rem;
    background: rgba(255, 255, 255, .1);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.social-link:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 3.5rem 0 0;
}
.site-footer .brand-text { color: #fff; }
.footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 1.1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: #94a3b8; transition: color .2s ease, padding-left .2s ease; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-text { font-size: .95rem; line-height: 1.7; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { margin-bottom: .6rem; font-size: .95rem; }
.footer-contact a { color: #94a3b8; }
.footer-contact a:hover { color: #fff; }
.footer-note {
    background: rgba(255, 255, 255, .05);
    border-radius: .6rem;
    padding: .6rem .9rem;
    font-size: .85rem;
}
.footer-divider { border-color: rgba(255, 255, 255, .1); margin: 2rem 0 1.2rem; }
.footer-bottom { padding-bottom: 1.4rem; font-size: .9rem; }
.footer-bottom a { color: var(--accent); }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    width: 44px;
    height: 44px;
    border-radius: .8rem;
    border: none;
    background: var(--gradient);
    color: #fff;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Forms ---------- */
.form-control, .form-select {
    border-radius: .7rem;
    padding: .65rem .9rem;
    border-color: #dbe3ef;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .12);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .5s ease both; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 767.98px) {
    body { padding-top: 64px; }
    .hero-section { padding: 3.5rem 0 4.5rem; }
    .imei-search-form .btn-accent { padding: .7rem 1.1rem; }
    .step-arrow { display: none !important; }
}
