:root {
    --public-bg: #07111f;
    --public-bg-soft: #0f1d34;
    --public-card: rgba(10, 18, 34, 0.78);
    --public-card-border: rgba(255, 255, 255, 0.09);
    --public-text: #e5eefc;
    --public-muted: #9fb0cc;
    --public-accent: #68d391;
    --public-accent-2: #60a5fa;
    --public-accent-3: #f59e0b;
    --public-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

html {
    scroll-behavior: smooth;
}

body.public-body {
    margin: 0;
    color: var(--public-text);
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 34%),
        radial-gradient(circle at top right, rgba(104, 211, 145, 0.14), transparent 28%),
        linear-gradient(180deg, #06101d 0%, #0b1320 42%, #07111f 100%);
    font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
}

.public-page {
    position: relative;
    overflow: hidden;
}

.public-page::before,
.public-page::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
    opacity: 0.4;
}

.public-page::before {
    top: 12%;
    right: -8rem;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.35);
}

.public-page::after {
    bottom: 10%;
    left: -7rem;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    background: rgba(104, 211, 145, 0.24);
}

.public-navbar-wrap,
.hero-section,
.content-section,
.public-footer {
    position: relative;
    z-index: 1;
}

.public-navbar {
    background: rgba(7, 17, 31, 0.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.03em;
}

.navbar-brand__mark {
    display: inline-grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.7rem;
    color: #06101d;
    background: linear-gradient(135deg, var(--public-accent), var(--public-accent-2));
    font-size: 0.95rem;
    font-weight: 800;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(229, 238, 252, 0.75);
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #fff;
    transform: translateY(-1px);
}

.hero-section {
    padding: 6.5rem 0 4.5rem;
}

.hero-section__inner {
    position: relative;
}

.eyebrow,
.section-kicker,
.skill-card__category {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    color: #d8e6ff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 1rem 0 0.5rem;
    font-size: clamp(2.7rem, 5vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero-title {
    margin-bottom: 1rem;
    color: var(--public-accent);
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 700;
}

.hero-summary {
    max-width: 42rem;
    color: var(--public-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.hero-card {
    padding: 1.2rem;
    border: 1px solid var(--public-card-border);
    border-radius: 1.7rem;
    background: linear-gradient(180deg, rgba(13, 24, 44, 0.92), rgba(9, 18, 34, 0.82));
    box-shadow: var(--public-shadow);
}

.hero-portrait {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.12 / 1;
    min-height: 22rem;
    border-radius: 1.35rem;
    background:
        linear-gradient(180deg, rgba(104, 211, 145, 0.12), rgba(96, 165, 250, 0.12)),
        rgba(255, 255, 255, 0.04);
}

.hero-portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.hero-portrait::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 17, 31, 0.08) 0%, rgba(7, 17, 31, 0.36) 100%);
}

.hero-portrait__fallback {
    display: grid;
    place-items: center;
    height: 22rem;
    color: #06101d;
    background: linear-gradient(135deg, var(--public-accent), var(--public-accent-2));
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 900;
}

.hero-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0.4rem 0.2rem;
}

.hero-card__meta strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.hero-card__meta span,
.hero-card__meta-pill {
    color: var(--public-muted);
    font-size: 0.92rem;
}

.hero-card__meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.content-section {
    padding: 4.5rem 0;
}

.section-heading {
    max-width: 44rem;
    margin-bottom: 2rem;
}

.section-heading h2 {
    margin: 1rem 0 0.35rem;
    font-size: clamp(1.9rem, 3vw, 3rem);
    letter-spacing: -0.04em;
}

.section-heading p {
    margin-bottom: 0;
    color: var(--public-muted);
    line-height: 1.8;
}

.glass-card,
.skill-card,
.info-card,
.empty-state {
    border: 1px solid var(--public-card-border);
    border-radius: 1.4rem;
    background: linear-gradient(180deg, rgba(12, 22, 40, 0.88), rgba(9, 18, 34, 0.82));
    box-shadow: var(--public-shadow);
}

.glass-card__body {
    padding: 1.6rem;
}

.card-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.2rem;
}

