/* ---- Design tokens ---- */
:root {
    --brand: #389efb;
    --brand-dark: #1864ab;
    --ink: #4c535b;
    --ink-strong: #474d50;
    --muted: #727272;
    --accent: #5091da;
    --accent-2: #4a7cbf;
    --accent-3: #6cc2ff;
    --hotpink: #ff538d;
    --star: orange;

    --shadow-1: 0 2px 2px 2px rgba(65,112,150,.46);
    --shadow-2: 0 2px 2px 2px rgba(204,204,204,.46);
}

/* Optional: smoother text rendering on light backgrounds */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html, body { height: 100%; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#main-content {
    flex: 1 0 auto;      /* grows to fill remaining space */
}

p { color: var(--ink); }

/* Headings */
h1, h2 { color: rgba(36,157,255,.78); }
h3 { color: rgba(36,139,235,.78); }

/* ---- Navbar ---- */
.navbar {
    border-bottom: 1px solid #dedede;
    box-shadow: var(--shadow-1);
    transition: box-shadow .2s ease-out, background-color .2s ease-out;
    font-size: .9rem; /* small but consistent */
}

/* Use Bootstrap structure: .navbar-brand on <a>, not <p> */
.navbar-brand {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    text-transform: uppercase;
    padding-top: .4rem;
}

/* Nav links */
.navbar-light .navbar-nav .nav-link:hover { color: var(--accent); }
.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.active { color: var(--accent); }
.navbar-light .navbar-nav .nav-link.active:hover { color: var(--accent-2); }
.navbar-light .navbar-nav .nav-link.disabled { color: rgba(0,0,0,.3); }

.navParent { text-transform: uppercase; }

