/* =====================================================================
   Design refresh layer — loaded after every other stylesheet.
   Palette anchors to the portfolio hero images: deep navy surfaces
   with indigo/violet glows. Light and dark modes share one accent.
   ===================================================================== */

:root {
    --accent: #5B7CFA;
    --accent-strong: #4361EE;
    --accent-soft: rgba(91, 124, 250, 0.12);
    --accent-border: rgba(91, 124, 250, 0.35);
    --violet: #8B5CF6;
    --radius-card: 20px;
    --radius-control: 14px;
    --border-subtle: rgba(15, 23, 42, 0.08);
    --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-card-hover: 0 2px 4px rgba(15, 23, 42, 0.06), 0 16px 40px rgba(15, 23, 42, 0.12);

    /* retune the template's variable set */
    --primary-color: #F4F6FB;
    --one: #4361EE;
    --one-background: #EEF1F9;
    --card-background: #FFFFFF;
    --card-text: #0E1526;
    --card-sub-text: #5A6478;
    --uiux-text-hover: #4361EE;
}

body.dark-mode {
    --accent: #7C93FF;
    --accent-strong: #5B7CFA;
    --accent-soft: rgba(124, 147, 255, 0.14);
    --accent-border: rgba(124, 147, 255, 0.38);
    --border-subtle: rgba(148, 163, 216, 0.14);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.5), 0 18px 44px rgba(0, 0, 0, 0.5);

    --primary-color: #070B14;
    --one: #7C93FF;
    --one-background: #111A2E;
    --card-background: #0C1322;
    --card-text: #EDF1FA;
    --card-sub-text: #9AA5BC;
    --uiux-text-hover: #7C93FF;
}

/* Bootstrap was removed; the one utility class the markup still uses. */
.me-2 {
    margin-right: 0.5rem;
}

/* ------------------------------ Typography --------------------------- */

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.font_w_font_s,
.profile_name,
.section_title,
.intro,
.chat_header_title,
.project_name,
.stack_title,
.leadership_title,
.ui_ux,
.counter2 {
    font-family: 'Space Grotesk', 'Montserrat', sans-serif;
}

.section_title {
    font-size: 38px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.passionate {
    font-size: 18px;
    line-height: 1.65;
    padding-bottom: 28px;
}

::selection {
    background: var(--accent);
    color: #fff;
}

/* ------------------------- Ambient background ------------------------ */
/* Replaces the three.js low-poly canvas: fixed, soft corner glows that
   echo the gradient treatment of the portfolio hero images. */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 620px at 6% -4%, rgba(91, 124, 250, 0.16), transparent 62%),
        radial-gradient(1000px 700px at 102% 104%, rgba(139, 92, 246, 0.13), transparent 62%),
        radial-gradient(700px 500px at 88% 12%, rgba(91, 124, 250, 0.07), transparent 60%);
}

body.dark-mode::before {
    background:
        radial-gradient(900px 620px at 6% -4%, rgba(91, 124, 250, 0.22), transparent 62%),
        radial-gradient(1000px 700px at 102% 104%, rgba(139, 92, 246, 0.18), transparent 62%),
        radial-gradient(700px 500px at 88% 12%, rgba(76, 201, 240, 0.06), transparent 60%);
}

#canvas {
    display: none;
}

/* ------------------------------- Sidebar ----------------------------- */

/* Slim line icons (Remix Icon) with a neon-blue glow. The old <img>
   icons were recolored with CSS filters — neutralize those rules so
   they don't distort the font glyphs. */

:root {
    --nav-icon: #155EEA;
}

body.dark-mode {
    --nav-icon: #2E86FF;
}

i.nav_menu_icon {
    filter: none;
    font-size: 22px;
    line-height: 1;
    color: var(--nav-icon);
    transition: color 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}

.current-tab a,
.current-tab img,
.icetab:hover .icons2 {
    filter: none !important;
}

.current-tab i.nav_menu_icon,
.sidebar .nav-links li a:hover i.nav_menu_icon,
.icetab:hover i.sidenav_img {
    opacity: 1;
}

i.sidenav_img {
    font-size: 20px;
}

.sidebar .nav-links li a {
    border-radius: 14px;
    transition: background 0.25s ease;
}

.sidebar .nav-links li a:hover {
    filter: none;
    background: var(--accent-soft);
}

.sidebar .nav-links li .sub-menu {
    background: var(--card-background);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
}

.sidebar .nav-links li .sub-menu a {
    color: var(--card-text);
}

/* ---------------------------- Profile card --------------------------- */
/* Drop the phone-frame silhouette for a clean, modern rounded card. */

