:root {
    --bg: #030303;
    --text: #ffffff;
    --dim-text: rgba(255, 255, 255, 0.5);
    --input-border: rgba(255, 255, 255, 0.4);
    --accent: #ffffff;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#code-bg-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; opacity: 0.5; }
#matrix-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../images/noise.svg');
    opacity: 0.03; pointer-events: none; z-index: 9999;
}

#cursor-wrapper { position: fixed; width: 100px; height: 100px; pointer-events: none; z-index: 10001; display: flex; align-items: center; justify-content: center; }
#cross-cursor {
    width: 35px;
    height: 35px;
    transform-origin: center center;
    /* Предыдущий курсор (SVG-крест) — оставлено для отката:
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M 50 42 L 75 15 L 25 15 Z M 50 58 L 75 85 L 25 85 Z M 42 50 L 15 75 L 15 25 Z M 58 50 L 85 75 L 85 25 Z' fill='white'/%3E%3Ccircle cx='50' cy='50' r='12' fill='white'/%3E%3C/svg%3E");
    */
    background-image: url('../images/bolnisi-cross.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.4));
}
#cursor-follower { position: fixed; width: 54px; height: 54px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; pointer-events: none; z-index: 10000; }

.clickable { cursor: pointer !important; }
.slide.clickable { cursor: none !important; }
.slide-site-link.clickable { cursor: pointer !important; }

nav {
    --nav-top: 12px;
    position: fixed;
    top: 0;
    width: 100%;
    padding: var(--nav-top) 10% 28px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    z-index: 1000;
    box-sizing: border-box;
    overflow: visible;
}
.nav-brand {
    position: absolute;
    left: 50%;
    top: var(--nav-top);
    transform: translateX(-50%) translateY(-10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
    max-width: 90vw;
    overflow: visible;
}
.logo {
    font-weight: 700;
    font-size: 3.3rem;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    line-height: 1.15;
    overflow: visible;
}
.nav-tagline {
    margin: -0.75rem 0 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--dim-text);
    white-space: nowrap;
}
.logo .logo-a {
    font-size: 1.95em;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    margin: 0 0.1em;
    padding: 0.05em 0;
    overflow: visible;
}
.logo.clickable:hover { transform: scale(1.02); }
.lang-switcher {
    display: flex;
    gap: 18px;
    font-size: 0.85rem;
    font-weight: 700;
    align-self: flex-start;
    margin-top: 0;
}
.lang-btn {
    opacity: 0.3;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0;
    cursor: pointer;
}
.lang-btn.active { opacity: 1; border-bottom: 2px solid #fff; }

.hero-title { font-size: clamp(3rem, 10vw, 8rem); font-weight: 700; line-height: 0.85; letter-spacing: -0.04em; }
.contact-section .hero-title {
    font-size: clamp(1.5rem, 4vw, 3rem);
    letter-spacing: normal;
    line-height: 1.05;
}
.italic-accent { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 500; color: var(--dim-text); }

.skills-section {
    min-height: 100vh;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 10% 48px;
    box-sizing: border-box;
}

.slider-section {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 2.5vh, 1.75rem);
    position: relative;
    z-index: 2;
    padding-top: 88px;
    box-sizing: border-box;
}
.slider-section__heading {
    flex-shrink: 0;
    margin: 0;
    padding: 0 10%;
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.section-block__heading {
    width: 100%;
    margin: 0 0 3rem;
    text-align: center;
}

.section-block__heading--contact {
    margin-bottom: 0;
}

.section-heading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.85rem, 2.5vw, 1.75rem);
    max-width: 100%;
}

.section-heading__line {
    flex-shrink: 0;
    width: clamp(52px, 11vw, 132px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    box-shadow: 0 0 14px rgba(140, 220, 255, 0.12);
}

.section-heading__text {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.3em;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
}

.section-heading__primary {
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
}

.section-heading__accent {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.52);
    letter-spacing: 0.015em;
}

