/* Temel scroll önleme */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

body {
    background-color: black;
    color: white;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
}

/* Header bölümü düzenlemesi */
.page-header {
    position: fixed;
    top: 2rem; /* Üstten boşluk */
    left: 0;
    width: 100%;
    display: flex;
    align-items: flex-start; /* Üstte hizala */
    justify-content: center; /* Yatayda ortala */
    pointer-events: none;
    z-index: -1;
}

.page-header h1 {
    font-size: 280px;
    color: rgba(255, 110, 32, 0.089);
    margin: 0;
    font-weight: 700;
    letter-spacing: 4px;
    font-family: 'Matroska', sans-serif;
    text-transform: uppercase;
    /* Dikey yazı özelliklerini kaldırdık */
    transform: none;
    writing-mode: initial;
    line-height: 0.8;
}

/* Header çizgisini kaldırıyoruz */
.header-line {
    display: none;
}

/* Ana içerik wrapper'ı */
.content-wrapper {
    width: 100%;
    height: 100vh;
    padding-top: 6rem;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 1s ease-in-out 0.5s forwards;
}

/* Filtre butonları */
.filter-buttons {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid #ff6f20;
    color: #ff6f20;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 111, 32, 0.1);
}

.filter-btn.active {
    background: #ff6f20;
    color: #000;
}

/* Projeler grid container'ı */
.works-grid-container {
    width: 100%;
    max-width: 1400px;
    flex: 1;
    overflow-y: auto;
    padding: 0 2rem;
    padding-bottom: 4rem;
    margin-bottom: 2rem;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 2rem;
}


/* Cursor stili */
* {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMS44IDI1LjEiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI2ZmNmYyMCIgZD0iTTUuMSwyNWMtMS4zLS4zLTIuNC0xLjMtMi42LTMuMUwwLDQuM0MtLjEsMi43LjYsMS4zLDEuOS41YzEuMy0uOCwyLjktLjcsNC4yLjJsMTQuMSwxMC43YzEuNywxLjIsMS44LDMuMSwxLjIsNC40LS42LDEuNC0yLjIsMi41LTQuMiwybC02LjItMS42LTEuNiw2LjJjLS41LDItMi4zLDIuOC0zLjcsMi43LS4yLDAtLjQsMC0uNy0uMWgwWiIvPjwvc3ZnPg==') 2 2, auto;
}

/* Önceki cursor tanımlamalarını kaldır */
body, .content-section, 
a, button, .filter-btn, .work-item,
p, span, h1, h2,
a:hover, button:hover {
    cursor: inherit;
}

/* Üst navigasyon */
.top-nav {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
}

/* Go Back butonu */
.back-btn {
    background: transparent;
    border: 2px solid #ff6f20;
    border-radius: 100px;
    padding: 0.5rem 1.2rem;
    color: #ff6f20;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 111, 32, 0.1);
}

/*Tema Butonu ve Go Back Butonu*/

.theme-switch {
    position: fixed;
    top: 1.5rem;
    width: 40px; /* Butonun genişliği */
    left: calc(50% - 20px); /* Tam ortaya konumlandırma */
    z-index: 1000;
}

.works-btn {
    background: transparent;
    border: 2px solid #ff6f20;
    border-radius: 100px;
    padding: 0.5rem 1.2rem;
    color: #ff6f20;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.works-btn:hover {
    background: rgba(255, 111, 32, 0.1);
}

/* Açık tema için */
body.light-theme .works-btn {
    border-color: #ff6f20;
    color: #ff6f20;
}

/* Mobil için */
@media (max-width: 768px) {
    .works-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}

