@charset "UTF-8";
/*!
 * Originally based on Start Bootstrap - Resume v7.0.4
 *   (https://startbootstrap.com/theme/resume) — © 2013-2021 Start Bootstrap (MIT)
 *
 * 2026-05-10 — refactor pass:
 *   - Bootstrap 5.3.8 from CDN, no longer bundled
 *   - Self-hosted Inter Variable; Google Fonts dropped
 *   - Fluid typography (clamp) replaces Saira / Muli
 *
 * 2026-05-10 — modernization redesign:
 *   - Sticky top navbar replaces fixed left sidebar
 *   - Hero section with gradient ring photo + CTAs
 *   - Glassmorphic card-based sections with hover lift
 *   - Bootstrap Carousel for Certifications and Awards
 *   - Design system: tokens for colors, spacing, radius, shadow, gradient
 */

/* ===========================================================================
   DESIGN TOKENS — single source of truth for spacing, color, shadow, radius.
   Override per theme in [data-bs-theme="dark"] further below.
   =========================================================================== */
:root {
    /* Brand */
    --brand-primary: #bd5d38;
    --brand-primary-light: #d48a6e;
    --brand-primary-dark: #8a4128;
    --brand-accent: #f0b237;

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #bd5d38 0%, #8a4128 100%);
    --gradient-warm: linear-gradient(135deg, #bd5d38 0%, #f0b237 100%);
    --gradient-soft: linear-gradient(135deg, rgba(189, 93, 56, 0.08) 0%, rgba(212, 138, 110, 0.04) 100%);
    --gradient-mesh: radial-gradient(ellipse at top left, rgba(189, 93, 56, 0.12) 0%, transparent 50%),
                     radial-gradient(ellipse at bottom right, rgba(240, 178, 55, 0.08) 0%, transparent 50%);

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;
    --space-10: 4rem;
    --space-12: 6rem;
    --space-16: 8rem;

    /* Border radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-pill: 999px;

    /* Shadows — layered for depth */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-brand: 0 10px 30px rgba(189, 93, 56, 0.18), 0 4px 8px rgba(189, 93, 56, 0.08);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-bg-strong: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: blur(20px) saturate(180%);

    /* Surfaces */
    --surface-1: #ffffff;
    --surface-2: #faf7f5;
    --surface-3: #f3eee9;
    --border-subtle: rgba(0, 0, 0, 0.08);

    /* Animation */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --easing-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-bs-theme="dark"] {
    --glass-bg: rgba(24, 26, 29, 0.65);
    --glass-bg-strong: rgba(24, 26, 29, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --surface-1: #1c1f23;
    --surface-2: #181a1d;
    --surface-3: #14161a;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.6), 0 8px 16px rgba(0, 0, 0, 0.4);
    --shadow-brand: 0 10px 30px rgba(212, 138, 110, 0.15), 0 4px 8px rgba(212, 138, 110, 0.1);
}

/* ===========================================================================
   UTILITY CLASSES — composable, used across components
   =========================================================================== */

/* Glassmorphic surface */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

/* Modern card — soft surface with hover lift */
.card-modern {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(189, 93, 56, 0.25);
}

/* Subtle gradient border accent on hover */
.card-modern::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--gradient-warm);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.card-modern:hover::before {
    opacity: 1;
}

/* Pill badges */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: var(--gradient-soft);
    border: 1px solid rgba(189, 93, 56, 0.2);
    border-radius: var(--radius-pill);
    color: var(--brand-primary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

[data-bs-theme="dark"] .badge-pill {
    background: rgba(212, 138, 110, 0.1);
    border-color: rgba(212, 138, 110, 0.3);
    color: var(--brand-primary-light);
}

/* Modern button — gradient + lift */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--gradient-brand);
    color: #fff;
    border: 0;
    border-radius: var(--radius-pill);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-brand);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.btn-modern:hover,
.btn-modern:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), 0 0 0 3px rgba(189, 93, 56, 0.2);
}

.btn-modern.btn-secondary {
    background: transparent;
    color: var(--brand-primary);
    border: 1.5px solid var(--brand-primary);
    box-shadow: none;
}

.btn-modern.btn-secondary:hover {
    background: var(--brand-primary);
    color: #fff;
    box-shadow: var(--shadow-brand);
}

[data-bs-theme="dark"] .btn-modern.btn-secondary {
    color: var(--brand-primary-light);
    border-color: var(--brand-primary-light);
}

