
/* ===== GLOBAL SETTINGS ===== */

:root {
    --background: #09090b;
    --card: #18181b;
    --border: #27272a;
    --primary: #3b82f6;
    --text: #fafafa;
    --muted: #a1a1aa;
    --radius: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== HEADER ===== */

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
}

.language-switch button {
    min-width: 38px;
    padding: 7px 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.language-switch button[aria-pressed="true"] {
    background: var(--primary);
    color: #fff;
}

.language-switch button:hover:not([aria-pressed="true"]) {
    color: var(--text);
}

.language-switch button:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 24px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -1px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--muted);
    font-size: 14px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

/* ===== BENTO GRID ===== */

.bento-grid {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 24px;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* ===== CARDS ===== */

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #3f3f46;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.card h2 {
    font-size: 24px;
    margin-bottom: 12px;
    letter-spacing: -0.7px;
}

.card p {
    color: var(--muted);
    font-size: 15px;
}

/* ===== HERO ===== */

.hero {
    grid-column: span 2;
    min-height: 350px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    background: radial-gradient(
        ellipse at top right,
        #172554,
        #18181b 65%
    );
}

.hero h1 {
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.15;
    letter-spacing: -2px;
    margin: 24px 0 16px;
}

.hero p {
    max-width: 480px;
    font-size: 17px;
}

/* ===== AVAILABILITY STATUS ===== */

.status {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    background: rgba(34, 197, 94, 0.08);
    color: #86efac;

    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 50px;

    padding: 7px 14px;
    font-size: 12px;
}

.status::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 12px #22c55e;
}

/* ===== BUTTON ===== */

.button {
    display: inline-block;
    background: var(--primary);
    color: white;

    padding: 12px 24px;
    border-radius: 12px;
    margin-top: 28px;

    font-size: 14px;
    font-weight: 600;

    transition: background 0.3s, transform 0.3s;
}

.button:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* ===== PROFILE ===== */

.profile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    background: linear-gradient(
        145deg,
        #18181b,
        #1e293b
    );
}

.profile::before {
    content: "</>";
    font-family: monospace;
    font-size: 65px;
    font-weight: bold;
    color: #60a5fa;
    margin-bottom: 20px;
}

/* ===== LOCATION ===== */

