@import 'variables.css';

html {
    scroll-behavior: smooth;
}





html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

html,
body {
    scroll-padding-top: var(--scroll-offset);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.scroll-section {
    scroll-margin-top: var(--scroll-offset);
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px;
}

::selection {
    background: var(--primary);
    color: #fff;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    background-image:
        radial-gradient(1200px 1200px at 10% 0%, rgba(212, 91, 76, 0.08), transparent 60%),
        radial-gradient(1000px 1000px at 100% 0%, rgba(31, 77, 90, 0.12), transparent 55%),
        radial-gradient(1100px 900px at 50% 100%, rgba(95, 125, 139, 0.1), transparent 55%);
    background-size: 200% 200%;

    overflow-x: hidden;
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    position: relative;
    transition: opacity 0.3s ease;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: var(--header-height);
    scrollbar-color: rgba(31, 77, 90, 0.4) rgba(255, 255, 255, 0.7);
    scrollbar-width: thin;
    font-feature-settings: "kern", "liga", "salt";
}

body.fade-out {
    opacity: 0;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-modal);
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(31, 77, 90, 0.2);
    border-radius: 99px;
    border: 3px solid white;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(31, 77, 90, 0.5);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-base) var(--ease-smooth),
        background var(--duration-base) var(--ease-smooth),
        transform var(--duration-base) var(--ease-smooth),
        box-shadow var(--duration-base) var(--ease-smooth);
}

:where(a, button) {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    box-shadow: var(--ring-soft);
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
    -webkit-appearance: none;
    appearance: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

:where(section[id]) {
    scroll-margin-top: 120px;
}

button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.container {
    width: min(var(--container-width), calc(100% - var(--container-gutter)));
    margin-inline: auto;
}





h1,
h2,
h3,
.hero__title,
.section-header {
    text-wrap: balance;
    letter-spacing: -0.02em;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-enter {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-smooth),
        transform var(--duration-slow) var(--ease-smooth);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

.delay-6 {
    animation-delay: 0.6s;
}




.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-sticky);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86));
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.08);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.08);
    transition: background var(--duration-base) var(--ease-smooth),
        box-shadow var(--duration-base) var(--ease-smooth),
        border-color var(--duration-base) var(--ease-smooth);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    transition: padding var(--duration-base) var(--ease-smooth);
}

.topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.topbar.is-compact {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 255, 255, 0.92));
    border-bottom-color: rgba(var(--primary-rgb), 0.16);
    box-shadow: 0 12px 22px rgba(var(--primary-rgb), 0.14);
}

.topbar.is-compact .topbar__inner {
    padding: 6px 0;
}

.topbar.is-compact .brand__logo {
    height: 36px;
}

.topbar.is-compact .brand__name {
    font-size: 16px;
}

.topbar.is-compact .brand__role {
    font-size: 9px;
}

.topbar.is-compact .nav a {
    padding: 6px 14px;
}

@media (max-width: 1100px) {
    .topbar__inner {
        padding: 10px 0;
    }

    .brand {
        gap: 10px;
    }

    .brand__logo {
        height: 38px;
    }

    .brand__name {
        font-size: 16px;
    }

    .brand__role {
        font-size: 10px;
        letter-spacing: 0.6px;
    }

    .nav {
        gap: 6px;
        padding: 6px 4px;
    }

    .nav a {
        font-size: 12px;
        padding: 7px 12px;
    }

    .nav-toggle {
        height: 40px;
    }
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(31, 77, 90, 0.2);
    border-color: var(--card-border);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    color: var(--accent);
    border-color: var(--accent);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 8px;
}

.brand__logo {
    height: 44px;
    width: auto;
    transition: transform var(--duration-base) var(--ease-out),
        height var(--duration-base) var(--ease-smooth);
}

.brand:hover .brand__logo {
    transform: rotate(-2deg);
}

.brand__text {
    line-height: 1.2;
}

.brand__name {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
    transition: font-size var(--duration-base) var(--ease-smooth);
}

.brand__role {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: font-size var(--duration-base) var(--ease-smooth);
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
    box-shadow: 0 12px 24px rgba(var(--primary-rgb), 0.08);
}

.nav a {
    font-family: var(--font-brand);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    padding: 8px 16px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    transition: color var(--duration-base) var(--ease-smooth),
        background var(--duration-base) var(--ease-smooth),
        transform var(--duration-base) var(--ease-smooth),
        padding var(--duration-base) var(--ease-smooth);
}

@media (max-width: 980px) {
    .nav a {
        font-size: 12px;
        padding: 8px 14px;
    }
}

.nav a:hover {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
    transform: translateY(-1px);
}

.nav a.is-active {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.14);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    background: var(--accent);
    border-radius: 999px;
    opacity: 0;
    transform: scaleX(0.4);
    transform-origin: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav a.is-active::after,
.nav a:hover::after,
.nav a:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(31, 77, 90, 0.2);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(70, 84, 163, 0.15);
}

.nav-toggle__bar {
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

body.mobile-nav-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

body.mobile-nav-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

body.mobile-nav-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}




.hero {
    position: relative;
    padding: 28px 0 40px;
    display: flex;
    align-items: center;
    flex: 1;
}

@media (max-width: 600px) {
    .hero {
        padding: 20px 0 36px;
    }
}

.hero__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-top-color: var(--card-border-strong);
    border-left-color: var(--card-border-strong);

    border-radius: var(--radius2);
    box-shadow: var(--shadow-soft);

    padding: clamp(36px, 4.5vw, 58px) clamp(24px, 4vw, 42px);
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    transition: transform 0.45s ease, box-shadow 0.45s ease, background 0.45s ease, border-color 0.45s ease;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.hero .glass-card {
    max-width: 760px;
    margin-inline: auto;
    width: 100%;
}

@media (max-width: 768px) {
    .glass-card {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}


.glass-card:hover {
    transform: translateY(-4px) scale(1.005);
    box-shadow: var(--shadow-hover);
    border-color: var(--card-border-strong);
    background: var(--card-hover-bg);
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #FFFFFF;
    background: #FFF;
    overflow: hidden;
    margin: 0 auto 32px;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.3),
        0 16px 36px rgba(70, 84, 163, 0.12);
    transition: transform var(--duration-slow) var(--ease-out),
        box-shadow var(--duration-slow) var(--ease-out),
        border-color var(--duration-slow) var(--ease-out);
    position: relative;
}

.avatar:hover {
    transform: scale(1.02);
    border-color: rgba(31, 77, 90, 0.2);
    box-shadow: 0 18px 36px rgba(31, 77, 90, 0.16);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-family: var(--font-brand);
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 700;
    margin: 0 0 10px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 60%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.6px;
}

.profile-name::selection {
    -webkit-text-fill-color: #fff;
    background: var(--primary);
}

.profile-role {
    font-size: 15px;
    color: var(--primary);
    font-weight: 600;
    margin: 0;
    margin-bottom: 40px;
    line-height: 1.5;
    background: rgba(31, 77, 90, 0.06);
    border: 1px solid rgba(31, 77, 90, 0.1);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 99px;
}

.hero__title {
    font-family: var(--font-brand);
    font-size: var(--fs-hero);
    font-weight: 700;
    line-height: var(--lh-tight);
    margin: 0 0 24px;
    color: var(--text);
    background: linear-gradient(135deg, var(--text) 0%, #2c3e50 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero__title span {
    color: var(--accent);
}

.hero__lead {
    font-size: var(--fs-lead);
    color: var(--muted);
    font-weight: 400;
    line-height: var(--lh-body);
    max-width: 58ch;
    margin: 0 auto 24px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
    justify-content: center;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    background: rgba(var(--primary-rgb), 0.05);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1;
    transition: all 0.2s ease;
}

.tag:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.22);
    transform: translateY(-1px);
}


.cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.intro-text .cta {
    justify-content: flex-start;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    min-height: 54px;
    padding: 18px 38px;
    border-radius: 99px;
    border: 2px solid transparent;
    font-family: var(--font-brand);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration-base) var(--ease-smooth),
        box-shadow var(--duration-base) var(--ease-smooth),
        background var(--duration-base) var(--ease-smooth),
        color var(--duration-base) var(--ease-smooth),
        border-color var(--duration-base) var(--ease-smooth);
    text-decoration: none;
    letter-spacing: 0.3px;
}

.btn:active {
    transform: translateY(-1px) scale(0.99);
}




.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid rgba(255, 255, 255, 0.6);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: var(--z-drawer);
    padding: 88px 24px 24px;
}

.mobile-nav__inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav a {
    font-family: var(--font-brand);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(70, 84, 163, 0.06);
}

.mobile-nav a.is-active {
    background: rgba(70, 84, 163, 0.12);
    color: var(--primary);
}

.mobile-nav__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(16, 18, 27, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: var(--z-backdrop);
}

body.mobile-nav-open .mobile-nav {
    transform: translateX(0);
}