[data-bs-theme="dark"] .btn-modern.btn-secondary:hover {
    background: var(--brand-primary-light);
    color: #1c1f23;
}

/* ---------------------------------------------------------------------------
   Inter Variable — single self-hosted woff2 covering all weights 100-900.
   Source: https://www.npmjs.com/package/@fontsource-variable/inter (OFL).
   --------------------------------------------------------------------------- */
@font-face {
    font-family: Inter;
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../assets/fonts/inter-variable.woff2') format('woff2-variations');
}

/* ---------------------------------------------------------------------------
   Typography tokens — system font stack with Inter Variable preferred
   --------------------------------------------------------------------------- */
:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-sans);
}

/* Fluid typography — scales smoothly from 320px to ~1440px viewport */
h1, .h1 { font-size: clamp(2.25rem, 4vw + 1.25rem, 4.5rem); }
h2, .h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.75rem); }
h3, .h3 { font-size: clamp(1.125rem, 1vw + 0.875rem, 1.5rem); }
p.lead { font-size: clamp(1rem, 0.5vw + 0.95rem, 1.2rem); }

/* ---------------------------------------------------------------------------
   Theme variable overrides — replace Bootstrap defaults with the warm orange
   palette that defines this resume theme. Works under both light and dark
   Bootstrap 5.3 color modes.
   --------------------------------------------------------------------------- */
:root,
[data-bs-theme="light"] {
    --bs-primary: #bd5d38;
    --bs-primary-rgb: 189, 93, 56;
    --bs-orange: #bd5d38;
    --bs-link-color: #bd5d38;
    --bs-link-hover-color: #9e4c2e;
    --bs-link-color-rgb: 189, 93, 56;
    --bs-link-hover-color-rgb: 158, 76, 46;
}

[data-bs-theme="dark"] {
    --bs-primary: #d48a6e;
    --bs-primary-rgb: 212, 138, 110;
    --bs-link-color: #d48a6e;
    --bs-link-hover-color: #e3a78f;
    --bs-link-color-rgb: 212, 138, 110;
    --bs-link-hover-color-rgb: 227, 167, 143;
}

/* Bootstrap primary utility classes need explicit overrides because they
   compile color values literally rather than referencing --bs-primary. */
.bg-primary {
    background-color: var(--bs-primary) !important;
}
.text-primary {
    color: var(--bs-primary) !important;
}
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--bs-link-hover-color);
    border-color: var(--bs-link-hover-color);
}

/* ---------------------------------------------------------------------------
   Page layout — sticky top nav (no more sidebar offset)
   --------------------------------------------------------------------------- */
body {
    padding-top: 4rem;
    color: #495057;
    background: var(--surface-2);
    background-image: var(--gradient-mesh);
    background-attachment: fixed;
    min-height: 100vh;
}

[data-bs-theme="dark"] body {
    color: #c9ccd1;
    background: var(--surface-2);
    background-image: var(--gradient-mesh);
}

/* Headings — uppercase house style for the entire theme */
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
    text-transform: uppercase;
}

h1, .h1 {
    line-height: 1.05;
}

p.lead {
    font-weight: 400;
}

.subheading {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: clamp(1.125rem, 0.75vw + 1rem, 1.5rem);
}

/* ---------------------------------------------------------------------------
   Language switcher — segmented pill ([ EN | ID ]) shows both options at once;
   the active language is highlighted, the inactive is a one-click switch.
   --------------------------------------------------------------------------- */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: var(--surface-3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 3px;
    gap: 0;
}

.lang-switcher .lang-option {
    padding: 0.32rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--bs-body-color);
    opacity: 0.55;
    border-radius: calc(var(--radius-pill) - 3px);
    text-decoration: none;
    line-height: 1;
    transition: opacity var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

.lang-switcher .lang-option:hover {
    opacity: 1;
    color: var(--bs-body-color);
}

.lang-switcher .lang-option.is-active {
    background: var(--surface-1);
    color: var(--brand-primary);
    opacity: 1;
    box-shadow: var(--shadow-sm);
    cursor: default;
}

[data-bs-theme="dark"] .lang-switcher .lang-option.is-active {
    color: var(--brand-primary-light);
}

/* ---------------------------------------------------------------------------
   Theme switcher — Apple-style sliding pill (sun left, moon right, knob slides)
   - role="switch", aria-checked reflects state
   - knob morphs background color in dark mode
   --------------------------------------------------------------------------- */