.location {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location::before {
    content: "📍";
    font-size: 28px;
    margin-bottom: 15px;
}

/* ===== TECHNOLOGIES ===== */

.skills {
    grid-column: span 2;
}

.technologies {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.technologies span {
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 12px;
    padding: 15px;

    text-align: center;
    font-size: 14px;
    font-weight: 600;

    transition: 0.3s ease;
}

.technologies span:hover {
    background: #172554;
    border-color: var(--primary);
    color: #93c5fd;
}

/* ===== PROJECTS ===== */

.project {
    grid-column: span 2;
    min-height: 280px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    background: linear-gradient(
        135deg,
        #18181b,
        #172554
    );
}

.project > span {
    color: #60a5fa;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.project h2 {
    font-size: 32px;
}

/* ===== CONTACT ===== */

.contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact::before {
    content: "✉";
    font-size: 40px;
    color: #60a5fa;
    margin-bottom: 15px;
}

/* ===== FOOTER ===== */

footer {
    padding: 35px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 900px) {

    .bento-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero,
    .skills,
    .project {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {

    header {
        flex-direction: column;
        gap: 20px;
    }

    nav {
        gap: 20px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
        gap: 15px;
    }

    .hero,
    .skills,
    .project {
        grid-column: span 1;
    }

    .card {
        padding: 24px;
        border-radius: 20px;
    }

    .hero {
        min-height: 320px;
    }

    .technologies {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile,
    .contact {
        min-height: 200px;
    }
}

/* ===== SERVICES SLIDER ===== */

.profile {
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

/* Убираем старую иконку */

.profile::before {
    content: none;
}

.slide-content {
    width: 100%;
    text-align: center;
    padding: 0 15px;
}

.slide-icon {
    font-size: 65px;
    font-weight: 800;
    font-family: monospace;
    color: #60a5fa;
    margin-bottom: 25px;
}

.slide-content h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.slide-content p {
    font-size: 14px;
    color: var(--muted);
}

/* ===== SLIDER ARROWS ===== */

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 30px;
    height: 30px;

    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;

    color: var(--muted);
    cursor: pointer;
    z-index: 2;

    transition: 0.3s ease;
}

.slider-arrow:hover {
    background: var(--primary);
    color: white;
}

.prev {
    left: 12px;
}

.next {
    right: 12px;
}

/* ===== SLIDER DOTS ===== */

.slider-dots {
    position: absolute;
    bottom: 25px;

    display: flex;
    align-items: center;
    gap: 8px;

    z-index: 2;
}

.slider-dot {
    width: 8px;
    height: 8px;

    border: none;
    border-radius: 20px;
    background: #52525b;
    cursor: pointer;

    transition: 0.3s ease;
}

.slider-dot.active {
    width: 22px;
    background: #60a5fa;
}

/* ===== SLIDE ANIMATION ===== */

/* ===== SMOOTH SLIDER TRANSITION ===== */

.slide-content {
    opacity: 1;
    transform: translateY(0);

    transition:
        opacity 0.3s ease-in-out,
        transform 0.3s ease-in-out;
}

.slide-content.slide-out {
    opacity: 0;
    transform: translateY(-18px);
}

.slide-content.slide-in {
    opacity: 0;
    transform: translateY(18px);
}

/* ===== TECH STACK CAROUSEL ===== */

.tech-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#techPageNumber {
    color: var(--muted);
    font-size: 13px;
}

/* ===== CAROUSEL TRACK ===== */

.tech-carousel {
    overflow: hidden;
    width: 100%;
}

.tech-track {
    display: flex;
    width: 100%;

    transition: transform 0.55s cubic-bezier(
        0.22, 1, 0.36, 1
    );
}

.tech-page {
    flex: 0 0 100%;
    min-width: 0;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;
    margin-top: 10px;
}

.tech-page button {
    min-height: 55px;
}

/* ===== NAVIGATION ===== */

.tech-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 20px;
}

.tech-arrow {
    width: 34px;
    height: 34px;

    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 10px;

    color: var(--muted);
    cursor: pointer;

    transition: 0.3s ease;
}

.tech-arrow:hover {
    background: #172554;
    border-color: var(--primary);
    color: #93c5fd;
}

/* ===== PAGINATION DOTS ===== */

.tech-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-dot {
    width: 8px;
    height: 8px;

    background: #52525b;
    border: none;
    border-radius: 20px;

    cursor: pointer;
    transition: 0.35s ease;
}

.tech-dot.active {
    width: 24px;
    background: #60a5fa;
}

.tech-page button {
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 12px;

    min-height: 55px;
    padding: 15px 8px;

    color: #fafafa;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition: all 0.3s ease;
}

.tech-page button:hover {
    background: #172554;
    border-color: #3b82f6;
    color: #93c5fd;
}

.tech-page button.active {
    background: #172554;
    border-color: #3b82f6;
    color: #93c5fd;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.tech-details {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    margin-top: 0;

    transition:
        grid-template-rows 0.4s ease,
        opacity 0.4s ease,
        margin-top 0.4s ease;
}

.tech-details.open {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 20px;
}

.tech-details-inner {
    overflow: hidden;
    min-height: 0;
}

.tech-info {
    background: rgba(59, 130, 246, 0.07);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 16px;
    padding: 20px;
}

.tech-info h3 {
    color: #93c5fd;
    font-size: 20px;
    margin-bottom: 8px;
}

.tech-info p {
    color: #a1a1aa;
    font-size: 14px;
    line-height: 1.7;
}

.card .tech-hint {
    margin-top: 16px;
    font-size: 12px;
    color: #71717a;
}

/* ===== TECH PAGE ANIMATION ===== */

.tech-track {
    transition:
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.3s ease;
}

.tech-page {
    opacity: 0.3;
    transform: scale(0.96);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.tech-page.active {
    opacity: 1;
    transform: scale(1);
}

.tech-page button {
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.tech-page button:hover {
    transform: translateY(-3px);
}

.tech-page button:active {
    transform: scale(0.96);
}

.tech-carousel {
    width: 100%;
    overflow: hidden;
}

.tech-track {
    display: flex;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.tech-page {
    flex: 0 0 100%;
    min-width: 0;
    opacity: 0.3;
    transform: scale(0.95);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.tech-page.active {
    opacity: 1;
    transform: scale(1);
}


/* ===== ABOUT BUTTON ===== */

.about-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    background: var(--primary);
    border: none;

    font-family: inherit;
    cursor: pointer;
}

.about-button:hover {
    background: #2563eb;
}

.about-chevron {
    display: inline-block;
    font-size: 20px;
    line-height: 1;

    transition: transform 0.4s ease;
}

.about-button.active .about-chevron {
    transform: rotate(180deg);
}


/* ===== EXPANDABLE ABOUT SECTION ===== */

.about-details {
    display: grid;
    grid-template-rows: 0fr;

    width: 100%;
    opacity: 0;
    margin-top: 0;

    transform: translateY(-12px);

    transition:
        grid-template-rows 0.65s ease,
        opacity 0.5s ease,
        margin-top 0.65s ease,
        transform 0.65s ease;
}

.about-details.open {
    grid-template-rows: 1fr;

    opacity: 1;
    margin-top: 35px;

    transform: translateY(0);
}

.about-inner {
    min-height: 0;
    overflow: hidden;
}

.about-content {
    border-top: 1px solid #3f3f46;
    padding-top: 30px;
}


/* ===== SECTIONS ===== */

.about-section {
    margin-bottom: 32px;
}

.about-section h2 {
    font-size: 22px;
    color: #fafafa;

    margin-bottom: 15px;

    border-left: 3px solid var(--primary);
    padding-left: 12px;
}

.about-section p {
    max-width: none;

    font-size: 14px;
    line-height: 1.8;

    margin-bottom: 12px;
}


/* ===== ADVANTAGES ===== */

.advantages {
    list-style: none;
    display: grid;
    gap: 12px;
}

.advantages li {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    color: #d4d4d8;
    font-size: 14px;
}

.advantages li::before {
    content: "✓";

    color: #4ade80;
    font-weight: bold;
}


/* ===== EXPERIENCE ===== */

.experience-list {
    display: grid;
    gap: 12px;
}

.experience-item {
    background: rgba(255, 255, 255, 0.025);

    border: 1px solid #3f3f46;
    border-radius: 14px;

    padding: 20px;

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.experience-item:hover {
    background: rgba(59, 130, 246, 0.04);
    border-color: var(--primary);
}

.experience-label {
    color: #93c5fd;

    font-size: 12px;
    font-weight: 600;
}

.experience-item h3 {
    font-size: 20px;
    margin: 6px 0 10px;
}

.experience-item p {
    margin-bottom: 0;
}

.experience-item a {
    display: inline-block;

    color: #93c5fd;
    font-size: 13px;

    margin-top: 12px;
}


/* ===== SERVICES ===== */

.service-list {
    display: grid;
    gap: 12px;
}

.service-item {
    padding: 20px;

    background: #222225;
    border: 1px solid #3f3f46;
    border-radius: 14px;

    transition: border-color 0.3s ease;
}

.service-item:hover {
    border-color: var(--primary);
}

.service-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-item span {
    display: block;

    color: #93c5fd;
    font-size: 12px;

    margin-top: 12px;
}


/* ===== CALL TO ACTION ===== */

.about-cta {
    background: rgba(59, 130, 246, 0.06);

    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;

    padding: 24px;
}

.about-cta h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.about-cta p {
    font-size: 14px;
}

.about-cta .button {
    background: var(--primary);
    margin-top: 15px;
}


/* ===== MOBILE ===== */

@media (max-width: 600px) {

    .about-section h2 {
        font-size: 19px;
    }

    .experience-item,
    .service-item {
        padding: 16px;
    }

    .about-cta {
        padding: 18px;
    }
}

.about-chevron {
    display: inline-block;

    width: 8px;
    height: 8px;

    border-right: 2px solid white;
    border-bottom: 2px solid white;

    transform: rotate(45deg);
    transition: transform 0.4s ease;

    margin-left: 4px;
}

.about-button.active .about-chevron {
    transform: rotate(225deg);
}
/* ===== GRID SIZING ===== */

.bento-grid {
    align-items: stretch;
}

@media (max-width: 600px) {
    .profile {
        min-height: 320px;
    }
}

.hero {
    justify-content: flex-start;
}

.profile {
    height: auto;
}


@media (min-width: 901px) {
    .profile {
        align-self: start;
        height: 445px;
    }
}


/* ===== CONTACT SECTION ===== */

.contact {
    justify-content: flex-start;
}

.contact::before {
    color: var(--primary);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;

    margin-top: 24px;
}


/* ===== CONTACT ITEM ===== */

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;

    background: #222225;
    border: 1px solid #3f3f46;
    border-radius: 12px;

    padding: 14px;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.contact-item:hover {
    background: rgba(59, 130, 246, 0.06);
    border-color: var(--primary);

    transform: translateX(4px);

    box-shadow: 0 0 20px rgba(59, 130, 246, 0.08);
}


/* ===== CONTACT ICON ===== */

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    flex-shrink: 0;

    background: rgba(59, 130, 246, 0.12);
    border-radius: 10px;

    color: #93c5fd;
    font-size: 18px;

    transition: background 0.3s ease,
                color 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: var(--primary);
    color: white;
}


/* ===== CONTACT TEXT ===== */

.contact-text {
    display: flex;
    flex-direction: column;

    flex: 1;
    min-width: 0;
    gap: 3px;
}

.contact-text span {
    color: var(--muted);
    font-size: 11px;
}

.contact-text strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;

    overflow-wrap: anywhere;
}


/* ===== CONTACT ARROW ===== */

.contact-arrow {
    color: #71717a;
    font-size: 11px;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.contact-item:hover .contact-arrow {
    color: var(--primary);
    transform: translate(2px, -2px);
}


/* ===== AVAILABILITY STATUS ===== */

.contact-status {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-top: 24px;

    color: #86efac;
    font-size: 12px;
}

.contact-status-dot {
    width: 8px;
    height: 8px;

    background: #22c55e;
    border-radius: 50%;

    animation: contactPulse 2s infinite;
}

@keyframes contactPulse {
    0%, 100% {
        box-shadow: 0 0 5px #22c55e;
    }

    50% {
        box-shadow: 0 0 14px #22c55e;
    }
}

 

/* ===== CONTACT CAROUSEL ===== */

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#contactPageNumber {
    color: var(--muted);
    font-size: 12px;
}

.contact-carousel {
    position: relative;
    width: 100%;
    min-width: 0;
    margin-top: 20px;
    overflow: hidden;
}

.contact-track {
    display: grid;
    width: 100%;
}

.contact-page {
    grid-area: 1 / 1;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 10px;
    padding: 2px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.contact-page.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.contact-page .contact-item {
    padding: 12px;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-page .contact-item:hover {
    transform: translateX(2px);
}

.contact-navigation {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.contact-nav-arrow {
    width: 32px;
    height: 32px;
    border: 1px solid #3f3f46;
    border-radius: 10px;
    background: #27272a;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.contact-nav-arrow:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
}

.contact-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 20px;
    background: #52525b;
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.contact-dot.active {
    width: 24px;
    background: var(--primary);
}

.contact .contact-status {
    margin-top: 16px;
}

/* ===== CARD REVEAL AND GRID ALIGNMENT ===== */

.bento-grid {
    align-items: stretch;
}

.card {
    min-width: 0;
}

.card.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.card.reveal.visible:hover {
    transform: translateY(-4px);
}

/* ===== PROJECT BUTTON ===== */

.project {
    cursor: pointer;
}

.project-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    align-self: flex-start;
    margin-top: 24px;
    padding: 12px 20px;

    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;

    color: #93c5fd;
    font-family: inherit;
    font-size: 14px;

    cursor: pointer;
    transition: all 0.3s ease;
}

.project-button:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-3px);
}


/* ===== PROJECT MODAL ===== */

.project-modal {
    position: fixed;
    inset: 0;

    width: min(800px, calc(100% - 32px));
    max-height: 85dvh;

    margin: auto;
    padding: 0;

    background: #18181b;
    border: 1px solid #3f3f46;
    border-radius: 24px;

    color: var(--text);
    overflow-y: auto;

    opacity: 0;
    transform: translateY(30px) scale(0.96);

    transition:
        opacity 0.4s ease,
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);

    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5);
}

.project-modal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}


/* ===== BACKGROUND ===== */

.project-modal::backdrop {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);

    transition:
        background 0.4s ease,
        backdrop-filter 0.4s ease;
}

.project-modal.active::backdrop {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}


/* ===== MODAL CONTENT ===== */

.project-modal-content {
    position: relative;
    padding: 32px;
}

.project-label {
    color: #60a5fa;
    font-size: 12px;
    letter-spacing: 2px;
}

.project-modal h2 {
    font-size: clamp(25px, 4vw, 36px);
    margin: 12px 0;
    letter-spacing: -1px;
}

.project-status {
    display: inline-block;

    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 30px;

    padding: 6px 12px;

    color: #93c5fd;
    font-size: 12px;
}


/* ===== CLOSE BUTTON ===== */

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;

    width: 38px;
    height: 38px;

    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 12px;

    color: #a1a1aa;
    font-size: 18px;

    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}


