/* ═══════════════════════════════════════════
   THEME VARIABLES
═══════════════════════════════════════════ */
:root, [data-bs-theme="light"] {
    --bs-primary: #066ac9;
    --bs-primary-rgb: 6, 106, 201;
    --bs-body-font-family: 'Vazirmatn', sans-serif;
    --bs-body-color: #747579;
    --bs-heading-color: #24292d;
    --bs-gray-800: #24292d;
    --surface: #ffffff;
    --surface-2: #f5f7f9;
    --border-color: #eff1f2;
    --navbar-height: 70px;
    --transition: all 0.3s ease-in-out;
}

[data-bs-theme="dark"] {
    --bs-primary: #066ac9;
    --bs-body-bg: #222529;
    --bs-body-color: #a1a1a8;
    --bs-heading-color: #fff;
    --surface: #1b1e21;
    --surface-2: #2a2c31;
    --border-color: rgba(255, 255, 255, 0.07);
}

/* ═══════════════════════════════════════════
   BASE
═══════════════════════════════════════════ */
body {
    font-family: var(--bs-body-font-family);
    background-color: var(--bs-body-bg, #fff);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /*margin: 8px !important;*/
}

h1, h2, h3, h4, h5, h6 {
    color: var(--bs-heading-color);
    font-weight: 700;
}

a {
    transition: var(--transition);
    text-decoration: none;
}

section {
    padding: 5rem 0;
}

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
.navbar {
    background: var(--bs-body-bg, #fff) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    min-height: var(--navbar-height);
    transition: var(--transition);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar.scrolled {
    box-shadow: 0 0 40px rgba(29, 58, 83, .08);
}

.navbar-brand {
    padding: 16px 0;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--bs-heading-color) !important;
    margin: 0 !important;
}

.navbar-brand span {
    color: var(--bs-primary);
}

.nav-link {
    color: var(--bs-body-color) !important;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem !important;
    border-radius: 0.325rem;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--bs-primary) !important;
    background: rgba(6, 106, 201, 0.08);
}

/* Theme switch */
.theme-switcher {
    display: flex;
    background: var(--surface-2);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.theme-btn {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--bs-body-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.theme-btn.active {
    background: var(--surface);
    color: var(--bs-primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* ── DROPDOWN ── */
/* DROPDOWN MENU */
.dropdown-menu {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.5rem;
    box-shadow: 0 12px 40px rgba(29, 58, 83, 0.12);
    min-width: 240px;

    /*margin-top: 2rem;      !* ← 2rem = 32 px *!*/

    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    pointer-events: none;
}

@media (max-width: 1199px) {
    .dropdown-menu {
        box-shadow: none;
        border: none;
        background: transparent;
        padding-right: 1rem;
        margin-top: 0 !important;
        transform: none;
        visibility: visible;
        opacity: 1;
        pointer-events: all;
    }
}

@media (min-width: 1200px) {
    .navbar .dropdown:hover > .dropdown-menu,
    .navbar .dropdown:focus-within > .dropdown-menu,
    .navbar .dropdown .dropdown-menu:hover {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
    }
}

.dropdown.show > .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.dropdown-item {
    border-radius: 0.5rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bs-body-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dropdown-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: var(--bs-primary);
    flex-shrink: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(6, 106, 201, 0.08);
    color: var(--bs-primary);
}

.dropdown-item:hover i,
.dropdown-item:focus i {
    color: var(--bs-primary);
}


/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero-section {
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
    min-height: 88vh;
    display: flex;
    align-items: center;
}

/* SVG decorations */
.hero-deco-dots {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.08;
    pointer-events: none;
}

[data-bs-theme="dark"] .hero-deco-dots {
    opacity: 0.04;
}

.hero-shape-blob {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: rgba(6, 106, 201, 0.06);
    pointer-events: none;
}

.hero-shape-blob.blob-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -100px;
    animation: morphBlob 12s ease-in-out infinite;
}

.hero-shape-blob.blob-2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    right: -100px;
    background: rgba(6, 106, 201, 0.04);
    animation: morphBlob 16s ease-in-out infinite reverse;
}

@keyframes morphBlob {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 106, 201, 0.08);
    color: var(--bs-primary);
    border: 1px solid rgba(6, 106, 201, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bs-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(6, 106, 201, 0.4);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.9);
        box-shadow: 0 0 0 6px rgba(6, 106, 201, 0);
    }
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--bs-heading-color);
    margin-bottom: 1.25rem;
}