/* Brand text gradient */
.site-logo{
    font-weight: 800;
    font-size: 1.6rem;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.site-logo:hover { opacity: .85; text-decoration: none; }

/* ---- Hero / Showcase ---- */
.showcase {
    border-radius: 0;
    box-shadow: var(--shadow-1);
    transition: box-shadow .2s ease-out, background .2s ease-out;
    background:
            linear-gradient(rgba(4,5,8,.45), rgba(17,17,17,.57)),
            url("../img/covers/sllide_high.jpg") no-repeat center center fixed;
    background-size: cover;
}
.showcase h1 { color: var(--accent-3); font-size: 60px; font-weight: 700; }
.showcase p { color: #fff; font-weight: 700; }

/* ---- Section headings ---- */
.section-heading { margin: 20px 0 65px; text-align: center; }
.section-heading h2 { color: var(--ink-strong); }
.section-heading p { font-size: 14px; font-weight: 300; color: var(--muted); line-height: 20px; }

/* Big inline title stripe */
.title {
    color: #fff;
    display: inline-block;
    font-size: 40px;
    font-weight: 100;
    padding-top: 10px;
    margin-bottom: 44px;
    text-align: center;
    border-block: 1px solid #ccc; /* logical property for top/bottom */
    line-height: 1.2;
}

/* Blog cards */
.blog-post-card { box-shadow: var(--shadow-2); transition: box-shadow .2s ease-out; }
.blog-post-title {
    color: rgba(36,139,235,.78);
    display: inline-block;
    font-size: 20px;
    font-weight: 100;
    padding: 10px 0;
    margin-bottom: 44px;
    text-align: center;
    border-block: 1px solid #ccc;
    line-height: 1.2;
}
.blog-post-title a { text-decoration: none; color: inherit; }
img.blog-post-image { display: block; margin: 0 auto; padding-bottom: 2em; }

/* Avatar */
.avatar-round { border-radius: 50px; } /* replace #igor-image with class */

/* Quote band */
.quoteSection {
    background-color: var(--brand);
    box-shadow: var(--shadow-1);
    text-align: center;
}
.quoteSection p {
    color: #fff; font-weight: 700; font-size: 1.125rem; padding: 2rem;
}

/* Back to top */
.backToTop {
    display: none;
    position: fixed; bottom: 20px; right: 20px;
    background-color: rgba(55,122,210,.85);
    padding: 10px; border-radius: 100px; color: #fff;
}
.backToTop:hover { color: #fff; background-color: rgba(47,97,176,.85); text-decoration: none; }

/* Experience */
.experience { margin: 2rem; }
.experience h5 { color: var(--hotpink); }
.experience img { height: 40px; width: auto; }
.company-name { color: var(--accent-3); margin-bottom: 5px; }

/* Footer */
#footer { background: #fff; padding: 25px 0; color: #555; }
#footer .container { padding: 20px; }
#footer .copyright { font-size: 13px; margin: 10px 0 0; }
#footer .copyright a { color: var(--accent); }
#footer .social { text-align: right; margin-top: 22px; margin-bottom: 0; }
#footer .social li { display: inline-block; margin-right: 15px; }
#footer .social li a { font-size: 22px; color: var(--accent); }

/* Utilities */
.vertical-center { margin-block: auto; }
.page-down-btn { text-align: center; margin: 20px; }

/* Experience highlight band */
.experienceHighlight {
    background-color: var(--brand);
    padding-bottom: 20px; margin-bottom: 40px;
    box-shadow: var(--shadow-1);
}
.experienceHighlight p, .experienceHighlight i, .experienceHighlight h2 { color: #fff; text-align: center; }

/* Stars */
.fullStar { color: var(--star); }
.halfStar, .noStar { color: #b4b4b4; }
.halfStar {
    position: relative; display: inline-block; overflow: hidden; white-space: pre;
}
.halfStar::before {
    content: attr(data-content);
    position: absolute; inset: 0 auto 0 0; width: 50%;
    color: var(--star);
}

/* Skills layout: flex instead of floats */
#skills .container .row i { padding-right: 10px; }
.skillRow {
    display: flex; align-items: center; justify-content: space-between;
    gap: .5rem; margin-bottom: .5rem;
}
.skillTitle { color: #868e96; flex: 1 1 auto; }
.skillScore { flex: none; }

/* Contact CTA */
.contactMeFoot {
    background-color: var(--brand);
    box-shadow: var(--shadow-1);
    color: #fff;
    margin-top: 40px;
}

/* Page header */
.pageHeaderSection {
    padding-top: 40px;
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow-1);
}
.pageHeaderSection h2 {
    color: #fff; text-align: center; text-transform: uppercase;
    font-size: 36px; font-weight: 700;
}
.pageHeaderSection .breadcrumb {
    background: none; justify-content: center;
}
.pageHeaderSection .breadcrumb .active { font-weight: 600; }
.pageHeaderSection .breadcrumb li,
.pageHeaderSection .breadcrumb li a,
.pageHeaderSection .breadcrumb li a:hover,
.breadcrumb-item + .breadcrumb-item::before { color: #fff; }

/* Links */
.footer a:hover { text-decoration: none; }

/* Fancy HRs */
hr.hrStyle1 {
    border: 0; height: 1px;
    background-image: linear-gradient(to right, transparent, rgba(0,114,211,.75), transparent);
}
hr.hrStyle2 {
    border: 0; height: 1px;
    background-image: linear-gradient(to right, transparent, rgba(129,129,129,.75), transparent);
}

/* Messages/Errors */
.alertMessage { margin-top: 20px; }
.ds { display: none !important; }

/* Error pages */
.errorWrapper, .messageWrapper { padding: 140px 0; }
.errorWrapper h1, .messageWrapper h1 { color: var(--accent); line-height: 1; }
.errorWrapper h1 { font-size: 200px; }
.messageWrapper h1 { font-size: 75px; }

/* Tables and misc */
.startPageSection { margin-top: 40px; }
.startPageTable td {
    padding-top: 20px; padding-left: 20px; padding-bottom: 0;
    font-size: larger; font-weight: 600;
}

/* IP color blocks */
.yourIP p { font-weight: 700; font-size: larger; color: #00ea0c; text-align: center; }
.yourIP td { background-color: #6a6a6a; }
.btcColor { color: #f7931a; }
.usdColor { color: #5e8266; }

/* Buttons */
.btn { border-radius: 0; }
.btn-outline-info { color: #4faefb; border-color: #4faefb; }
.btn-outline-info:hover { background-color: #4faefb; border-color: #4faefb; }
.btn-info { background-color: var(--brand); border-color: var(--brand); }
.btn-info:hover { background-color: #378ae5; border-color: #378ae5; }
.btn-outline-light:hover { color: #596169; }

/* Code */
code { color: #5251ff; padding: .3rem .5rem; background-color: #dfe0e1; }

/* Search */
.search-result-container { padding: 10px 20px 20px; }
.search-form { margin-top: 10px; }
.search-result h3 { margin-bottom: 0; color: #378ae5; }
.search-result .search-link { color: #006621; }

/* ---- Motion accessibility ---- */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* ---------- Details Card (glassy + gradient border) ---------- */
.details-card {
    position: relative;
    padding: 18px 18px 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.75));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(56,158,251,.15);
    overflow: hidden;
}

.details-card::before {
    /* gradient border */
    content: "";
    position: absolute; inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, #389efb, #1864ab);
    -webkit-mask:
            linear-gradient(#000 0 0) content-box,
            linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; /* Chrome/Safari */
    mask-composite: exclude;     /* Firefox */
    pointer-events: none;
}

.details-card__header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
}

.details-heading {
    margin: 0;
    font-weight: 700;
    color: #389efb;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}

.details-dot {
    width: 8px; height: 8px; border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #6cc2ff, #389efb 60%, #1864ab);
    box-shadow: 0 0 10px rgba(56,158,251,.6);
}

/* Definition list */
.details-list dt {
    font-weight: 700;
    color: #4c535b;
    margin-bottom: .35rem;
}
.details-list dd {
    margin-bottom: .35rem;
    color: #555;
}

/* Flags inline and crisp */
.flag-item { display: inline-flex; align-items: center; gap: 6px; }
.flag-item img {
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,.18);
}

/* ---------- Chip-style tags ---------- */
.badge-tag {
    display: inline-flex; align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .8rem;
    line-height: 1;
    margin: 2px 6px 2px 0;
    background: linear-gradient(90deg, #389efb, #1864ab);
    color: #fff;
    box-shadow: 0 4px 12px rgba(56,158,251,.25);
    border: 1px solid rgba(255,255,255,.25);
}
.badge-tag--ghost {
    background: rgba(56,158,251,.1);
    color: #1864ab;
    border: 1px solid rgba(56,158,251,.25);
    box-shadow: none;
}

/* ---------- Dark mode polish ---------- */
@media (prefers-color-scheme: dark) {
    .details-card {
        background: linear-gradient(180deg, rgba(17,22,30,.8), rgba(17,22,30,.7));
        box-shadow: 0 10px 30px rgba(0,0,0,.35);
    }
    .details-list dt { color: #dfe6ee; }
    .details-list dd { color: #b5c0cb; }
    .badge-tag--ghost {
        background: rgba(56,158,251,.15);
        color: #6cc2ff;
        border-color: rgba(108,194,255,.3);
    }
}

/* ---------- Motion accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
    .details-card, .badge-tag { transition: none !important; }
}
/* Cover title with gradient glow */
.cover-title {
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ffffff, #6cc2ff, #389efb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    margin-bottom: .25em;
    text-shadow: 0 0 20px rgba(56,158,251,.4);
}

/* Animated underline under name */
.cover-underline {
    width: 120px;
    height: 4px;
    margin: 0 auto 20px;
    background: linear-gradient(90deg, #389efb, #6cc2ff);
    border-radius: 2px;
    animation: pulseLine 2s infinite;
}
@keyframes pulseLine {
    0%,100% { opacity: .3; transform: scaleX(.9); }
    50% { opacity: 1; transform: scaleX(1.1); }
}

/* Subtitle styling */
.cover-subtitle {
    font-weight: 500;
    color: #6cc2ff;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(56,158,251,.3);
}

/* Summary */
.cover-summary {
    color: #e9ecef;
    font-size: 1.15rem;
    max-width: 720px;
    margin: 0 auto 2rem;
}

/* Welcome line */
.cover-welcome {
    color: #6cc2ff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 25px rgba(56,158,251,.5);
}

/* Call to Action button */
.btn-cover {
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 600;
    background: linear-gradient(90deg, #389efb, #1864ab);
    border: none;
    color: #fff;
    transition: all .3s ease;
    box-shadow: 0 6px 20px rgba(56,158,251,.3);
}
.btn-cover:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(56,158,251,.45);
    text-decoration: none;
}

/* Down arrow */
.cover-down {
    color: #ffffff;
    transition: transform .3s ease, opacity .3s ease;
}
.page-down-btn a:hover .cover-down {
    transform: translateY(5px);
    opacity: .8;
}



.footer {
    background: #fff;
    border-top: 1px solid #e6e6e6;
    font-size: 0.95rem;
}

.footer a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer a:hover {
    opacity: 0.85;
    text-decoration: none;
}

.backToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    z-index: 1050;
}
#footer {
    margin-top: auto;     /* pushes footer down when content is short */
    /* optional thin styling */
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    font-size: 0.85rem;
    padding: 0.5rem 0;
}