.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.no-select {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    background-color: #1a1a1a;
}

/* Добавлен новый класс-оболочка для основного контента */
.main-content-wrapper {
    background-color: rgba(26, 26, 26, 0.85); /* Полупрозрачный фон */
    min-height: 100vh;
}

nav a {
    position: relative;
    text-decoration: none;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease-in-out;
}

nav a:hover::after {
    width: 100%;
}

@font-face {
    font-family: 'Monument';
    src: url('fonts/MonumentExtended-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

.logo-text {
    font-family: 'Monument', sans-serif;
}

.tracking-widest-2 {
    letter-spacing: 0.41em;
}

.player-window:hover .play-overlay {
    opacity: 1;
    transform: translateY(0);
}

.player-window:hover {
    transform: scale(1.02);
}

.play-overlay {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.player-window {
    transition: transform 0.3s ease-in-out;
}

.background-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    filter: blur(2px);
}

.divider {
    width: 100%;
    max-width: 600px;
    height: 1px;
    background-color: #555;
    margin: 4rem 0;
}

.project-image-wrapper img {
    filter: grayscale(100%);
    transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.project-card:hover .project-image-wrapper img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.project-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.arrow {
    display: inline-block;
    font-size: 1.25rem;
    margin-right: 0.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}

.title {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

.project-card:hover .arrow {
    transform: translateX(0);
    opacity: 1;
}

.project-card:hover .title {
    transform: translateX(1.5rem);
}

.perspective {
    perspective: 1000px;
}

.project-card {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transform-style: preserve-3d;
}

.project-card:hover {
    transform: none;
    transform: scale(1.03);
    cursor: pointer;
}

.project-card[data-aos="fade-left"] {
    transform: translateX(-100px) rotateY(10deg);
    transform-origin: left center;
}

.project-card[data-aos="fade-right"] {
    transform: translateX(100px) rotateY(-10deg);
    transform-origin: right center;
}

.project-card.aos-animate {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* плашка снизу */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}



.modal-content {
    background-color: #1a1a1a;
    width: 100%;
    max-width: 100%;
    height: 70%;              /* занимает 70% высоты экрана */
    position: relative;
    transform: translateY(100%); /* спрятана внизу */
    transition: transform 0.5s ease-out;
    padding: 40px 60px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.modal-overlay.active .modal-content {
    transform: translateY(0); /* плавный выезд вверх */
}

.close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    transition: color 0.2s;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    color: #fff;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.contact-link {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #aaa;
}

#magic {
    position: relative;
    z-index: -5;
    pointer-events: none;
}

#magic canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}


#text-container {
    width: 100%;
    text-align: center;
    pointer-events: none;
    z-index: 10;
}