/* ===== SCREENSHOT ===== */

.project-screenshot {
    display: block;
    width: 100%;
    height: auto;

    margin: 28px 0;

    border: 1px solid #3f3f46;
    border-radius: 16px;

    opacity: 0;
    transform: translateY(15px);

    transition:
        opacity 0.6s ease 0.15s,
        transform 0.6s ease 0.15s;
}

.project-modal.active .project-screenshot {
    opacity: 1;
    transform: translateY(0);
}


/* ===== DESCRIPTION ===== */

.project-description h3 {
    font-size: 20px;
    margin: 25px 0 12px;

    border-left: 3px solid #3b82f6;
    padding-left: 12px;
}

.project-description p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}


/* ===== FEATURES ===== */

.project-features {
    list-style: none;

    display: grid;
    gap: 12px;
}

.project-features li {
    display: flex;
    gap: 12px;

    padding: 12px 16px;

    background: #222225;
    border: 1px solid #3f3f46;
    border-radius: 12px;

    color: #d4d4d8;
    font-size: 14px;
}

.project-features li::before {
    content: "✓";
    color: #4ade80;
    font-weight: bold;
}


/* ===== TECHNOLOGIES ===== */

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-technologies span {
    padding: 8px 14px;

    background: #172554;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 10px;

    color: #93c5fd;
    font-size: 13px;
}


