/* Цветовая гамма и стиль сайта */
:root {
    --bg:          #03050b;
    --surface:     #0b0e17;
    --surface2:    #141a29;
    --border:      rgba(88, 166, 255, 0.12);
    --border-hi:   rgba(88, 166, 255, 0.3);
    --accent:      #3b82f6;
    --accent2:     #00e1ff;
    --accent-glow: rgba(59, 130, 246, 0.4);
    --blue:        #3b82f6;
    --teal:        #0ea5e9;
    --green:       #10b981;
    --red:         #ef4444;
    --text:        #fff;
    --muted:       #94a3b8;
    --muted2:      #5f6c84;
    --radius:      14px;
    --radius-lg:   20px;
    --shadow:      0 24px 80px -8px #03050b, 0 0 0 1px rgba(59, 130, 246, 0.15);
}
::selection {
    background: var(--accent2);
    color: var(--bg);
}
*,*::before,*::after {
    box-sizing:border-box;
    margin:0;
    padding:0;
    font-family: Unbounded, sans-serif;
}
html {
    width: 100%;
    overflow-x: hidden
}
body {
    background: var(--bg);
    color: var(--text);
    display: flex;
    align-items: center;
    flex-direction: column;
    z-index: 1;
    position: relative;
    min-height: 100vh;
    left: 0;
    right: 0;
}
@font-face {
    font-family:'Unbounded';
    src:url('Unbounded/Unbounded-VariableFont_wght.ttf') format('truetype');
    font-weight:200 900;
    font-style:normal;
    font-display:swap;
}
@font-face {
    font-family:'JetBrains Mono';
    src:url('JetBrains_Mono/JetBrainsMono-VariableFont_wght.ttf') format('truetype');
    font-weight:200 900;
    font-style:normal;
    font-display:swap;
}
.introduce-about h1 {
    font-size: 6vw;
    font-weight: 500;
    transform: scaleX(1.3) !important;
    transform-origin: left;
    color: var(--text);
    line-height: 1.05;
    margin-bottom: 24px;
}
.introduce-about h2 {
    font-size: 3vw;
    font-weight: 300;
    transform-origin: left;
    color: var(--accent2);
    margin-bottom: 20px;
}
.introduce-about h3 {
    font-weight: 300;
    font-family: 'JetBrains Mono', sans-serif;
    font-size: 1.2vw;
    color: var(--muted);
    @media (min-width: 1024px) {
        max-width: 43vw;
    }
}
.introduce::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 10;
    animation: slideUp 1.8s cubic-bezier(0.77, 0, 0.18, 1) forwards;
    pointer-events: none;
}

.introduce::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 50%, transparent 100%);
    z-index: 9;
    animation: slideRight 1.8s cubic-bezier(0.77, 0, 0.18, 1) forwards;
    pointer-events: none;
}

.introduce-about h1,
.introduce-about h2,
.introduce-about h3,
.social-links,
.introduce-image {
    opacity: 0;
    transform: translateY(30px) scaleX(1.3);
}

.introduce-about h1 {
    animation: slideInFromBottom 0.6s cubic-bezier(0.23, 1, 0.32, 1) 1.2s forwards;
}

.introduce-about h2 {
    animation: slideInFromBottom 0.6s cubic-bezier(0.23, 1, 0.32, 1) 1.4s forwards;
}

.introduce-about h3 {
    animation: slideInFromBottom 0.6s cubic-bezier(0.23, 1, 0.32, 1) 1.6s forwards;
}

.social-links {
    animation: slideInFromBottom 0.6s cubic-bezier(0.23, 1, 0.32, 1) 1.8s forwards;
}

.introduce-image {
    animation: slideInFromBottom 0.8s cubic-bezier(0.23, 1, 0.32, 1) 1.3s forwards;
}