/* Küçük mobil cihazlar için */
@media (max-width: 480px) {
    .works-btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* Tablet ve küçük laptoplar için */
@media (max-width: 1024px) {
    .theme-switch {
        top: 1.5rem;
        right: 1.5rem;
    }
}

/* Mobil için tema butonu düzenlemesi */
@media (max-width: 768px) {
    .theme-switch {
        top: 1rem;
    }
}

@media (max-width: 480px) {
    .theme-switch {
        top: 0.75rem;
    }
}

.theme-toggle {
    background: transparent;
    border: 2px solid #ff6f20;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.theme-toggle:hover {
    background: rgba(255, 111, 32, 0.1);
}

.theme-toggle svg {
    color: #ff6f20;
    transition: all 0.3s ease;
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: block;
}

.theme-toggle .sun-icon {
    display: none;
}

body.light-theme .theme-toggle .moon-icon {
    display: none;
}

body.light-theme .theme-toggle .sun-icon {
    display: block;
}

.work-item {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    animation: fadeIn 0.5s ease forwards;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-overlay h3 {
    color: #ff6f20;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.work-overlay p {
    color: white;
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-item:hover img {
    transform: scale(1.1);
}

.work-item:hover .work-overlay h3,
.work-item:hover .work-overlay p {
    transform: translateY(0);
}

.work-item:hover {
    transform: translateY(-5px);
}

/* Responsive düzenlemeler */
@media (max-width: 992px) {
    .works-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
        padding: 0 0.75rem 1.5rem;
    }

}

@media (max-width: 768px) {
    body {
        padding-bottom: 3rem;
    }

    .works-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
        padding: 0 0.75rem 1.5rem;
    }


    .header-line {
        width: 450px;
    }

    .filter-buttons {
        width: fit-content;
        gap: 0.8rem;
        margin: 1rem auto;
        padding: 0 1rem;
    }

    .filter-btn {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        white-space: nowrap;
    }

    .popup-content {
        width: 90%;
        max-height: 90vh;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        margin-top: 2rem;
    }

    .popup-inner {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        height: 100%;
    }

    .popup-media {
        width: 100%;
        max-height: 45vh;
        overflow-y: auto;
        padding: 0.5rem;
    }

    .popup-media iframe {
        width: 100%;
        height: 250px;
        border-radius: 8px;
    }

    .popup-media img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .popup-info {
        width: calc(100% - 2rem);
        margin: 0 1rem;
        padding: 1rem;
        max-height: 35vh;
        overflow-y: auto;
        background: #1a1a1a;
        border-radius: 8px;
    }

    .popup-media::-webkit-scrollbar,
    .popup-info::-webkit-scrollbar {
        width: 4px;
    }

    .popup-media::-webkit-scrollbar-track,
    .popup-info::-webkit-scrollbar-track {
        background: rgba(255, 111, 32, 0.1);
        border-radius: 4px;
    }

    .popup-media::-webkit-scrollbar-thumb,
    .popup-info::-webkit-scrollbar-thumb {
        background: #ff6f20;
        border-radius: 4px;
    }

    .popup-close {
        position: fixed;
        right: 1rem;
        top: 0.8rem;
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
        background: rgba(26, 26, 26, 0.8);
        z-index: 2100;
        transition: none;
    }

    .popup-close:hover {
        transform: none;
        background: rgba(26, 26, 26, 0.8);
    }
}

@media (max-width: 576px) {
    body {
        padding-bottom: 2rem;
    }

    .works-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        padding: 0 0.5rem 1rem;
    }


    .filter-buttons {
        gap: 0.6rem;
        margin: 1rem 0;
    }

    .filter-btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }

    .work-overlay h3 {
        font-size: 0.9rem;
    }

    .work-overlay p {
        font-size: 0.75rem;
    }
}

/* İPhone SE gibi küçük ekranlar için */
@media (max-width: 375px) {
    .works-grid {
        grid-template-columns: 1fr;
        padding: 0 0.8rem 2rem 0.8rem;
    }

    .filter-buttons {
        padding: 0 0.5rem;
    }
}


/* Açık tema */
body.light-theme {
    background-color: #f5f5f5;
    color: black;
}

body.light-theme .header-line {
    background-color: #ff6f20;
}

/* Animasyon */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.work-item {
    animation: fadeIn 0.5s ease forwards;
}

/* Filtreleme geçişleri için */
.work-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Popup ana container */
.project-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.project-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: #1a1a1a;
    width: 90%;
    max-width: 1400px;
    max-height: 90vh;
    border-radius: 15px;
    border: 2px solid #ff6f20;
    margin: 0 auto;
    overflow: hidden;
}

/* Popup içerik container */
.popup-inner {
    display: flex;
    gap: 2rem;
    height: 100%;
    padding: 2rem;
}

