/* ==========================================
   1. TEMEL SIFIRLAMALAR VE AYARLAR
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow: hidden !important;
}

/* Dergi düzeni: tüm paragraflar justify */
p {
    text-align: justify;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.hidden-start {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out;
}

.show-content {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   2. PRELOADER (AÇILIŞ EKRANI)
   ========================================== */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    width: 350px;
}

.preloader-logo {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    animation: glowPulse 3.5s ease-in-out forwards;
}

@keyframes glowPulse {
    0%   { opacity: 0; transform: scale(0.95); filter: drop-shadow(0 0 0px rgba(255,255,255,0)); }
    30%  { opacity: 1; transform: scale(1);    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2)); }
    60%  { opacity: 1; transform: scale(1);    filter: drop-shadow(0 0 30px rgba(255,255,255,0.5)) drop-shadow(0 0 10px rgba(255,255,255,0.5)); }
    100% { opacity: 0; transform: scale(1.05); filter: drop-shadow(0 0 0px rgba(255,255,255,0)); }
}

.preloader-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ==========================================
   3. SAHNE SİSTEMİ (SPA GEÇİŞLERİ)
   ========================================== */
#views-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.view {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    padding-left: 140px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Hero, About, Contact: iceriklerini dikey ortalar */
#hero,
#about,
#contact {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 60px;
}

#work {
    display: block !important;
    padding-top: 0 !important; 
    padding-bottom: 60px;
}

.view::-webkit-scrollbar {
    width: 6px;
}

.view::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.view.active-view {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 10;
}

/* ==========================================
   4. SABİT ARAYÜZ (SOL PANEL & ÜST MENÜ)
   ========================================== */
.left-sidebar {
    position: fixed;
    left: 0; top: 0;
    width: 120px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 0 40px 30px;
    z-index: 9999 !important;
}

.sidebar-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.side-logo-img {
    width: 80px;
    height: auto;
}

.side-divider {
    position: absolute;
    right: 0; top: 0;
    width: 1px; height: 100%;
    background: rgba(255, 255, 255, 0.15);
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.side-socials {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-socials a {
    color: #fff;
    font-size: 1rem;
    opacity: 0.7;
    transition: 0.3s;
}

.side-socials a:hover { opacity: 1; }

.side-lang {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.active-lang {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.top-navbar {
    position: fixed;
    top: 0;
    right: 0;
    width: calc(100% - 120px);
    z-index: 9999 !important;
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    padding: 30px 40px 60px 0; 
    pointer-events: none;
    /*BUtonların altına scrollda linear eklemesi*/
    background: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 45%, rgba(0,0,0,0) 100%);
}

.top-navbar a {
    pointer-events: auto;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: opacity 0.3s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.top-navbar a:hover { opacity: 0.7; }

/* ==========================================
   5. CUSTOM CURSOR
   ========================================== */
.cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transition: width 0.4s ease, height 0.4s ease, background 0.4s ease;
    will-change: transform;
}

.cursor-glow.active {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 60%);
}

@media (pointer: coarse) {
    .cursor-glow { display: none !important; }
}

/* ==========================================
   6. HERO (ANA EKRAN)
   ========================================== */
.hero-center {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-line-1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: -1px;
}

.hero-line-2 {
    font-size: 4.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -1px;
}

.serif-italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: #d1d5db;
}

.bottom-links {
    position: absolute;
    bottom: 50px;
    left: 140px;
    width: calc(100% - 140px);
    display: flex;
    justify-content: center;
    gap: 80px;
    z-index: 1000;
}

.bottom-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0.8;
    transition: 0.3s;
}

.bottom-link:hover { opacity: 1; }

.arrow-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px; height: 35px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 0.8rem;
    transition: 0.3s;
}

.bottom-link:hover .arrow-circle {
    background-color: #fff;
    color: #000;
}

/* ==========================================
   7. ABOUT (HAKKIMDA)
   ========================================== */
.about-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 80px;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: start;
}

