/* =========================================================
   Miyoji Productions — custom styles (Bootstrap 5.3 dark mode)
   Palette: logo navy #000066, electric blue #6FB8FF and beam pink
   #E08AB4 sampled from the site background artwork.
   ========================================================= */

:root,
[data-bs-theme="dark"] {
    --mp-navy: #000066;             /* logo */
    --mp-navy-2: #0a0f3d;
    --mp-ink: #05060f;              /* deepest background */
    --mp-blue: #6fb8ff;             /* electric glow */
    --mp-blue-2: #3d7bff;
    --mp-pink: #e08ab4;             /* light-beam accent */
    --mp-glass: rgba(10, 14, 40, .62);
    --mp-glass-border: rgba(143, 180, 255, .18);

    --bs-body-bg: var(--mp-ink);
    --bs-body-color: #dfe6f5;
    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-secondary-color: rgba(223, 230, 245, .7);
    --bs-emphasis-color: #fff;
    --bs-heading-color: #fff;
    --bs-border-color: rgba(143, 180, 255, .16);
    --bs-link-color: var(--mp-blue);
    --bs-link-color-rgb: 111, 184, 255;
    --bs-link-hover-color: #fff;
    --bs-link-hover-color-rgb: 255, 255, 255;
    --bs-primary: var(--mp-blue-2);
    --bs-primary-rgb: 61, 123, 255;

    --bg-art: url("../img/background.jpg");
}