.info-card__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    border-radius: 0.95rem;
    color: #06101d;
    background: linear-gradient(135deg, var(--public-accent), var(--public-accent-2));
}

.info-card small,
.skill-card__category {
    color: var(--public-muted);
}

.info-card strong {
    display: block;
    font-size: 1.05rem;
}

.skill-card {
    padding: 1.2rem;
    height: 100%;
    transform: translateY(12px);
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
    animation-delay: var(--delay, 0s);
}

.skill-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skill-card__header h3 {
    margin: 0.65rem 0 0;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.skill-card__value {
    flex: 0 0 auto;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-weight: 700;
}

.skill-progress {
    height: 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.skill-progress__bar {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--public-accent), var(--public-accent-2));
    transform-origin: left center;
    animation: skillGrow 1s ease both;
}

.projects-grid {
    position: relative;
}

.project-card {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 34rem;
    flex-direction: column;
    border-radius: 1.75rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.9), rgba(6, 12, 22, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    transform: translateY(0);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(110, 175, 255, 0.24);
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.28);
}

.project-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.project-card__image,
.project-card__placeholder,
.project-card__cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.certificate-card__image-button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.project-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 2.5rem;
    background:
        radial-gradient(circle at top, rgba(100, 154, 255, 0.18), transparent 50%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.project-cover {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100%;
    overflow: hidden;
    padding: 1.35rem;
    isolation: isolate;
    color: #f7fbff;
    background:
        radial-gradient(circle at 92% 12%, rgba(104, 211, 145, .34), transparent 35%),
        radial-gradient(circle at 6% 100%, rgba(96, 165, 250, .42), transparent 48%),
        linear-gradient(135deg, #172a52 0%, #101e3a 50%, #07111f 100%);
}

.project-cover::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(3, 8, 18, .02) 18%, rgba(3, 8, 18, .82) 100%);
}

.project-cover__glow {
    position: absolute;
    z-index: -1;
    width: 11rem;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 2.2rem;
    transform: rotate(32deg);
}

.project-cover__glow--one { top: -4rem; right: -2.5rem; background: rgba(255, 255, 255, .06); }
.project-cover__glow--two { right: 22%; bottom: -7rem; background: rgba(104, 211, 145, .08); }

.project-cover__icon {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 1rem;
    color: #d9ebff;
    font-size: 1.4rem;
    background: rgba(7, 17, 31, .26);
    box-shadow: 0 .75rem 1.75rem rgba(0, 0, 0, .18);
    backdrop-filter: blur(8px);
}

.project-cover__content { position: relative; z-index: 1; min-width: 0; }
.project-cover__tagline { color: rgba(255, 255, 255, .82); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.project-details__hero .project-cover { min-height: 15rem; border-radius: 1rem; }

.project-card__body {
    display: flex;
    min-height: 18.7rem;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1.35rem;
}

.project-card__meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }

.project-card__category {
    display: inline-flex;
    margin-bottom: 0.4rem;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    background: rgba(110, 175, 255, 0.12);
    color: #d9ebff;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.project-card__title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.6em;
    margin: 0 0 .65rem;
    font-size: 1.15rem;
    line-height: 1.3;
    color: #f4f8ff;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.project-card__summary {
    display: -webkit-box;
    overflow: hidden;
    min-height: 4.95em;
    margin-bottom: 1rem !important;
    color: var(--muted-color);
    font-size: 0.95rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.project-card__tech { min-height: 2.35rem; max-height: 4.85rem; overflow: hidden; }
.project-card__body .btn { margin-top: auto; }

.project-tech-chip {
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #e6eefc !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.project-thumb {
    width: 4.5rem;
    height: 3rem;
    border-radius: 0.85rem;
    object-fit: cover;
    display: block;
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.18);
}

.project-thumb--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    font-size: 1rem;
}

