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

body {
    background-color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: #000000;
}

/* ===== HOMEPAGE ===== */
.homepage {
    height: 100vh;
    overflow: hidden;
}

.welcome-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.welcome-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #000000;
    padding: 40px 60px;
    background-color: #f0f0f0;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.welcome-box:hover {
    background-color: #e0e0e0;
    transform: translate(-50%, -50%) scale(1.05);
}

/* ===== macOS FOLDER LINKS ===== */

.folder-link {
    position: absolute;
    width: 80px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-decoration: none;
    cursor: pointer;

    z-index: 10;

    animation: float 6s ease-in-out infinite;

    transition: transform 0.25s ease;
}

.folder-icon {
    width: 52px;
    height: 44px;

    display: block;

    transition:
        transform 0.25s ease,
        filter 0.25s ease;

    filter:
        drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18))
        drop-shadow(0 1px 4px rgba(0, 100, 255, 0.15));
}

.folder-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Название папки */

.folder-name {
    margin-top: 2px;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Text",
        "Helvetica Neue",
        Arial,
        sans-serif;

    font-size: 13px;
    font-weight: 400;
    line-height: 16px;

    color: #1d1d1f;

    text-align: center;
    white-space: nowrap;

    text-shadow:
        0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Наведение */

.folder-link:hover {
    transform: scale(1.08);
}

.folder-link:hover .folder-icon {
    filter:
        drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2))
        drop-shadow(0 0 9px rgba(0, 122, 255, 0.5));
}

.folder-link:hover .folder-name {
    color: #007aff;
}
/* ===== HEADER ===== */
.contact-page .header {
    background: rgba(255, 255, 255, 0.7);

    backdrop-filter: blur(8px);
}
.header {
    background-color: #ffffff;
    border-bottom: 2px solid #000000;
    padding: 15px 20px;
    margin-bottom: 30px;
}

.header-nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.header-nav a {
    color: #0000ff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
}

.header-nav a:hover {
    color: #57f736;
}

.header-nav a.active {
    color: #57f736;
    font-weight: bold;
}

/* ===== PAGE CONTENT ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
    text-decoration: underline;
}

.page-content {
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
}

/* ===== ABOUT PAGE ===== */
.about-content {
    margin-top: 20px;
    line-height: 1.8;
}

/* ===== WORKS PAGE ===== */
.works-list {
    list-style: none;
    margin-top: 20px;
}

.works-list li {
    margin: 20px 0;
    font-size: 18px;
}

.works-list a {
    color: #0000ff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.works-list a:hover {
    color: #57f736;
}

/* ===== WORK DETAIL PAGE ===== */
.work-detail {
    margin-top: 20px;
}

.work-detail-image {
    max-width: 600px;
    margin: 20px 0;
    border: 1px solid #000000;
    padding: 5px;
}

/* ===== WORK PHOTO GALLERY ===== */

.work-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 20px;
    margin-bottom: 20px;
}


.gallery-photo {
    width: 120px;
    height: 90px;

    object-fit: cover;

    display: block;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.gallery-photo:hover {
    transform: scale(1.04);
    opacity: 0.85;
}

/* ===== PHOTO LIGHTBOX ===== */

.lightbox {
    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    background: rgba(0, 0, 0, 0.88);

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 9999;
touch-action: pan-y;
}


.lightbox.active {
    display: flex;
}


/* Большая фотография */

.lightbox img {
    max-width: 85vw;
    max-height: 85vh;

    width: auto;
    height: auto;

    object-fit: contain;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5);

    /* Подготовка к анимации */
     transform: translateX(0);

    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ========================================
   ARROWS
   ======================================== */

.lightbox-arrow {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 50px;
    height: 70px;

    border: none;

    background: transparent;

    color: #ffffff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 60px;

    font-weight: 200;

    line-height: 70px;

    text-align: center;

    cursor: pointer;

    padding: 0;

    opacity: 0.65;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;

    z-index: 10000;
}


.lightbox-arrow:hover {
    opacity: 1;
}


/* Левая стрелка */

.lightbox-prev {
    left: 25px;
}


/* Правая стрелка */

.lightbox-next {
    right: 25px;
}

/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 600px) {

    .lightbox-arrow {
        display: none;
    }

    .lightbox img {
        max-width: 92vw;
        max-height: 85vh;
    }

}