.theme-switcher {
    --tw-w: 3.4rem;
    --tw-h: 1.75rem;
    --tw-pad: 0.18rem;
    --tw-knob: calc(var(--tw-h) - var(--tw-pad) * 2);

    width: var(--tw-w);
    height: var(--tw-h);
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.theme-switcher:focus-visible {
    outline: none;
}

.theme-switcher:focus-visible .theme-track {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

.theme-track {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--surface-3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.45rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

[data-bs-theme="dark"] .theme-track {
    background: rgba(189, 93, 56, 0.18);
    border-color: rgba(212, 138, 110, 0.3);
}

.theme-track .icon {
    width: 0.85rem;
    height: 0.85rem;
    color: var(--bs-body-color);
    opacity: 0.45;
    z-index: 1;
    transition: opacity var(--transition-base), color var(--transition-base);
}

[data-bs-theme="light"] .theme-track .icon-sun {
    opacity: 1;
    color: var(--brand-primary);
}

[data-bs-theme="dark"] .theme-track .icon-moon {
    opacity: 1;
    color: #fff;
}

.theme-knob {
    position: absolute;
    top: 50%;
    left: var(--tw-pad);
    width: var(--tw-knob);
    height: var(--tw-knob);
    background: var(--surface-1);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transform: translateY(-50%);
    transition: transform var(--transition-slow) var(--easing-spring), background-color var(--transition-base);
    pointer-events: none;
}

[data-bs-theme="dark"] .theme-knob {
    background: var(--gradient-warm);
    transform: translate(calc(var(--tw-w) - var(--tw-knob) - var(--tw-pad) * 2 - 2px), -50%);
}

.theme-switcher:hover .theme-knob {
    box-shadow: var(--shadow-lg);
}

@media (prefers-reduced-motion: reduce) {
    .theme-knob { transition: none; }
}

/* ---------------------------------------------------------------------------
   Mobile offcanvas drawer (Bootstrap 5.3 offcanvas-lg)
   - Below lg breakpoint, the nav becomes a slide-in drawer from the right.
   - Match the orange navbar so the transition feels seamless.
   --------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    #navbarResponsive.offcanvas {
        background-color: var(--bs-primary);
        color: #fff;
        max-width: 320px;
        width: 80vw;
    }

    #navbarResponsive .offcanvas-header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    #navbarResponsive .offcanvas-header .btn-close {
        filter: invert(1) brightness(2);
    }

    #navbarResponsive .nav-link {
        padding: 0.85rem 0.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    #navbarResponsive .nav-link:last-child {
        border-bottom: 0;
    }
}

/* ---------------------------------------------------------------------------
   Sticky top navigation (#sideNav id retained for ScrollSpy backwards compat)
   - Glassmorphic background that intensifies on scroll
   - Brand left, links center, theme toggle + lang switcher right
   --------------------------------------------------------------------------- */
#sideNav {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: var(--space-3) var(--space-5);
    transition: padding var(--transition-base), box-shadow var(--transition-base);
}

#sideNav.is-scrolled {
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
    box-shadow: var(--shadow-md);
}

#sideNav .navbar-brand {
    font-weight: 800;
    color: var(--brand-primary);
    letter-spacing: -0.01em;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
}

[data-bs-theme="dark"] #sideNav .navbar-brand {
    color: var(--brand-primary-light);
}

#sideNav .navbar-brand .brand-mark {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--gradient-warm);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: var(--shadow-brand);
}

#sideNav .navbar-nav .nav-item .nav-link {
    color: var(--bs-body-color);
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-pill);
    transition: color var(--transition-fast), background-color var(--transition-fast);
    position: relative;
}

#sideNav .navbar-nav .nav-item .nav-link:hover,
#sideNav .navbar-nav .nav-item .nav-link:focus-visible {
    color: var(--brand-primary);
    background: var(--gradient-soft);
}

[data-bs-theme="dark"] #sideNav .navbar-nav .nav-item .nav-link:hover,
[data-bs-theme="dark"] #sideNav .navbar-nav .nav-item .nav-link:focus-visible {
    color: var(--brand-primary-light);
    background: rgba(212, 138, 110, 0.1);
}

/* ScrollSpy active state */
#sideNav .navbar-nav .nav-item .nav-link.active {
    color: var(--brand-primary);
    background: var(--gradient-soft);
    font-weight: 600;
}

[data-bs-theme="dark"] #sideNav .navbar-nav .nav-item .nav-link.active {
    color: var(--brand-primary-light);
    background: rgba(212, 138, 110, 0.12);
}

#sideNav .navbar-toggler {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-1) var(--space-2);
}