.section-heading--contact .section-heading__text {
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.1;
}
.slider-container {
    display: flex;
    padding-left: 10%;
    gap: 10vw;
    will-change: transform;
    flex-shrink: 0;
    align-self: flex-start;
    width: max-content;
}
.slide {
    position: relative;
    width: 60vw;
    height: 70vh;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}
.slide-media {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.slide-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    filter: grayscale(100%);
    transition: filter 0.8s;
    pointer-events: none;
}
.slide:hover .slide-img { filter: grayscale(0%); }
.slide-caption--bar {
    position: relative;
    flex-shrink: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 4.25rem 1.05rem 1.25rem;
    pointer-events: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.slide-caption__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 100%;
}
.slide-caption__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.65rem;
    text-align: center;
}
.slide-title {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 2.15rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
    white-space: nowrap;
}
.slide-caption__sep {
    flex-shrink: 0;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 300;
    line-height: 1;
    color: rgba(255, 255, 255, 0.35);
    user-select: none;
}
.slide-caption__subtitle {
    margin: 0;
    font-size: clamp(0.8rem, 1.35vw, 1rem);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.62);
}
.slide-caption__accent {
    flex-shrink: 0;
    display: block;
    width: 3px;
    height: 40px;
    margin: 0;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(140, 220, 255, 0.6), transparent);
    box-shadow: 0 0 16px rgba(140, 220, 255, 0.35);
    transition: height 0.45s ease, box-shadow 0.45s ease;
}
.slide:hover .slide-caption__accent {
    height: 48px;
    box-shadow: 0 0 22px rgba(140, 220, 255, 0.5);
}
@media (max-width: 768px) {
    .slide-caption--bar { padding: 0.85rem 1rem 0.9rem; }
    .slide-caption__inner { gap: 0.75rem; }
    .slide-title {
        font-size: clamp(1.1rem, 4.5vw, 1.45rem);
        white-space: normal;
    }
    .slide-caption__subtitle { font-size: clamp(0.72rem, 3.2vw, 0.88rem); }
    .slide-caption__accent { height: 32px; }
    .slide:hover .slide-caption__accent { height: 38px; }
}
.slide-site-link {
    position: absolute;
    right: 12px;
    top: 50%;
    z-index: 6;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    backdrop-filter: blur(14px);
    box-shadow:
        0 0 20px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(140, 220, 255, 0.08);
    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
    pointer-events: auto;
}
.slide-site-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: auto;
}
.slide-site-link__icon {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
    display: block;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));
    transition: filter 0.3s ease, transform 0.3s ease;
}
.slide-site-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow:
        0 0 24px rgba(255, 255, 255, 0.14),
        0 0 44px rgba(140, 220, 255, 0.28);
    transform: translateY(-50%) scale(1.06);
}
.slide-site-link:hover .slide-site-link__icon {
    transform: translate(1px, -1px);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.65)) drop-shadow(0 0 18px rgba(140, 220, 255, 0.45));
}
.slide-site-link:active { transform: translateY(-50%) scale(0.97); }
.slide:hover .slide-site-link {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow:
        0 0 28px rgba(140, 220, 255, 0.18),
        0 0 40px rgba(0, 0, 0, 0.35);
}
@media (max-width: 768px) {
    .slide-site-link {
        width: 46px;
        height: 46px;
    }
    .slide-site-link__icon { width: 20px; height: 20px; }
}

#skills-canvas-container {
    width: 100%;
    max-width: 900px;
    flex: 1;
    min-height: 320px;
    max-height: min(75vh, 820px);
}

