/* SF Pro Font ve Apple Tasarım Dili */
@import url('https://fonts.cdnfonts.com/css/sf-pro-display');

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f5f7; /* Apple'ın standart açık gri arka planı */
    color: #1d1d1f; /* Apple'ın standart metin rengi */
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Sayfa Geçiş Animasyonu */
body {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Preloader / Açılış Ekranı */
#preloader {
    position: fixed;
    inset: 0;
    background-color: #f5f5f7; /* Arka planla aynı renk */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-icon {
    width: 10px;
    height: 10px;
    background-color: #888; /* Apple'ın ikincil gri tonu */
    border-radius: 50%;
    animation: pulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    50% { transform: scale(1.5); opacity: 0.5; }
}

/* Projeler Video Preloader */
#video-preloader video {
    width: auto;
    height: auto;
    max-width: 90vw; /* Mobil için genişliği kısıtla */
    max-height: 80vh; /* Mobil için yüksekliği kısıtla */
    object-fit: contain; /* Videonun tamamının görünmesini sağla */
    border-radius: 2rem; /* Apple tarzı yuvarlak köşeler */
}


/* Scroll-Reveal Animasyonları */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}



/* Apple Tarzı Frosted Glass Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.6); /* Açık tema için beyaz ve yarı saydam */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08); /* İnce ve koyu sınır */
}

.glass-header {
    background: rgba(245, 245, 247, 0.8); /* Açık tema için header arka planı */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Scroll Bar Tasarımı */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Proje Detay Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

/* Galeri Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}