body.mobile-nav-open .mobile-nav__backdrop {
    opacity: 1;
    pointer-events: auto;
}

body.mobile-nav-open {
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #2a6a78 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(31, 77, 90, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    position: relative;
    overflow: hidden;
    z-index: var(--z-low);
}


.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 22px 42px rgba(31, 77, 90, 0.32),
        0 0 0 3px rgba(31, 77, 90, 0.12);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.96);
    color: var(--primary);
    border-color: rgba(31, 77, 90, 0.25);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(31, 77, 90, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(31, 77, 90, 0.16);
}




.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 28px;
    margin-top: -20px;

}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 16px rgba(31, 77, 90, 0.08);
    transition: transform var(--duration-base) var(--ease-out),
        box-shadow var(--duration-base) var(--ease-out),
        background var(--duration-base) var(--ease-out),
        color var(--duration-base) var(--ease-out);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5px;
}

.social-icon:hover {
    color: #fff;
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(31, 77, 90, 0.2);
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--accent);
    margin-left: 4px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}




@media (max-width: 900px) {
    .topbar__inner {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .brand {
        justify-content: flex-start;
    }

    .nav {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .presentation-image-modern {
        transform: none;
    }

}

@media (max-width: 768px) {
    .container {
        width: min(1000px, calc(100% - 24px));
    }

    .page-content {
        padding: 40px 0 64px;
    }

    .hero__title {
        font-size: var(--fs-hero);
    }

    .section-header {
        font-size: var(--fs-section);
    }

    .page-content section:not(:last-child) {
        margin-bottom: var(--space-section-mobile);
    }

    .intro-grid {
        margin-bottom: var(--space-section-mobile);
    }

    .hero__lead {
        margin-bottom: 28px;
    }

    .cta {
        flex-direction: column;
        align-items: stretch;
    }

    .cta .btn {
        width: 100%;
    }

    .intro-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        align-items: stretch;
        margin-top: 24px;
    }

    .intro-actions .btn {
        width: 100%;
    }

    .intro-actions .btn:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .task-row {
        align-items: flex-start;
        gap: 10px;
    }

    .task-name {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .task-action {
        display: none;
    }

    .glass-card {
        padding: clamp(32px, 6vw, 48px) clamp(20px, 6vw, 36px);
    }

}

@media (max-width: 600px) {

    .glass-card {
        padding: 44px 22px;
        border-radius: 24px;
    }

    .topbar__inner {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    .nav {
        display: none;
    }

    .nav a {
        font-size: 11px;
        padding: 6px 12px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .hero {
        padding: 22px 0 36px;
    }

    .avatar {
        width: 128px;
        height: 128px;
        margin-bottom: 24px;
    }

    .profile-name {
        font-size: 30px;
    }

    .profile-role {
        font-size: 13px;
        margin-bottom: 28px;
        padding: 6px 14px;
        max-width: 100%;
    }

    .hero__title {
        font-size: var(--fs-hero);
    }

    .hero__lead {
        font-size: var(--fs-lead);
    }

    .task-card {
        padding: 28px 20px;
    }

    .task-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .task-icon-box {
        width: 64px;
        height: 64px;
        margin-right: 0;
        padding: 10px;
    }

    .task-title {
        font-size: 18px;
    }

    .task-row {
        padding: 10px 12px;
    }

    .social-links {
        gap: 16px;
        margin-top: -12px;
        margin-bottom: 22px;
        flex-wrap: wrap;
        justify-content: center;
    }

    body {
        background-size: 100% 100%;
    }

}

@media (max-width: 520px) {
    .feature-card {
        padding: 28px 20px;
    }

    .timeline-card {
        padding: 22px 20px;
    }

    .contact-info {
        gap: 20px;
    }

    .info-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .info-item a,
    .info-item span {
        overflow-wrap: anywhere;
        line-height: 1.5;
    }

    .icon-box {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .intro-actions .btn,
    .cta .btn {
        padding: 14px 22px;
        font-size: 14px;
    }

    .intro-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .grid-auto-350 {
        grid-template-columns: 1fr;
    }
}




.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    text-align: left;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-right: 30px;
    border-right: 1px solid rgba(107, 122, 204, 0.2);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.icon-box {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(70, 84, 163, 0.06);
    transition: transform var(--duration-base) var(--ease-out),
        box-shadow var(--duration-base) var(--ease-out),
        background var(--duration-base) var(--ease-out),
        color var(--duration-base) var(--ease-out);
}

.info-item:hover .icon-box {
    transform: scale(1.1) rotate(-8deg);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 24px rgba(70, 84, 163, 0.2);
}

.info-item h3 {
    font-family: var(--font-brand);
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 6px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.info-item a,
.info-item span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    transition: color 0.2s;
    text-decoration-line: none;
}

.info-item a:hover {
    color: var(--accent);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.contact-email {
    display: inline-block;
}

@media (max-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-left: 6px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(31, 77, 90, 0.15);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    transition: transform var(--duration-base) var(--ease-out),
        box-shadow var(--duration-base) var(--ease-out),
        background var(--duration-base) var(--ease-out),
        border-color var(--duration-base) var(--ease-out);
    outline: none;
    resize: vertical;
    box-shadow:
        inset 0 2px 4px rgba(31, 77, 90, 0.04),
        0 6px 14px rgba(31, 77, 90, 0.08);
}

.form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.form-control:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(31, 77, 90, 0.25);
}

.form-control:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow:
        0 10px 24px rgba(31, 77, 90, 0.12),
        0 0 0 3px rgba(31, 77, 90, 0.08);
    transform: translateY(-2px);
}

.form-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: color 0.2s ease;
}

.form-group:focus-within .form-label {
    color: var(--primary);
}

.alert {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 600;
    line-height: 1.6;
    background: var(--card-bg);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: var(--success-bg);
    border-color: var(--success-border);
    color: var(--success);
}

.alert-danger {
    background: var(--danger-bg);
    border-color: var(--danger-border);
    color: var(--danger);
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        border-right: none;
        border-bottom: 1px solid rgba(107, 122, 204, 0.15);
        padding-right: 0;
        padding-bottom: 30px;
        gap: 24px;
    }

    .contact-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-group {
        grid-column: span 1 !important;
    }
}




.feature-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: var(--radius2);
    padding: 38px;
    box-shadow: var(--shadow-soft);
    align-items: center;
    transition: transform var(--duration-slow) var(--ease-smooth),
        box-shadow var(--duration-slow) var(--ease-smooth),
        background var(--duration-slow) var(--ease-smooth),
        border-color var(--duration-slow) var(--ease-smooth);
    will-change: transform;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px) scale(1.005);
    box-shadow: var(--shadow-hover);
    background: var(--card-hover-bg);
    border-color: var(--card-border-strong);
}

.feature-content h2 {
    font-family: var(--font-brand);
    font-size: 32px;
    margin: 0 0 16px;
    color: var(--text);
}

.feature-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.feature-image-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(31, 77, 90, 0.14);
    transform: rotate(1deg);
    transition: transform 0.4s ease;
    border: 2px solid #fff;
}

.feature-card:hover .feature-image-container {
    transform: translateY(var(--parallax-offset, 0px)) rotate(0deg) scale(1.01);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.step-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    padding: 24px 22px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    text-align: center;
    transition: transform var(--duration-slow) var(--ease-smooth),
        box-shadow var(--duration-slow) var(--ease-smooth),
        background var(--duration-slow) var(--ease-smooth),
        border-color var(--duration-slow) var(--ease-smooth);
    will-change: transform;
    will-change: transform;
    position: relative;
    box-shadow: var(--shadow-sm);
    backface-visibility: hidden;
    transform: translateZ(0);
}

.step-card:hover {
    transform: translateY(-6px) scale(1.02);
    background: var(--card-hover-bg);
    box-shadow: var(--shadow-hover);
    border-color: var(--card-border-strong);
}

.step-badge {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--light-blue), var(--primary));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
    box-shadow: 0 10px 20px rgba(70, 84, 163, 0.2);
}

.step-card h3 {
    font-size: 18px;
    margin: 0 0 6px;
    color: var(--text);
    font-family: var(--font-brand);
}

.step-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.method-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: transform var(--duration-base) var(--ease-smooth),
        box-shadow var(--duration-base) var(--ease-smooth),
        border-color var(--duration-base) var(--ease-smooth);
    will-change: transform;
}

.method-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.method-card h3 {
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 768px) {

    .feature-card,
    .methods-grid {
        grid-template-columns: 1fr;
    }

    .feature-image-container {
        transform: rotate(0deg);
        margin-top: 20px;
    }
}





.step-card {
    position: relative;
    z-index: var(--z-elevated);
    overflow: hidden;
}




.page-content {
    padding: clamp(44px, 6vw, 72px) 0 clamp(72px, 9vw, 116px);
}

@media (min-width: 600px) {
    .contact-email {
        white-space: nowrap;
    }
}

.page-content section:not(:last-child) {
    margin-bottom: var(--space-section);
}