.project-details-modal {
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(10, 18, 31, 0.98), rgba(4, 9, 18, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f4f8ff;
}

.project-details-modal .modal-header,
.project-details-modal .modal-footer {
    border-color: rgba(255, 255, 255, 0.08);
}

.project-details-modal__eyebrow {
    display: inline-flex;
    margin-bottom: 0.25rem;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 700;
}

.project-details__hero {
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.project-details__hero img {
    width: 100%;
    max-height: 24rem;
    object-fit: cover;
}

.project-details__description {
    color: var(--muted-color);
    line-height: 1.8;
}

.project-details__tech .project-tech-chip {
    background: rgba(255, 255, 255, 0.06);
}

.certificates-grid {
    position: relative;
}

.certificate-card {
    height: 100%;
    border-radius: 1.75rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.9), rgba(6, 12, 22, 0.96));
    box-shadow: var(--public-shadow);
    backdrop-filter: blur(18px);
    transform: translateY(0);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.certificate-card:hover {
    transform: translateY(-6px);
    border-color: rgba(104, 211, 145, 0.24);
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.28);
}

.certificate-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.certificate-card__image,
.certificate-card__placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-card__image,
.certificate-card__image {
    image-rendering: auto;
    transform: translateZ(0);
}

.certificate-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 2.4rem;
    background:
        radial-gradient(circle at top, rgba(96, 165, 250, 0.18), transparent 50%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.certificate-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(3, 8, 18, 0.08), rgba(3, 8, 18, 0.32));
}

.certificate-card__overlay .badge {
    backdrop-filter: blur(10px);
}

.certificate-card__body {
    padding: 1.35rem;
}

.certificate-card__organization {
    display: inline-flex;
    margin-bottom: 0.4rem;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    background: rgba(104, 211, 145, 0.12);
    color: #d8ffe7;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.certificate-card__title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
    color: #f4f8ff;
}

.certificate-card__date {
    color: var(--public-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.certificate-thumb {
    width: 4.5rem;
    height: 3rem;
    border-radius: 0.85rem;
    object-fit: cover;
    display: block;
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.18);
}

.certificate-thumb--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    font-size: 1rem;
}

.image-viewer__content {
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(3, 8, 18, .98);
    color: #fff;
}

.image-viewer__content .modal-header,
.image-viewer__content .modal-footer { border-color: rgba(255, 255, 255, .12); }
.image-viewer__body { display: grid; min-height: min(72vh, 52rem); place-items: center; overflow: hidden; padding: 1rem; position: relative; }
.image-viewer__body img { display: block; max-width: 100%; max-height: calc(72vh - 2rem); object-fit: contain; transform: scale(var(--image-zoom, 1)); transform-origin: center; transition: transform .16s ease-out; will-change: transform; }
.image-viewer__nav { position: absolute; z-index: 1; top: 50%; display: grid; width: 2.75rem; height: 2.75rem; place-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; color: #fff; background: rgba(3, 8, 18, .65); font-size: 1.8rem; transform: translateY(-50%); }
.image-viewer__nav:hover { background: rgba(37, 99, 235, .85); }.image-viewer__nav--previous { left: 1rem; }.image-viewer__nav--next { right: 1rem; }
@media (max-width: 575.98px) { .image-viewer__body { min-height: 65vh; padding: .5rem; }.image-viewer__nav { width: 2.25rem; height: 2.25rem; }.image-viewer__nav--previous { left: .5rem; }.image-viewer__nav--next { right: .5rem; } }

.contact-panel,
.contact-form-panel {
    height: 100%;
    border: 1px solid var(--public-card-border);
    border-radius: 1.65rem;
    background: linear-gradient(180deg, rgba(12, 22, 40, 0.9), rgba(8, 16, 29, 0.85));
    box-shadow: var(--public-shadow);
}

.contact-panel__inner {
    padding: 1.6rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-method:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.contact-method__icon {
    display: inline-grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    flex: 0 0 auto;
    border-radius: 0.95rem;
    color: #06101d;
    background: linear-gradient(135deg, var(--public-accent), var(--public-accent-2));
    box-shadow: 0 0.85rem 1.8rem rgba(96, 165, 250, 0.18);
}

.contact-method small {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--public-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 700;
}

.contact-method strong {
    color: #f4f8ff;
    font-size: 1rem;
}

.contact-form-panel {
    padding: 1.6rem;
}

.contact-form-panel .form-control,
.contact-form-panel .form-select {
    border-radius: 0.9rem;
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--public-text);
}

.contact-form-panel .form-control::placeholder {
    color: rgba(229, 238, 252, 0.45);
}

.contact-form-panel .form-control:focus,
.contact-form-panel .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.16);
    border-color: rgba(96, 165, 250, 0.55);
}

