/* ==========================================================================
   HAKKIMIZDA SAYFASI - CODEMISK TEMASI
   ========================================================================== */

:root {
    --dark-bg: #121212;
    --primary-green: #39FF14;
    --text-color: #E0E0E0;
    --text-muted: #A0A0A0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    position: relative; /* Overlay referansı için */
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

/* HEADER */
header {
    position: relative;
    width: 100%;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0);
    background: linear-gradient(180deg, rgba(18, 18, 18, 1) 0%, rgba(18, 18, 18, 0.95) 100%);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -1px;
}

.logo-text .highlight {
    color: var(--primary-green);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--primary-green);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* FOOTER */
footer {
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.95) 0%, rgba(18, 18, 18, 1) 100%);
    margin-top: 100px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.markasium-link {
    color: var(--text-color);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.markasium-link:hover {
    color: var(--primary-green);
}

/* MAIN */
main {
    padding-top: 100px;
    padding-bottom: 100px;
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER SECTION */
.about-header {
    position: relative; /* Dekoratif görsel için */
    text-align: center;
    margin-bottom: 80px;
    animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-header h1 .highlight {
    color: var(--primary-green);
}

.about-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* SECTIONS */
section {
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out backwards;
}

section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }

section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #FFF;
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 15px;
}

section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-box {
    background: rgba(57, 255, 20, 0.05);
    border-left: 4px solid var(--primary-green);
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.about-box h3 {
    color: var(--primary-green);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.value-card {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(57, 255, 20, 0.1);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.value-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(57, 255, 20, 0.1);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.value-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 10px;
}

.value-card p {
    color: var(--text-muted);
    margin: 0;
}

/* TEAM SECTION */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-member {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(57, 255, 20, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-member:hover {
    border-color: var(--primary-green);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(57, 255, 20, 0.15);
}

.member-avatar {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.15) 0%, rgba(57, 255, 20, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border-bottom: 1px solid rgba(57, 255, 20, 0.1);
}

.member-info {
    padding: 20px;
}

.member-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 5px;
}

.member-role {
    color: var(--primary-green);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.member-bio {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==========================================================================
   WEBSITE PREVIEW STYLES
   ========================================================================== */

.container-fluid {
    max-width: 100%;
    padding: 0 20px;
}

.website-preview-container {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 40px auto;
}

.website-preview-link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.website-preview-link:hover {
    transform: translateY(-5px);
}

.website-preview-card {
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    border-top: 4px solid var(--primary-green);
}

.website-preview-link:hover .website-preview-card {
    box-shadow: 0 30px 60px rgba(57, 255, 20, 0.15);
    border-color: #8b949e;
    border-top-color: var(--primary-green);
}

.browser-header {
    background-color: #161b22;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #30363d;
}

.browser-dots {
    display: flex;
    gap: 8px;
    margin-right: 20px;
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.browser-dot.red { background-color: #ff5f56; }
.browser-dot.yellow { background-color: #ffbd2e; }
.browser-dot.green { background-color: #27c93f; }

.browser-address-bar {
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 6px 16px;
    color: #8b949e;
    font-size: 14px;
    font-family: monospace;
    flex-grow: 1;
    text-align: center;
}

.preview-content {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
}

/* Use iframe with pointer events none so it doesn't trap clicks */
.preview-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.visit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
}

.visit-overlay span {
    background-color: var(--primary-green);
    color: #000;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(57, 255, 20, 0.3);
}

.website-preview-link:hover .visit-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.website-preview-link:hover .visit-overlay span {
    transform: translateY(0);
    opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-container {
        height: 80px;
    }

    nav ul {
        gap: 15px;
        font-size: 0.9rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    section h2 {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   BIO CARDS STYLES
   ========================================================================== */

.bio-cards-section {
    max-width: 1200px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
}

.bio-card {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(57, 255, 20, 0.1);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
}

.bio-card:hover {
    border-color: var(--primary-green);
    box-shadow: 0 20px 50px rgba(57, 255, 20, 0.1);
    transform: translateY(-5px);
}

.bio-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Emirhan's card has image first in HTML, so default flex-direction works.
   Muhammed's card has text first in HTML, so default flex-direction works.
   Wait, I should check the HTML I inserted.
   Muhammed: text then image.
   Emirhan: image then text.
   So default row direction is fine for both to achieve alternating layout.
*/

.bio-text {
    flex: 1;
}

.bio-image {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(57, 255, 20, 0.2);
    position: relative;
    background: #000;
}

.bio-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bio-card:hover .bio-photo {
    transform: scale(1.05);
}

.bio-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bio-header h2 {
    font-size: 2rem;
    margin: 0;
    border: none;
    padding: 0;
    color: #fff;
}

.bio-badge {
    background: rgba(57, 255, 20, 0.1);
    color: var(--primary-green);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(57, 255, 20, 0.2);
}

.bio-intro {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

.bio-section-title {
    color: var(--primary-green);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(57, 255, 20, 0.2);
    padding-bottom: 5px;
    width: fit-content;
}

.bio-list {
    list-style: none;
    margin-bottom: 30px;
}

.bio-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-muted);
    line-height: 1.5;
}

.bio-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

.bio-list li strong {
    color: #fff;
}

.bio-contact {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-green);
    color: var(--text-muted);
    font-style: italic;
}

@media (max-width: 900px) {
    .bio-container {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
    }

    .bio-image {
        width: 200px;
        height: 200px;
        margin-bottom: 20px;
        order: -1;
    }
    
    .bio-header {
        justify-content: center;
    }
    
    .bio-list li {
        text-align: left;
        display: block; 
    }
    
    .bio-section-title {
        margin-left: auto;
        margin-right: auto;
    }
}


/* ==========================================================================
   NEW LAYOUT STYLES
   ========================================================================== */

.developer-section {
    position: relative; /* Dekoratif görsel için */
    margin-bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.full-width-bio {
    width: 95%;
    max-width: 1600px; /* Match github-split-view max-width */
    margin: 0 auto;
}

/* Override previous bio-card margin */
.bio-card {
    margin-bottom: 0;
}

/* Ensure github-split-view inside developer-section behaves correctly */
.developer-section .github-split-view {
    margin-top: 0;
    padding-bottom: 0;
    gap: 0;
    width: 100%;
}

/* Adjust profile-row to be centered and full width within container */
.profile-row {
    margin: 0 auto;
}


/* YENİ GLOBAL OVERLAY (HER ŞEYİN ÜZERİNDE) */
.global-overlay-image {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 100%; /* Sayfa yüksekliği kadar */
    z-index: 9999 !important; /* En üst katman */
    pointer-events: none; /* Tıklamaları engelle */
    overflow: hidden; /* Görsel taşarsa gizle */
}

.global-overlay-image img {
    width: 100%;
    height: auto; /* Oranını koruyarak uzasın */
    display: block;
    opacity: 0.8; /* İsteğe göre ayarlanabilir */
    mix-blend-mode: normal;
}


/* YEN� GLOBAL OVERLAY (HER �EY�N �ZER�NDE) */
.global-overlay-image {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 100%; /* Sayfa y�ksekli�i kadar */
    z-index: 9999 !important; /* En �st katman */
    pointer-events: none; /* T�klamalar� engelle */
    overflow: hidden; /* G�rsel ta�arsa gizle */
}

.global-overlay-image img {
    width: 100%;
    height: auto; /* Oran�n� koruyarak uzas�n */
    display: block;
    opacity: 0.8; /* �ste�e g�re ayarlanabilir */
    mix-blend-mode: normal;
}
/* ==========================================================================
   YAVAŞ YÜKLENME (FADE-IN) EFEKTİ
   ========================================================================== */

/* 1. Animasyonun Kendisi (Keyframes) */
@keyframes softFadeIn {
    from {
        opacity: 0;
        filter: blur(10px); /* İstersen başta hafif blurlu olur */
    }
    to {
        opacity: 1; /* Container tamamen görünür olur */
        filter: blur(0);
    }
}

/* 2. Global Overlay'e Uygulanması */
.global-overlay-image {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    z-index: 9999 !important;
    pointer-events: none;
    
    /* --- BURASI YENİ KISIM --- */
    opacity: 0; /* Başlangıçta görünmez olsun */
    animation: softFadeIn 1.5s ease-out forwards;
    
    /* Gecikme Süresi: Sayfa açıldıktan kaç saniye sonra başlasın? */
    animation-delay: 0s; 
}

.global-overlay-image img {
    width: 100%;
    height: auto;
    display: block;
    /* Resmin kendi şeffaflığı burada korunur */
    opacity: 1.2; 
    mix-blend-mode: normal;
}
/* ==========================================================================
   DEKORAT�F G�RSELLER (Hakk�m�zda Sayfas�)
   ========================================================================== */

/* 1. Bal�k (Header Yan�) */
.fish-decoration-3 {
    position: absolute;
    right: 12%; /* Ba�l���n sa��nda */
    top: 60%;
    transform: translateY(-50%);
    width: 600px;
    max-width: 28vw;
    z-index: 1;
    pointer-events: none;
}

@keyframes floatFish3 {
    0% { transform: translateY(-50%) rotate(0deg); }
    50% { transform: translateY(-60%) rotate(-5deg); }
    100% { transform: translateY(-50%) rotate(0deg); }
}

/* 2. Fok (Emirhan Kart� Yan�) */
.seal-decoration {
    position: absolute;
    left: 570px; /* Kart�n solunda, hafif d��ar�da */
    bottom: -90px; /* Kart�n alt k�sm�na yak�n */
    width: 400px;
    max-width: 35vw;
    z-index: 5; /* Kart�n �zerinde dursun */
    pointer-events: none;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

@keyframes floatSeal {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* MOB�L UYUMLULUK */
@media (max-width: 992px) {
    /* Mobilde dekoratif g�rselleri gizle veya k���lt */
    .fish-decoration-3, 
    .seal-decoration {
        display: none;
    }
}


/* ==========================================================================
   HAKKIMIZDA OKUNABILIRLIK DUZENLEMELERI (dosya sonuna eklendi)
   Amac: yazilar daha kucuk, ferah ve az yiginli olsun; okumasi kolaylassin.
   ========================================================================== */

/* Daha kucuk ve ferah tipografi */
.bio-card { padding: 32px; }
.bio-header h2 { font-size: 1.6rem; }
.bio-intro {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 26px;
}
.bio-section-title {
    font-size: 1rem;
    margin-top: 28px;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}
.bio-list { margin-bottom: 22px; }
.bio-list li {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 12px;
}
.bio-contact {
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 18px;
}

/* Gorseli kucultelim, metne daha cok yer kalsin */
.bio-image { width: 240px; height: 240px; }

/* Site onizleme kartini biraz kuculttuk (cok buyuktu) */
.website-preview-container { max-width: 760px; }

/* MASAUSTU: maddeleri iki sutuna yayarak alt alta yiginlanmayi azalt */
@media (min-width: 992px) {
    .bio-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 36px;
        row-gap: 4px;
    }
    .bio-list li { margin-bottom: 8px; }
}

/* MOBIL: ortali uzun paragraflari sola yasla, gorseli daha da kucult */
@media (max-width: 900px) {
    .bio-image { width: 150px; height: 150px; }
    .bio-intro, .bio-contact { text-align: left; }
    .bio-list li { text-align: left; }
    .bio-card { padding: 24px 20px; }
    .developer-section { gap: 28px; margin-bottom: 64px; }
    .website-preview-container { margin: 24px auto; }
}