.hero-title .highlight {
    color: var(--bs-primary);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(6, 106, 201, 0.2);
    border-radius: 2px;
}

.hero-desc {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--bs-body-color);
    max-width: 520px;
}

/* Avatar frame */
.avatar-frame {
    position: relative;
    display: inline-block;
}

.avatar-frame .avatar-img {
    width: 340px;
    height: 380px;
    object-fit: cover;
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    position: relative;
    z-index: 2;
    animation: morphAvatar 10s ease-in-out infinite;
}

@keyframes morphAvatar {
    0%, 100% {
        border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    }
    50% {
        border-radius: 60% 40% 40% 60% / 55% 60% 40% 45%;
    }
}

/*.avatar-placeholder-hero {*/
/*    width: 320px;*/
/*    height: 360px;*/
/*    background: var(--surface-2);*/
/*    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    position: relative;*/
/*    z-index: 2;*/
/*    animation: morphAvatar 10s ease-in-out infinite;*/
/*    border: 2px dashed var(--border-color);*/
/*}*/

.avatar-placeholder-hero {
    width: 450px;
    height: 490px;
    background-image: url('/static/assets/images/element/danialrahimi.png');
    background-size: cover;
    /*background-position: center;*/
    background-repeat: no-repeat;
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    animation: morphAvatar 10s ease-in-out infinite;
    border: 2px dashed var(--border-color);
}

.avatar-frame .frame-ring {
    position: absolute;
    inset: -15px;
    border: 2px dashed rgba(6, 106, 201, 0.2);
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    z-index: 1;
    animation: morphAvatar 10s ease-in-out infinite;
}

/* Floating stat cards */
.stat-float {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1.1rem;
    box-shadow: 0 8px 32px rgba(29, 58, 83, 0.1);
    z-index: 10;
    font-size: 0.85rem;
    animation: floatY 4s ease-in-out infinite;
}

.stat-float:nth-child(2) {
    animation-delay: -2s;
}

@keyframes floatY {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.stat-float.top-left {
    top: 20px;
    left: -30px;
}

.stat-float.bottom-left {
    bottom: 20px;
    left: -17px;
}

.stat-float.bottom-right {
    bottom: 30px;
    right: -5px;
}

.stat-float.top-right {
    top: 45px;
    right: -22px;
}

.stat-float.mid-left {
    top: 180px;
    left: -52px;
}

.stat-float.mid-right {
    top: 225px;
    right: -52px;
}

.stat-float .stat-number {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--bs-primary);
    line-height: 1;
}

/* ═══════════════════════════════════════════
   SECTION HEADER
═══════════════════════════════════════════ */
.section-header .badge-label {
    display: inline-block;
    background: rgba(6, 106, 201, 0.08);
    color: var(--bs-primary);
    border: 1px solid rgba(6, 106, 201, 0.15);
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.section-header .lead {
    color: var(--bs-body-color);
    max-width: 540px;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn-portfolio-primary {
    background: var(--bs-primary);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    font-family: var(--bs-body-font-family);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-portfolio-primary:hover {
    background: #0555a1;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 106, 201, 0.3);
}

.btn-portfolio-outline {
    background: transparent;
    color: var(--bs-heading-color);
    border: 1.5px solid var(--border-color);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    font-family: var(--bs-body-font-family);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-portfolio-outline:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   CARDS
═══════════════════════════════════════════ */
.portfolio-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    transition: var(--transition);
    overflow: hidden;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(29, 58, 83, 0.12);
    border-color: rgba(6, 106, 201, 0.2);
}

[data-bs-theme="dark"] .portfolio-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════
   STATS ROW
═══════════════════════════════════════════ */
.stats-row .stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stats-row .stat-item .stat-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--bs-primary);
    line-height: 1;
}

.stats-row .stat-item .stat-label {
    color: var(--bs-body-color);
    font-size: 0.875rem;
    margin-top: 0.4rem;
}

.stats-divider {
    width: 1px;
    background: var(--border-color);
    height: 60px;
    margin: auto;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: rgba(6, 106, 201, 0.2);
    box-shadow: 0 8px 24px rgba(29, 58, 83, 0.08);
}

.stat-card .stat-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--bs-primary);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-card .stat-label {
    color: var(--bs-body-color);
    font-size: 0.875rem;
}