.section-header {
    font-family: var(--font-brand);
    font-size: var(--fs-section);
    font-weight: 700;
    color: var(--text);
    line-height: var(--lh-snug);
    margin: 0 0 28px;
    text-align: left;
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
    letter-spacing: 0.3px;
}

.section-header::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    margin: 10px 0 0;
    border-radius: 999px;
    opacity: 0.95;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-family: var(--font-brand);
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-align: left;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--duration-base) var(--ease-smooth);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs__sep {
    opacity: 0.5;
}

.breadcrumbs [aria-current="page"] {
    color: var(--text);
    font-weight: 700;
}

@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 11px;
        gap: 8px;
    }
}

.page-toc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    text-align: left;
    padding: 18px 22px;
}

.page-toc:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
    border-color: rgba(31, 77, 90, 0.12);
}

.page-toc__title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted);
    font-weight: 700;
}

.page-toc__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.page-toc__link {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(31, 77, 90, 0.06);
    border: 1px solid rgba(31, 77, 90, 0.08);
    color: var(--primary);
    font-family: var(--font-brand);
    font-size: 13px;
    font-weight: 600;
    transition: background var(--duration-base) var(--ease-smooth),
        color var(--duration-base) var(--ease-smooth),
        transform var(--duration-base) var(--ease-smooth),
        box-shadow var(--duration-base) var(--ease-smooth);
}

.page-toc__link:hover {
    background: rgba(31, 77, 90, 0.1);
    transform: translateY(-1px);
}

.page-toc__link.is-active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 16px rgba(31, 77, 90, 0.16);
}

@media (max-width: 768px) {
    .page-toc {
        align-items: flex-start;
    }
}

.page-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.page-nav__link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(31, 77, 90, 0.1);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration-base) var(--ease-smooth),
        box-shadow var(--duration-base) var(--ease-smooth),
        border-color var(--duration-base) var(--ease-smooth),
        background var(--duration-base) var(--ease-smooth);
}

.page-nav__link:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 77, 90, 0.2);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-soft);
}

.page-nav__link--next {
    text-align: right;
    align-items: flex-end;
}

.page-nav__direction {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted);
    font-weight: 700;
}

.page-nav__title {
    font-family: var(--font-brand);
    font-size: 15px;
    color: var(--text);
    font-weight: 600;
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 48px;
    margin-bottom: var(--space-section);
}

.intro-text {
    max-width: 60ch;
}

.intro-text h1 {
    font-size: var(--fs-hero);
    font-family: var(--font-brand);
    line-height: var(--lh-tight);
    margin-bottom: 24px;
    color: var(--text);
}

.intro-bio {
    font-size: var(--fs-lead);
    color: var(--muted);
    line-height: var(--lh-body);
    margin-bottom: 28px;
    max-width: 62ch;
}

.intro-image-container {
    position: relative;
}

.intro-image-container::before {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.14;
    z-index: var(--z-negative);
    animation: blobFloat 12s ease-in-out infinite alternate;
}

@keyframes blobFloat {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    100% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

.presentation-image-modern {
    width: 100%;
    border-radius: var(--radius2);
    box-shadow: 0 24px 50px rgba(31, 77, 90, 0.16);
    transform: translateY(var(--parallax-offset, 0px));
    border: 2px solid rgba(255, 255, 255, 0.9);
    transition: transform var(--duration-slow) var(--ease-smooth);
}

.intro-image-container:hover .presentation-image-modern {
    transform: translateY(var(--parallax-offset, 0px)) scale(1.02);
}

.timeline-modern {
    position: relative;
    max-width: 900px;
    margin: 0 auto 100px;
    padding: 20px 0;
}

.timeline-modern::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(70, 84, 163, 0.15);
    transform: translateX(-50%);
}

.timeline-entry {
    position: relative;
    margin-bottom: 60px;
    width: 50%;
}

.timeline-entry:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
}

.timeline-entry:nth-child(even) {
    left: 50%;
    padding-left: 40px;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 24px;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 4px solid var(--primary);
    border-radius: 50%;
    z-index: var(--z-elevated);
    box-shadow: 0 0 0 4px rgba(70, 84, 163, 0.1);
}

.timeline-entry:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-entry:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-entry.latest .timeline-dot {
    background: var(--accent);
    border-color: var(--card-border-strong);
    box-shadow: 0 0 0 6px rgba(249, 91, 61, 0.2);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0px rgba(249, 91, 61, 0.4);
    }

    100% {
        box-shadow: 0 0 0 10px rgba(249, 91, 61, 0);
    }
}

.timeline-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 28px 34px;
    border-radius: 22px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration-base) var(--ease-smooth),
        box-shadow var(--duration-base) var(--ease-smooth),
        background var(--duration-base) var(--ease-smooth),
        border-color var(--duration-base) var(--ease-smooth);
    will-change: transform;
    position: relative;
    overflow: hidden;
}

.timeline-card:hover {
    transform: translateY(-4px) scale(1.005);
    background: var(--card-hover-bg);
    box-shadow: var(--shadow-hover);
    border-color: var(--card-border-strong);
}

.role-title {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
    margin: 0 0 4px;
}

.company-badge {
    display: inline-block;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.timeline-date {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}

.task-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: inherit;
}

.task-list li {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text);
    position: relative;
    opacity: 0.9;
}

.timeline-entry:nth-child(odd) .task-list li {
    padding-right: 0;
}

.timeline-entry:nth-child(even) .task-list li {
    padding-left: 0;
}

@media (max-width: 768px) {
    .timeline-modern {
        margin-bottom: 0;
    }

    .timeline-modern::before {
        left: 20px;
    }

    .timeline-entry {
        width: 100%;
        margin-bottom: 40px;
    }

    .timeline-entry:nth-child(odd),
    .timeline-entry:nth-child(even) {
        left: 0;
        text-align: left;
        padding-left: 50px;
        padding-right: 0;
    }

    .timeline-entry:nth-child(odd) .timeline-dot,
    .timeline-entry:nth-child(even) .timeline-dot {
        left: 10px;
        right: auto;
    }
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.tech-pill {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(70, 84, 163, 0.03);
    transition: transform var(--duration-base) var(--ease-smooth),
        box-shadow var(--duration-base) var(--ease-smooth),
        background var(--duration-base) var(--ease-smooth),
        border-color var(--duration-base) var(--ease-smooth);
    will-change: transform;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.tech-pill:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 15px 30px rgba(70, 84, 163, 0.12);
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.tech-pill img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.tech-pill span {
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
}

.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.edu-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.5));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform var(--duration-slow) var(--ease-smooth),
        box-shadow var(--duration-slow) var(--ease-smooth),
        background var(--duration-slow) var(--ease-smooth),
        border-color var(--duration-slow) var(--ease-smooth);
    will-change: transform;
}

.edu-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
    border-color: var(--card-border-strong);
    background: linear-gradient(160deg, #fff, rgba(255, 255, 255, 0.8));
}

.edu-card::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.05;
}

.edu-year {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.edu-title {
    font-family: var(--font-brand);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text);
}

.edu-school {
    font-size: 14px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.skills-subtitle {
    font-family: var(--font-brand);
    color: var(--primary);
    font-size: 18px;
    text-align: center;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .skills-wrapper {
        grid-template-columns: 1fr;
    }
}

.project-section[hidden] {
    display: none;
}

.timeline-container {
    position: relative;
    padding-left: 40px;

}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 14px;

    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--primary), transparent);
    opacity: 0.3;
}

.timeline-year-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    background: white;
    border: 1px solid var(--accent);
    color: var(--primary);
    font-family: var(--font-brand);
    font-weight: 700;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
    position: relative;
    z-index: var(--z-elevated);
    margin-bottom: 32px;
    transform: translateX(-10px);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-year-badge:hover {
    transform: translateX(-10px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.task-card {
    position: relative;
    overflow: hidden;
    text-align: left;
    transition: transform var(--duration-slow) var(--ease-out),
        box-shadow var(--duration-slow) var(--ease-out),
        border-color var(--duration-slow) var(--ease-out);
    border: 1px solid rgba(255, 255, 255, 0.8);
    will-change: transform;
}

.task-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(70, 84, 163, 0.15);
    border-color: rgba(70, 84, 163, 0.2);
}

.task-decoration {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 80px;
    height: 80px;
    opacity: 0.1;
    z-index: var(--z-base);
    pointer-events: none;
    transition: transform 0.5s ease;
}

.task-card:hover .task-decoration {
    transform: scale(1.2) rotate(20deg);
    opacity: 0.15;
}

.task-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: var(--z-low);
}

.task-icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 244, 255, 0.8));
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-shadow:
        0 10px 25px rgba(70, 84, 163, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    padding: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.task-card:hover .task-icon-box {
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 15px 35px rgba(70, 84, 163, 0.2);
}

.task-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(70, 84, 163, 0.15));
}

