/* Fonts */
@font-face {
    font-family: 'Montserrat';
    src: url('Data/Fonts/Montserrat-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Data/Fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Data/Fonts/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Data/Fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Data/Fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Data/Fonts/Montserrat-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Global Variables */
:root {
    /* Colors */
    --primary-bg: #d0d1d4; /* Creamy yellowish background */
    --secondary-bg: #ffffff;
    --text-primary: #2c2c2c;
    --text-secondary: #666666;
    --accent-color: #ff0051;
    --header-bg: rgba(255, 255, 255, 0.2);  
    
    --card-overlay: linear-gradient(135deg, rgba(212, 165, 116, 0.9), rgba(44, 44, 44, 0.8));
    
    /* Typography */
    --font-family: 'Montserrat', sans-serif;
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-black: 900;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Breakpoints */
    --mobile: 480px;
    --tablet: 768px;
    --desktop: 1024px;
    --large-desktop: 1440px;
    
    /* Project Card Dimensions */
    --card-width: 435px;
    --card-height: 340px;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-regular);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--primary-bg);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Mobile Container Centering */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
        max-width: 100%;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-bold);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: var(--font-black);
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
    position: relative;
}

.header-logo {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-family);
    font-weight: var(--font-bold);
    font-size: 20px;
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.3s ease, color 0.3s ease;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1;
}

.header-logo:hover {
    opacity: 0.7;
    color: var(--text-primary);
}

.header-logo-line {
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
}

.header-logo-line--top {
    font-size: 20px;
    text-align-last: justify;
    letter-spacing: 0.25em;
}

.header-logo-line--bottom {
    font-size: 10px;
    letter-spacing: 0.76em;
}