/* Contact sayfasındaki grid dikeyde ortalansın */
#contact .about-grid {
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #a0a0a0;
    margin-bottom: 25px;
    font-weight: 300;
}

.about-text strong {
    color: #ffffff;
    font-weight: 500;
}

.cv-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.btn-outline {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 40px;
}

.stat-box h3 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0 0 10px 0;
    font-weight: 400;
}

.stat-box p {
    color: #888888;
    font-size: 0.9rem;
    margin: 0;
    letter-spacing: 0.5px;
}

/* ==========================================
   8. WORK — NETFLIX CAROUSEL
   ========================================== */
.work-container {
    padding-top: 140px !important; /* Boşluğu doğrudan içeriğe veriyoruz */
    width: 100%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 80px !important;
    padding-right: 60px !important;
    padding-bottom: 50px;
}

#work .section-title {
    font-size: 3rem;
    text-align: left;
    margin-bottom: 40px;
    line-height: 1.2;
}

.category-title {
    font-size: 1.2rem;
    color: #e5e5e5;
    margin-bottom: 10px;
    padding-left: 40px;
    font-weight: 600;
}

.carousel-wrapper {
    position: relative;
    padding: 0 40px;
    margin-bottom: 40px;
}

.carousel-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
}

.carousel-track::-webkit-scrollbar { display: none; }

/* Proje Kartları */
.project-card {
    flex: 0 0 calc((100% / 5) - 12px);
    flex-shrink: 0 !important;
    aspect-ratio: 16/9;
    background-color: #111;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: scale(1.15) translateY(-5px);
    z-index: 50 !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-info {
    width: 100%;
    padding: 30px 15px 15px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-card:hover .card-info { transform: translateY(0); }

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    font-family: 'Inter', sans-serif;
}

.card-tech {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.card-tech span {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #e5e5e5;
    letter-spacing: 0.5px;
}

.slider-btn {
    position: absolute;
    top: 20px;
    bottom: 20px;
    width: 40px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 5;
    font-size: 1.5rem;
    transition: background 0.3s;
}

.slider-btn:hover { background: rgba(0,0,0,0.9); }
.left-btn { left: 0; }
.right-btn { right: 0; }

/* ==========================================
   9. PROJE MODAL
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(24, 24, 24, 0.8);
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transform: translateY(50px);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px rgba(0,0,0,0.8);
}

.modal-overlay.active .modal-content { transform: translateY(0); }

.close-modal {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 50%;
    width: 36px; height: 36px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.close-modal:hover { background: #fff; color: #000; }

.modal-video-box {
    width: 100%;
    aspect-ratio: 21 / 9;
    background: #000;
    position: relative;
}

.video-placeholder {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #444;
}

.play-icon {
    font-size: 3rem;
    color: rgba(229, 9, 20, 0.5);
    margin-bottom: 5px;
}

.modal-shadow-mask {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to bottom, rgba(24,24,24,0) 0%, rgba(24,24,24,0.9) 60%, rgba(24,24,24,1) 100%);
    z-index: 2;
}

.modal-details {
    padding: 25px;
    position: relative;
    z-index: 3;
    margin-top: -10px;
}

.modal-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
    gap: 20px;
}

#modal-title {
    font-size: 1.8rem;
    margin: 0;
}

.github-btn-transparent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.github-btn-transparent i { font-size: 1rem; }

.github-btn-transparent:hover {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-tech-stack {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #e5e5e5;
}

.modal-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.block-label {
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
}

#modal-purpose,
#modal-solution {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #d2d2d2;
}

/* ==========================================
   10. CONTACT (İLETİŞİM)
   ========================================== */
.contact-info p {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin-bottom: 40px;
}

.contact-details h3 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #ffffff;
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 5px;
}

.contact-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: 0.3s;
}

.contact-link:hover { border-bottom-color: #ffffff; }

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 10px;
}

.input-group { position: relative; }

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    padding: 10px 0;
    outline: none;
    transition: border-color 0.3s;
}