.contact-form-panel textarea.form-control {
    min-height: 11rem;
}

.contact-form-panel .form-label {
    color: #f4f8ff;
    font-weight: 600;
}

.contact-form-panel .invalid-feedback {
    color: #ffb4b4;
}

.certificate-file-preview {
    min-height: 12rem;
    padding: 1.1rem;
    border-radius: 1.25rem;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.14), transparent 45%),
        rgba(255, 255, 255, 0.03);
    color: #f4f8ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-details-modal {
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(10, 18, 31, 0.98), rgba(4, 9, 18, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f4f8ff;
}

.certificate-details-modal .modal-header,
.certificate-details-modal .modal-footer {
    border-color: rgba(255, 255, 255, 0.08);
}

.certificate-details-modal__eyebrow {
    display: inline-flex;
    margin-bottom: 0.25rem;
    color: var(--public-accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 700;
}

.certificate-details__hero {
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.certificate-details__hero img {
    width: 100%;
    max-height: 24rem;
    object-fit: cover;
}

.certificate-details__description {
    color: var(--muted-color);
    line-height: 1.8;
}

.certificate-details__meta {
    color: var(--public-muted);
    font-size: 0.95rem;
}

.certificate-details__meta strong {
    color: #f4f8ff;
}

.experience-timeline {
    position: relative;
    max-width: 62rem;
    margin: 0 auto;
    padding-left: 1.25rem;
}

.experience-timeline::before {
    content: "";
    position: absolute;
    top: 0.35rem;
    bottom: 0.35rem;
    left: 0.45rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.95), rgba(104, 211, 145, 0.7));
}

.experience-item {
    position: relative;
    display: grid;
    grid-template-columns: 1.2rem 1fr;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.experience-item__marker {
    position: relative;
    width: 0.95rem;
    height: 0.95rem;
    margin-top: 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--public-accent), var(--public-accent-2));
    box-shadow: 0 0 0 0.45rem rgba(96, 165, 250, 0.1);
}

.experience-item__content {
    padding: 1.3rem 1.4rem;
    border: 1px solid var(--public-card-border);
    border-radius: 1.4rem;
    background: linear-gradient(180deg, rgba(12, 22, 40, 0.92), rgba(9, 18, 34, 0.84));
    box-shadow: var(--public-shadow);
}

.experience-item__top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.experience-item__company {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: var(--public-accent);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.experience-item__top h3 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.experience-item__period {
    flex: 0 0 auto;
    align-self: flex-start;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.experience-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    color: var(--public-muted);
    font-size: 0.9rem;
}

.experience-item__meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.experience-item__description {
    color: #d7e4f6;
    line-height: 1.8;
}

.education-timeline {
    position: relative;
    max-width: 62rem;
    margin: 0 auto;
    padding-left: 1.25rem;
}

.education-timeline::before {
    content: "";
    position: absolute;
    top: 0.35rem;
    bottom: 0.35rem;
    left: 0.45rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.95), rgba(96, 165, 250, 0.7));
}

.education-item {
    position: relative;
    display: grid;
    grid-template-columns: 1.2rem 1fr;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.education-item__marker {
    position: relative;
    width: 0.95rem;
    height: 0.95rem;
    margin-top: 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--public-accent-3), var(--public-accent-2));
    box-shadow: 0 0 0 0.45rem rgba(245, 158, 11, 0.12);
}

.education-item__content {
    padding: 1.3rem 1.4rem;
    border: 1px solid var(--public-card-border);
    border-radius: 1.4rem;
    background: linear-gradient(180deg, rgba(12, 22, 40, 0.92), rgba(9, 18, 34, 0.84));
    box-shadow: var(--public-shadow);
}