/* ---------- Backdrop: the supplied artwork, fixed behind every page ---------- */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--mp-ink);
    position: relative;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(5, 6, 15, .55) 0%, rgba(5, 6, 15, .78) 60%, rgba(5, 6, 15, .9) 100%),
        var(--bg-art) 72% 42% / cover no-repeat;
}
::selection { background: var(--mp-blue-2); color: #fff; }

/* ---------- Type ---------- */
h1, h2, h3, h4, h5, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: "Exo 2", "Inter", sans-serif;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #fff;
}
.display-4, .display-5, .display-6 { font-weight: 300; }
.display-4 strong, .display-5 strong, .display-6 strong, h1 strong { font-weight: 700; }
.mono, .eyebrow { font-family: "Share Tech Mono", ui-monospace, monospace; }
.eyebrow {
    display: inline-block;
    font-size: .95rem;
    letter-spacing: .08em;
    text-transform: lowercase;
    color: var(--mp-blue);
    margin-bottom: .5rem;
}
.text-glow {
    background: linear-gradient(90deg, var(--mp-blue) 0%, #b9d7ff 50%, var(--mp-pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.text-blue { color: var(--mp-blue) !important; }

.section-heading { max-width: 760px; }
.heading-line {
    display: block;
    width: 90px;
    height: 3px;
    margin-top: 1rem;
    background: linear-gradient(90deg, var(--mp-blue), var(--mp-pink));
    box-shadow: 0 0 12px rgba(111, 184, 255, .7);
}
.section-heading.text-center .heading-line { margin-left: auto; margin-right: auto; }

/* ---------- Glass panels ---------- */
.glass {
    background: var(--mp-glass);
    border: 1px solid var(--mp-glass-border);
    border-radius: 1rem;
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255,255,255,.06);
}

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: .6rem; }
.btn-glow {
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-focus-shadow-rgb: 111, 184, 255;
    background: linear-gradient(135deg, var(--mp-blue-2) 0%, #1a2fbf 50%, var(--mp-navy) 100%);
    box-shadow: 0 0 0 1px rgba(111,184,255,.45), 0 8px 24px rgba(61, 123, 255, .35);
    transition: box-shadow .2s ease, transform .2s ease;
}
.btn-glow:hover, .btn-glow:focus-visible {
    background: linear-gradient(135deg, #5a92ff 0%, #2a40d6 50%, #0b0b80 100%);
    box-shadow: 0 0 0 1px rgba(111,184,255,.8), 0 10px 30px rgba(111, 184, 255, .5);
    transform: translateY(-1px);
}
.btn-outline-light { --bs-btn-border-color: rgba(255,255,255,.4); --bs-btn-hover-color: var(--mp-navy); }
.btn-filter {
    --bs-btn-color: #dfe6f5;
    --bs-btn-border-color: var(--mp-glass-border);
    --bs-btn-hover-bg: rgba(111,184,255,.12);
    --bs-btn-hover-border-color: var(--mp-blue);
    --bs-btn-hover-color: #fff;
    background: rgba(10, 14, 40, .55);
    border-radius: 2rem;
}
.btn-filter.active { background: var(--mp-blue-2); border-color: var(--mp-blue-2); color: #fff; }

/* ---------- Navbar ---------- */
.site-nav {
    background: rgba(5, 6, 20, .72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--mp-glass-border);
}
.brand-mark { height: 44px; width: 44px; filter: drop-shadow(0 0 8px rgba(111,184,255,.55)); }
.brand-name { font-family: "Exo 2", sans-serif; font-weight: 700; font-size: 1.3rem; color: #fff; letter-spacing: .01em; }
.brand-name span { font-weight: 300; color: var(--mp-blue); }
.site-nav .nav-link { font-weight: 500; color: rgba(223,230,245,.85); padding-left: .85rem !important; padding-right: .85rem !important; }
.site-nav .nav-link:hover, .site-nav .nav-link:focus { color: #fff; }
.site-nav .nav-link.active { color: var(--mp-blue) !important; }
.dropdown-menu {
    --bs-dropdown-bg: rgba(8, 11, 32, .96);
    --bs-dropdown-border-color: var(--mp-glass-border);
    --bs-dropdown-link-hover-bg: rgba(111,184,255,.14);
    --bs-dropdown-link-active-bg: var(--mp-blue-2);
    --bs-dropdown-border-radius: .75rem;
    backdrop-filter: blur(14px);
}
.dropdown-item i { color: var(--mp-blue); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {               /* the artwork at full strength behind the hero */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(5,6,15,.92) 0%, rgba(5,6,15,.7) 40%, rgba(5,6,15,.1) 75%),
        linear-gradient(0deg, var(--mp-ink) 0%, transparent 25%),
        var(--bg-art) 85% 42% / cover no-repeat;
}
.hero { z-index: 0; }
.min-vh-hero { min-height: clamp(560px, calc(100vh - 80px), 860px); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 300; line-height: 1.04; }
.hero h1 strong { font-weight: 700; }
.hero .lead { color: rgba(223,230,245,.85); max-width: 36rem; }
.hero-code {
    font-family: "Share Tech Mono", monospace;
    font-size: .9rem;
    color: rgba(111,184,255,.75);
}
.hero-code .cursor { display: inline-block; width: .55em; height: 1em; background: var(--mp-blue); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-code .cursor { animation: none; } }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .35rem .8rem;
    border-radius: 2rem;
    background: rgba(10,14,40,.6);
    border: 1px solid var(--mp-glass-border);
    font-size: .9rem;
    color: rgba(223,230,245,.9);
}
.chip i { color: var(--mp-blue); }

/* ---------- Page banner ---------- */
.page-banner { position: relative; z-index: 0; border-bottom: 1px solid var(--mp-glass-border); }
.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(5,6,15,.9) 0%, rgba(5,6,15,.55) 55%, rgba(5,6,15,.2) 100%),
        var(--bg-art) 80% 38% / cover no-repeat;
}
.page-banner .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.4); --bs-breadcrumb-item-active-color: rgba(255,255,255,.65); font-size: .9rem; }
.page-banner .breadcrumb a { color: var(--mp-blue); text-decoration: none; }
.banner-sub { color: rgba(223,230,245,.85); max-width: 40rem; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; position: relative; }
.section-tint { background: rgba(5, 6, 18, .55); border-top: 1px solid var(--mp-glass-border); border-bottom: 1px solid var(--mp-glass-border); }

