:root {
    /* Renk Paleti: Minimalist Zemin + Pop-Art Canlı Renkler */
    --bg-color: #f4f4f0; /* Kırık beyaz, kağıt/kanvas hissi */
    --text-color: #0f0f0f; /* Tam siyah değil, çok koyu antrasit */
    --accent-red: #FF3333; /* Pop-Art Kırmızı */
    --accent-blue: #0044FF; /* Elektrik Mavi */
    --accent-yellow: #FFD700; /* Canlı Sarı */
    
    --grid-line: rgba(0, 0, 0, 0.08); /* Arka plan ızgara çizgileri */
    
    /* Fontlar: Nothing Tech tarzı mühendislik/modern hissiyatı */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-heading);
    
    /* Nothing Tech / Endüstriyel hissi veren teknik ızgara arka plan */
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    overflow-x: hidden;
}

/* =========================================
   TİPOGRAFİ
   ========================================= */
h1, h2, h3 {
    text-transform: uppercase;
}

h1.title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 0.95; /* i harfinin noktası değmesin diye artırıldı */
    letter-spacing: -2px;
    margin-bottom: 2rem;
}

.highlight-blue {
    color: var(--accent-blue);
}

.mono-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--text-color);
    color: var(--bg-color);
    padding: 4px 10px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

/* =========================================
   NAVİGASYON (ÜST MENÜ)
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4%;
    border-bottom: 2px solid var(--text-color);
    background: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    font-family: var(--font-mono);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-red);
}

/* =========================================
   HERO (ANA GİRİŞ BÖLÜMÜ)
   ========================================= */
.hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    min-height: calc(100vh - 80px);
    border-bottom: 2px solid var(--text-color);
}

.hero-content {
    padding: 4rem 4% 4rem 10%;
    border-right: 2px solid var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-desc {
    font-size: 1.25rem;
    max-width: 500px;
    margin-bottom: 3rem;
    line-height: 1.5;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--accent-yellow); /* Pop art parlak buton */
    color: var(--text-color);
    padding: 1rem 2rem;
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    width: max-content;
    border: 2px solid var(--text-color);
    /* Neo-brutalism katı gölge efekti */
    box-shadow: 6px 6px 0px var(--text-color);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0px var(--text-color);
    background: var(--text-color);
    color: var(--accent-yellow);
}