.task-title {
    font-family: var(--font-brand);
    font-size: 20px;
    color: var(--text);
    margin: 0;
    font-weight: 700;
}

.task-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    margin-bottom: 10px;
    transition: transform var(--duration-base) var(--ease-smooth),
        box-shadow var(--duration-base) var(--ease-smooth),
        background var(--duration-base) var(--ease-smooth),
        border-color var(--duration-base) var(--ease-smooth);
    border: 1px solid transparent;
    text-decoration: none;

}

.task-row:hover {
    background: white;
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(70, 84, 163, 0.08);
    border-color: rgba(70, 84, 163, 0.15);
}

.task-icon {
    width: 28px;
    height: 28px;
    background: var(--pale-blue);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    margin-right: 14px;
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

.task-row:hover .task-icon {
    background: var(--primary);
    color: white;
}

.task-name {
    font-size: 15px;
    color: var(--muted);
    font-weight: 500;
    flex: 1;
    transition: color 0.3s ease;
}

.task-row:hover .task-name {
    color: var(--text);
}

.task-action {
    opacity: 0;
    transform: translateX(-10px);
    transition: transform var(--duration-base) var(--ease-smooth),
        opacity var(--duration-base) var(--ease-smooth);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-row:hover .task-action {
    opacity: 1;
    transform: translateX(0);
}

.situation-card {
    transition: transform var(--duration-slow) var(--ease-smooth),
        box-shadow var(--duration-slow) var(--ease-smooth),
        border-color var(--duration-slow) var(--ease-smooth),
        background var(--duration-slow) var(--ease-smooth);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    text-align: left;
    will-change: transform;
}

.situation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(31, 77, 90, 0.12);
}

.situation-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(31, 77, 90, 0.12);
}

.situation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease-smooth);
}

.situation-card:hover::before {
    opacity: 1;
}

.situation-card:focus-within::before {
    opacity: 1;
}
    .situation-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.situation-icon {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border-radius: var(--radius2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 18px 36px rgba(31, 77, 90, 0.14),
        inset 0 2px 0 rgba(255, 255, 255, 1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    padding: 18px;
    transition: transform var(--duration-slow) var(--ease-out);
}

.situation-card:hover .situation-icon {
    transform: scale(1.05);
}

.situation-card:focus-within .situation-icon {
    transform: scale(1.05);
}

.situation-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(70, 84, 163, 0.2));
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.4);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: transform var(--duration-base) var(--ease-smooth),
        box-shadow var(--duration-base) var(--ease-smooth),
        background var(--duration-base) var(--ease-smooth),
        border-color var(--duration-base) var(--ease-smooth);
}

.benefit-item:hover {
    background: white;
    border-color: rgba(70, 84, 163, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.benefit-mark {
    color: var(--accent);
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    margin-top: 2px;
}

.situation-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--muted);
}

.situation-body .body-text,
.objective-card .body-text {
    max-width: none;
}

.objective-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}

.objective-label {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
}

.benefits-title {
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.btn span {
    display: inline-flex;
    align-items: center;
}

.project-card-highlight {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    padding: 40px;
    text-align: left;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius2);
    box-shadow: var(--shadow-soft);
    transition: transform var(--duration-base) var(--ease-smooth),
        box-shadow var(--duration-base) var(--ease-smooth);
    will-change: transform;
}

.project-card-highlight > div {
    min-width: 0;
}

.project-card-highlight > a.btn {
    justify-self: end;
}
.project-card-highlight:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 46px rgba(31, 77, 90, 0.16);
    background: var(--card-hover-bg);
    border-color: var(--card-border-strong);
}

.project-title-large {
    font-family: var(--font-brand);
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 12px;
}

.project-description {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 700px;
}

@media (max-width: 768px) {
    .project-card-highlight {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .project-card-highlight > a.btn {
        justify-self: center;
        width: 100%;
        max-width: 260px;
    }
    .situation-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .situation-icon {
        width: 96px;
        height: 96px;
        border-radius: 24px;
        padding: 14px;
    }

    .benefits-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.tech-pill {
    background: #fff;
    border-radius: 12px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform var(--duration-base) var(--ease-out),
        box-shadow var(--duration-base) var(--ease-out),
        background var(--duration-base) var(--ease-out),
        border-color var(--duration-base) var(--ease-out);
    will-change: transform;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.tech-pill:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(70, 84, 163, 0.1);
    box-shadow: 0 15px 30px rgba(70, 84, 163, 0.1);
}

.tech-pill i {
    font-size: 26px;
    color: var(--primary);
    transition: transform 0.4s ease, color 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(70, 84, 163, 0.1));
}

.tech-pill:hover i {
    transform: scale(1.2) rotate(10deg);
    color: var(--accent);
}

.tech-pill span {
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
    transition: color 0.3s ease;
}

.tech-pill:hover span {
    color: var(--primary);
}

.tech-pill.soft-skill {
    padding: 14px;
    border: 1px dashed rgba(70, 84, 163, 0.2);
    background: rgba(255, 255, 255, 0.6);
}

.tech-pill.soft-skill:hover {
    border-style: solid;
    border-color: var(--accent);
    background: white;
}

.timeline-card h3.role-title {
    background: linear-gradient(90deg, var(--primary), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.edu-card {
    background: radial-gradient(circle at top right, #ffffff, #f8f9ff);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.edu-card:hover {
    box-shadow: 0 20px 40px rgba(70, 84, 163, 0.1);
    border-color: rgba(70, 84, 163, 0.1);
}

.edu-title {
    background: linear-gradient(90deg, var(--primary), #3a4b9f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-grid {
    position: relative;
    z-index: var(--z-low);
}

.intro-grid::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(70, 84, 163, 0.05) 0%, transparent 60%);
    z-index: var(--z-negative);
    pointer-events: none;
    border-radius: 50%;
    animation: none;
}

.company-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(70, 84, 163, 0.1);
    color: var(--primary);
    padding: 6px 14px;
    transition: transform 0.3s;
}

.company-badge:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.company-badge::before {
    content: '\f1ad';

    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 14px;
    color: var(--accent);
}

.company-badge a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.company-badge a:hover {
    text-decoration: underline;
    color: var(--accent);
}

.tech-pill.soft-skill {
    background: linear-gradient(145deg, #fff, #fefefe);
    border: 1px solid #eee;
    padding: 20px;
}

.tech-pill.soft-skill i {
    color: var(--accent) !important;

    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tech-pill.soft-skill:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(249, 91, 61, 0.1);

}

.tech-pill.soft-skill:hover i {
    transform: scale(1.3) rotate(15deg);
}

.edu-year {
    display: inline-block;
    background: rgba(70, 84, 163, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}





.intro-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(31, 77, 90, 0.12);
    color: var(--primary);
    border-radius: 50px;
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 20px;
    box-shadow: 0 6px 16px rgba(31, 77, 90, 0.12);
}

.intro-actions {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.dossier-summary {
    margin-top: 32px;
    padding: 32px;
    border-left: 4px solid var(--accent);
    background: rgba(255, 255, 255, 0.6);
    text-align: left;
}

.dossier-summary h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
    color: var(--text);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}


.summary-list--spaced .summary-item {
    margin-bottom: 16px;
}

.summary-list--spaced .summary-item:last-child {
    margin-bottom: 0;
}
.summary-item {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 15px;
}

.summary-item span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ip-simple {
    max-width: 520px;
    margin: 12px 0 24px;
    text-align: center;
}

.ip-simple__value {
    font-family: var(--font-brand);
    font-size: clamp(24px, 4vw, 34px);
    letter-spacing: 1px;
    color: var(--text);
    margin-bottom: 12px;
}

.ip-simple__bar {
    display: grid;
    grid-template-columns: 3fr 1fr;
    border-radius: 14px;
    overflow: visible;
    border: 1px solid rgba(70, 84, 163, 0.2);
    box-shadow: var(--shadow-sm);
}

.ip-simple__segment {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    position: relative;
}

.ip-simple__segment--net {
    background: rgba(70, 84, 163, 0.14);
    color: var(--primary);
    border-radius: 14px 0 0 14px;
}

.ip-simple__segment--host {
    background: rgba(249, 91, 61, 0.12);
    color: var(--accent);
    border-left: 1px dashed rgba(70, 84, 163, 0.25);
    border-radius: 0 14px 14px 0;
}

.ip-simple__note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
}

.ip-simple__segment--net::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 14px solid rgba(70, 84, 163, 0.14);
}

.ip-simple__segment--host::after {
    content: "";
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 14px solid rgba(249, 91, 61, 0.12);
}

@media (max-width: 600px) {

    .ip-simple__segment--net::before,
    .ip-simple__segment--host::after {
        border-top-width: 8px;
        border-bottom-width: 8px;
        border-left-width: 12px;
        border-right-width: 12px;
    }
}

.summary-item strong {
    color: var(--text);
    font-weight: 600;
}




.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: var(--z-max);
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1f4d5a 0%, #5f7d8b 50%, #e85d4f 100%);
    box-shadow: 0 0 12px rgba(31, 77, 90, 0.4);
    border-radius: 0 4px 4px 0;
    transition: width 0.1s linear;
}