@keyframes slideUp {
    0% {
        transform: translateY(0);
    }
    80% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@media (max-width: 1024px) {
    .introduce::before {
        animation: slideUpMobile 1.5s cubic-bezier(0.77, 0, 0.18, 1) forwards;
    }

    .introduce::after {
        display: none;
    }

    .introduce-about h1,
    .introduce-about h2,
    .introduce-about h3,
    .social-links,
    .introduce-image {
        animation: slideInFromBottom 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    }

    .introduce-about h1 { animation-delay: 1.0s; }
    .introduce-about h2 { animation-delay: 1.2s; }
    .introduce-about h3 { animation-delay: 1.4s; }
    .social-links { animation-delay: 1.6s; }
    .introduce-image { animation-delay: 1.1s; }

    @keyframes slideUpMobile {
        0% { transform: translateY(0); }
        70% { transform: translateY(-100%); }
        100% { transform: translateY(-100%); opacity: 0; }
    }
}

@media (max-width: 480px) {
    .introduce-about h1 { animation-delay: 0.9s; }
    .introduce-about h2 { animation-delay: 1.1s; }
    .introduce-about h3 { animation-delay: 1.3s; }
    .social-links { animation-delay: 1.5s; }
    .introduce-image { animation-delay: 1.0s; }
}
header nav a {
    text-decoration: none;
    color: var(--text);
    font-family: 'JetBrains Mono', sans-serif;
    transition: 0.5s;
}
header nav a:hover, header nav a:focus, header nav a:active {
    color: var(--accent2);
}
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2em;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 50px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 5;
    backdrop-filter: blur(20px);
    padding: 5px;
    border-radius: 10px;
}

.burger-line {
    width: 100%;
    height: 2px;
    background: var(--accent2);
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: translateY(14px) rotate(45deg);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: translateY(-14px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 80vw);
    height: 100vh;
    background: var(--surface);
    backdrop-filter: blur(20px);
    padding: 2rem 1.5rem;
    transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 25px 0 0 25px;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 4;
}

.mobile-nav.active {
    right: 0;
    z-index: 4;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    color: var(--accent2);
    font-weight: 500;
}

.mobile-nav-close {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-close:hover {
    color: var(--accent2);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex: 1;
}

.mobile-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    color: var(--text);
    text-decoration: none;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    background: linear-gradient(90deg, transparent 0%, transparent 100%);
}

.mobile-link:active {
    transform: translateY(5px);
}

.mobile-link-tz {
    background: var(--accent2);
    color: var(--bg);
    text-align: center;
    margin-top: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    text-decoration: none;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.mobile-link-tz:active {
    transform: translateY(5px);
}

.mobile-nav-social {
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.mobile-social-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-social-link:hover {
    color: var(--accent2);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 5, 11, 0.8);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
    z-index: 3;
}


@media (max-width: 1024px) {
    .header-container {
        justify-content: space-between;
        padding: 4vw;
    }

    .desktop-nav {
        display: none;
    }

    .burger-menu {
        display: flex;
    }
}

@media (max-width: 480px) {
    .mobile-link {
        font-size: 1.25rem;
        padding: 0.6rem 0.8rem;
    }
    .mobile-link-tz {
        font-size: 1.25rem;
    }
}
.body-section-introduce {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.social-links {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}
.social-link {
    color: var(--muted2);
    display: grid;
    place-items: center;
    transition: 0.2s;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 0.15vw solid var(--muted2);
    width: 2vw;
    padding: 0.3vw;
}
.social-link svg {
    fill: currentColor;
}
.social-link:hover {
    background-color: var(--accent2);
    border: 0.15vw solid var(--accent2);
    color: var(--bg);
    transform: scale(1.2);
    box-shadow: var(--accent2) 0 0 25px;
}
.btn-tz {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2vw;
    background: var(--accent2);
    color: var(--bg);
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 7px;
    margin-left: 8px;
    transition: 0.2s;
}
header nav {
    padding: 17px 15px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-radius: 2em;
    border: none;
    min-width: 300px;
    backdrop-filter: blur(20px);
    gap: 2em;
}
.body-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.body-section-container {
    display: grid;
    grid-template-columns: 1fr clamp(320px, 40vw, 600px);
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 3vw 0 5vw;
    gap: 6vw;
    box-sizing: border-box;
}

.introduce-about {
    min-width: 0;
    overflow: visible;
}

.introduce-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 60vh;
}

.photo-frame {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-glow {
    display: none;
}

@media (max-width: 1024px) {
    .body-section {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 60px;
        width: 100vw;
    }
    .introduce {
        padding-top: 80px;
    }
    .body-section-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        justify-items: center;
        text-align: center;
        gap: 32px;
        padding: 0 6vw;
    }
    .introduce-image {
        grid-row: 1;
        width: clamp(250px, 60vw, 400px);
        min-height: unset;
        justify-content: center;
    }
    .photo-frame {
        max-width: 100%;
    }
    .introduce-about {
        grid-row: 2;
        width: 100%;
        overflow: visible;
    }
    .introduce-about h1 {
        font-size: clamp(28px, 10vw, 48px);
        transform: scaleX(1.3);
        transform-origin: center;
        max-width: 100%;
        display: block;
        text-align: center;
    }
    .introduce-about h2 {
        font-size: clamp(16px, 5vw, 36px);
        text-align: center;
    }
    .introduce-about h3 {
        font-size: clamp(12px, 2.5vw, 18px);
        text-align: justify-all;
    }
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    .social-link {
        width: clamp(36px, 6vw, 48px);
        border: 0.5vw solid;
        padding: 6px;
    }
    .btn-tz {
        font-size: clamp(12px, 2.5vw, 16px);
    }
}

@media (max-width: 480px) {
    .body-section-container {
        gap: 24px;
        padding: 0 5vw;
    }
    .introduce-about h2 {
        font-size: clamp(20px, 7vw, 30px);
    }
    .introduce-about h3 {
        font-size: 15px;
    }
    .introduce-image {
        width: clamp(160px, 65vw, 280px);
    }
    .social-link {
        width: 38px;
        padding: 6px;
    }
    .btn-tz {
        font-size: 13px;
        padding: 10px 16px;
        margin-left: 0;
    }
}

.projects-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 0;
    overflow: visible;
    perspective: 1000px;
    perspective-origin: 50% 50%;
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10vh 5vw 20vh;
    position: relative;
    z-index: 1;
}