/* Hero yanındaki görsel alanı */
.hero-visual {
    background: var(--accent-red);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-visual .visual-text {
    font-family: var(--font-mono);
    color: var(--bg-color);
    font-size: 1.5rem;
    transform: rotate(-90deg);
    letter-spacing: 5px;
    opacity: 0.5;
}

/* =========================================
   PROJELER BÖLÜMÜ
   ========================================= */
.projects-section {
    padding: 6rem 4% 6rem 10%;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.line {
    flex-grow: 1;
    height: 2px;
    background: var(--text-color);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
}

/* Proje Kartları - Neo Brutalizm Tarzı */
.project-card {
    border: 2px solid var(--text-color);
    box-shadow: 10px 10px 0px var(--text-color);
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background-color: var(--bg-color);
}

.project-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 14px 14px 0px var(--text-color);
}

.project-info {
    padding: 1.5rem;
    border-bottom: 2px solid var(--text-color);
    background: var(--bg-color);
    color: var(--text-color);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.project-image-placeholder {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-mono);
    font-weight: bold;
    letter-spacing: 2px;
}

/* Renkli Kart Arka Planları */
.red-bg .project-image-placeholder { background-color: var(--accent-red); color: white; }
.blue-bg .project-image-placeholder { background-color: var(--accent-blue); color: white; }
.yellow-bg .project-image-placeholder { background-color: var(--accent-yellow); color: var(--text-color); }
.dark-bg .project-image-placeholder { background-color: var(--text-color); color: var(--bg-color); }

/* =========================================
   MOBİL UYUMLULUK
   ========================================= */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        border-right: none;
        border-bottom: 2px solid var(--text-color);
        padding: 3rem 5%;
    }
    
    .hero-visual {
        min-height: 40vh;
    }

    .projects-section {
        padding: 4rem 5%;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   HAKKIMDA BÖLÜMÜ
   ========================================= */
.about-section {
    padding: 6rem 4% 6rem 10%;
    background-color: var(--text-color); /* Koyu arkaplan ile kontrast yarattık */
    color: var(--bg-color);
}

.about-section .section-header h2 {
    color: var(--bg-color);
}

.about-section .line {
    background: var(--bg-color);
}

.about-section .mono-text {
    background: var(--accent-yellow);
    color: var(--text-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

/* Fotoğraf Çerçevesi */
.about-image-wrapper {
    position: relative;
    padding-bottom: 20px;
    padding-right: 20px;
}

.about-image-frame {
    border: 2px solid var(--accent-yellow); /* Renkli ince çerçeve */
    box-shadow: 16px 16px 0px var(--accent-blue); /* Mavi sert gölge */
    background: var(--accent-blue);
    display: flex;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image-frame:hover {
    transform: translate(-6px, -6px);
    box-shadow: 22px 22px 0px var(--accent-blue);
}

.profile-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    /* Fotoğrafı biraz daha karamsar ve endüstriyel yapıyoruz */
    filter: grayscale(30%) contrast(110%);
    border: 2px solid var(--text-color);
    margin: -15px -15px 15px 15px; /* Fotoğrafı çerçeveden bilerek hafif taşırdık (tatlı bir uyum) */
    z-index: 3;
    position: relative;
    background-color: var(--text-color);
}

/* Hakkımda Metni */
.about-text h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.9;
    font-family: var(--font-heading);
}

.about-text p strong {
    color: var(--accent-yellow);
}

/* Mini İstatistikler / Rozetler */
.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-box {
    border: 2px solid var(--bg-color);
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--text-color);
    /* Kırmızı neo-brutalist gölge */
    box-shadow: 6px 6px 0px var(--accent-red);
    transition: transform 0.2s ease;
}

.stat-box:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px var(--accent-red);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-yellow);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}