/* ═══════════════════════════════════════════
   SKILL BARS
═══════════════════════════════════════════ */
.skill-item {
    margin-bottom: 1.4rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.skill-pct {
    color: var(--bs-primary);
    font-weight: 700;
}

.skill-track {
    height: 8px;
    background: var(--surface-2);
    border-radius: 100px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, rgba(6, 106, 201, 0.6), #066ac9);
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════
   TECH TAGS
═══════════════════════════════════════════ */
.tech-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 0.325rem;
    font-size: 0.78rem;
    font-weight: 500;
    margin: 0.25rem;
    background: rgba(6, 106, 201, 0.08);
    color: var(--bs-primary);
    border: 1px solid rgba(6, 106, 201, 0.15);
    transition: var(--transition);
}

.tech-tag:hover {
    background: var(--bs-primary);
    color: #fff;
}

/* Personality tag */
.person-tag {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    margin: 0.25rem;
    background: var(--surface-2);
    color: var(--bs-body-color);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.person-tag:hover {
    background: rgba(6, 106, 201, 0.08);
    color: var(--bs-primary);
    border-color: rgba(6, 106, 201, 0.2);
}


/* ═══════════════════════════════════════════
   TIMELINE
═══════════════════════════════════════════ */
.timeline-wrap {
    padding-right: 1.5rem;
}

.timeline-wrap::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    right: -1.95rem;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bs-primary);
    border: 3px solid var(--bs-body-bg, #fff);
    box-shadow: 0 0 0 2px var(--bs-primary);
}

.timeline-year {
    display: inline-block;
    background: rgba(6, 106, 201, 0.1);
    color: var(--bs-primary);
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-role {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bs-heading-color);
    margin-bottom: 0.2rem;
}

.timeline-org {
    font-size: 0.85rem;
    color: var(--bs-body-color);
    margin-bottom: 0.6rem;
}

.timeline-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--bs-body-color);
}

/* ═══════════════════════════════════════════
   PROJECT CARDS
═══════════════════════════════════════════ */
.project-thumb {
    width: 100%;
    height: 200px;
    background-color: var(--surface-2); /* فقط رنگ، نه background */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 3.5rem;
    color: var(--border-color);

    position: relative;
    overflow: hidden;
}

.project-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(6, 106, 201, 0.06));
}

.project-cat {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bs-primary);
    color: #fff;
    padding: 0.2rem 0.7rem;
    border-radius: 0.325rem;
    font-size: 0.72rem;
    font-weight: 600;
    z-index: 2;
}

.filter-btn {
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    color: var(--bs-body-color);
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--bs-body-font-family);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--bs-primary);
    color: #fff;
    border-color: var(--bs-primary);
}