#sideNav .navbar-toggler:focus {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
    box-shadow: none;
}

/* ---------------------------------------------------------------------------
   Social icons (circular badges in About section)
   --------------------------------------------------------------------------- */
.social-icons .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    width: 3.5rem;
    background-color: #495057;
    color: #fff;
    border-radius: 100%;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    text-decoration: none;
}

.social-icons .social-icon:last-child {
    margin-right: 0;
}

.social-icons .social-icon:hover,
.social-icons .social-icon:focus-visible {
    background-color: var(--bs-primary);
    color: #fff;
}

[data-bs-theme="dark"] .social-icons .social-icon {
    background-color: #343a40;
}

/* ---------------------------------------------------------------------------
   Dark mode body adjustments
   - Slightly muted background instead of pure black for readability
   --------------------------------------------------------------------------- */
[data-bs-theme="dark"] body {
    background-color: #181a1d;
}

[data-bs-theme="dark"] hr {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .text-warning {
    color: #f0b237 !important;
}

/* The orange sidebar deepens in dark mode for less retina burn */
[data-bs-theme="dark"] nav#sideNav {
    background-color: #8a4128 !important;
}

/* Skill icon row */
.dev-icons {
    font-size: 3rem;
}

/* ---------------------------------------------------------------------------
   SVG icon system (replaces Font Awesome)
   - Icons are referenced via <svg class="icon"><use href="assets/icons.svg#icon-x"/></svg>
   - Size scales with current font-size (1em); fill/stroke uses currentColor so
     text-primary / text-warning utilities work transparently.
   --------------------------------------------------------------------------- */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 0;
    flex-shrink: 0;
}

/* Lucide icons render as strokes by default */
.icon use[href*="#icon-check"],
.icon use[href*="#icon-link"],
.icon use[href*="#icon-vial"],
.icon use[href*="#icon-clipboard"],
.icon use[href*="#icon-shield"],
.icon use[href*="#icon-database"],
.icon use[href*="#icon-terminal"],
.icon use[href*="#icon-bug"],
.icon use[href*="#icon-certificate"],
.icon use[href*="#icon-trophy"],
.icon use[href*="#icon-linkedin"] {
    /* Lucide ships with stroke="currentColor" already, so this is a safety net */
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Bigger icons for the dev/skills row */
.dev-icons .icon {
    width: 1em;
    height: 1em;
}

.dev-icons li {
    display: inline-flex;
    align-items: center;
}

/* Icon-prefixed lists (replaces Font Awesome's .fa-ul / .fa-li) */
.icon-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.icon-list > li {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.icon-list > li > .icon {
    flex: 0 0 auto;
    margin-top: 0.25em;
}

/* Social-icon SVGs sized like the original FA glyphs */
.social-icons .social-icon .icon {
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: middle;
}

/* ---------------------------------------------------------------------------
   Hero section (replaces the old "About" sidebar panel)
   --------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: var(--space-12) var(--space-5) var(--space-10);
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
    max-width: 80rem;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1.4fr 1fr;
    }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--gradient-soft);
    border: 1px solid rgba(189, 93, 56, 0.2);
    border-radius: var(--radius-pill);
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-5);
}

[data-bs-theme="dark"] .hero-eyebrow {
    background: rgba(212, 138, 110, 0.1);
    border-color: rgba(212, 138, 110, 0.3);
    color: var(--brand-primary-light);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw + 1rem, 5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-4);
    text-transform: none;
}

.hero-title .accent {
    background: var(--gradient-warm);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 0.4vw + 1rem, 1.3rem);
    color: var(--bs-body-color);
    opacity: 0.85;
    max-width: 36rem;
    margin-bottom: var(--space-6);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    font-size: 0.9rem;
    color: var(--bs-body-color);
    opacity: 0.75;
}

.hero-meta .icon {
    width: 1rem;
    height: 1rem;
    margin-right: var(--space-1);
    vertical-align: -0.15em;
}

/* Profile photo with gradient ring */
.hero-photo {
    position: relative;
    justify-self: center;
    width: clamp(14rem, 30vw, 22rem);
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 0.5rem;
    background: var(--gradient-warm);
    box-shadow: var(--shadow-xl), var(--shadow-brand);
    transition: transform var(--transition-slow);
}

.hero-photo:hover {
    transform: rotate(-2deg) scale(1.02);
}

.hero-photo picture,
.hero-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    background: var(--surface-1);
}

/* Floating stats badges around the photo */
.hero-photo .photo-badge {
    position: absolute;
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: var(--space-2) var(--space-4);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--bs-body-color);
}

