* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-deep: #071a2f;
    --bg-soft: #f6f2eb;
    --bg-card: #ffffff;
    --accent: #d48a33;
    --accent-strong: #b46e20;
    --text-main: #10243d;
    --text-muted: #51667d;
    --line: #d9e1ea;
    --shadow: 0 20px 45px rgba(5, 24, 46, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 12% 8%, rgba(212, 138, 51, 0.18), transparent 35%),
        radial-gradient(circle at 88% 12%, rgba(49, 89, 132, 0.2), transparent 32%),
        linear-gradient(180deg, #fbf8f2 0%, #f3eee5 100%);
    line-height: 1.65;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.01em;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.section {
    padding: 88px 0;
    scroll-margin-top: 92px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.bg-secondary {
    background: linear-gradient(140deg, rgba(16, 36, 61, 0.06), rgba(212, 138, 51, 0.08));
}

.section-title {
    text-align: center;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    margin-bottom: 2.8rem;
    color: var(--text-main);
    position: relative;
}

.section-title::after {
    content: '';
    width: 64px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--accent), #f3c288);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -12px;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(16, 36, 61, 0.08);
}

.nav-container {
    width: min(1120px, 92%);
    margin: 0 auto;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo span {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-deep);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.4rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.45rem 0.2rem;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.bar {
    width: 24px;
    height: 2px;
    background: var(--text-main);
}

.hero {
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: 104px 0 42px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(16, 36, 61, 0.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(16, 36, 61, 0.06) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.4;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 25%, rgba(212, 138, 51, 0.18), transparent 45%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-strong);
    font-size: 0.78rem;
    margin-bottom: 0.9rem;
    font-weight: 700;
}

.hero-text h1 {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    color: var(--bg-deep);
    line-height: 1.1;
    margin-bottom: 0.7rem;
}

.hero-text h2 {
    font-size: clamp(1.05rem, 2.2vw, 1.6rem);
    color: #20466e;
    margin-bottom: 1rem;
}

.hero-text p {
    color: var(--text-muted);
    max-width: 620px;
    margin-bottom: 1.6rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.btn {
    padding: 0.74rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.68;
    transform: none;
}

.btn-primary {
    background: linear-gradient(120deg, var(--accent), #e5a85c);
    color: #fff;
    box-shadow: 0 10px 24px rgba(180, 110, 32, 0.34);
}

.btn-secondary {
    border: 1px solid rgba(16, 36, 61, 0.32);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.76);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(190px, 1fr));
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.stat-pill {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(16, 36, 61, 0.15);
    background: rgba(255, 255, 255, 0.75);
    border-radius: 14px;
}

.stat-number {
    display: block;
    font-size: 1.4rem;
    line-height: 1;
    font-weight: 800;
    color: #1a3c63;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.87rem;
}

.profile-card {
    padding: 1.4rem;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 36, 61, 0.12);
    box-shadow: var(--shadow);
}

.profile-image-container {
    width: min(300px, 100%);
    aspect-ratio: 4/5;
    border-radius: 18px;
    overflow: hidden;
    margin: 0 auto 1rem;
    position: relative;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-image-container:hover .profile-image {
    transform: scale(1.06);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(190deg, rgba(16, 36, 61, 0.05), rgba(212, 138, 51, 0.24));
}

.contact-info {
    display: grid;
    gap: 0.7rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.contact-item i {
    color: var(--accent);
}

.route-strip {
    padding-top: 34px;
}

.route-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.route-card {
    background: #fff;
    border: 1px solid rgba(16, 36, 61, 0.08);
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 12px 26px rgba(5, 24, 46, 0.07);
}

.route-step {
    display: inline-block;
    margin-bottom: 0.7rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-strong);
    font-weight: 700;
}

.skills-header {
    max-width: 760px;
    margin: -1rem auto 3.2rem;
    text-align: center;
}

.skills-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

#competences {
    --skills-progress: 0%;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(7, 26, 47, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(7, 26, 47, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08));
    background-size: 42px 42px, 42px 42px, auto;
}

#competences::before {
    content: '';
    position: absolute;
    inset: 11rem 0 auto;
    height: 420px;
    background:
        radial-gradient(circle at 24% 26%, rgba(212, 138, 51, 0.18), transparent 32%),
        radial-gradient(circle at 72% 18%, rgba(32, 70, 110, 0.14), transparent 30%);
    opacity: 0.72;
    pointer-events: none;
}

#competences .container {
    position: relative;
    z-index: 1;
}

.skills-pro-grid {
    position: relative;
    display: grid;
    gap: 4.25rem;
    max-width: 1120px;
    margin: 0 auto;
    padding-left: 3rem;
}

