body {
    background-image: url('мяу.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #e0f2f1;
    font-family: 'Verdana', 'Arial', sans-serif;
    margin: 20px;
    line-height: 1.6;
}
header {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 8px 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 100, 100, 0.15);
    text-align: center;
    border: 1px solid rgba(0, 130, 150, 0.15);
}
h1, h2 {
    color: #3B4D7D;
    font-family: 'Palatino', 'Palatino Linotype', 'Georgia', serif;
    font-weight: 500;
    letter-spacing: -0.3px;
}
h1 {
    font-size: 2.2em;
    text-shadow: 1px 1px 2px rgba(59, 77, 125, 0.15);
    font-weight: 500;
    margin: 5px 0;
}
h2 {
    font-size: 1.8em;
    font-weight: 500;
}
p {
    color: #4B688F;
    font-size: 1.1em;
}
nav a {
    color: white;
    text-decoration: none;
    margin: 0 3px;
    padding: 6px 15px;
    font-weight: 500;
    border-radius: 40px;
    transition: all 0.3s ease;
    display: inline-block;
    background-color: rgba(247, 124, 150, 0.8);
    border: 2px solid white;
    box-shadow: 0 0 12px rgba(247, 124, 150, 0.5);
    font-size: 0.95em;
}
nav a:hover {
    background-color: rgba(247, 124, 150, 0.95);
    color: white;
    transform: scale(1.05);
    text-decoration: none;
    box-shadow: 0 0 25px rgba(247, 124, 150, 0.8);
    border: 2px solid white;
}
main {
    max-width: 1000px;
    margin: 20px auto;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.image-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}
.image-container:hover img {
    transform: scale(1.05) translateX(20px);
    box-shadow: 0 0 30px rgba(247, 124, 150, 0.8);
    transition: all 0.5s ease;
    filter: brightness(1.1);
    border-radius: 15px;
    border: 2px solid white;
}
.image-container img {
    transition: all 0.5s ease;
    border-radius: 10px;
    border: 2px solid transparent;
}
.image-container:hover::after {
    content: "˖⁺‧₊˚Это Сайо Хикава -\aпрекрасная девушка!♡˚₊‧⁺˖";
    position: absolute;
    left: 720px;  
    top: 50%;     
    transform: translateY(-50%);
    background-color: rgba(247, 124, 150, 0.95);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1.2em;
    white-space: normal;
    width: 280px;
    text-align: center;
    box-shadow: 0 0 30px rgba(247, 124, 150, 0.8);
    z-index: 100;
    font-family: 'Verdana', 'Arial', sans-serif;
    border: 2px solid white;
    backdrop-filter: blur(2px);
    animation: floatText 0.5s ease-out;
    line-height: 1.4;
    pointer-events: none;
}

@keyframes floatText {
    0% { opacity: 0; transform: translateY(-40%) translateX(20px); }
    100% { opacity: 1; transform: translateY(-50%) translateX(0); }
}
@keyframes floatTextLeft {
    0% { opacity: 0; transform: translateY(-40%) translateX(-20px); }
    100% { opacity: 1; transform: translateY(-50%) translateX(0); }
}
.semester-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0;
}
.semester-card {
    background-color: rgba(247, 124, 150, 0.8);
    border: 2px solid white;
    border-radius: 15px;
    padding: 30px;
    width: 280px;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: all 0.4s ease;
    box-shadow: 0 0 15px rgba(247, 124, 150, 0.5);
    backdrop-filter: blur(5px);
}
.semester-card:hover {
    transform: translateY(-10px) scale(1.02);
    background-color: rgba(247, 124, 150, 0.95);
    border-color: white;
    box-shadow: 0 0 30px rgba(247, 124, 150, 0.8);
    color: white;
}
.semester-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.8em;
    font-family: 'Palatino', serif;
    color: white;
}
.semester-card p {
    margin: 0;
    font-size: 1em;
    color: white;
    line-height: 1.4;
}
header div {
    max-width: 1000px;
    margin: 0 auto;
}
figure {
    margin: 30px 0;
    text-align: center;
}
figcaption {
    color: #4B688F;
    font-style: italic;
    margin-top: 10px;
    font-size: 0.95em;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(59, 77, 125, 0.2);
}
th, td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #3B4D7D;
    color: #3B4D7D;
}
th {
    background-color: rgba(247, 124, 150, 0.3);
    font-weight: bold;
}
td {
    background-color: rgba(255, 255, 255, 0.5);
}
h3 {
    color: #3B4D7D;
    border-bottom: 2px solid #F77C96;
    padding-bottom: 8px;
    margin-top: 30px;
}
h4 {
    color: #3B4D7D;
    margin-top: 25px;
}
caption {
    color: #4B688F;
    margin-bottom: 8px;
    font-weight: 500;
}
.back-button {
    display: inline-block;
    background-color: rgba(247, 124, 150, 0.8);
    color: white;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 50px;
    border: 2px solid white;
    box-shadow: 0 0 15px rgba(247, 124, 150, 0.5);
    transition: all 0.3s ease;
    font-weight: 500;
    margin-top: 20px;
}
.back-button:hover {
    background-color: rgba(247, 124, 150, 0.95);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(247, 124, 150, 0.8);
    color: white;
    text-decoration: none;
}
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
}
.text-block {
    flex: 1;
}
.about-content .image-container img {
    max-width: 100%;
    height: auto;
}
/* Стили для списка работ */
.works-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.works-list li {
    margin: 15px 0;
    transition: transform 0.3s ease;
}

.works-list li:hover {
    transform: translateX(10px);
}

.work-link {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(247, 124, 150, 0.1), rgba(59, 77, 125, 0.1));
    border: 2px solid rgba(247, 124, 150, 0.3);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.work-link:hover {
    background: linear-gradient(135deg, rgba(247, 124, 150, 0.2), rgba(59, 77, 125, 0.2));
    border-color: #F77C96;
    box-shadow: 0 10px 25px rgba(247, 124, 150, 0.3);
    transform: scale(1.02);
}

.work-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.work-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #3B4D7D;
}

.work-description {
    font-size: 0.95em;
    color: #4B688F;
}

.work-description i {
    color: #3B4D7D;
}

.figure .figcaption {
    color: #4B688F;
    font-style: italic;
    margin-top: 5px;
}