.contact-section {
    padding: 100px 10% 150px;
    min-height: 100vh;
    position: relative;
    z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.form-container { width: 100%; max-width: 600px; margin-top: 58px; text-align: left; }

.input-group { position: relative; margin-bottom: 28px; }
.input-group input,
.input-group textarea {
    width: 100%; 
    background-color: rgba(255, 255, 255, 0.02);
    background-image: linear-gradient(#fff, #fff);
    background-size: 0 2px;
    background-position: left bottom;
    background-repeat: no-repeat;
    border: none;
    border-bottom: 2px solid var(--input-border); padding: 15px 15px;
    color: #fff; font-size: 1.1rem; outline: none; 
    transition: background-size 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, background-color 0.4s;
    font-family: inherit; resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus {
    background-size: 100% 2px;
}

.input-focus-line { 
    position: absolute; 
    bottom: -2px; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background: #fff; 
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1); 
    pointer-events: none;
}
.input-group-textarea textarea {
    --comment-lines: 4;
    min-height: calc(1.1rem * 1.5 * var(--comment-lines) + 36px);
    height: calc(1.1rem * 1.5 * var(--comment-lines) + 36px);
    max-height: calc(1.1rem * 1.5 * var(--comment-lines) + 36px);
    line-height: 1.5;
    overflow-y: hidden;
    resize: none;
}
.input-group.input-invalid input,
.input-group.input-invalid textarea,
.input-group.input-invalid .custom-select { border-bottom-color: #e55; }
.field-error { display: block; color: #f88; font-size: 0.75rem; margin-top: 8px; min-height: 1em; }
.input-group-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    margin: 0;
    padding: 0;
}
.char-counter { display: block; text-align: right; font-size: 0.7rem; color: var(--dim-text); margin-top: 6px; }

.custom-select { 
    position: relative; width: 100%; 
    background-color: rgba(255, 255, 255, 0.02);
    background-image: linear-gradient(#fff, #fff);
    background-size: 0 2px;
    background-position: left bottom;
    background-repeat: no-repeat;
    border-bottom: 2px solid var(--input-border); 
    transition: background-size 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, background-color 0.4s; 
}
.custom-select.open {
    background-size: 100% 2px;
}
.select-trigger { padding: 15px 44px 15px 15px; color: #fff; font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#selectedText { flex: 1; min-width: 0; }
.select-chevron {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}
.custom-select.open .select-chevron,
.custom-select:hover .select-chevron { border-color: rgba(255, 255, 255, 0.85); }
.custom-select.open .select-chevron { transform: rotate(-135deg) translateY(2px); }
.select-options {
    position: absolute; top: 100%; left: 0; width: 100%; background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); z-index: 100;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.custom-select.open .select-options { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.option-item { padding: 15px 20px; color: var(--dim-text); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.option-item:hover { background: rgba(255,255,255,0.1); color: #fff; padding-left: 25px; }

.input-group label { position: absolute; top: 15px; left: 15px; color: var(--dim-text); transition: all 0.4s; pointer-events: none; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 2px; }
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label,
.custom-select.has-value + label,
.custom-select.open + label { top: -25px; left: 0; font-size: 0.65rem; color: #fff; }


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

.contact-sending-overlay {
    position: fixed; inset: 0; z-index: 10002;
    background: rgba(3, 3, 3, 0.85); backdrop-filter: blur(8px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.contact-sending-overlay.active { opacity: 1; pointer-events: all; cursor: default; }
.contact-sending-overlay p { margin-top: 1.5rem; text-transform: uppercase; letter-spacing: 2px; font-size: 0.75rem; color: var(--dim-text); }
.contact-sending-spinner {
    width: 48px; height: 48px; border: 2px solid rgba(255,255,255,0.15);
    border-top-color: #fff; border-radius: 50%;
    animation: contact-spin 0.8s linear infinite;
}
@keyframes contact-spin { to { transform: rotate(360deg); } }

.contact-thanks-modal {
    position: fixed; inset: 0; z-index: 10003;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.contact-thanks-modal.active { opacity: 1; pointer-events: all; cursor: default; }
.contact-thanks-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(12px); cursor: default; }
.contact-thanks-card {
    position: relative; z-index: 1; text-align: center; max-width: 420px; width: 90%;
    padding: 3rem 2.5rem; background: rgba(12, 12, 12, 0.95);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
    cursor: default;
}
.contact-thanks-icon { color: #fff; margin-bottom: 1.5rem; display: flex; justify-content: center; }
.thanks-circle, .thanks-check { stroke-dasharray: 150; stroke-dashoffset: 150; }
.contact-thanks-title { font-size: 2rem; font-weight: 700; margin: 0 0 1rem; letter-spacing: normal; }
.contact-thanks-text { color: var(--dim-text); line-height: 1.6; margin: 0 0 2rem; font-size: 0.95rem; }
.contact-thanks-close {
    background: #fff; color: #000; border: none; padding: 14px 48px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    font-size: 0.8rem; border-radius: 100px; cursor: pointer; transition: 0.3s;
}
.contact-thanks-close:hover { transform: scale(1.05); background: #f0f0f0; }

.contact-error-modal { z-index: 10004; }
.contact-error-icon { color: #ff6b6b; }

body:has(.contact-thanks-modal.active) #cursor-wrapper,
body:has(.contact-thanks-modal.active) #cursor-follower,
body:has(.contact-sending-overlay.active) #cursor-wrapper,
body:has(.contact-sending-overlay.active) #cursor-follower {
    visibility: hidden;
}

.submit-btn { display: block; margin: 12px auto 0; background: #fff; color: #000; border: none; padding: 22px 80px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; border-radius: 100px; transition: 0.3s; }
.submit-btn:hover { background: #f0f0f0; transform: scale(1.05); }

#gallery-modal {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(3, 3, 3, 0.95); backdrop-filter: blur(15px);
    z-index: 9998; opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
    display: flex; justify-content: center; align-items: center;
}
#gallery-modal.active { opacity: 1; pointer-events: all; }
#gallery-canvas-container { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.gallery-close {
    position: fixed;
    top: 40px;
    right: 10%;
    font-family: inherit;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: #fff;
    background: rgba(8, 8, 8, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.55);
    padding: 15px 30px;
    border-radius: 50px;
    transition: opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    cursor: none;
    z-index: 10003;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}
#gallery-modal.active ~ .gallery-close {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.gallery-close:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}
.gallery-hint { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 3px; color: var(--dim-text); pointer-events: none; animation: pulse 2s infinite; text-align: center; }
@keyframes pulse { 0% { opacity: 0.3; } 50% { opacity: 1; } 100% { opacity: 0.3; } }

#enlarged-view {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.92); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    gap: clamp(1rem, 4vw, 3rem);
    padding: 0 clamp(1rem, 4vw, 3rem);
    box-sizing: border-box;
    opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
#enlarged-view.active { opacity: 1; pointer-events: all; }
.enlarged-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    flex: 0 1 auto;
    max-width: min(94vw, 1320px);
    max-height: 94vh;
}
.enlarged-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: min(94vw, 1320px);
    max-height: calc(94vh - 2.75rem);
    pointer-events: none;
}
.enlarged-glow {
    position: absolute;
    inset: -8%;
    border-radius: 16px;
    background:
        radial-gradient(ellipse 70% 55% at 50% 50%, rgba(255, 255, 255, 0.14) 0%, transparent 62%),
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(120, 210, 255, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 45% at 20% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    filter: blur(28px);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
    z-index: 0;
}
#enlarged-view.active .enlarged-glow {
    opacity: 1;
    transform: scale(1);
    animation: enlargedNeonPulse 5s ease-in-out infinite;
}
@keyframes enlargedNeonPulse {
    0%, 100% { opacity: 0.75; filter: blur(28px); }
    50% { opacity: 1; filter: blur(34px); }
}
#enlarged-img {
    position: relative;
    z-index: 1;
    max-width: min(94vw, 1320px);
    max-height: calc(94vh - 2.75rem);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    object-fit: contain;
    pointer-events: none;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 0 32px rgba(255, 255, 255, 0.1),
        0 0 64px rgba(130, 210, 255, 0.14),
        0 0 120px rgba(255, 255, 255, 0.06),
        0 24px 60px rgba(0, 0, 0, 0.65);
    transition: box-shadow 0.4s ease;
}
#enlarged-view.active #enlarged-img {
    animation: enlargedFrameGlow 5s ease-in-out infinite;
}
@keyframes enlargedFrameGlow {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.06),
            0 0 28px rgba(255, 255, 255, 0.08),
            0 0 56px rgba(130, 210, 255, 0.12),
            0 0 100px rgba(255, 255, 255, 0.05),
            0 24px 60px rgba(0, 0, 0, 0.65);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.12),
            0 0 40px rgba(255, 255, 255, 0.16),
            0 0 80px rgba(150, 220, 255, 0.22),
            0 0 140px rgba(255, 255, 255, 0.08),
            0 24px 60px rgba(0, 0, 0, 0.65);
    }
}
.enlarged-counter {
    position: static;
    flex-shrink: 0;
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(130, 210, 255, 0.12);
    pointer-events: none;
}
.enlarged-nav {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: none;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    backdrop-filter: blur(14px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease,
        opacity 0.25s ease;
    z-index: 2;
}
.enlarged-nav__icon {
    width: 26px;
    height: 26px;
    display: block;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));
    transition: filter 0.3s ease, transform 0.3s ease;
}
.enlarged-nav:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow:
        0 0 24px rgba(255, 255, 255, 0.12),
        0 0 40px rgba(140, 220, 255, 0.2);
    transform: scale(1.05);
}
.enlarged-nav:hover .enlarged-nav__icon {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.65)) drop-shadow(0 0 20px rgba(140, 220, 255, 0.4));
}
.enlarged-nav--prev:hover .enlarged-nav__icon { transform: translateX(-2px); }
.enlarged-nav--next:hover .enlarged-nav__icon { transform: translateX(2px); }
.enlarged-nav:active { transform: scale(0.97); }
.enlarged-nav.is-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}
#enlarged-view.active,
#enlarged-view.active .enlarged-nav {
    cursor: none;
}
@media (max-width: 640px) {
    .enlarged-nav {
        width: 50px;
        height: 50px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
    .enlarged-nav:hover { transform: translateY(-50%) scale(1.05); }
    .enlarged-nav:active { transform: translateY(-50%) scale(0.97); }
    .enlarged-nav__icon { width: 22px; height: 22px; }
    .enlarged-nav--prev { left: 14px; }
    .enlarged-nav--next { right: 14px; }
    #enlarged-view { padding: 0 0.5rem; gap: 0; }
    .enlarged-glow { inset: -5%; filter: blur(20px); }
}

/* --- NEW BLOCKS --- */
.about-section, .partners-section, .approach-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 10%;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.approach-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.approach-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    width: 100%;
}