/* Logo glitch on hover */
@keyframes logo-glitch {
    0%   { text-shadow: none; transform: none; clip-path: none; }
    10%  { text-shadow: -3px 0 #00d4ff, 3px 0 #ff0051; transform: translateX(2px) skewX(-2deg); }
    20%  { text-shadow: 3px 0 #00d4ff, -3px 0 #ff0051; transform: translateX(-2px); clip-path: inset(30% 0 40% 0); }
    30%  { text-shadow: none; transform: none; clip-path: none; }
    40%  { text-shadow: -2px 0 #ff0051, 2px 0 #00d4ff; transform: translateX(1px) skewX(1deg); }
    50%  { text-shadow: 2px 0 #ff0051, -2px 0 #00d4ff; transform: translateX(-1px); clip-path: inset(60% 0 10% 0); }
    60%  { text-shadow: none; transform: none; clip-path: none; }
    70%  { text-shadow: -4px 0 #00d4ff, 4px 0 #ff0051; transform: translateX(3px); }
    80%  { text-shadow: none; transform: none; clip-path: none; }
    90%  { text-shadow: 1px 0 #ff0051, -1px 0 #00d4ff; transform: translateX(-1px); }
    100% { text-shadow: none; transform: none; clip-path: none; }
}

.header-logo:hover .header-logo-line {
    animation: logo-glitch 0.5s steps(1) 1 forwards;
}
.header-logo:hover .header-logo-line--bottom {
    animation-delay: 0.08s;
}

/* Responsive Header Logo */
@media (max-width: 960px) {
    .header-logo {
        font-size: 16px;
        left: var(--spacing-sm);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: var(--font-medium);
    position: relative;
    display: inline-block;
    transition: color 0.18s ease, transform 0.18s ease, font-weight 0.1s;
}

.nav-link:hover {
    color: var(--accent-color);
    font-weight: var(--font-bold);
    transform: translateY(-5px);
    animation: none;
}

.nav-link:active {
    color: #aaff00;
    transform: scaleX(1.14) scaleY(0.86);
    transition: color 0.05s, transform 0.08s;
}

.header-cv-download {
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: var(--font-medium);
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: transparent;
    font-size: 0.9rem;
}

.header-cv-download:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    transform: translateY(-50%) scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: var(--spacing-sm);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Banner Section */
.banner {
    position: relative;
    overflow: hidden;
}

.header-banner {
    width: 100%;
    max-width: 1920px;
    height: clamp(500px, calc(400px + 25vw), 900px);
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

.banner-social-icons {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    z-index: 10;
}

.banner-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.banner-social-icon:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 1);
}

.banner-social-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.banner-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: object-position 0.3s ease;
}

.hero-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 80px 60px 110px;
    background: linear-gradient(transparent, rgba(0,0,0,.55));
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.hero-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

.hero-sub {
    font-size: clamp(0.9rem, 1.4vw, 1.15rem);
    font-weight: 400;
    color: rgba(255,255,255,.88);
    margin: 0;
    max-width: 560px;
}

.hero-cta-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.hero-cta {
    display: inline-block;
    padding: 13px 28px;
    background: var(--accent-color);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-cta:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.hero-cta--ghost {
    background: transparent;
    border: 2px solid rgba(255,255,255,.8);
}

.hero-cta--ghost:hover {
    background: rgba(255,255,255,.12);
    opacity: 1;
}


/* About Section */
.about {
    position: relative;
    padding: var(--spacing-md) 0 var(--spacing-md) 0;
    background-color: var(--secondary-bg);
}

/* About Section 2 - Reduced top padding */
.about#about-2 {
    padding: var(--spacing-sm) 0 var(--spacing-xl) 0;
}

/* Social Icons Top */
.social-icons-top {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.social-icon-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-bg);
    border-radius: 50%;
}

.social-icon-top img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}


/* New About Content Layout */
.about-content-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.about-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    max-width: 50%;
}

.about-spine-container {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
    width: 100%;
    height: auto;
    min-height: 400px;
    position: relative;
}

.about-text-block {
    text-align: right;
}

.section-title-new {
    font-size: 2.5rem;
    font-weight: var(--font-black);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Clean Skills Icons */
.skills-clean {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    flex-wrap: wrap;
}

.skill-icon-clean {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.skill-icon-clean:hover {
    transform: scale(1.1);
}

.about-gif {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.about-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-right .about-text-block {
    text-align: left;
}

.about-skills-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg) 0;
    background-color: var(--secondary-bg);
}

.skills-clean-centered {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
}

.skills-clean-centered .skill-icon-clean {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.25s ease;
    display: block;
}

.skills-clean-centered .skill-icon-clean:hover {
    transform: scale(1.15);
}

/* Skill icon wrapper + speech bubble tooltip */
.skill-wrapper {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}

.skill-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: var(--tip-left, 50%);
    transform: translateX(var(--tip-tx, -50%)) translateY(4px);
    background: #2c2c2c;
    color: #ffffff;
    font-family: var(--font-family);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.4;
    padding: 8px 12px;
    border-radius: 10px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 100;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

/* Speech bubble tail */
.skill-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: var(--tip-tail, 50%);
    border: 7px solid transparent;
    border-top-color: #2c2c2c;
}

.skill-wrapper:hover .skill-tooltip {
    opacity: 1;
    transform: translateX(var(--tip-tx, -50%)) translateY(0);
}

/* Lang toggle button */
.lang-toggle {
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 6px;
    overflow: hidden;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 10;
}

.lang-toggle button {
    padding: 5px 10px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.05em;
}

.lang-toggle button.active {
    background: var(--accent-color);
    color: #fff;
}

.lang-toggle button:hover:not(.active) {
    background: rgba(255,255,255,0.2);
}

/* CV bar — legacy, hidden */
.cv-bar { display: none; }

/* CV button hanging below lang-toggle */
.header-cv-btn {
    position: absolute;
    top: 70px;
    right: var(--spacing-md);
    z-index: 999;
    text-decoration: none;
    color: #0d0d0d;
    font-family: var(--font-family);
    font-weight: var(--font-bold);
    font-size: 0.78rem;
    padding: 5px 14px;
    background-color: #aaff00;
    border-radius: 0 0 6px 6px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.header-cv-btn:hover {
    background-color: #c8ff40;
}

.header-cv-btn:active {
    background-color: #90e600;
    transform: scaleY(0.95);
}

@media (max-width: 768px) {
    .header-cv-btn {
        right: 52px;
        font-size: 0.72rem;
        padding: 4px 10px;
    }
}


#spine-about-player {
    width: 100%;
    background: transparent !important;
    height: 600px !important;
}

#spine-about-player-2 {
    width: 100%;
    background: transparent !important;
    height: 600px !important;
}

.spine-player-canvas {
    height: 600px !important;
    max-width: 100%;
}

/* Works Section */
.works {
    padding: var(--spacing-xl) 0;
    background-color: var(--primary-bg);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
    box-sizing: border-box;
}

.project-card {
    position: relative;
    width: 100%;
    max-width: 435px;
    height: 340px;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, z-index 0.3s ease;
    background-color: var(--secondary-bg);
    box-sizing: border-box;
}

.project-card:hover {
    z-index: 10;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease-in-out;
}

.project-card:hover .project-image {
    filter: brightness(0.5) blur(3px);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.3s ease-in-out;
    padding: var(--spacing-md);
    text-align: center;
    z-index: 5;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-title {
    color: white;
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    margin-bottom: var(--spacing-xs);
}

.project-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    font-weight: var(--font-medium);
    margin-bottom: var(--spacing-sm);
}

.project-description {
    color: rgba(255, 255, 255, 0.457);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Price Section */
.price {
    padding: var(--spacing-xl) 0;
    background-color: var(--secondary-bg);
}

.price-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 720px;
    margin: 0 auto;
}

.price-card {
    text-align: left;
    padding: var(--spacing-lg);
    background-color: var(--primary-bg);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}


.price-card h3 {
    font-size: 1.3rem;
    font-weight: var(--font-bold);
    margin-bottom: 0;
    color: var(--text-primary);
    text-align: center;
}

.price-card p {
    font-size: 1.1rem;
    font-weight: var(--font-bold);
    color: #686868;
}

/* Contact Section */
.contact {
    padding: var(--spacing-xl) 0 var(--spacing-md) 0;
    background-color: #000000;
    color: #ffffff;
}

.contact .section-title {
    color: #ffffff;
}

.contact-form-centered {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 500px;
    width: 100%;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    font-family: var(--font-family);
    font-size: 1rem;
    color: #ffffff;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group select {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    font-family: var(--font-family);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.6)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group select.has-value {
    color: #ffffff;
}

.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.15);
}