/* ═══════════════════════════════════════════
   BLOG
═══════════════════════════════════════════ */
.blog-meta {
    font-size: 0.8rem;
    color: var(--bs-body-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.blog-title-link {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bs-heading-color);
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.blog-title-link:hover {
    color: var(--bs-primary);
}

.blog-excerpt {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--bs-body-color);
}

.read-more-link {
    color: var(--bs-primary);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 1rem;
    transition: var(--transition);
}

.read-more-link:hover {
    gap: 8px;
    color: var(--bs-primary);
}


.blog-content {
    font-size: 1rem;
    line-height: 2;
    color: var(--bs-body-color);
}

.blog-content blockquote {
    border-right: 4px solid var(--bs-primary);
    background: var(--surface-2);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    color: var(--bs-body-color);
}

.blog-thumbnail {
    margin-bottom: 1rem;
}

.blog-thumbnail img {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
}

/* ═══════════════════════════════════════════
   COMMENTS
═══════════════════════════════════════════ */
.comment-wrap {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.comment-avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(6, 106, 201, 0.1);
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    background: var(--surface-2);
    border-radius: 0 0.75rem 0.75rem 0.75rem;
    padding: 1rem 1.1rem;
}

.comment-name {
    font-weight: 700;
    font-size: 0.875rem;
}

.comment-time {
    font-size: 0.75rem;
    color: var(--bs-body-color);
}

.comment-text {
    font-size: 0.875rem;
    color: var(--bs-body-color);
    line-height: 1.7;
    margin-top: 0.4rem;
}

.comment-reply {
    background: none;
    border: none;
    color: var(--bs-primary);
    font-size: 0.78rem;
    padding: 0;
    cursor: pointer;
    font-family: var(--bs-body-font-family);
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ═══════════════════════════════════════════
   FORMS
═══════════════════════════════════════════ */
.form-control {
    background: var(--surface) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--bs-heading-color) !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    font-family: var(--bs-body-font-family);
    font-size: 0.9375rem;
    transition: var(--transition) !important;
}

.form-control::placeholder {
    color: var(--bs-body-color) !important;
    opacity: 0.7;
}

.form-control:focus {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 3px rgba(6, 106, 201, 0.12) !important;
    outline: none !important;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bs-body-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════
   NEWSLETTER
═══════════════════════════════════════════ */
.newsletter-section {
    background: var(--bs-primary);
    border-radius: 1.5rem;
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
}

/*.newsletter-section::before {*/

/*}*/
.newsletter-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    top: -250px;
    right: -100px;
}


.newsletter-section h2 {
    color: #fff;
}

.newsletter-section p {
    color: rgba(255, 255, 255, 0.75);
}

.newsletter-section .form-control {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

.newsletter-section .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1;
}

.newsletter-section .form-control:focus {
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
}

.btn-newsletter {
    background: #fff;
    color: var(--bs-primary);
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-family: var(--bs-body-font-family);
    white-space: nowrap;
    transition: var(--transition);
    cursor: pointer;
}

.btn-newsletter:hover {
    background: var(--surface-2);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   CONTACT INFO
═══════════════════════════════════════════ */
.contact-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    transition: var(--transition);
}

.contact-info-card:hover {
    border-color: rgba(6, 106, 201, 0.2);
    box-shadow: 0 4px 16px rgba(29, 58, 83, 0.08);
}

.contact-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(6, 106, 201, 0.08);
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   SOCIAL LINKS
═══════════════════════════════════════════ */
.social-link {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    color: var(--bs-body-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
    transform: translateY(-3px);
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
}

.footer-link {
    display: block;
    color: var(--bs-body-color);
    font-size: 0.875rem;
    padding: 0.25rem 0;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--bs-primary);
    padding-right: 6px;
}

.footer-copy {
    color: var(--bs-body-color);
    font-size: 0.8rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* ═══════════════════════════════════════════
   SCROLL TO TOP
═══════════════════════════════════════════ */
.back-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--bs-primary);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    font-size: 1.1rem;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-top:hover {
    background: #0555a1;
    transform: translateY(-3px);
}

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }

    .avatar-placeholder-hero, .avatar-frame .avatar-img {
        width: 260px;
        height: 280px;
    }

    .stat-float {
        display: none;
    }

    .newsletter-section {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3.5rem 0;
    }

    .stats-divider {
        display: none;
    }
}

/* ═══════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════ */

.pagination {
    display: flex;
    padding-left: unset !important;
    padding-right: unset !important;
    list-style: none;
}

.pagination-primary-soft .page-item {
    margin: 4px;
}

.pagination-primary-soft .page-item.active .page-link {
    color: var(--bs-white);
    background-color: var(--bs-primary);
}

.page-link {
    padding: var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);
}

.pagination-primary-soft .page-link {
    color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    border-width: initial;
    border-style: initial;
    border-color: transparent;
    border-image: initial;
    border-radius: 0.325rem !important;
}