/* ---------- Service cards ---------- */
.service-card {
    display: block;
    height: 100%;
    padding: 2rem;
    color: inherit;
    text-decoration: none;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.service-card:hover {
    color: inherit;
    transform: translateY(-5px);
    border-color: rgba(111,184,255,.55);
    box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 30px rgba(61,123,255,.25);
}
.service-icon {
    display: inline-grid;
    place-items: center;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 1rem;
    font-size: 1.6rem;
    color: #fff;
    background: linear-gradient(135deg, var(--mp-blue-2), var(--mp-navy));
    box-shadow: 0 0 0 1px rgba(111,184,255,.45), 0 0 20px rgba(61,123,255,.45);
}
.service-card h3 { font-size: 1.45rem; margin: 1.25rem 0 .6rem; }
.service-card .more { color: var(--mp-blue); font-weight: 600; font-size: .95rem; }
.service-card .more i { display: inline-block; transition: transform .2s ease; }
.service-card:hover .more i { transform: translateX(4px); }
.service-num { font-family: "Share Tech Mono", monospace; color: rgba(111,184,255,.6); font-size: .9rem; float: right; }

/* ---------- Media placeholders (screenshots / photos) ---------- */
.media { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: .75rem; }
.media-placeholder {
    position: relative;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 70% 30%, rgba(111,184,255,.25), transparent 55%),
        linear-gradient(135deg, #0d1650 0%, #070a24 100%);
    border: 1px solid var(--mp-glass-border);
    color: rgba(111,184,255,.8);
    font-size: 3.2rem;
    overflow: hidden;
}
.media-placeholder::after {   /* faint grid like the artwork */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(111,184,255,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(111,184,255,.07) 1px, transparent 1px);
    background-size: 28px 28px;
}
.media-placeholder .ph-bar { position: absolute; top: 0; left: 0; right: 0; height: 26px; background: rgba(255,255,255,.06); display: flex; gap: 6px; align-items: center; padding-left: 12px; z-index: 1; }
.media-placeholder .ph-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); }
.media-placeholder > i { position: relative; z-index: 1; filter: drop-shadow(0 0 12px rgba(111,184,255,.6)); }

/* ---------- Portfolio ---------- */
.project-card { overflow: hidden; height: 100%; transition: transform .25s ease, border-color .25s ease; }
.project-card:hover { transform: translateY(-4px); border-color: rgba(111,184,255,.55); }
.project-card .media { border-radius: 1rem 1rem 0 0; border: 0; }
.project-card .tag {
    font-family: "Share Tech Mono", monospace;
    font-size: .8rem;
    color: var(--mp-pink);
    letter-spacing: .05em;
}
.portfolio-col.is-hidden { display: none; }

/* ---------- Process ---------- */
.step { padding: 1.75rem; height: 100%; }
.step-num { font-family: "Share Tech Mono", monospace; font-size: 2.2rem; line-height: 1; color: var(--mp-blue); text-shadow: 0 0 18px rgba(111,184,255,.6); }

/* ---------- Stats ---------- */
.stat-num { font-family: "Exo 2", sans-serif; font-weight: 700; font-size: 3rem; line-height: 1; }
.stat-label { font-family: "Share Tech Mono", monospace; color: var(--mp-blue); font-size: .95rem; }