.section-title-wrapper {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10vh;
    perspective: 1200px;
}

.section-title {
    font-size: clamp(48px, 12vw, 140px);
    font-weight: 200;
    color: var(--text);
    letter-spacing: -0.02em;
    transform-style: preserve-3d;
    will-change: transform, filter, opacity;
    text-align: center;
    line-height: 1;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent2);
    transition: width 0.8s ease;
    box-shadow: 0 0 20px var(--accent2);
}

.section-title.visible::after {
    width: 200px;
}


.project-card {
    position: relative;
    width: 100%;
    min-height: 70vh;
    margin-bottom: 15vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4vw;
    align-items: center;
    transform-style: preserve-3d;
    will-change: transform, opacity, filter;
    opacity: 0.3;
}

.project-card:nth-child(even) {
    direction: rtl;
}

.project-card:nth-child(even) > * {
    direction: ltr;
}

.project-card.visible {
    opacity: 1;
    transform: rotateX(0deg) translateZ(0) scale(1);
    filter: blur(0);
}

.project-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.project-number {
    color: var(--accent2);
    font-weight: 600;
    font-size: 0.9rem;
}

.project-status {
    color: var(--muted2);
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

.project-name {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 400;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.project-desc {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(16px, 1.5vw, 20px);
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 90%;
    font-weight: 300;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.tech-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent);
    padding: 0.4rem 0.9rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    border-color: var(--accent2);
    color: var(--accent2);
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-link.primary {
    background: var(--accent2);
    color: var(--bg);
    font-weight: 500;
}

.project-link.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 225, 255, 0.3);
}

.project-link:not(.primary) {
    color: var(--text);
    border: 1px solid var(--border);
    background: transparent;
}

.project-link:not(.primary):hover {
    border-color: var(--accent2);
    color: var(--accent2);
}

.project-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}


.project-visual {
    position: relative;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.visual-inner {
    position: relative;
    width: 80%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-mesh {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 30% 30%, var(--accent-glow) 0%, transparent 50%),
            radial-gradient(circle at 70% 70%, rgba(0, 225, 255, 0.2) 0%, transparent 50%);
    opacity: 0.6;
}

.node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent2);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent2);
    animation: pulse 2s ease-in-out infinite;
}

.node-1 { top: 30%; left: 30%; animation-delay: 0s; }
.node-2 { top: 60%; left: 60%; animation-delay: 0.6s; }
.node-3 { top: 45%; left: 45%; animation-delay: 1.2s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.orbital-system {
    position: relative;
    width: 200px;
    height: 200px;
}

.orbit {
    position: absolute;
    border: 1px solid var(--border-hi);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 100%;
    height: 100%;
    animation: rotate 10s linear infinite;
}

.orbit-2 {
    width: 60%;
    height: 60%;
    animation: rotate 7s linear infinite reverse;
}

.orbit::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--accent);
}

