/* Genel Stil Ayarları */
:root {
    --bg-dark-primary: #0A0A0A;
    --bg-dark-secondary: #1C1C1E;
    --text-light: #E0E0E0;
    --text-muted: #888888;
    --accent-primary: #007BFF;
    --accent-secondary: #28a745;
    --btn-blog-bg: #4a4a8f;
    --btn-alonay-bg: #2e8b57;
    --border-color: #333333;
    --shadow-light: rgba(0, 0, 0, 0.2);
    --shadow-medium: rgba(0, 0, 0, 0.4);
    --code-editor-bg: #222222;
    --code-text-color: #00e060;
    --line-number-color: #555555;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark-primary);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Header */
header {
    background-color: rgba(10, 10, 10, 0.95);
    padding: 18px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 3px 10px var(--shadow-medium);
    backdrop-filter: blur(5px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 38px;
    filter: brightness(0.95);
}

nav .btn {
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95em;
}

.contact-btn {
    background-color: var(--accent-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.contact-btn:hover {
    background-color: #0069d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.5);
}

/* Hero Section - PHP Kod Alanı */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 100px 0 60px 0;
    text-align: center;
}

.typing-animation-container {
    background-color: var(--code-editor-bg);
    border: 1px solid var(--border-color);
    padding: 15px 0; /* İç paddingi sadece dikeyde bırak, yatayda sıfırla */
    border-radius: 10px;
    /* width: 90%; /* Bu değeri kaldırıyorum */
    max-width: 800px;
    min-width: 800px;
    width: 100%; /* İçeriğin tam genişliğini almasını sağla */
    box-shadow: 0 8px 30px var(--shadow-medium);
    position: relative;
    overflow: hidden;
    display: flex;
    
    /* Sabit yükseklik ve kaydırma çubuğu */
    height: 400px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

/* Kaydırma çubuğu stilizasyonu (Webkit tarayıcılar için) */
.typing-animation-container::-webkit-scrollbar {
    width: 8px;
}

.typing-animation-container::-webkit-scrollbar-track {
    background: #333;
    border-radius: 10px;
}

.typing-animation-container::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

.typing-animation-container::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.line-numbers {
    flex-shrink: 0;
    width: 40px; /* Satır numaraları alanı genişletildi */
    color: var(--line-number-color);
    text-align: right;
    font-family: 'Roboto Mono', monospace;
    font-size: 1.05em;
    line-height: 1.5;
    user-select: none;
    padding-right: 10px;
    padding-left: 10px; /* Soldan da boşluk */
    border-right: 1px solid #333;
}

.line-numbers span {
    display: block; /* Her satır numarasını ayrı bir blok yap */
    counter-increment: line; /* JavaScript ile yöneteceğiz, bu şimdilik pasif */
}


#php-code {
    flex-grow: 1; /* Kalan alanı kapla */
    white-space: pre-wrap;
    word-break: break-all;
    font-family: 'Roboto Mono', monospace;
    font-size: 1.05em;
    color: var(--code-text-color);
    text-align: left;
    display: block;
    line-height: 1.5;
    position: relative;
    padding-left: 15px; /* Kodun soldan boşluğu */
    padding-right: 15px; /* Sağdan da boşluk */
	
}

/* Cursor animasyonu */
#php-code::after {
    content: '|';
    animation: blink-caret 0.75s step-end infinite;
    display: inline-block;
    vertical-align: middle;
    font-size: 1.1em;
    color: var(--text-light);
    margin-left: 3px;
}

@keyframes blink-caret {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}


/* Navigation Section - Butonlar */
.navigation-section {
    padding: 60px 0 100px 0;
    text-align: center;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.nav-btn {
    padding: 18px 35px;
    font-size: 1.15em;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    width: 100%;
    max-width: 350px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nav-btn .url-hint {
    font-size: 0.8em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

.blog-btn {
    background-color: var(--btn-blog-bg);
    color: var(--text-light);
}

.blog-btn:hover {
    background-color: #3f3f7a;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.alonay-btn {
    background-color: var(--btn-alonay-bg);
    color: var(--text-light);
}

.alonay-btn:hover {
    background-color: #26724b;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* Footer */
footer {
    background-color: var(--bg-dark-secondary);
    color: var(--text-muted);
    text-align: center;
    padding: 40px 0;
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    header {
        padding: 15px 0;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .logo img {
        height: 35px;
    }

    nav {
        width: 100%;
        text-align: center;
    }

    .contact-btn {
        width: 70%;
        max-width: 200px;
        font-size: 0.9em;
        padding: 10px 18px;
    }

    .hero-section {
        padding-top: 120px;
        min-height: 80vh;
    }

    .typing-animation-container {
        padding: 15px 0; /* Mobil için paddingi azalt */
        width: 95%; /* Genişlik yüzdesel olacak */
        max-width: 95%; /* Max genişlik sınırlamasını kaldırıyorum */
        min-width: 95%; /* Max genişlik sınırlamasını kaldırıyorum */
        height: 350px;
    }

    .line-numbers {
        width: 35px; /* Mobil için satır numarası genişliğini ayarla */
        font-size: 0.9em;
    }

    #php-code {
        font-size: 0.9em;
        line-height: 1.4;
    }

    .navigation-section {
        padding: 50px 0 80px 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .nav-btn {
        max-width: 80%;
        padding: 15px 25px;
        font-size: 1.05em;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 30px;
    }

    #php-code {
        font-size: 0.8em;
    }

    .contact-btn, .nav-btn {
        padding: 12px 20px;
        font-size: 1em;
    }

    .nav-btn .url-hint {
        font-size: 0.75em;
    }
}