.page-link:hover {
    color: var(--bs-white);
    background-color: var(--bs-primary);
}

/* ═══════════════════════════════════════════
   OTHERS
═══════════════════════════════════════════ */

.cursor-pointer {
    cursor: pointer;
}

.sticky-sidebar {
    position: sticky;
    top: 5rem;
    overflow: hidden;
}


/* ═══════════════════════════════════════════
         PAGE HERO / BANNER
      ═══════════════════════════════════════════ */
.page-hero {
    background: var(--surface-2);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.page-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(6, 106, 201, 0.04);
    top: -250px;
    left: -150px;
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(6, 106, 201, 0.03);
    bottom: -150px;
    right: -100px;
    pointer-events: none;
}

/* Dot pattern */
.hero-deco-dots {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.06;
    pointer-events: none;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--bs-body-color);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: var(--bs-primary);
}

.breadcrumb-nav .sep {
    opacity: 0.4;
}

.page-hero h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 900;
    margin-bottom: 0.75rem;
}

.page-hero .lead {
    font-size: 1rem;
    color: var(--bs-body-color);
    max-width: 500px;
    line-height: 1.85;
}


/* ═══════════════════════════════════════════
   INTRO SECTION — IMAGE GRID
═══════════════════════════════════════════ */
.intro-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
}

.intro-image-grid .img-slot {
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface-2);
    position: relative;
}

.intro-image-grid .img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border: 1.5px dashed var(--border-color);
    border-radius: 14px;
    gap: 6px;
}

.intro-image-grid .img-slot.tall .img-placeholder {
    aspect-ratio: 3/5;
}

.intro-image-grid .img-slot.goal-card {
    background: var(--bs-primary);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ═══════════════════════════════════════════
   ABOUT PROFILE SECTION
═══════════════════════════════════════════ */
.about-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /*background: var(--surface-2);*/
    /*border: 3px solid rgba(6, 106, 201, 0.2);*/
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--border-color);
    overflow: hidden;
    flex-shrink: 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--bs-body-color);
    border-bottom: 1px solid var(--border-color);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list .fi-icon {
    width: 22px;
    height: 22px;
    color: var(--bs-primary);
    flex-shrink: 0;
    margin-top: 1px;
}

/* ═══════════════════════════════════════════
        ACCORDION (work history)
     ═══════════════════════════════════════════ */
.accordion-item {
    background: var(--surface);
    border: 1px solid var(--border-color) !important;
    border-radius: 0.75rem !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion-button {
    background: var(--surface) !important;
    color: var(--bs-heading-color) !important;
    font-weight: 600;
    font-size: 0.9375rem;
    font-family: var(--bs-body-font-family);
    border-radius: 0.75rem !important;
    box-shadow: none !important;
    padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
    color: var(--bs-primary) !important;
    background: rgba(6, 106, 201, 0.04) !important;
}

.accordion-button::after {
    filter: none;
}

.accordion-body {
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--bs-body-color);
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.25rem 1.25rem;
}

/* ═══════════════════════════════════════════
   INFO CARD (education)
═══════════════════════════════════════════ */
.edu-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.edu-item:last-child {
    border-bottom: none;
}

.edu-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(6, 106, 201, 0.08);
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.edu-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--bs-heading-color);
    margin-bottom: 0.15rem;
}

.edu-place {
    font-size: 0.8rem;
    color: var(--bs-body-color);
}

/* ═══════════════════════════════════════════
         ACHIEVEMENT CARD
      ═══════════════════════════════════════════ */
.achievement-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: var(--transition);
    height: 100%;
}

.achievement-card:hover {
    border-color: rgba(6, 106, 201, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(29, 58, 83, 0.08);
}

.achievement-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(6, 106, 201, 0.08);
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.achievement-card h5 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.achievement-card p {
    font-size: 0.8rem;
    color: var(--bs-body-color);
    line-height: 1.6;
    margin: 0;
}

.navbar-toggler,
.navbar-toggler:active,
.navbar-toggler:hover {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-nav {
    padding-left: 2rem !important;
}