body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #fff;
    background: url('../img/bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

.container {
    text-align: center;
    padding-top: 60px;
}

h1 {
    font-family: 'Audiowide', sans-serif;
    font-size: 60px;
    margin-bottom: 50px;
    text-shadow: 0 0 20px #0ff, 0 0 40px #0ff, 0 0 60px #0ff;
    letter-spacing: 3px;
}

.projects {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

.project {
    width: 300px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #0ff;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;

    box-shadow: 0 0 20px #0ff;
    transition: transform .3s ease, box-shadow .6s ease;

    animation: neonPulse 3s infinite ease-in-out;

    /* чтобы всё внутри шло столбиком и выравнивалось */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project:hover {
    transform: translateY(-10px) scale(1.08);
    box-shadow: 0 0 25px #0ff, 0 0 60px #0ff;
    animation: neonHover 1.5s infinite alternate;
}

.project img {
    width: 100%;
    height: 200px;        /* высота фиксирована */
    object-fit: contain;  /* показываем картинку целиком */
    object-position: center;
    background: rgba(0,0,0,0.3); /* подложка, если картинка нестандартной формы */
    border-radius: 6px;
    display: block;
    margin-bottom: 10px;
    filter: brightness(1);
    transition: filter .4s ease;
}


.project:hover img {
    filter: brightness(1.1);
}

.project h2 {
    margin: 10px 0 5px 0;
    font-size: 24px;
}

.project p {
    font-size: 14px;
    opacity: .9;
}

footer {
    margin-top: 80px;
    padding: 20px;
    opacity: .7;
    font-size: 14px;
}

@keyframes neonPulse {
    0%   { box-shadow: 0 0 20px #0ff; }
    50%  { box-shadow: 0 0 35px #0ff; }
    100% { box-shadow: 0 0 20px #0ff; }
}

@keyframes neonHover {
    0%   { box-shadow: 0 0 30px #0ff, 0 0 60px #0ff; }
    100% { box-shadow: 0 0 45px #0ff, 0 0 90px #0ff; }
}
