:root {
    --bg: #05060a;
    --bg-soft: #0a0c14;
    --card: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.09);
    --text: #f2f5f9;
    --muted: #9aa4b2;
    --accent: #6cf2c2;
    --accent2: #7aa2ff;
    --focus-ring: rgba(108, 242, 194, 0.55);
    --radius: 20px;
    --container: 1200px;
    --transition: 0.28s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background:
        radial-gradient(900px 500px at 10% 10%, rgba(122, 162, 255, 0.12), transparent 40%),
        radial-gradient(700px 400px at 90% 80%, rgba(108, 242, 194, 0.1), transparent 40%),
        linear-gradient(180deg, #03040a 0%, #070a14 100%);
    background-color: var(--bg);
    line-height: 1.6;
    letter-spacing: 0.2px;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

img {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

::selection {
    background: transparent;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(1200px 600px at 20% 20%, rgba(122, 162, 255, 0.08), transparent 35%),
        radial-gradient(1000px 500px at 80% 70%, rgba(108, 242, 194, 0.07), transparent 35%);
    filter: blur(30px);
    pointer-events: none;
    z-index: -1;
}

body.using-keyboard :where(a, button, .menu-toggle):focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px rgba(5, 6, 10, 0.9),
        0 0 0 4px var(--focus-ring);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    margin-bottom: 88px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 34px;
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 62px;
    height: 4px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
}

.bg-blob {
    position: fixed;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.14;
    animation: float 14s ease-in-out infinite;
    z-index: -2;
}

.bg-blob.blue {
    background: #7aa2ff;
    top: -220px;
    left: -200px;
}

.bg-blob.green {
    background: #6cf2c2;
    right: -200px;
    bottom: -220px;
    animation-delay: 3s;
}

.bg-blob.pink {
    width: 360px;
    height: 360px;
    background: #ff7ad9;
    opacity: 0.07;
    top: 55%;
    left: 52%;
    animation-delay: 1.5s;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    backdrop-filter: blur(16px) saturate(160%);
    background: rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    height: 56px;
    background: rgba(10, 12, 20, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon {
    font-size: 22px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
    height: 100%;
}

.nav a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    padding: 8px 10px;
    border-radius: 10px;
    transition: color var(--transition), background var(--transition), transform var(--transition);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    transform: translateX(-50%);
    transition: var(--transition);
}

.nav a::before {
    content: "";
    position: absolute;
    inset: 2px 1px;
    border-radius: 8px;
    background: radial-gradient(circle at center, rgba(122, 162, 255, 0.28), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

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

.nav a:hover::before,
.nav a:focus-visible::before,
.nav a.nav-current::before {
    opacity: 0.8;
}

.nav a.nav-current {
    color: #fff;
    background: rgba(122, 162, 255, 0.12);
}

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

.nav .lang-link {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #dbe4f1;
}

.nav .lang-link::before,
.nav .lang-link::after {
    display: none;
}

.nav .lang-link:hover {
    transform: translateY(-1px);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.nav .lang-link.lang-active {
    color: #04120d;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    border-color: transparent;
}

.menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 0;
    cursor: pointer;
    position: relative;
    z-index: 1002;
    border-radius: 10px;
    transition: background var(--transition), transform var(--transition);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: scale(1.04);
}

.menu-toggle span {
    position: absolute;
    left: 7px;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    transition: var(--transition);
}

.menu-toggle span:nth-child(1) {
    top: 10px;
}

.menu-toggle span:nth-child(2) {
    top: 17px;
}

.menu-toggle span:nth-child(3) {
    top: 24px;
}

.menu-toggle.active span:nth-child(1) {
    top: 17px;
    transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    top: 17px;
    transform: rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
    transition: opacity 0.25s ease, visibility 0.25s ease, -webkit-backdrop-filter 0.25s ease, backdrop-filter 0.25s ease;
    z-index: 998;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 96px;
    padding-bottom: 40px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 72px;
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-title {
    font-size: 56px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.hero-title span {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    max-width: 560px;
    font-size: 18px;
    color: var(--muted);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-badges span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #dce4f2;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.hero-badges span:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.09);
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.button {
    border: 0;
    text-decoration: none;
    border-radius: 14px;
    padding: 14px 26px;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.button::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    left: var(--mx, 50%);
    top: var(--my, 50%);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 0;
}

.button > * {
    position: relative;
    z-index: 1;
}

.button.primary {
    color: #02140c;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    box-shadow: 0 14px 34px rgba(122, 162, 255, 0.25);
}

.button.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(122, 162, 255, 0.35);
}

.button.secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.button.secondary:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.09);
}

.button:hover::before,
.button:focus-visible::before {
    opacity: 1;
}

.hero-right {
    display: flex;
    justify-content: center;
}

.avatar-container {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.avatar-glow {
    position: absolute;
    inset: -6%;
    border-radius: 30px;
    background: linear-gradient(90deg, rgba(122, 162, 255, 0.28), rgba(108, 242, 194, 0.24));
    filter: blur(26px);
    z-index: 1;
}

.avatar {
    position: relative;
    z-index: 2;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.about-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.card {
    border-radius: var(--radius);
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
        rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    transition: transform 0.8s ease, box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.card::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    left: var(--mx, 50%);
    top: var(--my, 50%);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(122, 162, 255, 0.24), rgba(108, 242, 194, 0.12) 45%, transparent 72%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.card::after {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: calc(var(--radius) + 10px);
    background: rgba(0, 0, 0, 0.32);
    filter: blur(16px);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.card > * {
    position: relative;
    z-index: 1;
}

.card:hover,
.card:focus-within {
    transform: translateY(-6px);
    border-color: #7aa2ff;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.56);
}

.card:hover::before,
.card:focus-within::before {
    opacity: 1;
}

.card:hover::after,
.card:focus-within::after {
    opacity: 0.5;
}

.card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.card h3 i {
    color: var(--accent);
}

.card p {
    color: var(--muted);
}

.card ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.card li {
    margin-bottom: 8px;
}

.card li::marker {
    color: var(--accent);
}

.projects-grid {
    align-items: stretch;
}

.project-card.has-gallery {
    cursor: pointer;
}

.project-card h3 {
    margin-bottom: 12px;
}

.project-preview {
    margin-bottom: 8px;
}

.project-preview img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card.has-gallery:hover .project-preview img {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.project-card.mobile-app-card .project-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    max-height: 300px;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-card.mobile-app-card .project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.project-gallery-hint {
    font-size: 13px;
    color: rgba(220, 228, 242, 0.78);
    margin: 0 0 12px;
}

.project-images {
    display: none;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-bottom: 14px;
}

.project-images img {
    width: min(78vw, 320px);
    min-width: 240px;
    height: 150px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-images img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.project-description {
    margin-bottom: 12px;
}

.project-features {
    margin: 0 0 14px;
    padding-left: 20px;
}

.project-features li:last-child {
    margin-bottom: 0;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 14px;
}

.project-stack span {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    color: #dce4f2;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.project-links {
    display: flex;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.project-links a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.project-ops-card {
    display: block;
}

.project-inline-extra {
    display: none;
}

.project-inline-extra h4 {
    margin: 16px 0 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 18px;
    font-weight: 700;
    color: #e8eef8;
}

.project-inline-extra p {
    margin: 0;
    color: var(--muted);
}

@media (min-width: 940px) {
    .project-inline-extra {
        display: block;
    }

    .project-ops-card {
        display: none;
    }
}

.project-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 26px;
    background: rgba(4, 7, 14, 0.9);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.project-lightbox.active {
    display: flex;
}

.project-lightbox-stage {
    max-width: min(92vw, 1240px);
    width: 100%;
    text-align: center;
}

.project-lightbox-stage img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.project-lightbox-caption {
    margin: 14px 0 0;
    color: #dce4f2;
    font-size: 14px;
}

.project-lightbox-close,
.project-lightbox-nav {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(12, 17, 30, 0.75);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
}

.project-lightbox-close:hover,
.project-lightbox-nav:hover {
    background: rgba(25, 33, 54, 0.95);
    border-color: rgba(255, 255, 255, 0.38);
    transform: scale(1.04);
}

.project-lightbox-close {
    top: 20px;
    right: 20px;
}

.project-lightbox-nav.prev {
    left: 18px;
}

.project-lightbox-nav.next {
    right: 18px;
}

body.lightbox-open {
    overflow: hidden;
}

.skill-bars {
    margin-top: 6px;
}

.skill-bar {
    margin-bottom: 16px;
}

.skill-bar:last-child {
    margin-bottom: 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.skill-name {
    font-size: 15px;
    font-weight: 600;
    color: #dbe4f1;
}

.skill-percent {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

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

.skill-progress-bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    box-shadow: 0 0 18px rgba(108, 242, 194, 0.45);
    transition: width 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.stack-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--card);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.stack-card::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    left: var(--mx, 50%);
    top: var(--my, 50%);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(108, 242, 194, 0.24), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.stack-card::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.28);
    filter: blur(12px);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.stack-card > * {
    position: relative;
    z-index: 1;
}

.stack-card:hover,
.stack-card:focus-within {
    transform: translateY(-4px);
    border-color: #6cf2c2;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.stack-card:hover::before,
.stack-card:focus-within::before {
    opacity: 1;
}

.stack-card:hover::after,
.stack-card:focus-within::after {
    opacity: 0.5;
}

.stack-card img {
    width: 36px;
    height: 36px;
}

.stack-card span {
    font-size: 16px;
    font-weight: 600;
    color: #e6edf7;
}

.cta-section {
    margin: 70px 0;
}

.cta-card {
    text-align: center;
    border-radius: var(--radius);
    padding: 56px 34px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(
        135deg,
        rgba(122, 162, 255, 0.08) 0%,
        rgba(108, 242, 194, 0.06) 100%
    );
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    transform-style: preserve-3d;
}

.cta-card::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    left: var(--mx, 50%);
    top: var(--my, 50%);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(122, 162, 255, 0.24), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.cta-card::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(
        from 0deg,
        rgba(122, 162, 255, 0.26),
        rgba(108, 242, 194, 0.22),
        rgba(255, 255, 255, 0.08),
        rgba(122, 162, 255, 0.26)
    );
    z-index: 0;
    filter: blur(34px);
    opacity: 0;
    animation: spin 20s linear infinite;
    transition: opacity 0.4s ease;
}

.cta-card > * {
    position: relative;
    z-index: 1;
}

.cta-card:hover,
.cta-card:focus-within {
    transform: translateY(-5px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    border-color: #7aa2ff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.cta-card:hover::before,
.cta-card:focus-within::before {
    opacity: 1;
}

.cta-card:hover::after,
.cta-card:focus-within::after {
    opacity: 0.9;
}

.cta-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    letter-spacing: 0.3px;
    color: #d4fbef;
    background: rgba(108, 242, 194, 0.14);
    border: 1px solid rgba(108, 242, 194, 0.35);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6cf2c2;
    box-shadow: 0 0 0 0 rgba(108, 242, 194, 0.7);
    animation: pulseDot 1.8s ease-out infinite;
}

.cta-card h2 {
    font-size: 40px;
    margin-bottom: 14px;
}

.cta-card p {
    max-width: 760px;
    margin: 0 auto 28px;
    color: var(--muted);
    font-size: 17px;
}

.cta-contact-list {
    margin: 0 auto 26px;
    width: min(760px, 100%);
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 12px;
}

.cta-contact-item {
    text-decoration: none;
    color: #eaf1fc;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    text-align: left;
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.cta-contact-item::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    left: var(--mx, 50%);
    top: var(--my, 50%);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(122, 162, 255, 0.35), transparent 72%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cta-contact-item::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.26);
    filter: blur(12px);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.cta-contact-item > * {
    position: relative;
    z-index: 1;
}

.cta-contact-item i {
    width: 20px;
    font-size: 20px;
    color: var(--accent);
}

.contact-label {
    display: block;
    font-size: 13px;
    color: #b9c4d3;
}

.contact-value {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #eef4ff;
}

.cta-contact-item:hover,
.cta-contact-item:focus-visible {
    transform: translateY(-4px);
    border-color: #7aa2ff;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.cta-contact-item:hover::before,
.cta-contact-item:focus-visible::before {
    opacity: 1;
}

.cta-contact-item:hover::after,
.cta-contact-item:focus-visible::after {
    opacity: 0.5;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.footer {
    margin: 40px 24px 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    padding: 34px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-tagline,
.footer-left p {
    color: var(--muted);
}

.footer-right {
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    text-decoration: none;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: transform var(--transition), color var(--transition), background var(--transition), box-shadow var(--transition);
    border-radius: 10px;
    padding: 6px 10px;
}

.footer-link i {
    color: var(--accent);
    width: 18px;
}

.footer-link:hover {
    color: #fff;
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.scroll-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    color: #02140c;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    cursor: pointer;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(122, 162, 255, 0.32);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(122, 162, 255, 0.42);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px) scale(0.99);
    transition:
        opacity 0.55s ease,
        transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-50px) translateX(30px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 242, 194, 0.72);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(108, 242, 194, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(108, 242, 194, 0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .bg-blob {
        animation: none;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .status-dot,
    .cta-card::after {
        animation: none;
    }

    .card,
    .stack-card,
    .button,
    .cta-card,
    .footer-link,
    .nav a,
    .scroll-top {
        transition: none;
    }
}

@media (max-width: 980px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 44px;
    }

    .avatar-container {
        max-width: 340px;
    }
}

@media (max-width: 950px) {
    .header {
        height: 56px;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
    }

    .nav.active {
        position: fixed;
        top: 56px;
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 5px;
        z-index: 999;
        padding: 16px;
        background: rgba(10, 12, 20, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .nav.active a {
        width: 100%;
        text-align: center;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        opacity: 0;
        transform: translateY(10px);
        animation: mobileNavItemIn 0.36s ease forwards;
    }

    .nav.active a:not(.nav-current):not(.lang-active) {
        background: rgba(255, 255, 255, 0.06);
    }

    .nav.active a:nth-child(1) {
        animation-delay: 0.02s;
    }

    .nav.active a:nth-child(2) {
        animation-delay: 0.07s;
    }

    .nav.active a:nth-child(3) {
        animation-delay: 0.12s;
    }

    .nav.active a:nth-child(4) {
        animation-delay: 0.17s;
    }

    .nav.active a:nth-child(5) {
        animation-delay: 0.22s;
    }

    .nav.active a:nth-child(6) {
        animation-delay: 0.27s;
    }

    .nav.active a:nth-child(7) {
        animation-delay: 0.32s;
    }

    .nav.active a:last-child {
        border-bottom: none;
        animation-delay: 0.25s;
    }

    .nav.active .lang-link {
        width: 100%;
        border-radius: 10px;
        margin-top: 10px;
        border-bottom: none;
        padding: 10px 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        min-height: 100svh;
        padding-top: 84px;
        padding-bottom: 28px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

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

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

    .project-preview img {
        height: 170px;
    }

    .project-card.mobile-app-card .project-preview img {
        width: 100%;
        height: 100%;
    }

    .project-card.mobile-app-card .project-preview {
        min-height: 240px;
        max-height: 240px;
    }

    .project-images img {
        width: min(78vw, 320px);
        min-width: 240px;
        height: 150px;
    }

    .project-lightbox {
        padding: 18px 12px;
    }

    .project-lightbox-stage img {
        max-height: 76vh;
    }

    .project-lightbox-close,
    .project-lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .project-lightbox-nav.prev {
        left: 8px;
    }

    .project-lightbox-nav.next {
        right: 8px;
    }

    .section-title {
        font-size: 28px;
    }

    .cta-card h2 {
        font-size: 32px;
    }

    .cta-card {
        padding: 44px 24px;
    }

    .cta-contact-list {
        grid-template-columns: 1fr;
    }

    .footer {
        margin-left: 16px;
        margin-right: 16px;
    }
}

@keyframes mobileNavItemIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 31px;
    }

    .hero-badges span {
        font-size: 13px;
        padding: 8px 12px;
    }

    .card {
        padding: 22px;
    }

    .section {
        margin-bottom: 66px;
    }

    .stack-grid {
        grid-template-columns: 1fr;
    }

    .cta-card h2 {
        font-size: 28px;
    }

    .cta-status {
        font-size: 12px;
        padding: 7px 12px;
    }

    .contact-value {
        font-size: 14px;
    }
}