.education-item__top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.education-item__institution {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: var(--public-accent-3);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.education-item__top h3 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.education-item__year {
    flex: 0 0 auto;
    align-self: flex-start;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.education-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    color: var(--public-muted);
    font-size: 0.9rem;
}

.education-item__meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.education-item__description {
    color: #d7e4f6;
    line-height: 1.8;
}

.empty-state {
    max-width: 40rem;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-state i {
    display: inline-grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    border-radius: 1.2rem;
    color: #06101d;
    background: linear-gradient(135deg, var(--public-accent), var(--public-accent-3));
    font-size: 1.6rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 0;
    color: var(--public-muted);
}

.public-footer {
    padding: 1.6rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(4, 10, 18, 0.45);
}

.public-footer__brand {
    font-weight: 700;
}

.public-footer small {
    color: var(--public-muted);
}

.public-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.public-socials a {
    display: inline-grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.public-socials a:hover,
.public-socials a:focus {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, var(--public-accent), var(--public-accent-2));
    border-color: transparent;
    color: #06101d;
    font-weight: 800;
}

.btn-primary:hover,
.btn-primary:focus {
    color: #06101d;
    filter: brightness(1.05);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
}

.reveal {
    animation: fadeUp 0.8s ease both;
}

.reveal--delay-1 { animation-delay: 0.15s; }
.reveal--delay-2 { animation-delay: 0.3s; }
.reveal--delay-3 { animation-delay: 0.45s; }
.reveal--delay-4 { animation-delay: 0.6s; }

section[id] {
    scroll-margin-top: 5.5rem;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes skillGrow {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 5.25rem;
    }

    .hero-copy h1 {
        line-height: 1.02;
    }

    .hero-actions {
        gap: 0.7rem;
    }

    .hero-card__meta {
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding-top: 4.5rem;
        padding-bottom: 3rem;
    }

    .content-section {
        padding: 3.5rem 0;
    }

    .hero-copy h1 {
        font-size: clamp(2.35rem, 13vw, 3.4rem);
    }

    .hero-summary {
        font-size: 1rem;
    }

    .hero-card {
        padding: 1rem;
    }

    .hero-portrait,
    .hero-portrait__fallback {
        min-height: 18rem;
        height: 18rem;
    }

    .glass-card__body,
    .skill-card,
    .info-card,
    .empty-state {
        border-radius: 1.1rem;
    }

    .public-footer .row {
        gap: 1rem;
    }

    .experience-timeline {
        padding-left: 0.95rem;
    }

    .experience-item {
        grid-template-columns: 0.95rem 1fr;
        gap: 0.75rem;
    }

    .experience-item__top {
        flex-direction: column;
    }

    .experience-item__period {
        align-self: flex-start;
    }

    .education-timeline {
        padding-left: 0.95rem;
    }

    .education-item {
        grid-template-columns: 0.95rem 1fr;
        gap: 0.75rem;
    }

    .education-item__top {
        flex-direction: column;
    }

    .education-item__year {
        align-self: flex-start;
    }

    .contact-panel__inner,
    .contact-form-panel {
        padding: 1.25rem;
    }

    .certificate-card__overlay {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Refined public portfolio interface */
:root { --public-surface: #0d1b2e; --public-text: #f4f8ff; --public-muted: #b7c5db; --public-accent: #71e0aa; --public-accent-2: #75b7ff; --accent-2: var(--public-accent-2); --muted-color: var(--public-muted); --public-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .25); }
body.public-body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
.public-navbar-wrap { position: sticky; top: 0; z-index: 1030; }
.public-navbar { min-height: 4.75rem; background: rgba(7, 17, 31, .88); }
.navbar-dark .navbar-nav .nav-link { position: relative; padding: .7rem .8rem; font-size: .9rem; }
.navbar-dark .navbar-nav .nav-link::after { content: ""; position: absolute; right: .8rem; bottom: .35rem; left: .8rem; height: 2px; border-radius: 99px; background: var(--public-accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.navbar-dark .navbar-nav .nav-link:hover::after, .navbar-dark .navbar-nav .nav-link:focus-visible::after { transform: scaleX(1); }
.btn { min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; border-radius: .8rem; font-weight: 700; letter-spacing: .01em; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }.btn:active { transform: translateY(0); }.btn-primary { box-shadow: 0 .75rem 1.5rem rgba(86, 165, 242, .2); }.btn-primary:hover, .btn-primary:focus { box-shadow: 0 1rem 2rem rgba(86, 165, 242, .3); }
.btn-outline-primary { border-color: rgba(117, 183, 255, .7); color: #dcecff; }.btn-outline-primary:hover, .btn-outline-primary:focus { color: #06101d; background: var(--public-accent-2); border-color: var(--public-accent-2); }
.hero-section { min-height: min(48rem, calc(100vh - 4.75rem)); display: grid; align-items: center; padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(4rem, 7vw, 6rem); }
.hero-copy h1 { max-width: 13ch; text-wrap: balance; background: linear-gradient(135deg, #fff 10%, #cfe3ff 70%, #9ae6bf); -webkit-background-clip: text; background-clip: text; color: transparent; }.hero-summary, .section-heading p { text-wrap: pretty; }.hero-card { border-radius: 2rem; }.hero-portrait img { transition: transform .5s ease; }.hero-card:hover .hero-portrait img { transform: scale(1.035); }
.content-section { padding: clamp(3.75rem, 8vw, 6.5rem) 0; }.content-section:nth-of-type(even)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, transparent, rgba(255,255,255,.018), transparent); }.section-heading { margin-bottom: clamp(1.75rem, 4vw, 3rem); }.section-heading h2 { text-wrap: balance; }
.glass-card, .skill-card, .info-card, .empty-state, .experience-item__content, .education-item__content, .contact-panel, .contact-form-panel { box-shadow: 0 1rem 3rem rgba(0, 0, 0, .18); }
.glass-card, .info-card, .experience-item__content, .education-item__content, .contact-panel, .contact-form-panel, .skill-card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }.glass-card:hover, .info-card:hover, .skill-card:hover, .experience-item__content:hover, .education-item__content:hover { transform: translateY(-4px); border-color: rgba(117, 183, 255, .28); box-shadow: 0 1.35rem 3.5rem rgba(0, 0, 0, .24); }
.project-card, .certificate-card { border-radius: 1.35rem; }.project-card__image, .certificate-card__image { transition: transform .45s ease; }.project-card:hover .project-card__image, .certificate-card:hover .certificate-card__image { transform: scale(1.06); }.project-card__body, .certificate-card__body { display: flex; flex-direction: column; }.project-card__body .btn, .certificate-card__body .btn { margin-top: auto; }.project-card__summary { color: var(--public-muted); }
.experience-item__content, .education-item__content { border-left: 3px solid rgba(117, 183, 255, .58); }.education-item__content { border-left-color: rgba(245, 158, 11, .68); }
.public-footer { margin-top: 1.5rem; padding: 2.25rem 0; background: rgba(3, 9, 17, .72); }
a:focus-visible, button:focus-visible, .form-control:focus-visible, .form-select:focus-visible { outline: 3px solid rgba(113, 224, 170, .9); outline-offset: 3px; }.btn-close { filter: invert(1) grayscale(1) brightness(2); }
@media (max-width: 991.98px) { .public-navbar { min-height: 4.25rem; }.public-navbar .navbar-collapse { margin-top: .75rem; padding: .75rem 0 1rem; border-top: 1px solid rgba(255,255,255,.08); }.public-navbar .navbar-nav { margin: 0 !important; }.public-navbar .d-flex { margin-top: .5rem; }.hero-section { min-height: auto; } }
@media (max-width: 575.98px) { .hero-actions .btn { width: 100%; }.hero-card__meta-pill { white-space: normal; }.experience-item__content, .education-item__content { padding: 1.1rem; }.project-card__body, .certificate-card__body { padding: 1.15rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
