html {
    scroll-behavior: smooth;

}
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Noto Serif", serif;
    background-color: rgb(15, 15, 15);
}
.header {
    width: calc(100% - 40px);
    height: 64px;
    background-color: rgb(0, 0, 0);
    border-bottom: 1px solid rgb(40, 40, 40);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    position: fixed;
    top: 0;
    z-index: 1000;
}
.header .logo {
    height: 55px;
    width: auto;
}
.home{
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    overflow: hidden; /* KRİTİK */
    position: relative; /* KRİTİK */
}
.home .background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 135%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center; /* SAĞA KAYDIRMA */
    z-index: -1;
    opacity: 0.9;
}
.content{
    width: calc(100% - 40px);
    max-width: 1200px;
    color: white;
    font-size: 18px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: flex;
    justify-content: center;
    text-align: left;
    opacity: 0;
    animation: fadeIn 2s forwards;
}
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
.content img{
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 100%;
}
.content h1{
    font-size: 32px;
    margin-bottom: 20px;
}
.content p{
    margin-bottom: 15px;
    color: rgb(224, 224, 224);
    width: 40%;
}
.buttons{
    margin-top: 20px;
    display: flex;
    gap: 15px;
}
.buttons a{
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s;
}
.first-btn{
    background-color: rgb(202, 99, 30);
}
.second-btn{
    background-color: rgb(0, 0, 0);
}
.first-btn:hover{
    transform: translateY(-3px);
    background-color: rgb(255, 119, 50);
}
.second-btn:hover{
    transform: translateY(-3px);
    background-color: rgb(40, 40, 40);
}
.ca{
    margin-top: 10px;
    font-size: 20px;
    color: rgb(255, 255, 255);
}
.video-page{
    width: 100%;
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.video-page h2{
    color: white;
    font-size: 28px;
    opacity: 0;
    padding: 0 15%;
}
.video-page h2.scrolled{
    animation: fadeIn 2s forwards;
    margin-bottom: 20px;
}
.video-page video{
    width: 70%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.video-page::after{
    content: "";
    display: block;
    height: 3px;
    width: 70%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
    margin-top: 40px;
}

.gallery{
    width: calc(70% - 40px);
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    min-height: calc(100vh - 80px);
    display:flex;
    gap: 20px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    color: white;
}
.gallery h2{
    font-size: 28px;
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 15px 0;
}
.gallery .controls{
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}
.gallery .controls .btn{
    padding: 10px 20px;
    background-color: rgb(40, 40, 40);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.gallery .controls .btn.active{
    background-color: rgb(202, 99, 30);
}
.gallery .controls .btn:hover{
    background-color: rgb(70, 70, 70);
}
.gallery .media-grid{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}
.gallery .media-grid .media-item{
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}
.gallery .media-grid .media-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.gallery .media-grid .media-item:hover img{
    transform: scale(1.1);
}

.media-grid.videos .media-item.image{
    display: none;
}
.media-grid.photos .media-item.video{
    display: none;
}
.media-grid .media-item i{
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 15px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.media-viewer{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.media-viewer.active{
    opacity: 1;
    visibility: visible;
}
.media-viewer .close-btn{
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 2100;
}
.media-viewer .media-content{
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.media-viewer .media-content img,
.media-viewer .media-content video{
    max-width: 50%;
    max-height: 100%;
    border-radius: 10px;
}

.mobile{
    display: none;
}
@media (max-width: 768px) {
    .mobile{
        display: block;
    }
    .desktop{
        display: none;
    }
    .content p{
        width: 80%;
    }
    .content{
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .home .background-video {
        width: 100%;
        object-position: center center; /* ORTALA */
    }
    .video-page{
        width: 90%;
        margin: 0 auto;
        height: auto;
        min-height: unset;
        gap: 20px;
        padding: 40px 0;
    }
    .video-page video{
        width: 100%;
    }
    .video-page h2{
        margin: 0;
        font-size: 24px;
        padding: 0;
    }
    .gallery{
        width: calc(100% - 40px);
        padding: 0 20px 40px 20px;
    }
    .gallery .media-grid{
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .media-viewer .media-content img,
    .media-viewer .media-content video{
        max-width: 90%;
    }
    

}
