:root {
    --max-width: 1200px;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.18);
    --text: #e9eef8;
    --text-muted: rgba(233, 238, 248, 0.7);
    --accent: #414141;
}

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

body {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Helvetica,
        Arial,
        sans-serif,
        "Segoe UI Emoji",
        "Apple Color Emoji",
        "Noto Color Emoji",
        "Segoe UI Symbol",
        sans-serif;
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
    height: 100%;
    margin: 0;
    padding: 0;
    transition:
        color 0.6s ease,
        filter 0.6s ease,
        backdrop-filter 0.6s ease;
}

html {
    min-height: 100dvh;
    background: radial-gradient(circle at top center, #363636, #080808) no-repeat fixed;
    background-size: cover;
}

body.fade {
    filter: brightness(1.2);
}

body.switching {
    filter: blur(4px) brightness(1.1);
}

@keyframes tabGlow {

    0%,
    100% {
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(255, 255, 255, 0.05);
    }

    50% {
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.4),
            0 0 40px rgba(255, 255, 255, 0.1);
    }
}

.tabs-inner {
    animation: tabGlow 4s ease-in-out infinite;
}

/* Navigation Tabs */
.tabs {
    left: 0;
    right: 0;
    position: fixed;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 10px;
    animation: tabsSlideDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

@keyframes tabsSlideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }

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

.tabs-inner {
    margin: 0 auto;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    width: 100%;
}

.main-tabs {
    display: flex;
    gap: 6px;
    position: relative;
}

.tab-button {
    display: inline-block;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-height: 35px;
}

.tab-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-button:hover::before {
    left: 100%;
}

.tab-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.tab-button-active {
    padding: 10px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15),
            rgba(255, 255, 255, 0.05));
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 15px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.tab-button-active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.8),
            transparent);
    animation: activeIndicator 2s ease-in-out infinite;
}

@keyframes activeIndicator {

    0%,
    100% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }
}

.tab-button-active:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 6px 20px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.stats {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition:
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.stats:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Functional Buttons */
.func-wrapper {
    position: relative;
    display: inline-block;
}

.func-button {
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.05));
    color: #e9eef8;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    z-index: 2002;
    transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.func-button:hover {
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15),
            rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.popover,
.search-popover,
.info-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 300px;
    max-width: 90vw;
    padding: 16px;
    border-radius: 16px;
    background: rgba(29, 29, 29, 0.116);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 2001;
    color: #e9eef8;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(5px);
}