/* ---------- Services page ---------- */
.service-nav { position: sticky; top: 72px; z-index: 1010; background: rgba(5,6,20,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--mp-glass-border); }
.service-nav .nav-link { color: rgba(223,230,245,.8); font-weight: 500; white-space: nowrap; }
.service-nav .nav-link:hover { color: #fff; }
.service-nav .nav-link i { color: var(--mp-blue); }
.service-block { scroll-margin-top: 140px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .6rem 1.5rem; }
.check-list li { position: relative; padding-left: 1.75rem; }
.check-list li::before { content: "\F633"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .05rem; color: var(--mp-blue); }
.service-feature { padding: 2.5rem; }
.service-feature .service-icon { width: 4.5rem; height: 4.5rem; font-size: 2rem; }

/* Hosting plans */
.plan { padding: 2.25rem; height: 100%; display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: var(--mp-blue); box-shadow: 0 0 0 1px var(--mp-blue), 0 0 40px rgba(61,123,255,.35); }
.plan .badge-featured { position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, var(--mp-blue-2), var(--mp-pink)); font-family: "Share Tech Mono", monospace; font-weight: 400; padding: .4rem .9rem; border-radius: 2rem; }
.plan-price { font-family: "Exo 2", sans-serif; font-weight: 700; font-size: 3rem; line-height: 1; color: #fff; }
.plan-price small { font-size: 1rem; font-weight: 400; color: var(--bs-secondary-color); }
.plan ul { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.plan li { padding: .5rem 0; border-bottom: 1px dashed var(--mp-glass-border); }
.plan li i { color: var(--mp-blue); margin-right: .5rem; }

/* Testimonials */
.quote-card { padding: 2rem; height: 100%; }
.quote-card .bi-quote { font-size: 2.5rem; color: var(--mp-blue); line-height: 1; }
.quote-card blockquote { color: #fff; font-size: 1.05rem; }

/* Forms */
.form-control, .form-select { background-color: rgba(3, 5, 18, .7); border-color: rgba(143,180,255,.25); border-radius: .6rem; }
.form-control:focus, .form-select:focus { background-color: rgba(3, 5, 18, .9); border-color: var(--mp-blue); box-shadow: 0 0 0 .25rem rgba(111,184,255,.2); }
.form-label { font-weight: 500; }
.form-check-input:checked { background-color: var(--mp-blue-2); border-color: var(--mp-blue-2); }
.form-panel { padding: 2rem; }
@media (min-width: 992px) { .form-panel { padding: 2.75rem; } }
.contact-list li { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1.1rem; }
.contact-list .service-icon { width: 2.8rem; height: 2.8rem; font-size: 1.15rem; border-radius: .75rem; flex-shrink: 0; }

/* Accordion */
.accordion {
    --bs-accordion-bg: rgba(10, 14, 40, .6);
    --bs-accordion-border-color: var(--mp-glass-border);
    --bs-accordion-active-bg: rgba(61, 123, 255, .18);
    --bs-accordion-active-color: #fff;
    --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(111,184,255,.2);
    backdrop-filter: blur(10px);
}
.accordion-button { font-weight: 600; }

/* CTA */
.cta-panel { padding: 3rem; position: relative; overflow: hidden; }
.cta-panel::after {
    content: "";
    position: absolute;
    right: -10%;
    top: -60%;
    width: 50%;
    height: 220%;
    background: linear-gradient(90deg, transparent, rgba(224,138,180,.18), rgba(111,184,255,.22), transparent);
    transform: rotate(12deg);
    pointer-events: none;
}
@media (max-width: 575.98px) { .cta-panel { padding: 2rem 1.5rem; } }

/* Footer */
.site-footer { background: rgba(3, 4, 12, .9); border-top: 1px solid var(--mp-glass-border); backdrop-filter: blur(8px); }
.footer-mark { height: 52px; width: 52px; filter: drop-shadow(0 0 8px rgba(111,184,255,.5)); }
.footer-heading { font-family: "Share Tech Mono", monospace; font-weight: 400; font-size: 1rem; color: var(--mp-blue); margin-bottom: 1rem; }
.site-footer a { color: rgba(223,230,245,.75); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links li { margin-bottom: .45rem; }
.footer-contact li { display: flex; gap: .6rem; margin-bottom: .55rem; }
.footer-contact i { color: var(--mp-blue); }

/* Alerts */
.alert-success { --bs-alert-bg: rgba(25,135,84,.15); --bs-alert-color: #8fdcb5; --bs-alert-border-color: rgba(25,135,84,.45); }
.alert-danger { --bs-alert-bg: rgba(220,53,69,.15); --bs-alert-color: #f2a5aa; --bs-alert-border-color: rgba(220,53,69,.45); }

/* Logo showcase (about page) */
.logo-tile { background: #fff; border-radius: 1rem; padding: 2rem; display: grid; place-items: center; }
.logo-tile img { width: 100%; max-width: 220px; height: auto; }

/* Phones/tablets: darker overlay so hero text stays readable over the bright globes */
@media (max-width: 991.98px) {
    .hero::before {
        background:
            linear-gradient(180deg, rgba(5,6,15,.6) 0%, rgba(5,6,15,.82) 45%, rgba(5,6,15,.92) 100%),
            var(--bg-art) 88% 30% / cover no-repeat;
    }
    .page-banner::before {
        background:
            linear-gradient(180deg, rgba(5,6,15,.75), rgba(5,6,15,.88)),
            var(--bg-art) 85% 35% / cover no-repeat;
    }
}