.approach-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.approach-card:hover {
    transform: translateY(-5px);
}

.approach-card--human:hover {
    border-color: rgba(39, 201, 63, 0.4);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), 0 0 30px rgba(39, 201, 63, 0.1);
}

.approach-card--ai:hover {
    border-color: rgba(140, 220, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), 0 0 30px rgba(140, 220, 255, 0.15);
}

.approach-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(140, 220, 255, 0.1);
    color: #8cdcff;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    border: 1px solid rgba(140, 220, 255, 0.3);
    box-shadow: 0 0 10px rgba(140, 220, 255, 0.2);
}

.approach-card__badge--green {
    background: rgba(39, 201, 63, 0.1);
    color: #27c93f;
    border-color: rgba(39, 201, 63, 0.3);
    box-shadow: 0 0 10px rgba(39, 201, 63, 0.2);
}

.approach-card__header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.approach-card--human .approach-card__header h3 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
}

.approach-card__header p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.approach-card__stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.approach-card__stats .stat {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.approach-card__stats .stat-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.approach-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.approach-card__features li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.approach-card__features li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

.approach-card--human .approach-card__features li::before {
    color: rgba(39, 201, 63, 0.6);
}

.approach-card--ai .approach-card__features li::before {
    color: rgba(140, 220, 255, 0.8);
}

.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.about-split-blocks {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: stretch;
    width: 100%;
}

.about-split-blocks .about-visual {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-width: 0;
}

.about-split-blocks .about-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.about-photo {
    width: 100%;
    height: 100%;
    min-height: clamp(380px, 48vw, 520px);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
}

.about-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}
.about-photo:hover img {
    filter: grayscale(0%);
}