.search-popover h3 {
    color: #ffffff;
    opacity: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.left .popover {
    left: 0;
    right: auto;
}

.right .popover {
    right: 0;
    left: auto;
}

.search-popover input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #e9eef8;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.search-popover input:focus {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

mark.search-highlight {
    background: rgba(136, 208, 255, 0.4);
    padding: 1px 4px;
    border-radius: 4px;
    animation: highlightPulse 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes highlightPulse {
    0% {
        background: rgba(136, 208, 255, 0);
        transform: scale(0.95);
    }

    50% {
        background: rgba(136, 208, 255, 0.6);
        transform: scale(1.05);
    }

    100% {
        background: rgba(136, 208, 255, 0.4);
        transform: scale(1);
    }
}

.func-wrapper:hover .popover,
.func-wrapper.active .popover {
    display: block;
}

/* pin */
.pin {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 75px auto -110px;
    padding: 0 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    pointer-events: none;
}

.pin h1 {
    position: absolute;
    left: 40px;
    font-size: 75px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    pointer-events: auto;
}

.pin img {
    width: 300px;
    height: 300px;
    object-fit: contain;
    z-index: 1;
}

.pin-text {
    position: absolute;
    left: 40px;
    pointer-events: auto;
}

.pin h1 {
    position: static;
    font-size: 75px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}

.pin-tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 1.5px;
    margin-top: 4px;
    margin-left: 10px;
}

@media (max-width: 768px) {
    html {
        min-height: 100dvh;
        background: radial-gradient(circle at top center, #363636, #252525);
        background-size: 400% 400%;
        animation: gradientShift 10s ease infinite;
    }

    @keyframes gradientShift {
        0% {
            background-position: 0% 50%;
        }

        50% {
            background-position: 100% 50%;
        }

        100% {
            background-position: 0% 50%;
        }
    }

    .pin {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .pin-text {
        position: static;
        text-align: center;
        margin-bottom: 10px;
    }

    .pin h1 {
        font-size: 42px;
    }

    .pin-tagline {
        font-size: 13px;
        margin-left: 0px;
    }
}

h1,
h2,
h3,
p,
div {
    color: white;
}

/* Site Loader */
.site-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.loader-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: all;
}

.loader-content {
    position: relative;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    pointer-events: none;
}

.loader-row {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 420px;
    justify-content: center;
}

.loader-left,
.loader-center,
.loader-right {
    color: #ffffff;
    font-weight: 800;
    font-size: 36px;
    opacity: 0;
    display: inline-block;
    white-space: nowrap;
}

.loader-left {
    transform: translateX(-120%);
    animation: inLeft 0.9s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
    animation-delay: 0s;
}

.loader-center {
    transform: translateY(-120%);
    animation: inTop 0.9s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
    animation-delay: 0s;
    font-size: 30px;
}

.loader-right {
    transform: translateX(120%);
    animation: inRight 0.9s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
    animation-delay: 0s;
}

.loader-avatar {
    width: 90px;
    height: 90px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 28px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    opacity: 0;
    animation: avatarIn 0.6s ease forwards;
    animation-delay: 0.6s;
}

.loader-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    animation: linkIn 0.6s ease forwards;
    animation-delay: 1.2s;
    padding: 8px 14px;
    border-radius: 15px;
    border: 1px solid transparent;
    background: rgba(117, 117, 117, 0.1);
}

.loader-link img {
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

@keyframes inLeft {
    from {
        transform: translateX(-120%);
        opacity: 0;
    }

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

@keyframes inRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

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

@keyframes inTop {
    from {
        transform: translateY(-120%);
        opacity: 0;
    }

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

@keyframes avatarIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

@keyframes linkIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

.site-loader.reverse .loader-left {
    animation: outLeft 0.3s linear forwards !important;
    animation-delay: 0s !important;
}

.site-loader.reverse .loader-center {
    animation: outTop 0.3s linear forwards !important;
    animation-delay: 0s !important;
}

.site-loader.reverse .loader-right {
    animation: outRight 0.3s linear forwards !important;
    animation-delay: 0s !important;
}

.site-loader.reverse .loader-avatar {
    animation: avatarOut 0.3s linear forwards !important;
    animation-delay: 0s !important;
}

.site-loader.reverse .loader-link {
    animation: linkOut 0.3s linear forwards !important;
    animation-delay: 0s !important;
}

@keyframes outLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-120%);
        opacity: 0;
    }
}

@keyframes outRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes outTop {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-120%);
        opacity: 0;
    }
}

@keyframes avatarOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

@keyframes linkOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(20px);
        opacity: 0;
    }
}

.site-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.18s ease,
        visibility 0.18s ease;
}

/* Main Container */
.container {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 40px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    margin-top: 90px;
}

.single-column {
    display: block !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.single-column .photos-grid,
.single-column .projects-grid {
    width: 100%;
}

/* Card */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition:
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    z-index: 2;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.25);
    z-index: 2;
}

/* Header */
.header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
    background-color: transparent;
    z-index: 2;
}