.hero-photo .photo-badge.b1 { top: 8%;  right: -8%; }
.hero-photo .photo-badge.b2 { bottom: 8%; left: -10%; }

.hero-photo .photo-badge .icon {
    width: 1.05rem;
    height: 1.05rem;
    color: var(--brand-primary);
}

/* ---------------------------------------------------------------------------
   Generic resume sections — natural-flow layout (no more 100vh, no flexbox).
   --------------------------------------------------------------------------- */
section.resume-section {
    padding: var(--space-10) var(--space-5);
    max-width: 80rem;
    margin: 0 auto;
}

section.resume-section .resume-section-content {
    width: 100%;
}

@media (min-width: 992px) {
    section.resume-section {
        padding-left: var(--space-8);
        padding-right: var(--space-8);
    }
}

/* Section title — small uppercase eyebrow, then big heading */
.section-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin-bottom: var(--space-3);
}

[data-bs-theme="dark"] .section-eyebrow {
    color: var(--brand-primary-light);
}

section.resume-section h2 {
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-8);
    text-transform: none;
}

/* Section reveal — fade up as it enters viewport */
@media (prefers-reduced-motion: no-preference) {
    section.resume-section:not(.is-visible) {
        opacity: 0;
        transform: translateY(16px);
    }

    section.resume-section {
        transition: opacity 0.55s ease-out, transform 0.55s ease-out;
    }
}

/* ---------------------------------------------------------------------------
   Timeline entry cards — Experience, Education, Organizational sections.
   Inherit the .d-flex utility from Bootstrap; we just add card styling.
   --------------------------------------------------------------------------- */
section.resume-section .resume-section-content > .d-flex.justify-content-between {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-6);
    margin-bottom: var(--space-4) !important;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    position: relative;
}

section.resume-section .resume-section-content > .d-flex.justify-content-between:hover {
    transform: translateY(-3px);
    border-color: rgba(189, 93, 56, 0.25);
    box-shadow: var(--shadow-md);
}

section.resume-section .resume-section-content > .d-flex.justify-content-between h3 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-2) !important;
    text-transform: none;
    color: var(--bs-body-color);
}

section.resume-section .resume-section-content > .d-flex.justify-content-between .subheading {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--brand-primary);
    margin-bottom: var(--space-3) !important;
}

[data-bs-theme="dark"] section.resume-section .resume-section-content > .d-flex.justify-content-between .subheading {
    color: var(--brand-primary-light);
}

section.resume-section .resume-section-content > .d-flex.justify-content-between p {
    margin-bottom: 0;
    color: var(--bs-body-color);
    opacity: 0.85;
    line-height: 1.65;
}

/* Date pill on the right */
section.resume-section .resume-section-content > .d-flex.justify-content-between .flex-shrink-0 .text-primary {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--gradient-soft);
    border: 1px solid rgba(189, 93, 56, 0.2);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-primary) !important;
    white-space: nowrap;
}

[data-bs-theme="dark"] section.resume-section .resume-section-content > .d-flex.justify-content-between .flex-shrink-0 .text-primary {
    background: rgba(212, 138, 110, 0.1);
    border-color: rgba(212, 138, 110, 0.3);
    color: var(--brand-primary-light) !important;
}

/* ---------------------------------------------------------------------------
   Skills — bento-style grid
   --------------------------------------------------------------------------- */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.skill-card {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.skill-card:hover {
    transform: translateY(-3px);
    border-color: rgba(189, 93, 56, 0.25);
    box-shadow: var(--shadow-md);
}

.skill-card .skill-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-soft);
    color: var(--brand-primary);
}

.skill-card .skill-icon .icon {
    width: 1.25rem;
    height: 1.25rem;
}

[data-bs-theme="dark"] .skill-card .skill-icon {
    background: rgba(212, 138, 110, 0.12);
    color: var(--brand-primary-light);
}

.skill-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--bs-body-color);
}

.skill-card .skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.skill-card .skill-list li {
    padding: 0.2rem 0.65rem;
    background: var(--surface-3);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    color: var(--bs-body-color);
    border: 1px solid var(--border-subtle);
}

[data-bs-theme="dark"] .skill-card .skill-list li {
    background: rgba(255, 255, 255, 0.04);
}

/* ---------------------------------------------------------------------------
   Horizontal-scroll card carousel (used by Certifications + Awards)
   - CSS scroll-snap so swipe / scroll lands cleanly between cards
   - Custom prev / next buttons control via JS scrollBy()
   - Auto-advances every 5s; pauses on hover / focus
   --------------------------------------------------------------------------- */