.planet {
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, var(--accent2), var(--accent));
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px var(--accent-glow);
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.radar-screen {
    position: relative;
    width: 200px;
    height: 200px;
    border: 2px solid var(--border-hi);
    border-radius: 50%;
    background: radial-gradient(circle, var(--surface2) 0%, var(--surface) 100%);
    overflow: hidden;
}

.radar-sweep {
    position: absolute;
    width: 50%;
    height: 50%;
    top: 50%;
    left: 50%;
    background: linear-gradient(45deg, transparent 50%, rgba(239, 68, 68, 0.3) 100%);
    transform-origin: 0 0;
    animation: sweep 4s linear infinite;
    border-radius: 0 0 100% 0;
}

.blip {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--red);
    animation: blip 2s ease-in-out infinite;
}

.blip-1 { top: 30%; left: 60%; animation-delay: 1s; }
.blip-2 { top: 70%; left: 30%; animation-delay: 2.5s; }

@keyframes sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes blip {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

.candle-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 150px;
    padding: 20px;
}

.candle {
    width: 20px;
    background: var(--surface2);
    border: 1px solid var(--border-hi);
    position: relative;
    animation: grow 1s ease-out forwards;
    transform-origin: bottom;
    transform: scaleY(0);
}

.candle.green { background: var(--green); border-color: var(--green); }
.candle.red { background: var(--red); border-color: var(--red); }
.candle.tall { height: 120px; animation-delay: 0.2s; }
.candle:not(.tall) { height: 80px; }
.candle:nth-child(1) { animation-delay: 0s; }
.candle:nth-child(2) { animation-delay: 0.1s; }
.candle:nth-child(3) { animation-delay: 0.2s; height: 100px; }
.candle:nth-child(4) { animation-delay: 0.3s; }
.candle:nth-child(5) { animation-delay: 0.4s; height: 60px; }

.candle::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 20px;
    background: inherit;
    left: 50%;
    transform: translateX(-50%);
    top: -10px;
}

.candle::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 15px;
    background: inherit;
    left: 50%;
    transform: translateX(-50%);
    bottom: -8px;
}

@keyframes grow {
    to { transform: scaleY(1); }
}

.building-3d {
    position: relative;
    width: 120px;
    height: 180px;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(45deg);
    animation: buildingFloat 6s ease-in-out infinite;
}

.floor {
    position: absolute;
    width: 100%;
    height: 50px;
    background: var(--surface2);
    border: 1px solid var(--border-hi);
    left: 0;
}

.floor-1 { bottom: 0; transform: translateZ(0); }
.floor-2 { bottom: 55px; transform: translateZ(10px); }
.floor-3 { bottom: 110px; transform: translateZ(20px); }

.roof {
    position: absolute;
    bottom: 165px;
    left: 50%;
    transform: translateX(-50%) translateZ(30px);
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 40px solid var(--accent);
    filter: drop-shadow(0 0 15px var(--accent-glow));
}

@keyframes buildingFloat {
    0%, 100% { transform: rotateX(-20deg) rotateY(45deg) translateY(0); }
    50% { transform: rotateX(-20deg) rotateY(45deg) translateY(-10px); }
}


@media (max-width: 1024px) {
    .project-card {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 2rem;
    }

    .project-card:nth-child(even) {
        direction: ltr;
    }

    .project-visual {
        min-height: 300px;
        order: -1;
    }

    .section-title-wrapper {
        height: 40vh;
    }
}

@media (max-width: 480px) {
    .projects-container {
        padding: 5vh 4vw 10vh;
    }

    .project-content {
        padding: 1rem;
    }

    .project-stack {
        gap: 0.4rem;
    }

    .tech-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}
.section-title,
.project-card {
    transition: none !important;
    will-change: transform, filter, opacity;
}

.section-title.visible,
.project-card.visible {
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1),
    filter 0.6s ease-out,
    opacity 0.4s ease-out !important;
}

.section-title-wrapper {
    height: 80vh;
    margin-bottom: 15vh;
}

.project-card {
    margin-bottom: 25vh;
    min-height: 60vh;
}

.project-visual .visual-inner {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}

.project-card.visible .project-visual .visual-inner {
    opacity: 1;
    transform: scale(1);
}