.skills-pro-grid::before {
    content: '';
    position: absolute;
    left: 0.78rem;
    top: 0.45rem;
    bottom: 0.45rem;
    width: 3px;
    border-radius: 999px;
    background: rgba(32, 70, 110, 0.15);
}

.skills-pro-grid::after {
    content: '';
    position: absolute;
    left: 0.78rem;
    top: 0.45rem;
    width: 3px;
    height: var(--skills-progress);
    max-height: calc(100% - 0.9rem);
    border-radius: 999px;
    background: linear-gradient(to bottom, #20466e, var(--accent));
    box-shadow: 0 0 18px rgba(212, 138, 51, 0.22);
}

.skills-pro-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 4.6rem);
    min-height: 230px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 0;
    transform: translateY(64px) scale(0.98);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.skills-pro-card::before {
    content: '';
    position: absolute;
    left: -3.02rem;
    top: 2.15rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow:
        0 0 0 8px rgba(212, 138, 51, 0.16),
        0 0 0 1px rgba(7, 26, 47, 0.12);
    z-index: 2;
}

.skills-pro-card::after {
    content: '';
    position: absolute;
    inset: -1.15rem -1.2rem -1.15rem 10rem;
    z-index: -1;
    border-radius: 28px;
    background:
        radial-gradient(circle at 26% 24%, rgba(255, 255, 255, 0.72), transparent 34%),
        linear-gradient(110deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.02));
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.skills-pro-card:nth-child(even) {
    margin-left: 0;
}

.skills-pro-card.skill-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.skills-pro-card.skill-visible::after {
    opacity: 1;
    transform: scale(1);
}

.skills-card-head {
    position: sticky;
    top: 102px;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    column-gap: 1rem;
    row-gap: 0.25rem;
    align-self: start;
}

.skills-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    grid-row: 1 / span 2;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--bg-deep), var(--accent));
    box-shadow: 0 16px 28px rgba(7, 26, 47, 0.2);
}

.skills-card-head h3 {
    font-size: clamp(1.42rem, 2.1vw, 1.9rem);
    color: #122b47;
    line-height: 1.1;
    margin-bottom: 0;
}

.skills-card-head p {
    grid-column: 2;
    max-width: 340px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.skill-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    align-items: start;
    gap: 1.05rem 1.15rem;
    padding-top: 0.15rem;
}

.skill-logo-item {
    width: 100%;
    min-height: 128px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    display: grid;
    grid-template-rows: 62px auto 16px 7px;
    justify-items: center;
    align-content: start;
    gap: 0.28rem;
    text-align: center;
    outline: none;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.skills-pro-card.skill-visible .skill-logo-item {
    opacity: 1;
    transform: translateY(0);
}

.skills-pro-card.skill-visible .skill-logo-item:nth-child(2) {
    transition-delay: 0.06s;
}

.skills-pro-card.skill-visible .skill-logo-item:nth-child(3) {
    transition-delay: 0.12s;
}

.skills-pro-card.skill-visible .skill-logo-item:nth-child(4) {
    transition-delay: 0.18s;
}

.skills-pro-card.skill-visible .skill-logo-item:nth-child(5) {
    transition-delay: 0.24s;
}

.skills-pro-card.skill-visible .skill-logo-item:nth-child(6) {
    transition-delay: 0.3s;
}

.skills-pro-card.skill-visible .skill-logo-item:nth-child(n + 7) {
    transition-delay: 0.36s;
}

.skill-logo-item:hover,
.skill-logo-item:focus {
    transform: translateY(-8px);
}

.skill-logo-item img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    padding: 0.6rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.6),
        0 16px 28px rgba(7, 26, 47, 0.12);
    transition: transform 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.skill-logo-item:hover img,
.skill-logo-item:focus img {
    transform: scale(1.08);
    background: #fff;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.8),
        0 20px 34px rgba(7, 26, 47, 0.18);
}

.skill-logo-name {
    color: #203f63;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-logo-level {
    color: var(--accent-strong);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.skill-logo-progress {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: rgba(32, 70, 110, 0.14);
    overflow: hidden;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.skill-logo-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #20466e);
    box-shadow: 0 0 12px rgba(212, 138, 51, 0.28);
    transition: width 0.65s ease;
}

.skill-logo-item:hover .skill-logo-level,
.skill-logo-item:focus .skill-logo-level,
.skill-logo-item:hover .skill-logo-progress,
.skill-logo-item:focus .skill-logo-progress {
    opacity: 1;
    transform: translateY(0);
}

.skill-logo-item:hover .skill-logo-progress span,
.skill-logo-item:focus .skill-logo-progress span {
    width: var(--skill-level);
}

.skill-category {
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(16, 36, 61, 0.1);
    padding: 1.2rem;
    box-shadow: 0 10px 24px rgba(5, 24, 46, 0.06);
    transition: transform 0.2s ease;
}

.skill-category:hover,
.project-item:hover,
.education-item:hover {
    transform: translateY(-4px);
}

.skill-category h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #173459;
}