.card-carousel {
    position: relative;
    margin-bottom: var(--space-4);
}

.card-carousel-track {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: var(--space-2) var(--space-1) var(--space-5);
    margin: calc(var(--space-2) * -1) 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-primary) transparent;
}

.card-carousel-track::-webkit-scrollbar { height: 6px; }
.card-carousel-track::-webkit-scrollbar-track { background: transparent; }
.card-carousel-track::-webkit-scrollbar-thumb {
    background: rgba(189, 93, 56, 0.35);
    border-radius: var(--radius-pill);
}

.card-carousel-track > * {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: calc(100% - var(--space-2));
    max-width: 22rem;
}

@media (min-width: 600px) {
    .card-carousel-track > * { width: calc(50% - var(--space-3)); max-width: none; }
}

@media (min-width: 992px) {
    .card-carousel-track > * { width: calc(33.333% - var(--space-3)); }
}

.card-carousel-controls {
    display: flex;
    gap: var(--space-2);
    justify-content: flex-end;
    margin-top: var(--space-2);
}

.card-carousel-controls button {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--surface-1);
    color: var(--bs-body-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.card-carousel-controls button:hover,
.card-carousel-controls button:focus-visible {
    background: var(--gradient-soft);
    border-color: rgba(189, 93, 56, 0.4);
    color: var(--brand-primary);
    transform: scale(1.06);
}

.card-carousel-controls button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.card-carousel-controls button .icon {
    width: 1.1rem;
    height: 1.1rem;
}

/* Cert card — individual element inside the carousel */
.cert-card {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.cert-card:hover {
    transform: translateY(-3px);
    border-color: rgba(189, 93, 56, 0.25);
    box-shadow: var(--shadow-md);
}

.cert-card .cert-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    background: var(--gradient-warm);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-brand);
}

.cert-card .cert-icon .icon {
    width: 1.5rem;
    height: 1.5rem;
}

.cert-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--bs-body-color);
    line-height: 1.35;
}

.cert-card .cert-issuer {
    font-size: 0.9rem;
    color: var(--bs-body-color);
    opacity: 0.7;
    margin: 0;
}

.cert-card .cert-year {
    margin-top: auto;
    align-self: flex-start;
    padding: var(--space-1) var(--space-3);
    background: var(--gradient-soft);
    border: 1px solid rgba(189, 93, 56, 0.2);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-primary);
}

[data-bs-theme="dark"] .cert-card .cert-year {
    background: rgba(212, 138, 110, 0.1);
    border-color: rgba(212, 138, 110, 0.3);
    color: var(--brand-primary-light);
}

/* ---------------------------------------------------------------------------
   Project card — featured-work tile inside the Projects carousel
   - Larger than cert/award cards: more body copy, tech stack pills, link
   --------------------------------------------------------------------------- */
.project-card {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(189, 93, 56, 0.3);
    box-shadow: var(--shadow-lg);
}

/* Top "header" strip with category badge over a soft gradient */
.project-card .project-head {
    background: var(--gradient-soft);
    padding: var(--space-5) var(--space-5) var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

[data-bs-theme="dark"] .project-card .project-head {
    background: rgba(212, 138, 110, 0.08);
}

.project-card .project-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-md);
    background: var(--gradient-warm);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-brand);
    flex-shrink: 0;
}

.project-card .project-icon .icon {
    width: 1.4rem;
    height: 1.4rem;
}

.project-card .project-cat {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-primary);
    margin: 0 0 var(--space-1);
}

[data-bs-theme="dark"] .project-card .project-cat {
    color: var(--brand-primary-light);
}

.project-card .project-period {
    font-size: 0.85rem;
    color: var(--bs-body-color);
    opacity: 0.7;
    margin: 0;
}

.project-card .project-body {
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    flex: 1;
}

.project-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--bs-body-color);
    line-height: 1.35;
}

.project-card .project-role {
    font-size: 0.9rem;
    color: var(--brand-primary);
    font-weight: 600;
    margin: 0;
}

[data-bs-theme="dark"] .project-card .project-role {
    color: var(--brand-primary-light);
}

.project-card p {
    margin: 0;
    color: var(--bs-body-color);
    opacity: 0.85;
    line-height: 1.55;
    font-size: 0.92rem;
}