.about-photo-placeholder {
    color: rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-split-blocks .about-text-wrapper,
.partners-split-blocks .partners-text-wrapper {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

.partners-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.partners-split-blocks {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 5vw;
    width: 100%;
}

.partners-split-blocks .partners-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.partners-split-blocks .partners-content {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partners-split-blocks .partners-text-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
}

.terminal-card.large {
    max-width: 800px;
    width: 100%;
}
.terminal-card.large .terminal-body {
    padding: 30px;
    font-size: 1.05rem;
}

.about-text-wrapper, .partners-text-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.about-text, .partners-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}


/* Terminal Card */
.terminal-card {
    width: 100%;
    max-width: 500px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 20px rgba(140, 220, 255, 0.1);
    backdrop-filter: blur(15px);
}

.terminal-card.large {
    max-width: 800px;
    width: 100%;
}
.terminal-card.large .terminal-body {
    padding: 30px;
    font-size: 1.05rem;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: monospace;
}

.terminal-body {
    padding: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #a9dc76;
}

.terminal-prompt { color: #ff6188; }
.terminal-command { color: #fff; }
.terminal-output {
    margin: 15px 0;
    color: #78dce8;
    padding-left: 10px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}
.terminal-key { color: #ab9df2; }
.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #fff;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink { 50% { opacity: 0; } }

/* Partner Badges */
.partner-badge {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.partner-badge:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), 0 0 30px rgba(255, 255, 255, 0.1);
}

.partner-icon {
    width: 48px;
    height: 48px;
    color: #fff;
    flex-shrink: 0;
}

.partner-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.partner-name {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.partner-status {
    font-size: 0.85rem;
    color: #27c93f;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (max-width: 900px) {
    .partners-container {
        flex-direction: column;
        gap: 3rem;
    }
    .about-section, .partners-section, .approach-section {
        padding: 60px 5%;
    }
    .partners-split-blocks {
        flex-direction: column;
        gap: 2.5rem;
    }
    .partners-split-blocks .partners-visual {
        width: 100%;
    }
    .about-split-blocks {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .about-split-blocks .about-visual {
        width: 100%;
    }
    .about-photo {
        width: 100%;
        max-width: 340px;
        min-height: clamp(420px, 70vw, 520px);
        margin: 0 auto;
    }
    .about-split-blocks .about-text-wrapper {
        min-height: auto;
    }
}

/* Mobile / tablet — desktop rules above are unchanged */
@media (max-width: 768px) {
    #cursor-wrapper,
    #cursor-follower {
        display: none !important;
    }

    *,
    .clickable,
    .slide.clickable,
    .slide-site-link.clickable,
    #enlarged-view.active,
    #enlarged-view.active .enlarged-nav,
    .gallery-close {
        cursor: auto !important;
    }

    nav {
        --nav-top: 8px;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: var(--nav-top) 5% 12px;
        gap: 8px;
    }

    .nav-brand {
        position: static;
        transform: none;
        max-width: 100%;
    }

    .logo {
        font-size: 2.35rem;
    }

    .nav-tagline {
        margin-top: -0.45rem;
        font-size: 0.62rem;
        letter-spacing: 0.12em;
        white-space: normal;
        line-height: 1.35;
        max-width: 92vw;
    }

    .lang-switcher {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 14px;
        font-size: 0.78rem;
        margin-top: 0;
    }

    .lang-btn {
        padding: 0.3rem 0.1rem;
        letter-spacing: 0.06em;
    }

    .skills-section {
        padding: 104px 5% 36px;
        min-height: 100svh;
    }

    #skills-canvas-container {
        min-height: 260px;
        max-height: min(62vh, 540px);
    }

    .slider-section {
        padding-top: 76px;
        gap: 0.65rem;
        height: 100svh;
    }

    .slider-section__heading {
        padding: 0 5%;
    }

    .section-heading {
        gap: 0.65rem;
    }

    .section-heading__line {
        width: clamp(36px, 10vw, 72px);
    }

    .section-heading__text {
        font-size: clamp(1.35rem, 5vw, 2rem);
    }

    .slider-container {
        padding-left: 6%;
        gap: 6vw;
    }

    .slide {
        width: 88vw;
        height: min(58vh, 520px);
    }

    .slide-caption--bar {
        padding: 0.85rem 3.5rem 0.9rem 1rem;
    }

    .contact-section {
        padding: 72px 6% 96px;
        min-height: auto;
    }

    .section-block__heading {
        margin-bottom: 2.5rem;
    }

    .section-heading--contact .section-heading__text {
        font-size: clamp(1.2rem, 5.2vw, 1.85rem);
    }

    .form-container {
        margin-top: 40px;
    }

    .input-group {
        margin-bottom: 26px;
    }

    .input-group input,
    .input-group textarea,
    .select-trigger {
        font-size: 1rem;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .select-trigger {
        padding-right: 15px;
        gap: 10px;
        min-height: 52px;
        box-sizing: border-box;
    }

    .select-trigger [data-selected-text] {
        white-space: normal;
        line-height: 1.3;
        word-break: break-word;
    }

    .input-group label {
        max-width: calc(100% - 35px);
        white-space: normal;
        line-height: 1.3;
    }

    .input-group input:focus + label,
    .input-group input:not(:placeholder-shown) + label,
    .input-group textarea:focus + label,
    .input-group textarea:not(:placeholder-shown) + label,
    .custom-select.has-value + label,
    .custom-select.open + label {
        white-space: nowrap;
        max-width: 100%;
    }

    .custom-select.has-value + label {
        opacity: 0;
    }

    .custom-select.open + label {
        opacity: 1;
    }

    .submit-btn {
        width: 100%;
        max-width: 100%;
        padding: 18px 32px;
        box-sizing: border-box;
    }

    .gallery-close {
        top: 16px;
        right: 5%;
        padding: 12px 20px;
        font-size: 0.72rem;
        letter-spacing: 1.5px;
    }

    .gallery-hint {
        bottom: 22px;
        left: 50%;
        right: auto;
        width: min(92vw, 360px);
        padding: 0 8px;
        font-size: 0.62rem;
        letter-spacing: 2px;
        line-height: 1.45;
    }

    .contact-thanks-card {
        width: min(92vw, 400px);
        padding: 2.25rem 1.5rem;
    }

    .contact-thanks-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding-left: 4%;
        padding-right: 4%;
    }

    .logo {
        font-size: 2rem;
    }

    .nav-tagline {
        font-size: 0.58rem;
        letter-spacing: 0.1em;
    }

    .lang-switcher {
        gap: 6px 12px;
        font-size: 0.72rem;
    }

    .skills-section {
        padding-top: 96px;
    }

    #skills-canvas-container {
        min-height: 220px;
        max-height: min(56vh, 460px);
    }

    .slider-section {
        padding-top: 70px;
    }

    .section-heading__line {
        display: none;
    }

    .section-heading__text {
        font-size: clamp(1.2rem, 6vw, 1.75rem);
    }

    .slide {
        width: 92vw;
        height: min(52vh, 440px);
    }

    .slide-site-link {
        width: 42px;
        height: 42px;
        right: 8px;
    }

    .contact-section {
        padding: 64px 5% 80px;
    }

    .form-container {
        margin-top: 40px;
    }

    .contact-thanks-close {
        width: 100%;
        max-width: 100%;
    }
}