.profile {
    display: flex;
    gap: 16px;
    align-items: center;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.title h1 {
    font-size: 22px;
    margin-bottom: 4px;
}

.title p {
    font-size: 13px;
    margin-bottom: 10px;
}

/* Stats Row */
.stats-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.stat {
    font-size: 12px;
    font-weight: 500;
    color: white;
    letter-spacing: 0.4px;
    cursor: default;
    position: relative;
    padding: 2px 0;
    transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    background: none;
    border: none;
}

.stat::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: rgba(233, 238, 248, 0.5);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat:hover {
    color: rgba(233, 238, 248, 0.95);
}

.stat:hover::after {
    width: 100%;
}

.stat .text-hover {
    display: none;
}

.stat:hover .text-default {
    display: none;
}

.stat:hover .text-hover {
    display: inline;
}

.divider {
    color: rgba(255, 255, 255, 0.1);
    font-size: 12px;
    user-select: none;
}

.main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.section-title {
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 16px;
    margin-bottom: 10px;
}

.paragraph {
    color: var(--text);
    opacity: 0.95;
}

.paragraph-extra-margin {
    margin-top: 12px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.skill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    will-change: transform;
}

.skill:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.skill:active {
    transform: translateY(0);
}

@media (hover: none) {
    .skill:hover {
        transform: none;
        box-shadow: none;
    }
}

.support-buttons {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.contacts-title {
    margin-bottom: 14px;
    font-size: 16px;
}

.contact-link {
    text-decoration: none;
    color: inherit;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    margin-bottom: 8px;
    transition:
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.contact-item.hover-lift-contact {
    transform: translateX(6px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.contact-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover .contact-icon {
    transform: scale(1.2) rotate(5deg);
    background: rgba(255, 255, 255, 0.1);
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-label {
    font-size: 11px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 13px;
    font-weight: 500;
    word-break: break-all;
}

.aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Photos */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    padding: 5px;
    width: 100%;
}

.photo-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition:
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    will-change: transform;
}

.photo-item img:hover {
    transform: translateY(-8px) scale(1.05) rotate(2deg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Projects */
.page-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.page-header p {
    opacity: 0.8;
}

.projects-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 12px;
    max-width: 400px;
}

.project-link {
    text-decoration: none;
    color: inherit;
}

.project {
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition:
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform;
}

.project.hover-lift-project {
    transform: translateY(-6px) scale(1.02) !important;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.project-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.project-desc {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 8px;
    color: var(--text-muted);
    flex-grow: 1;
}

.project-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.project-tag {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition:
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform;
}

.project-tag:hover {
    transform: translateY(-5px) scale(1.1) !important;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.star-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

/* Button */
.button {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    position: relative;
    overflow: hidden;
}

.button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition:
        width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.button:hover::before {
    width: 300px;
    height: 300px;
}

.button.hover-lift-small {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.view-all-wrapper {
    text-align: left;
    margin-top: 40px;
}

/* Footer */
.footer {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 12px;
    gap: 12px;
    color: var(--text);
    opacity: 0.8;
    font-size: 14px;
    padding-bottom: env(safe-area-inset-bottom);
}

.footer a {
    color: var(--text);
}

/* Hover utilities */
.hover-lift-card {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.25);
}

.hover-lift-project {
    transform: translateY(-6px) scale(1.02) !important;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hover-lift-small {
    transform: translateY(-3px) scale(1.05) !important;
}

.hover-lift-contact {
    transform: translateX(6px) !important;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Fade-in */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.card,
.photo-item,
.project {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

.photo-item:nth-child(1) {
    animation-delay: 0.1s;
}

.photo-item:nth-child(2) {
    animation-delay: 0.15s;
}

.photo-item:nth-child(3) {
    animation-delay: 0.2s;
}

.photo-item:nth-child(4) {
    animation-delay: 0.25s;
}

.photo-item:nth-child(5) {
    animation-delay: 0.3s;
}

.photo-item:nth-child(6) {
    animation-delay: 0.35s;
}

.project:nth-child(1) {
    animation-delay: 0.1s;
}

.project:nth-child(2) {
    animation-delay: 0.2s;
}

.project:nth-child(3) {
    animation-delay: 0.3s;
}

.project:nth-child(4) {
    animation-delay: 0.4s;
}

/* About page */
.about-section {
    max-width: 820px;
    margin: 100px auto 60px;
    padding: 48px 56px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
}

.about-section h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #fff 30%, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-section h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 36px 0 12px;
}

.about-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin: 32px 0 10px;
}

.about-section p {
    font-size: 0.97rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
}

.about-section ul {
    text-align: left;
    padding-left: 20px;
    margin-bottom: 16px;
}

.about-section ul li {
    font-size: 0.97rem;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 10px;
    padding-left: 6px;
}

.about-section ul li strong {
    color: rgba(255, 255, 255, 0.9);
}

.about-section em {
    color: rgba(255, 255, 255, 0.55);
    font-style: italic;
}

.about-section hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 40px 0 24px;
}

.about-section footer {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    letter-spacing: 0.3px;
}

.about {
    padding: 18px 30px;
    border-radius: 25px;
    border: 1px solid rgb(255, 255, 255);
    background: transparent;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 25px;
    display: inline-block;
    transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    margin-right: 15%;
}

.about::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition:
        width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about:hover::before {
    width: 300px;
    height: 300px;
}

.about:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-img {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    transform: scale(0.8);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    object-fit: contain;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.2s,
        transform 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1) rotate(90deg);
}

.lightbox-arrow {
    display: none;
}

.become {
    text-decoration: none;
    color: var(--text);
    padding: 5px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.become::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent);
    animation: shimmer 2.5s ease-in-out infinite;
}

.become:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

/* ═══════════════════════════════════════
   COMMENTS SECTION
═══════════════════════════════════════ */
.comments-section {
    position: relative;
    z-index: 1;
    padding: 20px 0 40px;
}

.comments-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 24px;
    align-items: flex-start;
}

.comment-form-card {
    position: sticky;
    top: 80px;
    padding: 24px 20px 20px;
}

.comment-form-heading {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.comment-rate-banner {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: rgba(233, 238, 248, 0.65);
    margin-bottom: 16px;
    line-height: 1.5;
}

.comment-rate-banner i {
    font-size: 13px;
    margin-top: 1px;
    flex-shrink: 0;
}

.comment-rate-banner.warn {
    background: rgba(255, 180, 0, 0.07);
    border-color: rgba(255, 180, 0, 0.25);
    color: rgba(255, 200, 80, 0.9);
}

.comment-rate-banner.blocked {
    background: rgba(255, 80, 80, 0.07);
    border-color: rgba(255, 80, 80, 0.25);
    color: rgba(255, 130, 130, 0.9);
}

.comment-field-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.c-label {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    padding: 11px 38px 11px 13px;
    transition: border-color 0.2s;
}

.c-label:focus-within {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.c-label.invalid {
    border-color: rgba(255, 80, 80, 0.5);
}

.c-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    min-width: 0;
}

.c-input::placeholder {
    color: rgba(233, 238, 248, 0.28);
}

.c-icon {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    font-size: 13px;
    transition: color 0.2s;
}

.c-label:focus-within .c-icon {
    color: rgba(255, 255, 255, 0.5);
}

.c-textarea-wrap {
    position: relative;
    margin-bottom: 10px;
}

.c-textarea-wrap textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 13px 28px;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    outline: none;
    transition:
        border-color 0.2s,
        background 0.2s;
}

.c-textarea-wrap textarea:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.c-textarea-wrap textarea::placeholder {
    color: rgba(233, 238, 248, 0.28);
}

.c-char-count {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 10px;
    color: rgba(233, 238, 248, 0.28);
    pointer-events: none;
}

.comment-error {
    font-size: 12px;
    color: rgba(255, 130, 130, 0.9);
    min-height: 16px;
    margin-bottom: 8px;
    display: none;
}

.comment-error.visible {
    display: block;
}

.comment-submit {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    transition:
        background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-submit::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-submit:hover:not(:disabled)::before {
    left: 100%;
}

.comment-submit:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.comment-submit:active:not(:disabled) {
    transform: scale(0.98);
}

.comment-submit:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 520px;
    overflow-y: auto;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15);
}

.comment-list::-webkit-scrollbar {
    width: 4px;
}

.comment-list::-webkit-scrollbar-track {
    background: transparent;
}

.comment-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.comment-empty {
    padding: 32px 16px;
    text-align: center;
    color: rgba(233, 238, 248, 0.2);
    font-size: 13px;
    border: 1px dashed rgba(255, 255, 255, 0.07);
    border-radius: 14px;
}

.c-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 16px 18px;
    animation: cFadeIn 0.3s ease both;
}

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

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

.c-card-header {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 10px;
}

.c-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.c-meta {
    flex: 1;
    min-width: 0;
}

.c-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(233, 238, 248, 0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c-email {
    font-size: 11px;
    color: rgba(233, 238, 248, 0.25);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c-time {
    font-size: 11px;
    color: rgba(233, 238, 248, 0.2);
    flex-shrink: 0;
}

.c-body {
    font-size: 13px;
    color: rgba(233, 238, 248, 0.65);
    line-height: 1.7;
    word-break: break-word;
}

/* comment photo upload */
.c-photo-wrap {
    position: relative;
    border-radius: 12px;
    padding: 28px 16px;
    text-align: center;
    margin-bottom: 10px;
    cursor: pointer;
    transition:
        border-color 0.2s,
        background 0.2s;
    background: rgba(0, 0, 0, 0.02);
}

.c-photo-wrap:hover,
.c-photo-wrap.drag-over {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.c-photo-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.c-photo-inner i {
    font-size: 28px;
    color: rgba(233, 238, 248, 0.3);
}

.c-photo-hint {
    font-size: 13px;
    color: rgba(233, 238, 248, 0.5);
}

.c-photo-click {
    color: rgba(233, 238, 248, 0.8);
    cursor: pointer;
    text-decoration: underline;
    pointer-events: all;
}

.c-photo-sub {
    font-size: 11px;
    color: rgba(233, 238, 248, 0.25);
}

.c-photo-name {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: rgba(233, 238, 248, 0.4);
    text-align: center;
    word-break: break-all;
}

.c-photo-preview {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

.c-photo-preview-wrap {
    position: relative;
    margin-top: 10px;
    display: inline-block;
    width: 100%;
}

.c-photo-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 40%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.2s,
        transform 0.2s;
    padding-bottom: 1px;
}

.c-photo-remove-btn:hover {
    transform: scale(1.1);
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */

@media (max-width: 1100px) {
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 980px) {
    .tabs {
        border-radius: 12px;
        padding: 8px;
    }

    .header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .profile {
        flex: 0 0 100%;
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .skills {
        flex: 0 0 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .avatar {
        width: 60px;
        height: 60px;
        font-size: 22px;
        flex-shrink: 0;
    }

    .container,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-section {
        display: block;
    }

    .project {
        width: 100%;
    }

    .has-fixed-tabs {
        padding-top: 64px;
    }

    .container {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

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

    .aside {
        order: 2;
    }

    .main {
        order: 1;
    }

    .avatar {
        width: 70px;
        height: 70px;
        font-size: 24px;
    }

    .title h1 {
        font-size: 20px;
    }

    .title p {
        font-size: 12px;
    }

    .main-tabs {
        display: flex;
        gap: 6px;
        width: 250px;
    }

    .tab-button {
        flex: 1;
        min-width: 0;
        text-align: center;
        padding: 10px 5px;
        font-size: 12px;
    }

    .comments-layout {
        grid-template-columns: 1fr;
    }

    .comment-form-card {
        position: static;
    }
}

@media (max-width: 480px) {
    .photos-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        width: 100%;
    }

    .photo-item img {
        width: 100%;
        height: 100%;
    }

    .photo-item {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .photo-item p {
        font-size: 24px;
        text-align: center;
        padding: 0 4px;
    }

    .loader-row {
        min-width: auto;
        width: 100%;
        gap: 10px;
        flex-wrap: wrap;
    }

    .loader-left,
    .loader-center,
    .loader-right {
        font-size: 24px;
    }

    .loader-center {
        font-size: 20px;
    }

    .loader-avatar {
        width: 70px;
        height: 70px;
        font-size: 22px;
    }

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

    .project {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .about-section {
        margin: 80px 16px 40px;
        padding: 32px 24px;
        border-radius: 18px;
    }

    .about-section h1 {
        font-size: 1.8rem;
    }
}

/* 404 */
.page-404 {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    gap: 0;
}

.err-code {
    font-size: clamp(100px, 22vw, 180px);
    font-weight: 800;
    letter-spacing: -4px;
    line-height: 1;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 0.05s;
    user-select: none;
}

.err-title {
    font-size: clamp(18px, 4vw, 26px);
    font-weight: 700;
    color: #fff;
    margin: 8px 0 12px;
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 0.15s;
}

.err-desc {
    font-size: 14px;
    color: rgba(233, 238, 248, 0.55);
    max-width: 340px;
    line-height: 1.6;
    margin-bottom: 36px;
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 0.22s;
}

.err-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 0.3s;
}

.err-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
    color: #e9eef8;
    transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.3s,
        border-color 0.3s,
        box-shadow 0.3s;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.err-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.err-btn:hover::before {
    left: 100%;
}

.err-btn:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.err-btn.primary {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.err-glitch {
    position: relative;
    display: inline-block;
}

.err-glitch::before,
.err-glitch::after {
    content: "404";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.err-glitch::before {
    animation: glitch1 3.5s infinite;
    clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
}

.err-glitch::after {
    animation: glitch2 3.5s infinite;
    clip-path: polygon(0 60%, 100% 60%, 100% 75%, 0 75%);
}

@keyframes glitch1 {

    0%,
    90%,
    100% {
        transform: translate(0);
        opacity: 0;
    }

    92% {
        transform: translate(-4px, 1px);
        opacity: 0.6;
    }

    95% {
        transform: translate(3px, -1px);
        opacity: 0.4;
    }

    97% {
        transform: translate(-2px, 2px);
        opacity: 0.5;
    }
}

@keyframes glitch2 {

    0%,
    90%,
    100% {
        transform: translate(0);
        opacity: 0;
    }

    93% {
        transform: translate(4px, -2px);
        opacity: 0.5;
    }

    96% {
        transform: translate(-3px, 1px);
        opacity: 0.35;
    }

    98% {
        transform: translate(2px, -1px);
        opacity: 0.4;
    }
}

.err-orbit {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 16px;
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.err-orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.err-orbit-ring:nth-child(2) {
    inset: 24px;
    border-color: rgba(255, 255, 255, 0.05);
    animation: spin 12s linear infinite;
}

.err-orbit-ring:nth-child(3) {
    inset: 50px;
    border-color: rgba(255, 255, 255, 0.04);
    animation: spin 8s linear infinite reverse;
}

.err-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
}

.err-dot:nth-child(4) {
    margin: -84px 0 0 -84px;
    animation: orbit1 6s linear infinite;
}

.err-dot:nth-child(5) {
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.25);
    margin: -60px 0 0 -60px;
    animation: orbit2 4s linear infinite reverse;
}

@keyframes orbit1 {
    from {
        transform: rotate(0deg) translateX(84px);
    }

    to {
        transform: rotate(360deg) translateX(84px);
    }
}

@keyframes orbit2 {
    from {
        transform: rotate(0deg) translateX(60px);
    }

    to {
        transform: rotate(360deg) translateX(60px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.err-center-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.15);
}

/* Blog */
.blog-section {
    position: relative;
    z-index: 1;
    padding: 20px 0 40px;
}

.blog-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    width: 300px;
}

.blog-img {
    display: block;
    width: 300px;
    height: 480px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-img:hover {
    transform: scale(1.02);
}

.blog-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.blog-like-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: rgba(233, 238, 248, 0.6);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition:
        border-color 0.2s,
        color 0.2s,
        background 0.2s,
        transform 0.2s;
    font-family: inherit;
}

.blog-like-btn:hover {
    border-color: rgba(255, 255, 255, 0.35);
    color: rgba(233, 238, 248, 0.95);
    transform: scale(1.05);
}

.blog-like-btn.liked {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.blog-like-icon {
    font-size: 16px;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.blog-like-btn.pop .blog-like-icon {
    transform: scale(1.4);
}

.blog-text {
    font-size: 13px;
    color: rgba(233, 238, 248, 0.55);
    line-height: 1.5;
    flex: 1;
}

@media (max-width: 600px) {
    .blog-card {
        max-width: 100%;
        border-radius: 12px;
    }

    .blog-img {
        height: auto;
        border-radius: 12px 12px 0 0;
    }

    .blog-footer {
        padding: 10px 12px;
    }

    .blog-text {
        font-size: 12px;
    }
}