/* Medya bölümü (sol taraf) */
.popup-media {
    flex: 1;
    max-height: calc(90vh - 4rem);
    overflow-y: auto;
    padding-right: 1rem;
}

/* Görsel ve video için ortak stiller */
.popup-media img {
    width: 900px;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Video için özel stil */
.popup-media iframe {
    width: 900px;
    aspect-ratio: 16/9;
    border-radius: 8px;
    display: block;
}

/* Bilgi bölümü (sağ taraf) */
.popup-info {
    width: 350px;
    min-width: 350px;
    padding-right: 1rem;
    position: sticky;
    top: 2rem;
    align-self: flex-start;
}

.popup-info h2 {
    color: #ff6f20;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.popup-info p {
    line-height: 1.8;
    color: #e0e0e0;
    font-size: 1rem;
}

/* Pop-up çarpı ikonu */
.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #ff6f20;
    font-size: 2rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.popup-close:hover {
    transform: rotate(90deg);
    background: rgba(255, 111, 32, 0.1);
}

/* Scrollbar stilleri */
.works-grid-container::-webkit-scrollbar {
    width: 3px; /* İnce scroll genişliği */
}

.works-grid-container::-webkit-scrollbar-track {
    background: transparent;
}

.works-grid-container::-webkit-scrollbar-thumb {
    background: #ff6f20;
    border-radius: 10px;
}

/* Scroll oklarını kaldır */
.works-grid-container::-webkit-scrollbar-button {
    height: 0;
    width: 0;
    display: none;
}

/* Firefox için scroll tasarımı */
.works-grid-container {
    scrollbar-color: #ff6f20 transparent;
    scrollbar-width: thin;
}

/* Popup scrollbar stilleri */
.popup-media::-webkit-scrollbar,
.popup-info::-webkit-scrollbar {
    width: 3px;
}

.popup-media::-webkit-scrollbar-track,
.popup-info::-webkit-scrollbar-track {
    background: transparent;
}

.popup-media::-webkit-scrollbar-thumb,
.popup-info::-webkit-scrollbar-thumb {
    background: #ff6f20;
    border-radius: 10px;
}

.popup-media::-webkit-scrollbar-button,
.popup-info::-webkit-scrollbar-button {
    height: 0;
    width: 0;
    display: none;
}

/* Firefox için popup scrollbar */
.popup-media,
.popup-info {
    scrollbar-color: #ff6f20 transparent;
    scrollbar-width: thin;
}

/* Responsive düzenlemeler */
@media (max-width: 1400px) {
    .popup-media img,
    .popup-media iframe {
        width: 700px;
    }
}

@media (max-width: 1200px) {
    .popup-media img,
    .popup-media iframe {
        width: 600px;
    }
}

@media (max-width: 992px) {
    .popup-inner {
        flex-direction: column;
        padding: 1.5rem;
    }

    .popup-media {
        width: 100%;
        max-height: 60vh;
        padding-right: 0;
    }

    .popup-media img,
    .popup-media iframe {
        width: 100%;
    }

    .popup-info {
        width: 100%;
        min-width: unset;
        padding-right: 0;
        position: relative;
        top: 0;
        margin-top: 1.5rem;
    }
}

/* Popup stilleri - Koyu tema (varsayılan) */
.popup-content {
    background: #1a1a1a;
    border: 2px solid #ff6f20;
}

.popup-info h2 {
    color: #ff6f20;
}

.popup-info p {
    color: #e0e0e0;
}

.popup-close {
    color: #ff6f20;
}

.popup-media::-webkit-scrollbar-track {
    background: rgba(255, 111, 32, 0.1);
}

.popup-media::-webkit-scrollbar-thumb {
    background: #ff6f20;
}

/* Popup stilleri - Açık tema */
body.light-theme .project-popup {
    background: rgba(255, 255, 255, 0.95);
}

body.light-theme .popup-content {
    background: #ffffff;
    border: 2px solid #ff6f20;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

body.light-theme .popup-info h2 {
    color: #ff6f20;
}

body.light-theme .popup-info p {
    color: #333333;
}

body.light-theme .popup-close {
    color: #ff6f20;
}

body.light-theme .popup-close:hover {
    background: rgba(255, 111, 32, 0.1);
}

body.light-theme .popup-media::-webkit-scrollbar-track {
    background: rgba(255, 111, 32, 0.1);
}

body.light-theme .popup-media::-webkit-scrollbar-thumb {
    background: #ff6f20;
}

/* Firefox için scrollbar - Açık tema */
body.light-theme .popup-media {
    scrollbar-color: #ff6f20 rgba(255, 111, 32, 0.1);
}

/* Yatay scroll bar stilleri */
.filter-buttons::-webkit-scrollbar {
    height: 3px;
}

.filter-buttons::-webkit-scrollbar-track {
    background: transparent;
}

.filter-buttons::-webkit-scrollbar-thumb {
    background: #ff6f20;
    border-radius: 10px;
}

/* Mobil için pop-up düzenlemeleri */
@media (max-width: 480px) {
    .popup-content {
        width: 85%;
        padding: 0.8rem;
    }

    .popup-info {
        width: calc(100% - 1.6rem);
        margin: 0 0.8rem;
        padding: 0.8rem;
    }

    .popup-media iframe {
        height: 200px;
    }

    .popup-media {
        max-height: 40vh;
    }

    .popup-info {
        max-height: 40vh;
    }

    .filter-buttons {
        width: 85%;
        gap: 0.6rem;
    }

    .popup-close {
        right: 0.8rem;
        top: 0.6rem;
    }
}

/* Beyaz tema için genel stil ayarları */
body.light-theme {
    background-color: white;
    color: black;
}

/* Diğer bileşenler için beyaz tema ayarları */
.header-line {
    background-color: #ff6f20;
}

.filter-btn {
    background-color: rgba(255, 255, 255, 0);
    color: #ff6f20;
    border: 1px solid #ff6f20;
}

/* Aktif filtre butonu stili */
.filter-btn.active {
    background-color: #ff6f20;
    color: white;
}

/* Açık tema için başlık rengi */
body.light-theme .page-header h1 {
    color: rgba(255, 110, 32, 0.116);
}

/* Geri dönüş butonu */
.back-button {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 2px solid #ff6f20;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.back-button svg {
    color: #ff6f20;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 111, 32, 0.1);
}

/* Açık tema için geri butonu */
body.light-theme .back-button {
    border-color: #ff6f20;
}

body.light-theme .back-button svg {
    color: #ff6f20;
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .back-button {
        width: 32px;
        height: 32px;
        left: 1rem;
    }

    .back-button svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .back-button {
        width: 28px;
        height: 28px;
        left: 0.75rem;
    }

    .back-button svg {
        width: 18px;
        height: 18px;
    }
}

/* Sayfa geçiş animasyonu */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 9999;
    transform-origin: bottom;
    animation: pageTransition 1s ease-in-out forwards;
}

/* Açık tema için geçiş animasyonu rengi */
body.light-theme .page-transition {
    background: #f5f5f5;
}

/* Animasyonlar */
@keyframes pageTransition {
    0% {
        transform: scaleY(1);
    }
    100% {
        transform: scaleY(0);
    }
}

/* Sayfa içeriği için fade-in animasyonu */
.content-wrapper {
    opacity: 0;
    animation: fadeIn 1s ease-in-out 0.5s forwards;
}

.theme-switch,
.back-button,
.page-header {
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out 0.8s forwards;
}

/* Responsive düzenlemeler için */
@media (max-width: 768px) {
    .page-header {
        top: 5rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        top: 4rem;
    }
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 140px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 100px;
    }
}

/* 1920x1080 için temel stiller */
.page-header h1 {
    font-size: 280px;
    color: rgba(255, 110, 32, 0.089);
}

/* 2K (2560x1440) için */
@media (min-width: 2000px) {
    .page-header h1 {
        font-size: 380px;
    }
}

/* 4K (3840x2160) için */
@media (min-width: 3000px) {
    .page-header h1 {
        font-size: 480px;
    }
}

/* Tablet için (768px - 1024px) */
@media (max-width: 1024px) {
    .page-header h1 {
        font-size: 200px;
    }
}

/* Büyük mobil cihazlar için (480px - 768px) */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 140px;
    }
}

/* Küçük mobil cihazlar için (480px ve altı) */
@media (max-width: 480px) {
    .page-header h1 {
        font-size: 100px;
    }
}