/* ===== MODAL SCROLLBAR ===== */

.project-modal {
    scrollbar-width: thin;
    scrollbar-color: #52525b #18181b;
}


/* ===== RESPONSIVE MODAL ===== */

@media (max-width: 600px) {

    .project-modal-content {
        padding: 24px;
    }

    .project-modal {
        max-height: 90dvh;
        border-radius: 20px;
    }

    .modal-close {
        top: 12px;
        right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .project-modal,
    .project-modal::backdrop,
    .project-screenshot {
        transition: none;
    }
}

/* ===== PROJECT GALLERY ===== */

.project-gallery {
    margin: 28px 0;
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 14px;
}

.gallery-header h3 {
    font-size: 18px;
}

#galleryCounter {
    font-size: 13px;
    color: var(--muted);
}


/* ===== GALLERY VIEWPORT ===== */

.gallery-viewport {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #09090b;
    border: 1px solid #3f3f46;
    border-radius: 16px;
}


/* ===== GALLERY IMAGES ===== */

.gallery-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;

    opacity: 0;
    transform: scale(1.04);

    pointer-events: none;

    transition:
        opacity 0.6s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-image.active {
    opacity: 1;
    transform: scale(1);
}


/* ===== GALLERY ARROWS ===== */

.gallery-arrow {
    position: absolute;
    top: 50%;

    transform: translateY(-50%);

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(8px);

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;

    color: white;
    font-size: 16px;

    cursor: pointer;
    z-index: 5;

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.gallery-arrow:hover {
    background: #2563eb;
    border-color: #60a5fa;
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}


/* ===== GALLERY DOTS ===== */

.gallery-dots {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 8px;
    margin-top: 18px;
}

.gallery-dot {
    width: 8px;
    height: 8px;

    padding: 0;
    border: none;
    border-radius: 20px;

    background: #52525b;

    cursor: pointer;
    transition: all 0.35s ease;
}

.gallery-dot.active {
    width: 26px;
    background: #60a5fa;
}


/* ===== GALLERY CAPTION ===== */

.gallery-caption {
    margin-top: 14px;
    min-height: 42px;

    color: var(--muted);
    font-size: 13px;
    text-align: center;

    opacity: 1;
    transform: translateY(0);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.gallery-caption.changing {
    opacity: 0;
    transform: translateY(5px);
}


/* ===== LANGUAGE INFORMATION ===== */

.project-language {
    display: flex;
    align-items: flex-start;
    gap: 16px;

    padding: 20px;

    background: rgba(59, 130, 246, 0.07);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 16px;
}

.project-language > i {
    color: #60a5fa;
    font-size: 24px;
    margin-top: 4px;
}

.project-language strong {
    display: block;
    color: #93c5fd;
    margin-bottom: 8px;
}

.project-language p {
    font-size: 14px;
    line-height: 1.8;
}


/* ===== PROJECT ROADMAP ===== */

.project-roadmap {
    display: grid;
    gap: 10px;
    list-style: none;
}

.project-roadmap li {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 16px;

    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 12px;

    color: #d4d4d8;
    font-size: 14px;
}

.project-roadmap li::before {
    content: "◷";
    color: #93c5fd;
    font-size: 18px;
}


/* ===== MOBILE GALLERY ===== */

@media (max-width: 600px) {

    .gallery-arrow {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .gallery-prev {
        left: 6px;
    }

    .gallery-next {
        right: 6px;
    }

    .project-language {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .gallery-image,
    .gallery-caption,
    .gallery-dot {
        transition: none;
    }
}

/* ===== MODAL OPEN ANIMATION ===== */

@keyframes projectModalOpen {

    from {
        opacity: 0;
        transform: translateY(40px) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ===== MODAL CLOSE ANIMATION ===== */

@keyframes projectModalClose {

    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
}


/* ===== BACKDROP ANIMATION ===== */

@keyframes projectBackdropOpen {

    from {
        background: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0px);
    }

    to {
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(8px);
    }
}

@keyframes projectBackdropClose {

    from {
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(8px);
    }

    to {
        background: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0px);
    }
}


/* ===== ANIMATION STATES ===== */

.project-modal {
    transition: none;
}

.project-modal.active {
    animation: projectModalOpen 0.6s
        cubic-bezier(0.22, 1, 0.36, 1) both;
}

.project-modal.closing {
    animation: projectModalClose 0.4s ease both;
}

.project-modal::backdrop {
    transition: none;
}

.project-modal.active::backdrop {
    animation: projectBackdropOpen 0.6s ease both;
}

.project-modal.closing::backdrop {
    animation: projectBackdropClose 0.4s ease both;
}

@media (prefers-reduced-motion: reduce) {

    .project-modal.active,
    .project-modal.closing,
    .project-modal.active::backdrop,
    .project-modal.closing::backdrop {
        animation: none;
    }
}