.form-group select option {
    background-color: #1a1a1a;
    color: #ffffff;
}

.form-group select option:disabled {
    color: rgba(255, 255, 255, 0.4);
}

.contact-direct {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-align: center;
}

.contact-direct__email {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: color 0.2s, border-color 0.2s;
}

.contact-direct__email:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.contact-direct__sep {
    opacity: 0.4;
}

.contact-direct__li img {
    display: block;
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.contact-direct__li:hover img {
    opacity: 1;
}

.submit-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 200px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
    align-self: center;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-default {
    opacity: 1;
}

.btn-hover {
    opacity: 0;
}

.btn-press {
    opacity: 0;
}

.submit-btn:hover .btn-default {
    opacity: 0;
}

.submit-btn:hover .btn-hover {
    opacity: 1;
}

.submit-btn:active .btn-default {
    opacity: 0;
}

.submit-btn:active .btn-hover {
    opacity: 0;
}

.submit-btn:active .btn-press {
    opacity: 1;
}


/* Social Divider */
.social-divider {
    background-color: var(--primary-bg);
    padding: 40px 0;
}

.social-icons-center {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.social-icon-center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--secondary-bg);
    border-radius: 50%;
}

.social-icon-center img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Footer */
.footer {
    background-color: #000000;
    padding: 32px 0;
    color: rgba(255, 255, 255, 0.5);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 0.85rem;
    white-space: nowrap;
}