.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: transform var(--duration-base) var(--ease-smooth),
        box-shadow var(--duration-base) var(--ease-smooth),
        opacity var(--duration-base) var(--ease-smooth),
        background var(--duration-base) var(--ease-smooth);
    z-index: var(--z-overlay);
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
}







@media print {

    .topbar,
    .nav,
    .footer-glass,
    .scroll-top,
    .animate-enter,
    .cta,
    .social-links,
    .intro-image-container::before {
        display: none !important;
    }

    body,
    html {
        background: #fff !important;
        color: #000 !important;
        animation: none !important;
    }

    .container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .intro-grid {
        display: block !important;
    }

    .intro-text h1 {
        font-size: var(--fs-hero);
        color: #000 !important;
    }

    .timeline-card,
    .edu-card,
    .glass-card {
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        break-inside: avoid;
    }

    a {
        text-decoration: none !important;
        color: #000 !important;
    }
}




@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    body {
        animation: none !important;
    }
}




.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 8px;
    z-index: var(--z-skip-link);
    transition: top 0.3s;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tech-pill {
    transition: transform var(--duration-fast) var(--ease-smooth),
        background var(--duration-fast) var(--ease-smooth);
}

.tech-pill:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.9);
    cursor: default;
}




.cursor-dot,
.cursor-circle {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: var(--z-modal);
    pointer-events: none;
}

body.has-custom-cursor {
    cursor: none;
}

body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor .btn,
body.has-custom-cursor input,
body.has-custom-cursor textarea,
body.has-custom-cursor label {
    cursor: none;
}

body.has-custom-cursor .cursor-dot,
body.has-custom-cursor .cursor-circle {
    display: block;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
}

.cursor-circle {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(70, 84, 163, 0.5);
    transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

body.hovering .cursor-circle {
    width: 60px;
    height: 60px;
    background-color: rgba(70, 84, 163, 0.1);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

body.hovering .cursor-dot {
    opacity: 0.5;
}

@media (hover: none) and (pointer: coarse) {

    body.has-custom-cursor .cursor-dot,
    body.has-custom-cursor .cursor-circle {
        display: none !important;
    }

    body.has-custom-cursor,
    body.has-custom-cursor a,
    body.has-custom-cursor button {
        cursor: auto !important;
    }
}




.footer-glass {
    position: relative;
    margin-top: auto;
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(31, 77, 90, 0.1);
    padding: 60px 0 30px;
    font-size: 14px;
    color: var(--text);
    z-index: var(--z-footer);
}

body.page-home .footer-glass {
    margin-top: 32px;
}

.footer-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}

.footer-logo-wrap.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text);
    margin-bottom: 8px;
}

.footer-logo {
    height: 64px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-logo-wrap:hover .footer-logo {
    opacity: 1;
}

.footer-nav-horizontal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    align-items: center;
}

.footer-link {
    font-weight: 600;
    color: var(--text);
    transition: color 0.2s;
    text-decoration: none;
    position: relative;
}

.footer-link:hover {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.separator {
    color: var(--primary);
    opacity: 0.3;
}

.footer-social-links.centered {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer-social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-size: 20px;
}

.footer-social-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 24px rgba(31, 77, 90, 0.24);
    border-color: transparent;
}

.footer-copyright {
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-nav-horizontal {
        flex-direction: column;
        gap: 16px;
    }

    .separator {
        display: none;
    }

    .footer-glass {
        padding: 40px 0 30px;
    }
}

@media (max-width: 600px) {
    body.page-home .footer-glass {
        margin-top: 20px;
    }
}

[data-parallax] {
    --parallax-offset: 0px;
    will-change: transform;
}

.parallax-media {
    transform: translateY(var(--parallax-offset, 0px));
}




.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-accent {
    color: var(--accent);
}

.text-primary {
    color: var(--primary);
}

.text-muted {
    color: var(--muted);
}

.text-default {
    color: var(--text);
}

.fs-13 {
    font-size: 13px;
}

.fw-600 {
    font-weight: 600;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-600 {
    max-width: 600px;
}

.max-w-800 {
    max-width: 800px;
}

.max-w-85ch {
    max-width: 85ch;
}

.max-w-none {
    max-width: none;
}

.mt-10 {
    margin-top: 10px;
}

.mt-12 {
    margin-top: 12px;
}

.mt-14 {
    margin-top: 14px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-18 {
    margin-top: 18px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-24 {
    margin-top: 24px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-50 {
    margin-top: 50px;
}

.mr-8 {
    margin-right: 8px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-12 {
    margin-bottom: 12px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-50 {
    margin-bottom: 50px;
}

.mb-60 {
    margin-bottom: 60px;
}

.mb-80 {
    margin-bottom: 80px;
}

.mb-100 {
    margin-bottom: 100px;
}

.m-0 {
    margin: 0;
}

.w-full {
    width: 100%;
}

.cursor-pointer {
    cursor: pointer;
}

.opacity-80 {
    opacity: 0.8;
}

.opacity-85 {
    opacity: 0.85;
}

.opacity-90 {
    opacity: 0.9;
}

.radius-12 {
    border-radius: 12px;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.gap-8 {
    gap: 8px;
}

.gap-16 {
    gap: 16px;
}

.gap-32 {
    gap: 32px;
}

.gap-40 {
    gap: 40px;
}

.gap-60 {
    gap: 60px;
}

.grid {
    display: grid;
}

.grid-auto-350 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

@media (max-width: 640px) {
    .grid-auto-350 {
        grid-template-columns: 1fr;
    }
}

.grid-auto-130 {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.media-cover-4x3 {
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.media-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-accent-left {
    padding: 40px;
    border: 1px solid var(--card-border);
    border-left: 3px solid var(--accent);
    text-align: left;
    border-radius: var(--radius2);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.card-accent-left .body-text {
    max-width: none;
}

.badge-secondary {
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 6px 16px rgba(31, 77, 90, 0.35);
}

.pill-highlight {
    background: var(--pale-blue);
    color: var(--primary);
}

.title-md {
    margin: 0;
    font-family: var(--font-brand);
    font-size: 24px;
    color: var(--text);
}

.task-ghost {
    width: 150px;
    opacity: 0.15;
}

.eyebrow {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.body-text {
    color: var(--text);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    max-width: 62ch;
}

.subtitle {
    font-weight: 400;
    opacity: 0.8;
    font-size: 0.9em;
}

.icon-accent {
    font-size: 20px;
    color: var(--accent);
}

.btn-icon {
    margin-left: 8px;
    width: 18px;
}

.icon-space {
    margin-right: 8px;
}

.rotate-15 {
    transform: rotate(8deg);
}

.rotate--5 {
    transform: rotate(-3deg);
}

.rotate--10 {
    transform: rotate(-6deg);
}

.rotate--15 {
    transform: rotate(-8deg);
}

.layer-1 {
    position: relative;
    z-index: var(--z-low);
}

.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.error-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(249, 91, 61, 0.1) 0%, transparent 70%);
    z-index: var(--z-negative);
    pointer-events: none;
}

.error-card {
    text-align: center;
    padding: 80px 40px;
    max-width: 600px;
    margin: 0 auto;
}

.error-emoji {
    font-size: 100px;
    line-height: 1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.error-title {
    font-size: 42px;
}

.error-lead {
    font-size: 18px;
    margin-left: auto;
    margin-right: auto;
}

.error-code {
    margin-top: 40px;
    font-size: 12px;
    color: var(--muted);
    font-family: monospace;
}

.legal-content {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text);
}

.legal-title {
    font-size: 2.5em;
}

.legal-section-title {
    color: var(--primary);
    font-family: var(--font-brand);
    border-bottom: 2px solid rgba(70, 84, 163, 0.1);
    padding-bottom: 8px;
    margin-top: 32px;
}

.legal-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
    color: var(--muted);
}

.brand__logo--clean {
    background: none;
    box-shadow: none;
    border: none;
    object-fit: contain;
}




@media print {

    .topbar,
    .footer-glass,
    .scroll-top,
    .cursor-dot,
    .cursor-circle,
    .mobile-nav,
    .nav-toggle,
    .cta {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }

    .glass-card,
    .feature-card,
    .timeline-card,
    .edu-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        background: transparent !important;
        page-break-inside: avoid;
    }

    a {
        text-decoration: none !important;
        color: #000 !important;
    }
}


.binary-box {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px dashed var(--card-border);
    background: var(--card-bg);
}

.binary-box strong {
    color: var(--text);
}

.binary-box .binary-row+.binary-row {
    border-top: 1px dashed rgba(70, 84, 163, 0.2);
    margin-top: 10px;
    padding-top: 10px;
}

.binary-table {
    margin-top: 12px;
    font-family: "Courier New", monospace;
    font-size: 14px;
    line-height: 1.7;
}

.binary-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 14px;
    align-items: baseline;
}

.binary-label {
    opacity: 0.85;
    font-weight: 600;
    color: var(--primary);
    background: var(--pale-blue);
    border-radius: 999px;
    padding: 2px 10px;
    display: inline-block;
}

.binary-value {
    white-space: nowrap;
}

.binary-bit {
    display: inline-block;
    width: 0.65em;
    text-align: center;
    color: rgba(39, 9, 73, 0.75);
}

.binary-bit.match {
    color: var(--primary, #69d2ff);
    background: rgba(70, 84, 163, 0.12);
    border: 1px solid rgba(70, 84, 163, 0.2);
    border-radius: 6px;
    font-weight: 700;
}

.binary-dot {
    display: inline-block;
    width: 0.45em;
    text-align: center;
    opacity: 0.5;
}


.calc-card {
    text-align: left;
}

.calc-section {
    margin-top: 24px;
    padding-top: 8px;
    border-top: 1px solid rgba(70, 84, 163, 0.12);
}

.calc-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.calc-section--boxed {
    padding: 20px 22px;
    border-left: 4px solid var(--primary);
    border-radius: 16px;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.calc-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
}

.calc-title--small {
    font-size: 15px;
    margin-bottom: 6px;
}

.calc-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
}

.calc-inline__sep {
    color: var(--accent);
}

.calc-note {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(249, 91, 61, 0.08);
    border: 1px solid rgba(249, 91, 61, 0.2);
}


.powers-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 14px;
}

.powers-table th,
.powers-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(70, 84, 163, 0.12);
}

.powers-table th:first-child,
.powers-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text);
}

.powers-table thead th {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
}

@media (max-width: 720px) {
    .binary-box {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px dashed var(--card-border);
    background: var(--card-bg);
}

    .binary-table {
        min-width: 520px;
        font-size: 12px;
    }

    .binary-row {
        grid-template-columns: 70px 1fr;
    }

    .powers-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        min-width: 520px;
    }
}




.hero::before {
    content: "";
    position: absolute;
    inset: -10% 0 auto 0;
    height: 60%;
    background:
        radial-gradient(600px 300px at 15% 20%, rgba(212, 91, 76, 0.12), transparent 70%),
        radial-gradient(700px 400px at 85% 10%, rgba(31, 77, 90, 0.14), transparent 65%);
    z-index: var(--z-negative);
    pointer-events: none;
}

.intro-image-container::before {
    background: linear-gradient(135deg, rgba(232, 93, 79, 0.22), rgba(31, 77, 90, 0.18));
    opacity: 0.22;
    filter: blur(2px);
}

.presentation-image-modern {
    border-radius: 28px;
    border: 2px solid rgba(255, 255, 255, 0.95);
}

.glass-card {
    border-color: rgba(31, 77, 90, 0.08);
}

.glass-card:hover {
    border-color: rgba(31, 77, 90, 0.18);
}

.project-card-highlight {
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-soft);
    backface-visibility: hidden;
    transform: translateZ(0);
}