/* ===== GALLERY PAGE ===== */
/* ---------- галерея ---------- */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;               /* расстояние между фото */
    padding: 20px 0;
}
.gallery-item {
    cursor: pointer;
    overflow: hidden;        /* чтобы изображение не вылезало за угол */
    /* убраны фон, скругления, рамки */
}
.gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;     /* альбомная ориентация */
    object-fit: cover;       /* заполняет контейнер, сохраняя пропорции */
    transition: transform 0.2s;
}
.gallery-item:hover img {
    transform: scale(1.03);  /* лёгкое увеличение при наведении (можно убрать) */
}


/* ===== CONTACT PAGE ===== */
.contact-page {
    background-image: url("https://raw.githubusercontent.com/losikolga/olgalosik.github.io/refs/heads/main/images/contact.JPG");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.contact-form {
    margin-top: 20px;
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 16px;
}

.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #000000;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.form-group input[type="email"] {
    height: 30px;
}

.form-group textarea {
    height: 200px;
    resize: vertical;
}

.submit-btn {
    background-color: #f0f0f0;
    border: 1px solid #000000;
    padding: 10px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #e0e0e0;
}

.submit-btn:active {
    background-color: #d0d0d0;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #cccccc;
    text-align: center;
    color: #666666;
    font-size: 12px;
}

/* ========================================
   VIDEO
   ======================================== */

/* ===== VIDEO PREVIEW ===== */

.work-video {
    margin-top: 25px;
    margin-bottom: 20px;
    width: 500px;
    max-width: 100%;
    cursor: pointer;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000000;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-play-button {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 64px;
    height: 64px;

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.7);

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 25px;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.work-video:hover .video-play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 0, 0, 0.9);
}


/* ===== VIDEO LIGHTBOX ===== */

.video-lightbox {
    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    background: rgba(0, 0, 0, 0.90);

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 10000;
}

.video-lightbox.active {
    display: flex;
}


/* YouTube iframe */

.youtube-container {
    position: relative;

    width: 85vw;
    max-width: 1200px;

    aspect-ratio: 16 / 9;

    background: #000000;

    box-shadow:
        0 10px 50px rgba(0, 0, 0, 0.6);
}

.youtube-container iframe {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    border: none;
}


/* MOBILE */

@media (max-width: 600px) {

    .work-video {
        width: 100%;
    }

    .youtube-container {
        width: 94vw;
    }

}

/* =========================================================
   EYES ON THE BOX
========================================================= */

.box-eyes {

    position: absolute;

    /*
       Центрируем относительно FRONT панели коробки.
       Ширина front = 330px.
    */

    left: 120px;

    top: 70px;

    transform: translateX(-50%);

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 25px;

    width: 150px;

    height: 45px;

    z-index: 6;
}


/* =========================================================
   EYE
========================================================= */

.eye {

    position: relative;

    display: block;

    width: 40px;
    height: 20px;

    background: #ffffff;

    /*
       Миндалевидная форма глаза
    */

    border-radius: 50% / 65%;

    transform: rotate(0deg);

    overflow: hidden;
}


/* верхнее/нижнее раскрытие глаза */

.eye::before,
.eye::after {

    content: "";

    position: absolute;

    left: 50%;

    width: 58px;
    height: 25px;

    border: 2px solid #000000;

    transform: translateX(-50%);

    pointer-events: none;
}


/* верхнее веко */

.eye::before {

    top: -14px;

    border-bottom: none;

    border-radius: 50%;
}


/* нижнее веко */

.eye::after {

    bottom: -14px;

    border-top: none;

    border-radius: 50%;
}


/* =========================================================
   PUPIL
========================================================= */

.pupil {

    position: absolute;

    left: 70%;
    top: 70%;

    width: 19px;
    height: 19px;

    transform: translate(-40%, -40%);

    border-radius: 50%;

    background: #000000;
}


/* маленькое отражение */

.pupil::after {

    content: "";

    position: absolute;

    top: 4px;
    left: 5px;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: #ffffff;
}