.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-col--contact {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-li img {
    display: block;
    width: 20px;
    height: 20px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.footer-li:hover img {
    opacity: 1;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .footer-nav {
        justify-content: center;
        gap: 14px;
    }
}

/* i18n: hide RU content by default */
[data-lang="ru"] { display: none; }

/* Responsive Design */
@media (max-width: 1200px) {
    .banner-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* ─── Nav collapses to hamburger when there's not enough room ────── */
@media (max-width: 960px) {
    .nav-menu {
        position: fixed;
        right: 0;
        left: auto;
        top: 70px;
        width: 200px;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        background-color: rgba(255, 255, 255, 0.93);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        border-radius: 0 0 0 14px;
        box-shadow: -3px 6px 20px rgba(0, 0, 0, 0.14);
        padding: 8px 0 14px;
        gap: 0;
        transform: translateX(110%);
        transition: transform 0.28s ease;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li > .nav-link {
        display: block;
        padding: 9px 20px;
        text-align: right;
        font-size: 0.9rem;
    }

    .nav-menu.active {
        left: auto;
        transform: translateX(0);
    }

    .hamburger {
        display: flex;
    }

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

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .header-cv-download {
        display: none;
    }

    /* Move lang toggle left of the hamburger */
    .lang-toggle {
        right: 52px;
        top: 50%;
        transform: translateY(-50%);
    }

    .lang-toggle button {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    /* Stats strip — 2×2 grid on tablet/mobile */
    .stats-strip__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px 32px;
        max-width: 380px;
        margin: 0 auto;
    }

    /* Phase 2.1: permanent label overlay on touch devices */
    .project-overlay {
        opacity: 1;
        background: linear-gradient(transparent 40%, rgba(0,0,0,.75));
        justify-content: flex-end;
        padding-bottom: var(--spacing-sm);
    }

    .project-title { font-size: 1.1rem; }
    .project-subtitle { font-size: 0.9rem; }
    .project-description { display: none; }

    .header-banner {
        height: clamp(450px, calc(350px + 20vw), 700px);
    }
    
    .banner-social-icons {
        bottom: 20px;
        gap: var(--spacing-sm);
    }
    
    .banner-social-icon {
        width: 50px;
        height: 50px;
    }
    
    .banner-social-icon img {
        width: 50px;
        height: 50px;
    }

    .hero-overlay {
        padding: 60px 32px 90px;
        align-items: center;
        text-align: center;
    }

    .hero-sub {
        max-width: 480px;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta {
        width: 220px;
        text-align: center;
    }


    .section-title {
        font-size: 2rem;
    }
    
    .works-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .project-card {
        max-width: 100%;
        height: auto;
        aspect-ratio: 435/340;
    }
    
    .about-content-new {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-lg);
        width: 100%;
    }
    
    .about-text-block {
        text-align: center;
    }
    
    .about-left {
        max-width: 100%;
    }
    
    .about-spine-container {
        max-width: 100%;
    }

    /* 5.2: reduce Spine container height on mobile */
    #spine-about-player,
    #spine-about-player-2,
    .spine-player-canvas {
        height: 380px !important;
    }

    .about-right {
        align-items: center;
        max-width: 100%;
    }
    
    .about-right .about-text-block {
        text-align: center;
    }
    
    .skills-clean {
        justify-content: center;
    }
    
    .about-skills-centered {
        padding: var(--spacing-md) 0;
    }
    
    .skills-clean-centered {
        gap: var(--spacing-sm);
    }
    
    .skills-clean-centered .skill-icon-clean {
        width: 35px;
        height: 35px;
    }
    
    .about-gif {
        max-width: 100%;
        margin-bottom: var(--spacing-lg);
    }
    
    .cv-download-link {
        bottom: 20px;
        right: 20px;
    }
    
    .cv-download-link img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .works-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 10px;
    }

    .project-card {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 435/340;
    }

    .project-description { display: none; }
    .project-title { font-size: 1.2rem; }
    .project-subtitle { font-size: 0.9rem; }
    
    .section-title {
        text-align: center;
    }
    
    .banner-social-icons {
        bottom: 15px;
        gap: var(--spacing-xs);
    }
    
    .banner-social-icon {
        width: 40px;
        height: 40px;
    }
    
    .banner-social-icon img {
        width: 40px;
        height: 40px;
    }

    .hero-overlay {
        padding: 40px 20px 75px;
    }

    .skills-clean-centered {
        flex-wrap: wrap;
        max-width: 280px;
        margin: 0 auto;
    }

    .skills-clean-centered .skill-icon-clean {
        width: 40px;
        height: 40px;
    }

    .skill-tooltip {
        white-space: normal;
        max-width: 220px;
        text-align: center;
    }

    .price-content {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-icons-top {
        gap: var(--spacing-sm);
    }
    
    .social-icon-top {
        width: 60px;
        height: 60px;
    }
    
    .social-icon-top img {
        width: 60px;
        height: 60px;
    }
    
    .section-title-new {
        font-size: 2rem;
    }
    
        
    .header-banner {
        height: clamp(400px, calc(300px + 15vw), 600px);
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Wide Screen Dynamic Focus */
@media (min-width: 1920px) {
    .banner-media {
        object-position: bottom center;
    }
}

/* Spine Player Customization */
.spine-player {
    width: 100%;
    height: 100%;
}

.spine-player-container {
    width: 100%;
    height: 400px;
}

@media (max-width: 768px) {
    .spine-player-container {
        height: 300px;
    }
}

/* Project intro block */
.project-intro {
    padding: var(--spacing-xl) 0 var(--spacing-md);
    background-color: var(--secondary-bg);
}

.project-intro__text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: right;
    max-width: 720px;
    margin-left: auto;
}

.project-intro__subtitle {
    text-align: right;
    max-width: 720px;
    margin-left: auto;
    margin-bottom: 0.75rem;
}

/* Project Page Styles */
.project-block {
    padding: var(--spacing-xl) 0;
    background-color: var(--secondary-bg);
}

.project-block__title {
    font-size: 3rem;
    font-weight: var(--font-black);
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
    text-align: center;
}

/* Media-Text Row */
.project-block__media-text {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.project-block__media {
    flex: 1;
}

.project-block__video {
    width: 100%;
    height: auto;
}

.project-block__text {
    flex: 1;
}

.project-block__description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.project-block__subheading {
    font-size: 1.4rem;
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Image Mosaic */
.project-block__mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.project-block__mosaic-item {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.project-block__mosaic--horizontal {
    display: flex;
    gap: var(--spacing-md);
    justify-content: space-between;
}

.project-block__mosaic--horizontal .project-block__mosaic-item {
    flex: 1;
    max-width: calc(25% - var(--spacing-md) * 0.75);
    object-fit: contain;
}

/* Action Button */
.project-block__action {
    display: flex;
}

.project-block__action--right {
    justify-content: flex-end;
}

.project-block__play-btn {
    background: linear-gradient(135deg, var(--accent-color), #ff0080);
    color: white;
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.2rem;
    font-weight: var(--font-bold);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 16px rgba(255, 0, 81, 0.3);
}

.project-block__play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 0, 81, 0.4);
}

.project-block__play-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-block__media-text {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .project-block__mosaic {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .project-block__mosaic--horizontal {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .project-block__mosaic--horizontal .project-block__mosaic-item {
        max-width: 100%;
        flex: unset;
    }

    .project-block__mosaic-item {
        height: auto;
    }
    
    .project-block__action,
    .project-block__action--right {
        justify-content: center;
    }
    
    .project-block__play-btn {
        font-size: 1rem;
        padding: var(--spacing-sm) var(--spacing-lg);
    }
}

.project-block__title {
    font-size: 3rem;
    font-weight: var(--font-black);
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
    text-align: center;
}

.project-block__banner-container {
    margin-bottom: var(--spacing-xl);
}

.project-block__banner {
    width: 100%;
    max-width: 1200px;
    height: 500px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.project-block__banner-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-block__content {
    max-width: 1000px;
    margin: 0 auto;
}

.project-block__text-wrapper {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
    gap: var(--spacing-md);
}

.project-block__indicator {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-top: 4px;
    flex-shrink: 0;
}

.project-block__text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
}

/* Project Section Styles */
.project-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--secondary-bg);
}

.project-section__title {
    font-size: 2.5rem;
    font-weight: var(--font-black);
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    text-align: center;
}

.project-section__image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: 0 auto var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.intro-hero-image {
    width: 1200px;
    height: 600px;
    object-fit: cover;
}

@media (max-width: 1200px) {
    .intro-hero-image {
        max-width: 100%;
        height: auto;
    }
}

.project-section__image video {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}


.project-section__content {
    max-width: 1000px;
    margin: 0 auto;
}

.paragraph-wrapper {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-md);
}

.paragraph-wrapper__indicator {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-top: 4px;
    flex-shrink: 0;
}

.paragraph-wrapper__text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
}

/* Project Section Responsive Design */
@media (max-width: 1200px) {
    .project-section__image {
        max-width: 100%;
        margin-left: var(--spacing-md);
        margin-right: var(--spacing-md);
    }
    
    .project-section__content {
        max-width: 100%;
        padding: 0 var(--spacing-md);
    }
    
    .paragraph-wrapper {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .paragraph-wrapper__indicator {
        margin-bottom: var(--spacing-sm);
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .project-section {
        padding: var(--spacing-lg) 0;
    }
    
    .project-section__title {
        font-size: 2rem;
        margin-bottom: var(--spacing-md);
        text-align: center;
    }
    
    .project-section__image {
        margin-bottom: var(--spacing-md);
        border-radius: 8px;
        margin-left: auto;
        margin-right: auto;
    }
    
        
    .project-section__content {
        max-width: 100%;
        padding: 0 var(--spacing-md);
        margin: 0 auto;
    }
    
    .paragraph-wrapper__text {
        font-size: 1rem;
        text-align: left;
    }
    
    .paragraph-wrapper__indicator {
        width: 20px;
        height: 20px;
        margin-top: 2px;
    }
}

@media (max-width: 480px) {
    .project-section {
        padding: var(--spacing-md) 0;
    }
    
    .project-section__title {
        font-size: 1.8rem;
        text-align: center;
        padding: 0 var(--spacing-sm);
    }
    
    .project-section__image {
        margin-left: auto;
        margin-right: auto;
        max-width: calc(100% - var(--spacing-sm) * 2);
    }
    
        
    .project-section__content {
        max-width: 100%;
        padding: 0 var(--spacing-sm);
        margin: 0 auto;
    }
    
    .paragraph-wrapper__text {
        font-size: 0.9rem;
        text-align: left;
    }
    
    .paragraph-wrapper {
        gap: var(--spacing-sm);
        align-items: flex-start;
    }
    
    .paragraph-wrapper__indicator {
        width: 18px;
        height: 18px;
        margin-top: 2px;
        flex-shrink: 0;
    }
}

/* Video Row Layout for Game Animations */
.video-row {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto var(--spacing-lg);
    gap: 12px;
    align-items: stretch;
}

.video-row__video {
    flex: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Responsive Video Row */
@media (max-width: 768px) {
    .video-row {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .video-row__video {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
}

/* Project Page Responsive Design */
@media (max-width: 1200px) {
    .project-block__banner {
        max-width: 100%;
        height: 400px;
    }
    
    .project-block__content {
        max-width: 100%;
        padding: 0 var(--spacing-md);
    }
    
    .project-block__text-wrapper {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .project-block__indicator {
        margin-bottom: var(--spacing-sm);
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .project-block__title {
        font-size: 2.5rem;
    }
    
    .project-block__banner {
        height: 300px;
    }
    
    .project-block__text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .project-block {
        padding: var(--spacing-lg) 0;
    }
    
    .project-block__title {
        font-size: 2rem;
    }
    
    .project-block__banner {
        height: 250px;
        border-radius: 8px;
    }
    
    .project-block__text {
        font-size: 1rem;
    }
    
    .project-block__indicator {
        width: 20px;
        height: 20px;
    }
}

/* Project Footer Links Styles */
.project-footer-links {
    padding: 80px 0;
    background-color: var(--secondary-bg);
    text-align: center;
}

.project-footer-links__title {
    font-size: 2rem;
    font-weight: var(--font-bold);
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
}

.project-footer-links__icons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
}

.project-footer-links__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-bg);
    border-radius: 50%;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.project-footer-links__icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Project Footer Links Responsive Design */
@media (max-width: 768px) {
    .project-footer-links {
        padding: 60px 0;
    }
    
    .project-footer-links__title {
        font-size: 1.8rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .project-footer-links__icons {
        gap: var(--spacing-md);
    }
    
    .project-footer-links__icon {
        width: 60px;
        height: 60px;
    }
    
    .project-footer-links__icon-img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .project-footer-links {
        padding: 40px 0;
    }
    
    .project-footer-links__title {
        font-size: 1.6rem;
    }
    
    .project-footer-links__icons {
        gap: var(--spacing-sm);
    }
    
    .project-footer-links__icon {
        min-width: 60px;
        min-height: 60px;
        position: relative;
        z-index: 1;
    }
    
    .project-footer-links__icon a {
        display: block;
        width: 100%;
        height: 100%;
    }
}

/* Work With Me — card elements */
.price-card__desc {
    font-size: 0.84rem;
    line-height: 1.6;
    color: #555555;
    flex: 1;
    margin: 0;
    text-align: left;
}

.price-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 0.6rem;
    margin-top: 0.4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.price-card__rate {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent-color);
}

.price-card__note {
    font-size: 0.92rem;
    font-weight: var(--font-medium);
    color: #2c2c2c;
    text-align: right;
}

.price-card__more-link {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
}

.price-card__more-link:hover {
    border-bottom-color: var(--accent-color);
    opacity: 0.8;
}

/* ─── Price Slider ─────────────────────────────────────────────── */
/* ─── Section CTA bridges ──────────────────────────────────────── */
.section-cta {
    background-color: var(--primary-bg);
    padding: 48px var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.section-cta--light {
    background-color: var(--secondary-bg);
}

.section-cta__text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    max-width: 560px;
}

@media (max-width: 768px) {
    .section-cta {
        padding: 36px var(--spacing-md);
    }

    .section-cta__text {
        font-size: 1rem;
    }
}

/* ─── Stats Strip ──────────────────────────────────────────────── */
.stats-strip {
    background-color: var(--secondary-bg);
    padding: 24px 0;
}

.stats-strip__grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stats-strip__item {
    text-align: center;
    min-width: 140px;
}

.stats-strip__number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1.1;
}

.stats-strip__label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ─── Clients Strip ─────────────────────────────────────────────── */
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.clients-strip {
    background-color: var(--secondary-bg);
    overflow: hidden;
    padding: 20px 0;
}

.clients-strip__track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.client-logo {
    height: 150px;
    width: auto;
    flex-shrink: 0;
    cursor: default;
    pointer-events: none;
}

.price-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 760px;
    margin: 0 auto;
}

.price-slider__viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
}

/* Override the existing .price-content to be a flex row track */
.price-content {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.price-content .price-card {
    flex: 0 0 auto;
    flex-shrink: 0;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.price-slider__btn {
    background: none;
    border: none;
    font-size: 3.5rem;
    line-height: 1;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0 6px;
    opacity: 0.35;
    transition: opacity 0.2s;
    flex-shrink: 0;
    user-select: none;
}

.price-slider__btn:hover {
    opacity: 1;
}

.price-slider__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.price-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}

.price-slider__dot--active {
    background: var(--accent-color);
    transform: scale(1.35);
}

@media (max-width: 768px) {
    .price-slider__btn {
        font-size: 2.5rem;
        padding: 0 2px;
    }

    .price-slider-wrapper {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .price-slider__btn {
        font-size: 2rem;
    }
}

@media (min-width: 769px) {
    .price-slider__btn,
    .price-slider__dots {
        display: none !important;
    }

    .price-slider-wrapper {
        max-width: 1000px;
        gap: 0;
    }

    .price-slider__viewport {
        overflow: visible;
    }

    .price-content {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        flex-direction: unset !important;
        flex-wrap: unset !important;
        gap: 20px !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }

    .price-content .price-card {
        width: auto;
    }
}

/* ─── Works Modal ──────────────────────────────────────────────── */
.works-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.works-modal--open {
    opacity: 1;
    pointer-events: all;
}

.works-modal__card {
    position: relative;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.works-modal--open .works-modal__card {
    transform: scale(1);
}

.works-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    color: #fff;
    font-size: 1.3rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    line-height: 1;
    padding: 0;
    transition: background 0.2s;
}

.works-modal__close:hover {
    background: rgba(0, 0, 0, 0.85);
}

.works-modal__image-area {
    position: relative;
    aspect-ratio: 435 / 300;
    flex-shrink: 0;
    overflow: hidden;
    max-height: 45vh;
}

.works-modal__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45) blur(2px);
}

.works-modal__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    text-align: center;
}

.works-modal__title {
    color: #fff;
    font-size: 1.7rem;
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1.2;
}

.works-modal__subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.works-modal__intro {
    background: #fff;
    padding: 20px 24px 24px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.works-modal__text {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.works-modal__link {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1.5px solid var(--accent-color);
    transition: opacity 0.2s;
}

.works-modal__link:hover {
    opacity: 0.7;
}

@media (max-width: 480px) {
    .works-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .works-modal__card {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
    }

    .works-modal__image-area {
        max-height: 38vh;
    }

    .works-modal__title {
        font-size: 1.3rem;
    }

    .works-modal__subtitle {
        font-size: 0.85rem;
    }
}

/* ─── Message counter ──────────────────────────────────────────── */
.msg-counter {
    text-align: right;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: -14px;
    padding-right: 4px;
    transition: color 0.2s;
}

.msg-counter--warning {
    color: var(--accent-color);
}

/* ─── Startup Partnership page ─────────────────────────────────── */
.sp-intro {
    background-color: var(--secondary-bg);
}

.sp-page__title {
    font-size: 3rem;
    font-weight: var(--font-black);
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    text-align: right;
    max-width: 720px;
    margin-left: auto;
}

.sp-page__subtitle {
    font-size: 1.3rem !important;
    font-weight: var(--font-semibold) !important;
    color: var(--accent-color) !important;
}

.sp-section {
    background-color: var(--secondary-bg);
}

.sp-section--alt {
    background-color: var(--primary-bg);
}

.sp-contact {
    padding: var(--spacing-xl) 0;
    background-color: #000;
}

.sp-contact .section-title {
    color: #fff;
}

.sp-contact__text {
    max-width: 560px;
    margin: 0 auto var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.7;
}

.sp-contact__cta {
    text-align: center;
}

.sp-contact__btn {
    display: inline-block !important;
    padding: 14px 40px;
    background-color: #00e040;
    color: #fff;
    font-family: var(--font-family);
    font-weight: var(--font-bold);
    font-size: 1rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s, transform 0.2s;
}

.sp-contact__btn:hover {
    background-color: #00c035;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .sp-page__title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .sp-page__title {
        font-size: 1.8rem;
    }
}