.project-content > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.project-card.visible .project-content > * {
    opacity: 1;
    transform: translateY(0);
}

.project-card.visible .project-meta { transition-delay: 0.1s; }
.project-card.visible .project-name { transition-delay: 0.2s; }
.project-card.visible .project-desc { transition-delay: 0.3s; }
.project-card.visible .project-stack { transition-delay: 0.4s; }
.project-card.visible .project-links { transition-delay: 0.5s; }


.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 11, 0.95);
    backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-modal.active .gallery-backdrop {
    opacity: 1;
}

.gallery-container {
    position: relative;
    width: 90vw;
    max-width: 1200px;
    height: 80vh;
    z-index: 1001;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-modal.active .gallery-container {
    transform: scale(1) translateY(0);
}

.gallery-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-close:hover {
    border-color: var(--accent2);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: rotate(90deg);
}

.gallery-close svg {
    width: 20px;
    height: 20px;
    stroke: var(--text);
    stroke-width: 2;
    fill: none;
}

.gallery-slider {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.gallery-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.gallery-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gallery-nav {
    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.gallery-btn {
    width: 50px;
    height: 50px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.3s ease;
}

.gallery-btn:hover:not(:disabled) {
    border-color: var(--accent2);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: scale(1.1);
}

.gallery-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--text);
    stroke-width: 2;
    fill: none;
}

.gallery-dots {
    display: flex;
    gap: 0.75rem;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    background: var(--border-hi);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.gallery-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid transparent;
    border-radius: 50%;
    transition: border-color 0.3s ease;
}

.gallery-dot:hover {
    background: var(--accent);
}

.gallery-dot.active {
    background: var(--accent2);
    box-shadow: 0 0 10px var(--accent2);
}

.gallery-dot.active::after {
    border-color: var(--accent2);
}

.gallery-counter {
    position: absolute;
    top: -50px;
    left: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--muted);
}

.gallery-counter span:first-child {
    color: var(--accent2);
    font-weight: 600;
}

@media (max-width: 768px) {
    .gallery-container {
        width: 95vw;
        height: 60vh;
    }

    .gallery-nav {
        bottom: -60px;
        gap: 1rem;
    }

    .gallery-btn {
        width: 44px;
        height: 44px;
    }

    .gallery-close {
        top: -45px;
        width: 40px;
        height: 40px;
    }
}
.about {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 5vw;
    font-family: "JetBrains Mono", monospace !important;
}

.terminal-window {
    width: min(780px, 92vw);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: var(--shadow);
}
.terminal-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
    position: relative;
    user-select: none;
}

.terminal-dots {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--muted2);
    pointer-events: none;
}

.terminal-body {
    padding: 24px 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 70vh;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.terminal-body::-webkit-scrollbar { width: 4px; }
.terminal-body::-webkit-scrollbar-track { background: transparent; }
.terminal-body::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 2px; }

.terminal-line {
    display: flex;
    align-items: center;
    margin-top: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(13px, 1.3vw, 15px);
    line-height: 1.5;
}

.terminal-line:first-child { margin-top: 0; }

.prompt  { color: var(--text); white-space: nowrap; font-family: 'JetBrains Mono', monospace;}
.cmd-text { color: var(--text); font-family: 'JetBrains Mono', monospace;}

.terminal-output {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(12px, 1.2vw, 14px);
    color: var(--muted);
    line-height: 1.85;
    margin-top: 8px;
    margin-left: 2px;
    padding-left: 14px;
    border-left: 1px solid var(--border);
}

.out-accent { color: var(--accent2); font-family: 'JetBrains Mono', monospace;}
.out-result { color: var(--accent2); font-family: 'JetBrains Mono', monospace;}
.out-muted  { font-family: 'JetBrains Mono', monospace;}
.terminal-link { font-family: 'JetBrains Mono', monospace; text-decoration: underline; color: var(--accent2); }

.loading-dots {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent2);
}

