body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij48cGF0aCBkPSJNMiAxMmwxLjA4OC0xLjA4OEMzLjA2NSAxMC4wODcgMyAxMS4wMzMgMyAxMkwyIDEyeiIvPjxwYXRoIGQ9Ik0wIDBoMTh2MThIMHoiIGZpbGw9ImJsYWNrIi8+PC9zdmc+'), auto;
    background-image: url('/img/background.webp');
    background-size: cover;
    background-color: transparent; /* Beyaz zemini kaldırmak için fallback */
}

/* Mobil için optimize edilmiş görsel */
@media screen and (max-width: 767px) {
    body, html {
        background-image: url('/img/background-mobile.webp');
    }
}

:root {
    --img-width: 190px;
    --img-ratio: 1.1;
    --img-offset-x: 20px;
    --img-offset-y: 20px;
    --img-border-radius: 7px;
}

.bg {
    height: calc(100% - 120px);
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    cursor: pointer;
    z-index: 1;
}

main {
    padding: 1.25rem;
    display: grid;
    height: 100vh;
    width: 100%;
    grid-row-gap: 1.25rem;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto auto;
    grid-template-areas: 'frame' 'content' 'meta' 'demos';
    pointer-events: none;
}

.footer {
    z-index: 1000;
    height: 120px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 60px;
    font-weight: 400;
    color: black;
    text-decoration: none;
}

.logo .bold {
    font-weight: 700;
}

.rights-container {
    display: flex;
    align-items: flex-end;
}

.rights {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 17px;
    text-align: right;
    color: black;
}

.rights p {
    margin: 2px 0;
}

.instagram {
    z-index: 1010;
    position: fixed;
    top: 38px;
    right: 40px;
    width: 75px;
    height: 75px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.instagram img {
    width: 55px;
    height: 55px;
    position: relative;
    top: 2px;
}

.content__img {
    width: var(--img-width);
    aspect-ratio: var(--img-ratio);
    border-radius: var(--img-border-radius);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    overflow: hidden;
    will-change: transform, filter;
    z-index: 10;
    pointer-events: auto;
}

.content__img-inner {
    background-position: 50% 50%;
    width: calc(100% + var(--img-offset-x));
    height: calc(100% + var(--img-offset-y));
    background-size: cover;
    position: absolute;
    top: calc(-1 * var(--img-offset-y) / 2);
    left: calc(-1 * var(--img-offset-x) / 2);
    pointer-events: none;
}

.video-popup {
    display: none;
    position: fixed;
    top: 40px;
    left: 40px;
    right: 40px;
    bottom: 160px;
    background-color: rgba(255, 255, 255, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1005;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    overflow: hidden;
}

.video-popup iframe {
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1004;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    z-index: 1006;
    background-color: white;
    padding: 5px;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-popup img {
    width: 70%;
    height: 70%;
}

.play-button {
    width: 100px;
    height: 100px;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1006;
}

.play-button img {
    width: 55px;
    height: 55px;
}

.mouse-effect-element {
    pointer-events: none;
}

@media screen and (max-width: 767px) {
    @media screen and (orientation: portrait) {
        .footer {
            height: 120px;
            padding: 10px 15px;
            flex-direction: column;
            align-items: center;
        }
        .logo {
            font-size: 40px;
            text-align: center;
            margin-bottom: 2px;
        }
        .rights-container {
            justify-content: center;
            width: 100%;
            text-align: center;
            white-space: nowrap;
            margin-top: 2px;
        }
        .rights {
            font-size: 12px;
            text-align: center;
            margin: 0;
        }
        .instagram {
            top: 38px;
            right: 40px;
            width: 75px;
            height: 75px;
        }
        .instagram img {
            width: 55px;
            height: 55px;
        }
        .video-popup {
            top: 20px;
            left: 20px;
            right: 20px;
            bottom: 140px;
        }
    }
    @media screen and (orientation: landscape) {
        .footer {
            height: 80px;
            padding: 15px 25px;
        }
        .logo {
            font-size: 35px;
        }
        .rights-container {
            justify-content: flex-end;
        }
        .rights {
            font-size: 8px;
            text-align: right;
        }
        .instagram {
            top: 38px;
            right: 40px;
            width: 75px;
            height: 75px;
        }
        .instagram img {
            width: 55px;
            height: 55px;
        }
        .video-popup {
            top: 40px;
            left: 40px;
            right: 40px;
            bottom: 100px;
        }
    }
}

@media screen and (min-width: 768px) {
    .footer {
        height: 120px;
        padding: 0 40px;
    }
    .logo {
        font-size: 60px;
    }
    .rights {
        font-size: 17px;
    }
    .instagram {
        top: 38px;
        right: 40px;
        width: 75px;
        height: 75px;
    }
    .instagram img {
        width: 55px;
        height: 55px;
    }
    .video-popup {
        top: 40px;
        left: 40px;
        right: 40px;
        bottom: 160px;
    }
}

@media screen and (max-width: 390px) and (orientation: portrait) {
    .logo {
        font-size: 30px;
        text-align: center;
        position: absolute;
        bottom: 45%;
        left: 50%;
        transform: translateX(-50%);
    }
    .rights {
        font-size: 10px;
        text-align: center;
        position: absolute;
        bottom: 9%;
        left: 50%;
        transform: translateX(-50%);
    }
    .footer {
        height: 90px;
        padding: 0 40px;
    }
}

@media screen and (max-width: 390px) and (orientation: landscape) {
    .logo {
        font-size: 12px;
        text-align: center;
    }
    .rights {
        font-size: 6px;
        text-align: center;
        margin-top: 5px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .logo {
        font-size: 55px;
        text-align: center;
        position: absolute;
        bottom: 40%;
        left: 50%;
        transform: translateX(-50%);
    }
    .rights {
        font-size: 13px;
        text-align: center;
        position: absolute;
        bottom: 12%;
        left: 50%;
        transform: translateX(-50%);
    }
}