.skill-category h3 i {
    margin-right: 0.4rem;
    color: var(--accent-strong);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.skill-tag {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e3b5f;
    background: #eef3f8;
    border: 1px solid #d6e1ec;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    align-items: stretch;
    gap: 1.1rem;
}

.projects-intro {
    text-align: center;
    color: var(--text-muted);
    max-width: 760px;
    margin: -1rem auto 1.2rem;
}

.project-item {
    --project-card-height: 268px;
    background: #fff;
    border: 1px solid rgba(16, 36, 61, 0.12);
    border-radius: 16px;
    height: var(--project-card-height);
    padding: 1.15rem;
    box-shadow: 0 12px 24px rgba(5, 24, 46, 0.07);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: 0.58rem;
    overflow: hidden;
}

.project-badge {
    display: inline-block;
    padding: 0.24rem 0.56rem;
    border-radius: 999px;
    font-size: 0.72rem;
    background: #eff5fc;
    color: #1f446f;
    font-weight: 800;
    width: fit-content;
    flex-shrink: 0;
}

.project-item h3 {
    color: #173459;
    margin-bottom: 0;
    flex-shrink: 0;
}

.project-item p {
    color: var(--text-muted);
    margin-bottom: 0.15rem;
    line-height: 1.55;
}

.project-item > p,
.project-copy-swap {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.3rem;
    scrollbar-gutter: stable;
}

.project-item > p::-webkit-scrollbar,
.project-copy-swap::-webkit-scrollbar {
    width: 5px;
}

.project-item > p::-webkit-scrollbar-track,
.project-copy-swap::-webkit-scrollbar-track {
    background: rgba(32, 70, 110, 0.08);
    border-radius: 999px;
}

.project-item > p::-webkit-scrollbar-thumb,
.project-copy-swap::-webkit-scrollbar-thumb {
    background: rgba(212, 138, 51, 0.62);
    border-radius: 999px;
}

.project-copy-swap {
    display: grid;
    align-content: start;
}

.project-copy-swap p {
    grid-area: 1 / 1;
    margin-bottom: 0;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.project-copy-hover {
    opacity: 0;
    transform: translateY(8px);
    color: #244c76;
    font-weight: 700;
}

.project-item-anywhere {
    position: relative;
    overflow: hidden;
    outline: none;
}

.project-item-anywhere::before {
    content: '';
    position: absolute;
    inset: auto -28% -48% 18%;
    height: 150px;
    background: radial-gradient(circle, rgba(212, 138, 51, 0.18), transparent 62%);
    opacity: 0;
    transition: opacity 0.24s ease, transform 0.24s ease;
    pointer-events: none;
}

.project-item-anywhere:hover::before,
.project-item-anywhere:focus-within::before,
.project-item-anywhere:focus::before {
    opacity: 1;
    transform: translateY(-18px);
}

.project-item-anywhere:hover .project-copy-default,
.project-item-anywhere:focus-within .project-copy-default,
.project-item-anywhere:focus .project-copy-default {
    opacity: 0;
    transform: translateY(-8px);
}

.project-item-anywhere:hover .project-copy-hover,
.project-item-anywhere:focus-within .project-copy-hover,
.project-item-anywhere:focus .project-copy-hover {
    opacity: 1;
    transform: translateY(0);
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    margin-top: auto;
    flex-shrink: 0;
}

.project-link {
    color: #214a76;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(33, 74, 118, 0.24);
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.project-link:hover {
    transform: translateY(-1px);
    border-color: rgba(33, 74, 118, 0.4);
}

.project-link-visit {
    background: linear-gradient(120deg, var(--accent), #e5a85c);
    color: #fff;
    border-color: transparent;
}

.project-link-visit:hover {
    box-shadow: 0 8px 16px rgba(180, 110, 32, 0.24);
}

.project-role {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #294f78;
    background: #f3f7fb;
    border: 1px solid rgba(33, 74, 118, 0.14);
    border-radius: 999px;
    padding: 0.42rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    display: grid;
    gap: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(to bottom, #275487, rgba(39, 84, 135, 0.2));
}

.timeline-item {
    position: relative;
    margin-left: 58px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -41px;
    top: 1.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(212, 138, 51, 0.2);
}

.timeline-date {
    display: inline-block;
    margin-bottom: 0.55rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1d4774;
    background: #edf3fa;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
}

.timeline-content {
    background: #fff;
    border: 1px solid rgba(16, 36, 61, 0.1);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    box-shadow: 0 10px 24px rgba(5, 24, 46, 0.06);
}

.timeline-content h3 {
    color: #173459;
    font-size: 1.16rem;
    margin-bottom: 0.2rem;
}

.timeline-content h4 {
    color: #2c5a87;
    font-size: 0.98rem;
    margin-bottom: 0.52rem;
}

.timeline-content p {
    color: var(--text-muted);
}

.timeline-points {
    list-style: none;
    display: grid;
    gap: 0.42rem;
    margin: 0.65rem 0 0.8rem;
}

.timeline-points li {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.55;
    padding-left: 1.05rem;
    position: relative;
}

.timeline-points li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    position: absolute;
    left: 0;
    top: 0.62rem;
    box-shadow: 0 0 0 4px rgba(212, 138, 51, 0.12);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.education-item {
    display: flex;
    gap: 0.85rem;
    background: #fff;
    border: 1px solid rgba(16, 36, 61, 0.1);
    border-radius: 16px;
    padding: 1.1rem;
    box-shadow: 0 10px 24px rgba(5, 24, 46, 0.06);
    transition: transform 0.2s ease;
}

.education-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(120deg, var(--accent), #e5a85c);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 18px rgba(180, 110, 32, 0.2);
}

.education-content h3 {
    color: #173459;
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.education-content h4,
.education-year {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-content {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--text-muted);
    margin-top: 0.7rem;
}

.contact-method i {
    color: var(--accent);
}

.contact-form,
.contact-content form {
    background: #fff;
    border: 1px solid rgba(16, 36, 61, 0.12);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(5, 24, 46, 0.06);
}

.form-group {
    margin-bottom: 0.9rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    color: #1e3f67;
    margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid #cfdbe7;
    border-radius: 10px;
    padding: 0.72rem 0.82rem;
    font-family: inherit;
    color: var(--text-main);
    background: #fbfdff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #376da6;
    box-shadow: 0 0 0 3px rgba(55, 109, 166, 0.13);
}

.alert {
    font-size: 0.84rem;
    padding: 0.7rem;
    border-radius: 10px;
    margin-bottom: 0.8rem;
}

.bg-success {
    background: #e2f6e7;
    color: #1c6a35;
}

.bg-danger {
    background: #fbe2e2;
    color: #8a1f1f;
}

.footer {
    background: var(--bg-deep);
    color: #f5f8fc;
    text-align: center;
    padding: 1.6rem 0;
    margin-top: 1rem;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(120deg, var(--accent), #e5a85c);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-socials a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.22);
}

@media (max-width: 940px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin-inline: auto;
    }

    .hero-buttons,
    .hero-stats {
        justify-content: center;
    }

    .route-grid,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .skills-pro-grid {
        gap: 3.5rem;
        padding-left: 2.4rem;
    }

    .skills-pro-grid::before,
    .skills-pro-grid::after {
        left: 0.45rem;
    }

    .skills-pro-card,
    .skills-pro-card:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-left: 0;
    }

    .skills-pro-card::before {
        left: -2.28rem;
        top: 1.65rem;
        transform: none;
    }

    .skills-pro-card::after {
        inset: -0.8rem -0.7rem -0.8rem 1.6rem;
        border-radius: 22px;
    }

    .skills-card-head {
        position: static;
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .timeline {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 74px;
        left: -100%;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem 4%;
        gap: 0.6rem;
        border-bottom: 1px solid rgba(16, 36, 61, 0.08);
        transition: left 0.25s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .section {
        padding: 72px 0;
    }

    .hero {
        padding-top: 92px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .skills-card-head {
        align-items: start;
    }

    .skill-logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
        gap: 0.8rem;
    }

    .contact-item {
        justify-content: center;
        text-align: center;
    }

    .timeline::before {
        left: 13px;
    }

    .timeline-item {
        margin-left: 34px;
    }

    .timeline-item::before {
        left: -27px;
    }
}

@media (max-width: 520px) {
    .hero-text h1 {
        font-size: 2.05rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .timeline-content h3 {
        font-size: 1.02rem;
    }

    .skills-pro-grid {
        padding-left: 1.8rem;
    }

    .skills-pro-card::before {
        left: -1.72rem;
    }

    .skill-logo-item {
        width: 100%;
        min-height: 124px;
    }

    .skill-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