.project-card .project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: auto;
    padding-top: var(--space-3);
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.project-card .project-stack li {
    padding: 0.18rem 0.6rem;
    background: var(--surface-3);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    color: var(--bs-body-color);
    border: 1px solid var(--border-subtle);
}

[data-bs-theme="dark"] .project-card .project-stack li {
    background: rgba(255, 255, 255, 0.04);
}

/* Project carousel — wider cards (max 1-2 visible) than cert/award */
#projects .card-carousel-track > * {
    width: calc(100% - var(--space-2));
    max-width: 28rem;
}

@media (min-width: 768px) {
    #projects .card-carousel-track > * { width: calc(50% - var(--space-3)); max-width: none; }
}

@media (min-width: 1300px) {
    #projects .card-carousel-track > * { width: calc(33.333% - var(--space-3)); }
}

/* Award card — variant of cert-card with golden trophy badge */
.award-card {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
    position: relative;
    overflow: hidden;
}

.award-card::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -40%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(240, 178, 55, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.award-card:hover {
    transform: translateY(-3px);
    border-color: rgba(240, 178, 55, 0.4);
    box-shadow: var(--shadow-md);
}

.award-card .award-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #f0b237 0%, #d4881f 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(240, 178, 55, 0.3);
    flex-shrink: 0;
}

.award-card .award-icon .icon {
    width: 1.5rem;
    height: 1.5rem;
}

.award-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--bs-body-color);
    line-height: 1.35;
}

.award-card .award-host {
    font-size: 0.9rem;
    color: var(--bs-body-color);
    opacity: 0.7;
    margin: 0;
}

.award-card .award-year {
    margin-top: auto;
    align-self: flex-start;
    padding: var(--space-1) var(--space-3);
    background: linear-gradient(135deg, rgba(240, 178, 55, 0.18) 0%, rgba(212, 136, 31, 0.1) 100%);
    border: 1px solid rgba(240, 178, 55, 0.3);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    color: #b8881f;
}

[data-bs-theme="dark"] .award-card .award-year {
    color: #f0b237;
    background: rgba(240, 178, 55, 0.12);
    border-color: rgba(240, 178, 55, 0.3);
}

/* Logo grid for the Programming Languages & Tools row inside Skills */
.tool-logos {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: center;
    padding: var(--space-5);
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
}

.tool-logos .icon {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--bs-body-color);
    opacity: 0.6;
    transition: opacity var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}

.tool-logos li {
    cursor: default;
}

.tool-logos li:hover .icon {
    opacity: 1;
    transform: scale(1.15);
    color: var(--brand-primary);
}

/* ---------------------------------------------------------------------------
   Final polish — dark mode adjustments for new components, mobile tweaks
   --------------------------------------------------------------------------- */

/* Dark mode card surfaces */
[data-bs-theme="dark"] section.resume-section .resume-section-content > .d-flex.justify-content-between,
[data-bs-theme="dark"] .skill-card,
[data-bs-theme="dark"] .cert-card,
[data-bs-theme="dark"] .award-card,
[data-bs-theme="dark"] .tool-logos {
    background: var(--surface-1);
    border-color: var(--border-subtle);
}

[data-bs-theme="dark"] .card-carousel-controls button {
    background: var(--surface-1);
    border-color: var(--border-subtle);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .hero-photo .photo-badge {
    background: var(--surface-1);
    border-color: var(--border-subtle);
    color: var(--bs-body-color);
}

/* Mobile tweaks for hero photo badges (avoid overflow on tiny viewports) */
@media (max-width: 600px) {
    .hero-photo .photo-badge.b1 { right: -4%; font-size: 0.78rem; padding: var(--space-1) var(--space-3); }
    .hero-photo .photo-badge.b2 { left: -6%; font-size: 0.78rem; padding: var(--space-1) var(--space-3); }
    .hero { padding-top: var(--space-10); padding-bottom: var(--space-8); }
    .hero-meta { gap: var(--space-3); }
}

/* Ensure the offcanvas drawer reads well on the new glass nav */
@media (max-width: 991.98px) {
    #navbarResponsive.offcanvas {
        background-color: var(--surface-1);
        color: var(--bs-body-color);
    }

    #navbarResponsive .offcanvas-header {
        border-bottom-color: var(--border-subtle);
    }

    #navbarResponsive .offcanvas-header .btn-close {
        filter: none;
    }

    [data-bs-theme="dark"] #navbarResponsive .offcanvas-header .btn-close {
        filter: invert(1);
    }

    #navbarResponsive .nav-link {
        border-bottom-color: var(--border-subtle);
        color: var(--bs-body-color);
    }
}