.profile_card,
.profile_img,
.imgBox,
.imgBox img,
.imgBox video {
    border-radius: 28px;
}

.profile_card {
    border: 1px solid var(--border-subtle);
    background: var(--card-background);
    box-shadow: var(--shadow-card);
}

.bio_contain {
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(7, 11, 20, 0.10) 0%, rgba(7, 11, 20, 0.55) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.profile_name {
    font-size: 42px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.designer {
    color: #C9D4F5;
    font-weight: 600;
    letter-spacing: 0.14em;
    font-size: 15px;
}

/* ---------------------------- Content panel -------------------------- */

.right_card_main,
.tab_section {
    border-radius: var(--radius-card);
}

.intro {
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 999px;
}

/* ------------------------------- Buttons ----------------------------- */

@property --btn-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.download_cv {
    position: relative;
    background: linear-gradient(135deg, var(--accent-strong) 0%, var(--violet) 130%);
    color: #fff;
    border: none;
    border-radius: var(--radius-control);
    font-size: 17px;
    font-weight: 600;
    padding: 16px 28px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

/* Animated border: a thin ring behind the button with two bright
   segments that travel around it. */
.download_cv::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: calc(var(--radius-control) + 2px);
    background: conic-gradient(from var(--btn-angle),
            rgba(91, 124, 250, 0.30) 0deg,
            #4CC9F0 80deg,
            rgba(91, 124, 250, 0.30) 160deg,
            var(--accent) 260deg,
            rgba(91, 124, 250, 0.30) 360deg);
    animation: btn_border_spin 4s linear infinite;
}

@keyframes btn_border_spin {
    to {
        --btn-angle: 360deg;
    }
}

@media (prefers-reduced-motion: reduce) {
    .download_cv::before {
        animation: none;
    }
}

.download_cv:hover {
    background: linear-gradient(135deg, var(--accent-strong) 0%, var(--violet) 130%);
    color: #fff;
    transform: translateY(-2px);
}

/* ------------------------------ Tags & chips ------------------------- */

.tech_tag {
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    transition: border-color 0.2s ease;
}

.tech_tag:hover {
    border-color: var(--accent-border);
}

/* -------------------------------- Cards ------------------------------ */

.service_box,
.leadership_card,
.stack_group,
.counter {
    border: 1px solid var(--border-subtle);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service_box {
    border-radius: var(--radius-card);
    padding: 26px;
}

.counter {
    padding: 20px 24px;
    border-radius: var(--radius-card);
}

.counter2 {
    color: var(--accent);
}

.service_box:hover,
.leadership_card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-border);
    box-shadow: var(--shadow-card-hover);
}

.leadership_card {
    border-left: 3px solid var(--accent);
    border-radius: 12px 16px 16px 12px;
}

.stack_group {
    background: var(--one-background);
    border-radius: var(--radius-card);
    padding: 18px 20px;
    margin-bottom: 14px;
}

.expertise_icon {
    color: var(--accent);
    font-size: 30px;
}

/* --------------------------- Portfolio grid -------------------------- */

.content_portfolio,
.content-image {
    border-radius: 16px;
}

.content_portfolio {
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.content_portfolio:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.content_portfolio .content-overlay {
    background: linear-gradient(200deg, rgba(67, 97, 238, 0.82) 0%, rgba(7, 11, 20, 0.88) 90%);
    border-radius: 16px;
}

.project_name {
    letter-spacing: -0.01em;
}

/* ------------------------------ Contact form ------------------------- */

.form__input {
    background: var(--one-background);
    border: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    border-radius: var(--radius-control);
    padding: 14px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__input:focus,
.form__input:focus:invalid {
    border: 1px solid var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form__label {
    position: static;
    color: var(--card-sub-text);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    padding-bottom: 8px;
}

.form__btn,
.form__btn:hover {
    border: none;
    border-radius: var(--radius-control);
}

/* ------------------------------- Pop-ups ----------------------------- */

.content2 {
    background: var(--card-background);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
}

.pop-up-video {
    border-radius: 14px;
}

.content2 .blandit_text {
    margin-bottom: 14px;
    line-height: 1.65;
}

/* ------------------------------ Scrollbar ---------------------------- */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-border);
    border-radius: 999px;
    border: 2px solid var(--primary-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* --------------------------- Scroll reveal --------------------------- */
/* Replace the template's fade_up (translateY(-100%) + blur + 2s), which
   made unrevealed elements overlap the content above them. Elements now
   rise gently from just below their resting spot. */

.fade_up {
    opacity: 0;
    filter: none;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade_up.show {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade_up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------------------------- Accessibility -------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