@media (max-width: 900px) {
    .about-section {
        padding: 4rem 5%;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .about-image-wrapper {
        max-width: 450px;
        margin: 0 auto;
    }
}


/* =========================================
   İLETİŞİM BÖLÜMÜ
   ========================================= */
.contact-section {
    padding: 6rem 4% 2rem 10%;
    /* Çarpıcı olması için arka planı sarı yaptık */
    background-color: var(--accent-yellow);
    color: var(--text-color);
    border-top: 2px solid var(--text-color);
}

.contact-section .section-header h2 {
    color: var(--text-color);
}

.contact-section .line {
    background: var(--text-color);
}

.contact-section .mono-text {
    background: var(--text-color);
    color: var(--accent-yellow);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.contact-text .title {
    font-size: clamp(3.5rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 0.9;
}

.contact-text p {
    font-size: 1.25rem;
    max-width: 400px;
    line-height: 1.5;
    font-weight: 600;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background-color: var(--bg-color);
    border: 2px solid var(--text-color);
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 6px 6px 0px var(--text-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0px var(--accent-blue);
    background-color: var(--text-color);
    color: var(--bg-color);
}

.contact-card:hover .contact-label {
    color: var(--accent-yellow);
}

.contact-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    width: 100px;
}

.contact-value {
    font-weight: 600;
    font-size: 1.1rem;
    flex-grow: 1;
}

.contact-card .arrow {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: var(--font-mono);
}

.footer {
    text-align: center;
    border-top: 2px solid var(--text-color);
    padding-top: 2rem;
}

.footer .mono-text {
    background: transparent;
    color: var(--text-color);
    opacity: 0.8;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .contact-label {
        width: auto;
    }
}


/* =========================================
   PROJE DETAY SAYFASI
   ========================================= */
.project-hero {
    padding: 4rem 4% 4rem 4%;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    border-bottom: 2px solid var(--text-color);
    position: relative;
}

.project-title {
    font-size: clamp(3rem, 10vw, 8rem);
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    z-index: 2;
    /* Metin stroke efekti - pop art hissi için */
    text-shadow: 4px 4px 0px white; 
    line-height: 0.9;
}

.main-render-placeholder {
    flex-grow: 1;
    border: 2px solid var(--text-color);
    background-color: var(--bg-color);
    box-shadow: 12px 12px 0px var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    letter-spacing: 2px;
    z-index: 2;
}

.project-story {
    padding: 6rem 4% 6rem 10%;
    background-color: var(--bg-color);
    border-bottom: 2px solid var(--text-color);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.story-title h2 {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.story-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 500;
}

.project-details {
    padding: 8rem 4% 8rem 10%;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    gap: 8rem; /* Detaylar arası geniş boşluk (Minimalizm) */
}

.detail-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* İkinci ve dördüncü sıraları ters çevirip asimetrik ve modern bir düzen oluşturuyoruz */
.detail-row.reverse {
    grid-template-columns: 1fr 1.5fr;
}
.detail-row.reverse .detail-image {
    order: 2;
}
.detail-row.reverse .detail-text {
    order: 1;
}

.detail-image {
    border: 2px solid var(--text-color);
    box-shadow: 10px 10px 0px var(--text-color);
    /* Fotoğrafların kırpılmaması için aspect-ratio kaldırıldı, doğal boyutu alacak */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 1.2rem;
}

.detail-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--text-color);
    color: var(--bg-color);
    display: inline-block;
    padding: 5px 15px;
}

.detail-text p {
    font-size: 1.15rem;
    line-height: 1.6;
}

/* =========================================
   ANA SAYFA HOVER (AÇILIR MENÜ) EFEKTİ
   ========================================= */
.project-card {
    position: relative;
    overflow: hidden;
    text-decoration: none; /* Link oldukları için altı çizili olmasın */
}

/* İçerideki popup menü */
.hover-preview {
    position: absolute;
    bottom: -100%; /* Başlangıçta gizli */
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.95);
    color: white;
    padding: 2rem;
    transition: bottom 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border-top: 2px solid var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(5px);
}

.project-card:hover .hover-preview {
    bottom: 0; /* Üzerine gelince yukarı kayarak açılır */
}

.hover-preview h4 {
    color: var(--accent-yellow);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.hover-preview p {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.preview-btn {
    padding: 8px 16px;
    background: white;
    color: black;
    font-weight: bold;
    border: 2px solid black;
    font-family: var(--font-mono);
    box-shadow: 4px 4px 0px var(--accent-red);
}

/* Sayfa Geçişleri (View Transitions) için ayarlar */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.5s;
}

@media (max-width: 900px) {
    .story-grid, .detail-row, .detail-row.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .detail-row.reverse .detail-image {
        order: 1; /* Mobilde her zaman fotoğraf üstte olsun */
    }
    .detail-row.reverse .detail-text {
        order: 2;
    }
    
    .project-hero {
        min-height: 60vh;
    }
}

/* =========================================
   TELEFON EKRANLARI (Ekstra Mobil Ayarları)
   ========================================= */
@media (max-width: 600px) {
    /* Navbar düzenlemesi */
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }

    /* Başlık boyutlarını taşmaması için küçültme */
    h1.title {
        font-size: clamp(2.5rem, 13vw, 4rem);
        word-break: break-word;
    }
    
    /* Bölüm başlıklarındaki çizgilerin alt satıra inmesi */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .line {
        width: 100%;
        flex-grow: 0;
    }
    
    /* Hakkımda bölümündeki istatistik kartlarının alt alta gelmesi */
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* İletişim ve proje detaylarındaki devasa yazıların küçültülmesi */
    .project-title {
        font-size: 2.5rem;
    }
    
    .story-title h2 {
        font-size: 2.2rem;
    }
    
    .contact-text .title {
        font-size: 2.5rem;
    }
}


/* Proje kapak görsellerinin çerçeveye tam oturması için */
.project-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Görselin hiçbir yeri kesilmesin diye cover yerine contain yapıldı */
}

/* Detay sayfası ana görselinin mobilde fazla boşluk bırakmaması için ekstra ayar */
@media (max-width: 600px) {
    .project-hero {
        min-height: auto;
        padding-bottom: 2rem;
    }
    .main-render-placeholder {
        margin-top: 2rem;
    }
}