/* ---------------------------------------------------------------------------
   Contact modal — Bootstrap modal styled to match the modern design system
   --------------------------------------------------------------------------- */
.contact-modal .modal-content {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.contact-modal .modal-header {
    background: var(--gradient-soft);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-5) var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

[data-bs-theme="dark"] .contact-modal .modal-header {
    background: rgba(212, 138, 110, 0.08);
}

.contact-modal .modal-header .modal-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    background: var(--gradient-warm);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-brand);
    flex-shrink: 0;
}

.contact-modal .modal-header .modal-icon .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.contact-modal .modal-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: none;
}

.contact-modal .modal-subtitle {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.7;
}

.contact-modal .modal-body {
    padding: var(--space-6);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

@media (min-width: 600px) {
    .contact-form .form-row.two-col {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--bs-body-color);
    letter-spacing: 0.01em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font: inherit;
    font-size: 0.95rem;
    color: var(--bs-body-color);
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: var(--surface-1);
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(189, 93, 56, 0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 6rem;
}

/* Honeypot — visually + accessibly hidden, but bots still see it */
.contact-form .form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    pointer-events: none;
}

.contact-form .form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-top: var(--space-5);
}

.contact-form .form-status {
    flex: 1;
    font-size: 0.85rem;
    line-height: 1.4;
}

.contact-form .form-status[data-state="success"] { color: #2f8a4f; }
.contact-form .form-status[data-state="error"]   { color: #c53030; }

[data-bs-theme="dark"] .contact-form .form-status[data-state="success"] { color: #5cd584; }
[data-bs-theme="dark"] .contact-form .form-status[data-state="error"]   { color: #ff6b6b; }

.contact-form button[type="submit"] {
    flex-shrink: 0;
}

/* When the form succeeds, swap to a success card */
.contact-form.is-success > * { display: none; }
.contact-form.is-success .form-success { display: block; }

.contact-form .form-success {
    display: none;
    text-align: center;
    padding: var(--space-6) var(--space-4);
}

.contact-form .form-success .success-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--gradient-warm);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-brand);
}

.contact-form .form-success .success-icon .icon {
    width: 1.75rem;
    height: 1.75rem;
}

.contact-form .form-success h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    text-transform: none;
}

.contact-form .form-success p {
    color: var(--bs-body-color);
    opacity: 0.75;
    margin: 0;
}

/* ===========================================================================
   Print stylesheet — clean, ink-friendly one-pager when users Save as PDF
   =========================================================================== */
@media print {
    /* Reset Bootstrap dark sidebar — print white background only */
    body,
    body#page-top,
    .bg-primary,
    nav.navbar {
        background: #fff !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Hide the side navigation entirely in print */
    nav#sideNav,
    .navbar,
    .navbar-toggler,
    .social-icons {
        display: none !important;
    }

    /* Reset main container offset (Bootstrap pushes it right of the sidebar) */
    .container-fluid,
    .container-fluid.p-0 {
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Each section becomes a self-contained block; reduce padding for print */
    section.resume-section {
        padding: 1rem 0 !important;
        min-height: 0 !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .resume-section-content {
        max-width: 100% !important;
    }

    /* Headings — smaller and inkable */
    h1 { font-size: 24pt !important; color: #000 !important; }
    h2 { font-size: 16pt !important; color: #000 !important; border-bottom: 1px solid #000; padding-bottom: 4pt; }
    h3 { font-size: 12pt !important; color: #000 !important; }
    .subheading { font-size: 10pt !important; color: #333 !important; }
    body { font-size: 10pt; line-height: 1.4; }

    /* Brand orange shows through for text emphasis only */
    .text-primary { color: #bd5d38 !important; }
    .text-warning { color: #555 !important; }

    /* Make hyperlinks readable on paper — show URL after the text */
    a, a:visited {
        color: #000 !important;
        text-decoration: underline;
    }
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 8pt;
        color: #555;
        word-break: break-all;
    }
    /* Skip URL display for in-page anchors and mailto */
    a[href^="#"]::after,
    a[href^="mailto:"]::after {
        content: "";
    }

    /* Fitting more content per page */
    .mb-5 { margin-bottom: 1rem !important; }
    .mb-4 { margin-bottom: 0.75rem !important; }
    .mb-3 { margin-bottom: 0.5rem !important; }

    /* Remove animations & transitions in print */
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    /* Page setup */
    @page {
        margin: 1.5cm 1.5cm;
        size: A4;
    }
}