.project-card-highlight::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--primary));
}

.project-title-large {
    color: var(--text);
    letter-spacing: 0.3px;
}

.project-description {
    color: var(--muted);
}

.timeline-modern::before {
    background: rgba(31, 77, 90, 0.16);
}

.timeline-dot {
    border-color: var(--primary);
    box-shadow: 0 0 0 6px rgba(31, 77, 90, 0.08);
}

.timeline-entry.latest .timeline-dot {
    background: var(--accent);
    border-color: var(--card-border-strong);
    box-shadow: 0 0 0 8px rgba(232, 93, 79, 0.18);
}

.timeline-card {
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    backface-visibility: hidden;
    transform: translateZ(0);
}

.role-title {
    color: var(--text);
}

.tech-grid {
    gap: 16px;
}

.tech-pill {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 20px rgba(31, 77, 90, 0.08);
    backface-visibility: hidden;
    transform: translateZ(0);
}

.tech-pill:hover {
    border-color: rgba(232, 93, 79, 0.35);
}

.edu-card {
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    backface-visibility: hidden;
    transform: translateZ(0);
}

.edu-card::after {
    background: linear-gradient(120deg, rgba(232, 93, 79, 0.18), transparent);
}



.app-shell {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

.app-container {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius2);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 20px 50px -10px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.app-container:hover {
    box-shadow:
        0 30px 60px -12px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.app-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-right: 4px;
}

.app-fullscreen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(31, 77, 90, 0.15);
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary);
    font-family: var(--font-brand);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(8px);
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
}

.app-fullscreen-btn:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(31, 77, 90, 0.25);
}

.app-fullscreen-btn:active {
    transform: translateY(0);
}