.input-group textarea { resize: none; }

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: #ffffff;
}

.input-group label {
    position: absolute;
    top: 10px; left: 0;
    color: #888888;
    font-size: 1rem;
    pointer-events: none;
    transition: 0.3s ease all;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: #ffffff;
}

.submit-btn {
    background: transparent;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
}

/* Chrome otomatik doldurma */
.premium-form input:-webkit-autofill,
.premium-form input:-webkit-autofill:hover,
.premium-form input:-webkit-autofill:focus,
.premium-form textarea:-webkit-autofill,
.premium-form textarea:-webkit-autofill:hover,
.premium-form textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #000000 inset !important;
    background-color: transparent !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* Textarea scrollbar */
.premium-form textarea::-webkit-scrollbar        { width: 8px; background-color: #000; }
.premium-form textarea::-webkit-scrollbar-track  { background: #000; }
.premium-form textarea::-webkit-scrollbar-thumb  { background-color: rgba(255,255,255,0.3); border-radius: 10px; border: 2px solid #000; }
.premium-form textarea::-webkit-scrollbar-thumb:hover { background-color: rgba(255,255,255,0.6); }

/* ==========================================
   11. MOBİL UYUMLULUK
   ========================================== */
@media (max-width: 768px) {
    .left-sidebar {
        width: 100%; height: 60px;
        flex-direction: row;
        align-items: center;
        padding: 0 20px;
        background-color: #000000;
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .side-divider,
    .side-socials { display: none; }

    .sidebar-bottom { flex-direction: row; }

    .top-navbar {
        top: 60px;
        right: 0;
        width: 100%;
        justify-content: center;
        gap: 25px;
        padding: 12px 20px;
        background: #000000;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .top-navbar a { font-size: 0.8rem; }

    .view {
        padding-left: 0;
    }

    #hero,
    #about,
    #contact {
        padding-top: 160px; /* GÜNCELLENDİ: 120px -> 160px (Menünün altında kalmaması için) */
        min-height: 100vh;
    }

    #work {
        padding-top: 160px; /* GÜNCELLENDİ: 120px -> 160px (Menünün altında kalmaması için) */
    }

    .hero-center {
        height: auto;
        padding: 0 20px;
        margin-top: 80px;
        text-align: left;
        align-items: flex-start;
    }

    .hero-line-1,
    .hero-line-2 { font-size: 2.8rem; line-height: 1.1; }

    .bottom-links {
        position: relative;
        bottom: auto; left: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 60px 20px;
    }

    .about-container { padding: 0 20px; margin-top: 40px; }

    .section-title { font-size: 2.5rem; margin-bottom: 40px; }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }

    .about-stats {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 0;
        padding-top: 40px;
    }

    #work .work-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-top: 0px !important; /* GÜNCELLENDİ: Gereksiz 20px boşluk 0px yapıldı */
    }

    /* Tablette 2 kart */
    .project-card {
        flex: 0 0 calc(50% - 10px) !important;
        min-width: calc(50% - 10px) !important;
    }

    .modal-content { width: 95%; max-width: none; }
    .modal-video-box { aspect-ratio: 16/9 !important; }
    .modal-header-flex { flex-direction: column; align-items: flex-start; gap: 10px; }
    #modal-title { font-size: 1.5rem; }
    .modal-text-grid { grid-template-columns: 1fr; gap: 15px; }
}

@media (max-width: 480px) {
    /* Telefonda %85 genişlik — yanındaki kartın ucu görsün */
    .project-card {
        flex: 0 0 85% !important;
        min-width: 85% !important;
        aspect-ratio: 4/3 !important;
    }

    .slider-btn { width: 30px !important; }
}
@media (max-width: 768px) {
    #work {
        padding-top: 0 !important; /* Mobilde de dış padding'i sıfırlıyoruz */
    }

    #work .work-container {
        padding-top: 140px !important; /* Mobilde menü altında kalmaması için içeriği itiyoruz */
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-top: 0px !important;
    }
}