.cursor-blink {
    display: inline-block;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    animation: blink 1.1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

@media (max-width: 600px) {
    .terminal-title  { display: none; }
    .terminal-body   { padding: 16px 16px 24px; max-height: 80vh; }
    .terminal-line   { flex-wrap: wrap; margin-top: 16px; }
    .terminal-output { font-size: 12px; padding-left: 10px; }
}

.profile-photo {
    width: 35vw;
    @media (max-width: 1024px) {
        width: 45vw;
    }
    @media (max-width: 640px) {
        width: 70vw;
    }
    height: auto;
    display: block;
    -webkit-mask-composite: destination-in;
    mask-image: linear-gradient(
            to bottom,
            black 0%,
            black 55%,
            black 70%,      /* Increased from 55% */
            rgba(0,0,0,0.9) 87%,  /* Less transparent */
            transparent 100%      /* Fully visible at bottom */
    ),
    linear-gradient(
            to right,
            transparent 0%,
            black 12%,
            black 88%,
            transparent 100%
    );
    mask-composite: intersect;
    filter: drop-shadow(0 10px 60px var(--surface2));
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.cookie-content {
    max-width: 1100px;
    width: fit-content;
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-hi);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow), 0 10px 40px -10px rgba(0, 225, 255, 0.2);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    pointer-events: all;
    animation: slideUpCookie 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    transform-origin: bottom center;
}

@keyframes slideUpCookie {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.cookie-policy-link {
    color: var(--accent2);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 225, 255, 0.35);
    font-family: 'JetBrains Mono', monospace;
    transition: border-color 0.2s;
}
.cookie-policy-link:hover { border-color: var(--accent2); }
.cookie-icon {
    color: var(--accent2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    background: var(--surface2);
}

.cookie-icon svg {
    width: 28px;
    height: 28px;
}

.cookie-text h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.cookie-text p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
    max-width: 500px;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: var(--accent2);
    color: var(--bg);
    border: 1px solid var(--accent2);
}

.cookie-btn-primary:hover {
    background: transparent;
    color: var(--accent2);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-2px);
}

.cookie-btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.cookie-btn-secondary:hover {
    border-color: var(--accent2);
    color: var(--accent2);
    background: var(--surface2);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
        width: 100%;
    }

    .cookie-icon {
        width: 40px;
        height: 40px;
    }

    .cookie-icon svg {
        width: 24px;
        height: 24px;
    }

    .cookie-text h4 {
        font-size: 1rem;
    }

    .cookie-text p {
        font-size: 0.8rem;
        max-width: 100%;
    }

    .cookie-actions {
        width: 100%;
        justify-content: stretch;
        gap: 10px;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
        padding: 10px 0;
        font-size: 0.85rem;
    }
}

@media (max-width: 380px) {
    .cookie-actions {
        flex-direction: column;
        gap: 8px;
    }
    .cookie-btn {
        width: 100%;
    }
}
footer {
    width: 100%;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
    border-top: 1px solid var(--border);
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 5vw 40px;
    position: relative;
    z-index: 2;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent2);
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    width: fit-content;
}

.footer-logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent2), transparent);
}

.footer-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--accent2);
    transition: all 0.3s ease;
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-social-link:hover {
    transform: translateY(-3px);
    border-color: var(--accent2);
    box-shadow: 0 0 20px var(--accent-glow);
    background: var(--accent2);
    color: var(--bg);
}

.footer-col h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 1px;
    background: var(--accent2);
    transition: width 0.3s ease;
}

.footer-col:hover h4::after {
    width: 50px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
}

.footer-links li a::before {
    content: '→';
    position: absolute;
    left: -16px;
    opacity: 0;
    transition: all 0.2s ease;
    color: var(--accent2);
    font-size: 0.8rem;
}

.footer-links li a:hover {
    color: var(--accent2);
    transform: translateX(12px);
}

.footer-links li a:hover::before {
    opacity: 1;
    transform: translateX(-4px);
}

.footer-bottom {
    padding-top: 30px;
    margin-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--muted2);
}

.footer-copyright a {
    color: var(--accent2);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

.footer-meta {
    display: flex;
    gap: 24px;
}

.footer-meta a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--muted2);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-meta a:hover {
    color: var(--accent2);
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    color: var(--accent2);
}

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

.scroll-top:hover {
    transform: translateY(-5px);
    border-color: var(--accent2);
    box-shadow: 0 0 20px var(--accent-glow);
    background: var(--accent2);
    color: var(--bg);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-tagline {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 40px 5vw 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .footer-social-link {
        width: 36px;
        height: 36px;
    }

    .footer-contact li {
        font-size: 0.75rem;
    }

    .footer-contact-icon {
        width: 28px;
        height: 28px;
    }
}