.app-fullscreen-btn[aria-pressed='true'] {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.app-frame {
    width: 100%;
    min-height: 70vh;
    height: 900px;
    transition: height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    display: block;
    background: transparent;
}


.app-shell:fullscreen,
.app-shell:-webkit-full-screen {
    border-radius: 0;
    box-shadow: none;
    background: #f7f5f2;
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.app-shell:fullscreen .app-container,
.app-shell:-webkit-full-screen .app-container {
    flex: 1;
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.app-shell:fullscreen .app-frame,
.app-shell:-webkit-full-screen .app-frame {
    height: 100%;
    min-height: 100%;
}

@media (max-width: 768px) {
    .app-shell {
        gap: 12px;
        margin-bottom: 32px;
    }

    .app-toolbar {
        justify-content: center;
        padding-right: 0;
    }

    .app-fullscreen-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .app-container {
        border-radius: 20px;
    }

    .app-frame {
        min-height: 60vh;
        height: 70vh;
    }

    .app-shell:fullscreen,
    .app-shell:-webkit-full-screen {
        padding: 12px;
    }
}

@media (max-width: 520px) {
    .app-container {
        border-radius: 16px;
    }
}
/* Steps Grid (Veille) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.step-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: transform var(--duration-base) var(--ease-smooth),
        box-shadow var(--duration-base) var(--ease-smooth);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background: var(--glass-highlight);
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: white;
    color: var(--primary);
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 16px;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(70, 84, 163, 0.15);
    border: 1px solid rgba(70, 84, 163, 0.1);
}

.step-card h3 {
    margin: 0 0 12px;
    font-size: 20px;
    color: var(--text);
}

.step-card p {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
}

/* Feature Card (Veille / Large Cards) */
.feature-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 64px;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: var(--radius2);
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration-base) var(--ease-smooth),
        box-shadow var(--duration-base) var(--ease-smooth);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.feature-content {
    flex: 1;
    max-width: 50%;
}

.feature-image-container {
    flex: 1;
    max-width: 50%;
}

.feature-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.feature-card h2 {
    font-family: var(--font-brand);
    font-size: 32px;
    margin: 0 0 24px;
    color: var(--text);
}

@media (max-width: 900px) {
    .feature-card {
        flex-direction: column;
        padding: 40px;
        text-align: center;
        gap: 32px;
    }
    .feature-content,
    .feature-image-container {
        max-width: 100%;
    }
}

/* Focus ring enhancements for card-like components */
.glass-card:focus-within,
.feature-card:focus-within,
.step-card:focus-within,
.timeline-card:focus-within,
.edu-card:focus-within,
.project-card-highlight:focus-within,
.task-card:focus-within,
.method-card:focus-within,
.objective-card:focus-within,
.calc-card:focus-within,
.card-accent-left:focus-within,
.page-nav__link:focus-visible {
    box-shadow: var(--shadow-hover), var(--ring-soft);
    border-color: var(--card-border-strong);
}

/* HARD OVERRIDES FOR DARK MODE LEGIBILITY */
[data-theme='dark'] .feature-card,
[data-theme='dark'] .step-card,
[data-theme='dark'] .glass-card,
[data-theme='dark'] .project-card-highlight {
    background-color: rgba(30, 41, 59, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme='dark'] .feature-card h2,
[data-theme='dark'] .step-card h3,
[data-theme='dark'] .project-title-large {
    color: #F8FAFC !important;
}

[data-theme='dark'] .feature-card p,
[data-theme='dark'] .step-card p,
[data-theme='dark'] .project-description {
    color: #CBD5E1 !important;
}

/* HARD OVERRIDES FOR HEADER DARK MODE */
[data-theme='dark'] .topbar,
[data-theme='dark'] .topbar.is-compact {
    background: rgba(11, 17, 32, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme='dark'] .nav {
    background: rgba(30, 41, 59, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme='dark'] .nav a {
    color: var(--muted) !important;
}

[data-theme='dark'] .nav a:hover,
[data-theme='dark'] .nav a.is-active {
    color: var(--text) !important;
    background: rgba(var(--primary-rgb), 0.22) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

/* DARK MODE - MOBILE NAV */
[data-theme='dark'] .mobile-nav {
    background: rgba(11, 17, 32, 0.96) !important;
    border-left-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme='dark'] .mobile-nav a {
    background: rgba(148, 163, 184, 0.12) !important;
    color: var(--text) !important;
}

[data-theme='dark'] .mobile-nav a.is-active {
    background: rgba(45, 212, 191, 0.18) !important;
    color: var(--primary) !important;
}

[data-theme='dark'] .mobile-nav__backdrop {
    background: rgba(2, 6, 23, 0.6) !important;
}

/* HARD OVERRIDES FOR TECH PILLS (SOFT SKILLS) IN DARK MODE */
[data-theme='dark'] .tech-pill,
[data-theme='dark'] .tech-pill.soft-skill {
    background: rgba(30, 41, 59, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: var(--shadow-sm) !important;
}

[data-theme='dark'] .tech-pill span {
    color: #F8FAFC !important;
}

[data-theme='dark'] .tech-pill i {
    color: var(--primary) !important;
}

[data-theme='dark'] .tech-pill.soft-skill i {
    color: var(--accent) !important;
}

[data-theme='dark'] .tech-pill:hover,
[data-theme='dark'] .tech-pill.soft-skill:hover {
    background: rgba(40, 50, 70, 0.85) !important;
    transform: translateY(-3px) scale(1.02) !important;
}

/* HARD OVERRIDES FOR FOOTER DARK MODE */
.footer-glass {
    padding: 60px 0 30px;
    margin-top: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
}

[data-theme='dark'] .footer-glass {
    background: linear-gradient(180deg, rgba(11, 17, 32, 0.9) 0%, rgba(11, 17, 32, 1) 100%) !important;
    border-top-color: rgba(255, 255, 255, 0.05) !important;
}

.footer-copyright {
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    margin-top: 32px;
}

[data-theme='dark'] .footer-copyright {
    color: var(--muted) !important;
}

.footer-link {
    color: var(--text);
    font-weight: 600;
    transition: color 0.2s;
}

[data-theme='dark'] .footer-link {
    color: var(--muted) !important;
}

[data-theme='dark'] .footer-link:hover {
    color: var(--primary) !important;
}

.footer-social-btn {
    width: 40px;
    height: 40px;
    background: white;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

[data-theme='dark'] .footer-social-btn {
    background: rgba(30, 41, 59, 1) !important;
    color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    z-index: var(--z-sticky);
    transition: transform 0.2s;
}

[data-theme='dark'] .scroll-top {
    background: var(--primary) !important;
    color: #0F172A !important;
    box-shadow: 0 0 20px var(--accent-glow) !important;
}

/* HARD OVERRIDES FOR HERO SOCIAL ICONS IN DARK MODE */
[data-theme='dark'] .social-icon {
    background: rgba(40, 50, 70, 0.85) !important;
    color: var(--primary) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

[data-theme='dark'] .social-icon:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

/* GLOBAL DARK MODE POLISH (Forms, Scrollbars, Transitions) */
body {
    transition: background var(--duration-slow) var(--ease-smooth), color var(--duration-slow) var(--ease-smooth);
}

/* Scrollbars */
[data-theme='dark'] ::-webkit-scrollbar-track {
    background: #0B1120;
}

[data-theme='dark'] ::-webkit-scrollbar-thumb {
    background: #475569;
    border: 3px solid #0B1120;
}

[data-theme='dark'] ::-webkit-scrollbar-thumb:hover {
    background: #64748B;
}

/* Form Elements */
[data-theme='dark'] input,
[data-theme='dark'] textarea,
[data-theme='dark'] select {
    background: rgba(30, 41, 59, 0.6) !important;
    color: #F8FAFC !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme='dark'] input::placeholder,
[data-theme='dark'] textarea::placeholder {
    color: #94A3B8 !important;
}

[data-theme='dark'] input:focus,
[data-theme='dark'] textarea:focus,
[data-theme='dark'] select:focus {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.15) !important;
}

/* Global Selection */
[data-theme='dark'] ::selection {
    background: var(--primary);
    color: #000;
}

/* Timeline & Other Borders */
[data-theme='dark'] .timeline-container::before {
    background: linear-gradient(to bottom, var(--accent), var(--primary), transparent);
}

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

/* HARD OVERRIDES FOR METHOD CARDS (Stack/Compétences) IN DARK MODE */
[data-theme='dark'] .method-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: transform var(--duration-base) var(--ease-smooth),
        box-shadow var(--duration-base) var(--ease-smooth),
        border-color var(--duration-base) var(--ease-smooth);
    will-change: transform;
}

[data-theme='dark'] .method-card h3 {
    color: var(--primary) !important;
}

[data-theme='dark'] .method-card p {
    color: #CBD5E1 !important;
}

/* HARD OVERRIDES FOR TIMELINE CARDS IN DARK MODE */
[data-theme='dark'] .timeline-card {
    background: rgba(30, 41, 59, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: var(--shadow-sm) !important;
}

[data-theme='dark'] .timeline-card .role-title {
    color: #F8FAFC !important;
}

[data-theme='dark'] .timeline-card .timeline-date {
    color: var(--accent) !important;
}

[data-theme='dark'] .timeline-card li {
    color: #CBD5E1 !important;
}

[data-theme='dark'] .timeline-card li::marker {
    color: var(--primary) !important;
}

/* HARD OVERRIDES FOR PAGE NAV LINKS IN DARK MODE */
[data-theme='dark'] .page-nav__link {
    background: rgba(30, 41, 59, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: var(--shadow-sm) !important;
}

[data-theme='dark'] .page-nav__link:hover {
    background: rgba(40, 50, 70, 0.9) !important;
    border-color: var(--primary) !important;
    transform: translateY(-3px) !important;
}

[data-theme='dark'] .page-nav__direction {
    color: var(--muted) !important;
}

[data-theme='dark'] .page-nav__title {
    color: #F8FAFC !important;
}

/* DARK MODE COMPONENT SURFACES */
[data-theme='dark'] .form-control:hover {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme='dark'] .timeline-dot {
    background: rgba(15, 23, 42, 0.95);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.15);
}

[data-theme='dark'] .timeline-entry.latest .timeline-dot {
    border-color: rgba(2, 6, 23, 0.8);
    box-shadow: 0 0 0 6px rgba(248, 113, 113, 0.25);
}

[data-theme='dark'] .timeline-year-badge {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(244, 63, 94, 0.6);
    color: var(--primary);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

[data-theme='dark'] .task-row {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(148, 163, 184, 0.15);
}

[data-theme='dark'] .task-row:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

[data-theme='dark'] .task-icon {
    background: var(--pale-blue);
    color: var(--primary);
}

[data-theme='dark'] .benefit-item {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.15);
}

[data-theme='dark'] .benefit-item:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

[data-theme='dark'] .company-badge {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(148, 163, 184, 0.2);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-theme='dark'] .step-badge {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(148, 163, 184, 0.25);
    color: var(--primary);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

[data-theme='dark'] .app-container {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 20px 50px -10px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

[data-theme='dark'] .app-container:hover {
    box-shadow:
        0 30px 60px -12px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

[data-theme='dark'] .app-fullscreen-btn {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.2);
    color: var(--primary);
}

[data-theme='dark'] .app-fullscreen-btn:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

/* DARK MODE - IP CALC SECTIONS */
[data-theme='dark'] .ip-simple__segment--net {
    background: rgba(45, 212, 191, 0.18);
    color: var(--primary);
}

[data-theme='dark'] .ip-simple__segment--host {
    background: rgba(248, 113, 113, 0.18);
    color: #FCA5A5;
}

[data-theme='dark'] .ip-simple__note {
    color: var(--muted);
}

[data-theme='dark'] .binary-box {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px dashed var(--card-border);
    background: var(--card-bg);
}

[data-theme='dark'] .binary-box .binary-row+.binary-row {
    border-top-color: rgba(148, 163, 184, 0.25);
}

[data-theme='dark'] .binary-label {
    background: rgba(45, 212, 191, 0.15);
    color: var(--primary);
}

[data-theme='dark'] .binary-bit {
    color: rgba(226, 232, 240, 0.85);
}

[data-theme='dark'] .binary-bit.match {
    color: #5EEAD4;
    background: rgba(45, 212, 191, 0.18);
    border-color: rgba(45, 212, 191, 0.35);
}

[data-theme='dark'] .binary-dot {
    color: rgba(148, 163, 184, 0.7);
}

[data-theme='dark'] .calc-section {
    border-top-color: rgba(148, 163, 184, 0.2);
}

[data-theme='dark'] .calc-section--boxed {
    padding: 20px 22px;
    border-left: 4px solid var(--primary);
    border-radius: 16px;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

[data-theme='dark'] .calc-note {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.3);
    color: var(--text);
}

[data-theme='dark'] .powers-table th,
[data-theme='dark'] .powers-table td {
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

[data-theme='dark'] .powers-table thead th {
    background: rgba(45, 212, 191, 0.12);
    color: var(--primary);
}

/* FIX CURSOR ON IFRAME APPS */
/* Hide the custom cursor when hovering the app container to prevent it getting stuck */
body:has(.app-container:hover) .cursor-dot,
body:has(.app-container:hover) .cursor-circle {
    opacity: 0 !important;
    transition: opacity 0.2s ease;
}

/* FIX CURSOR IN FULLSCREEN MODE */
/* Restore native cursor when in fullscreen because custom cursor (body child) is hidden behind the fullscreen element */
:fullscreen {
    cursor: auto !important;
}

::backdrop {
    cursor: auto !important;
}

/* Also specifically targeting the app shell in case pseudo-class isn't enough for some hierarchies */
.app-shell:fullscreen,
.app-shell:fullscreen * {
    cursor: auto !important;
}

/* DARK MODE CARD CONTRAST FIXES */
.edu-card, .timeline-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    color: var(--text);
}

.edu-school, .timeline-date {
    color: var(--muted) !important;
}

.edu-title, .role-title {
    color: var(--primary) !important;
}

.edu-year {
    background: var(--surface-2, rgba(255,255,255,0.1));
    color: var(--primary);
}


/* JUDICIOUS DARK MODE POLISH */

/* Smooth Transitions */
body {
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Custom Selection */
::selection {
    background: rgba(45, 212, 191, 0.3); /* Teal 400 @ 30% */
    color: #fff;
}

/* Dark Mode Scrollbars */
[data-theme='dark'] ::-webkit-scrollbar {
    width: 12px;
    background: var(--bg);
}

[data-theme='dark'] ::-webkit-scrollbar-track {
    background: var(--bg);
}

[data-theme='dark'] ::-webkit-scrollbar-thumb {
    background-color: var(--muted-light); /* Slate 500 */
    border-radius: 6px;
    border: 3px solid var(--bg); /* Creates a padded floating look */
}

[data-theme='dark'] ::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary); /* Teal POP on hover */
}

/* Ambient Background Gradient for Dark Mode */
[data-theme='dark'] body {
    background-image:
        radial-gradient(900px 700px at 12% 0%, rgba(var(--primary-rgb), 0.1), transparent 60%),
        radial-gradient(1100px 700px at 100% 10%, rgba(244, 63, 94, 0.08), transparent 65%),
        radial-gradient(1000px 800px at 50% 100%, rgba(148, 163, 184, 0.06), transparent 60%);
    background-attachment: fixed;

    scrollbar-color: rgba(148, 163, 184, 0.6) rgba(2, 6, 23, 0.8);
}

/* DARK MODE LOGO SWAP */
[data-theme='dark'] .brand__logo {
    content: url('../img/ui/brand/logo-white.png');
}

/* DARK MODE FOOTER FIXES */
[data-theme='dark'] .footer-logo {
    content: url('../img/ui/brand/logo-white.png');
}

[data-theme='dark'] .footer-logo-wrap,
[data-theme='dark'] .footer-logo-wrap span,
[data-theme='dark'] .footer-brand {
    color: var(--text) !important;
    background: transparent !important;
    box-shadow: none !important;
}





















/* Network diagram (cours reseaux) */
.network-diagram {
    padding: 28px 32px;
}

.network-flow {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 16px;
    align-items: center;
}

.network-node {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 14px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.network-title {
    font-family: var(--font-brand);
    font-weight: 700;
    color: var(--text);
    font-size: 15px;
}

.network-subtitle {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

@media (min-width: 1100px) {
    .network-node:not(:last-child)::after {
        content: "\2192";
        position: absolute;
        right: -18px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--primary);
        font-size: 16px;
    }
}

@media (max-width: 1100px) {
    .network-flow {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .network-node::after {
        display: none;
    }
}

@media (max-width: 600px) {
    .network-diagram {
        padding: 20px;
    }

    .network-flow {
        grid-template-columns: 1fr;
    }
}

/* Network Course Specific Styles */
.container-narrow { max-width: 900px; margin: 0 auto; }
.hero__lead { color: var(--muted); font-size: 1.2rem; line-height: 1.6; }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.video-wrapper { position: relative; overflow: hidden; }
.bg-soft-blue { background: var(--bg-spot-1); }
.display-flex-center { display: flex; align-items: center; justify-content: center; }

/* Custom Network Composition */
.network-composition { position: relative; width: 240px; height: 180px; display: flex; align-items: center; justify-content: center; }
.net-device { position: absolute; background: white; border-radius: 8px; padding: 12px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; font-size: 0.8rem; font-weight: 600; color: var(--primary); z-index: 2; width: 60px; }
.net-device i { font-size: 1.5rem; margin-bottom: 4px; color: var(--muted); }
.net-device.server { top: 10px; right: 10px; }
.net-device.client { bottom: 10px; left: 10px; }
.net-device.switch { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 70px; background: var(--primary); color: white; }
.net-device.switch i { color: white; }

.net-link-h, .net-link-v { position: absolute; background: var(--muted-light); opacity: 0.3; z-index: 1; }
.net-link-h { width: 100%; height: 2px; top: 50%; left: 0; transform: rotate(-45deg); }

/* Components */
.check-list, .micro-list, .step-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-weight: 500; }
.micro-list li { margin-bottom: 8px; font-size: 0.95rem; }

.step-list li { display: flex; gap: 16px; margin-bottom: 16px; }
.step-number { width: 28px; height: 28px; background: var(--bg-spot-2); color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }

.section-title-wrapper { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.section-icon { width: 48px; height: 48px; min-width: 48px; background: var(--bg-spot-2); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1.25rem; }

.timeline-vertical { position: relative; padding-left: 24px; border-left: 2px solid var(--card-border); margin-left: 12px; }
.timeline-item { position: relative; margin-bottom: 32px; padding-left: 24px; }
.timeline-marker { position: absolute; left: -35px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.7rem; border: 3px solid var(--bg); z-index: 2; box-shadow: var(--shadow-sm); }
.bg-primary { background-color: var(--primary); }
.bg-accent { background-color: var(--accent); }
.bg-muted { background-color: var(--muted-light); }
.bg-soft-blue { background-color: var(--bg-spot-1); }

.tool-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px; transition: var(--ease-smooth); height: 100%; }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--primary); }
.tool-header code { background: var(--bg-spot-1); color: var(--primary); padding: 6px 12px; border-radius: 6px; font-weight: 700; font-size: 1.1rem; display: inline-block; margin-bottom: 12px; }
.tool-body p { font-size: 0.95rem; color: var(--text); line-height: 1.6; margin: 0; }
.tool-body .text-xs { font-size: 0.8rem; margin-top: 8px; display: block; }

.code-block { display: block; background: #0F172A; color: #F8FAFC; padding: 12px; border-radius: 8px; font-family: 'Fira Code', monospace; font-size: 0.9rem; }

.info-box { background: var(--bg-spot-1); padding: 24px; border-radius: var(--radius); border-left: 4px solid var(--primary); }
.info-title { font-size: 1.1rem; margin-bottom: 8px; color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 8px; }

.accordion-simple { border-left: 4px solid var(--accent); }

.hover-lift { transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth); }
.hover-lift:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.architecture-diagram { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.arrow-exchange { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.arrow-right i, .arrow-left i { font-size: 0.7rem; }

.badge-pill { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }

@media (min-width: 768px) {
    .grid-2-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
    .grid-3-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .col-md-6 { width: 50%; flex: 0 0 50%; }
    .col-md-7 { width: 60%; flex: 0 0 60%; }
    .col-md-5 { width: 40%; flex: 0 0 40%; }
    .col-md-12 { width: 100%; flex: 0 0 100%; }
    .row { display: flex; flex-wrap: wrap; margin-right: -12px; margin-left: -12px; }
    .col-md-6, .col-md-7, .col-md-5, .col-md-12 { padding-right: 12px; padding-left: 12px; }
    .border-right-light { border-right: 1px solid var(--card-border); }
}

@media (max-width: 768px) {
    .grid-2-cols { display: grid; grid-template-columns: 1fr; gap: 24px; }
    .grid-3-cols { display: grid; grid-template-columns: 1fr; gap: 24px; }
    .hero__title { font-size: 2rem; }
    .network-composition { transform: scale(0.9); }
    .video-wrapper .row { display: flex; flex-direction: column-reverse; }
    .col-md-6, .col-md-7, .col-md-5, .col-md-12 { width: 100%; padding: 0 12px; }
    .border-right-light { border-right: none; border-bottom: 1px solid var(--card-border); }
    .architecture-diagram { flex-direction: column; gap: 24px; }
    .arrow-exchange { transform: rotate(90deg); margin: 16px 0; }
    .p-40 { padding: 24px; }
}

@media (prefers-color-scheme: dark) {
    .net-device { background: #1E293B; color: #E2E8F0; }
    .net-device i { color: #94A3B8; }
    .code-block { background: #020617; border: 1px solid #1E293B; }
}

