/* GENEL AYARLAR */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-padding-top: 100px; /* Menü üzerine binmesin diye boşluk */
}

:root {
    --bg-color: #15191e;          
    --second-bg-color: #1e252d;   
    --text-color: #e3e3e3;        
    --main-color: #00d2ff;        /* Neon Mavi */
    --hover-color: #00a8cc;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER / NAVBAR */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(21, 25, 30, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    color: var(--text-color);
    font-weight: 700;
}

.logo span {
    color: var(--main-color);
}

.navbar a {
    font-size: 16px;
    color: var(--text-color);
    margin-left: 30px;
    font-weight: 500;
    transition: .3s;
    position: relative;
}

.navbar a:hover, .navbar a.active {
    color: var(--main-color);
}

.navbar a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--main-color);
    transition: width .3s;
}

.navbar a:hover::after, .navbar a.active::after {
    width: 100%;
}

.menu-btn {
    font-size: 28px;
    color: var(--text-color);
    display: none;
    cursor: pointer;
}

/* HERO SECTION */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; 
}

.home-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.home-content {
    max-width: 600px;
}

.home-content h3 {
    font-size: 26px;
    font-weight: 700;
    opacity: 0.9;
}

.home-content h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin: 10px 0;
    background: linear-gradient(to right, #fff, var(--main-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-content p {
    font-size: 16px;
    margin: 20px 0 30px;
    line-height: 1.6;
    color: #b0b0b0;
}

/* Sosyal Medya */
.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--main-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--main-color);
    margin: 0 15px 30px 0;
    transition: all .4s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--main-color);
    transform: translateY(-5px);
}

/* Butonlar */
.btn-group {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--main-color);
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
    font-size: 16px;
    color: #15191e;
    font-weight: 600;
    transition: .4s ease;
}

.btn:hover {
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--main-color);
    color: #15191e;
}

/* Home Görsel */
.home-img img {
    width: 380px;
    max-width: 100%;
    animation: floatImage 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.2));
}

@keyframes floatImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* Başlık Stili */
.heading {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--main-color);
    border-radius: 5px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 50px;
    color: #aaa;
    margin-top: -30px;
}

/* HAKKIMDA */
.about {
    background: var(--second-bg-color);
    padding: 100px 0;
}

.about-content {
    display: flex;
    justify-content: center;
}

.about-card {
    background: rgba(255,255,255,0.03);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: flex-start;
    gap: 30px;
    max-width: 900px;
    transition: .4s ease;
}

.about-card:hover {
    border-color: var(--main-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.about-icon {
    font-size: 50px;
    color: var(--main-color);
    background: rgba(0, 210, 255, 0.1);
    padding: 20px;
    border-radius: 50%;
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.about-text p {
    font-size: 15px;
    line-height: 1.7;
    color: #bbb;
}

/* UZMANLIK ALANLARI */
.services {
    padding: 100px 0;
    background: var(--bg-color);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-box {
    background: var(--second-bg-color);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: .4s ease;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--main-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: .4s;
}

.service-box:hover::before {
    transform: scaleX(1);
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(0, 210, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    transition: .4s;
}

.service-box:hover .icon-box {
    background: var(--main-color);
}

.service-box:hover .icon-box i {
    color: #15191e;
}

.service-box i {
    font-size: 30px;
    color: var(--main-color);
}

.service-box h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #fff;
}

.service-box p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
}

/* PROJELER */
.portfolio-page {
    padding: 120px 0 50px;
    min-height: 80vh;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.portfolio-box {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.portfolio-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.portfolio-box:hover img {
    transform: scale(1.1);
}

.portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 20px 30px;
    opacity: 0;
    transition: .5s ease;
    text-align: left;
}

.portfolio-box:hover .portfolio-layer {
    opacity: 1;
}

.portfolio-layer h4 {
    font-size: 22px;
    color: var(--main-color);
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: .5s;
}

.portfolio-box:hover .portfolio-layer h4 {
    transform: translateY(0);
}

.portfolio-layer p {
    font-size: 14px;
    color: #ddd;
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: .5s .1s;
}

.portfolio-box:hover .portfolio-layer p {
    transform: translateY(0);
}

.portfolio-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    color: #000;
}

/* İLETİŞİM */
.contact-page {
    padding: 120px 0 50px;
    min-height: 80vh;
}

.contact-wrapper {
    display: flex;
    justify-content: center;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.info-box {
    background: var(--second-bg-color);
    padding: 40px;
    width: 300px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: .4s;
}

.info-box:hover {
    border-color: var(--main-color);
    transform: translateY(-5px);
}

.info-box i {
    font-size: 35px;
    color: var(--main-color);
    margin-bottom: 20px;
}

.btn-sm {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 25px;
    border: 1px solid var(--main-color);
    color: var(--main-color);
    border-radius: 20px;
    font-size: 14px;
    transition: .3s;
}

.btn-sm:hover {
    background: var(--main-color);
    color: #15191e;
}

/* FOOTER */
.footer {
    padding: 25px 0;
    background: #111;
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-top: auto;
}

/* =====================================
   ANASAYFA BLOG BÖLÜMÜ & SIDEBAR TASARIMI
   ===================================== */
.home-blog-section {
    padding: 100px 0;
    background: var(--second-bg-color);
    border-top: 1px solid rgba(255,255,255,0.02);
}

.home-blog-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Sol 2 birim, Sağ 1 birim genişlik */
    gap: 40px;
    align-items: start;
}

.section-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--main-color);
    border-left: 3px solid var(--main-color);
    padding-left: 15px;
}

/* Blog Kart (Yatay) */
.blog-card {
    background: var(--bg-color);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: .4s;
    margin-bottom: 25px;
}

.blog-card.horizontal-card {
    display: flex;
    flex-direction: row;
    height: 180px;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--main-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.blog-img {
    position: relative;
    width: 40%;
    overflow: hidden;
}

.horizontal-card .blog-img {
    width: 35%;
    height: 100%;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.blog-card:hover .blog-img img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--main-color);
    color: #15191e;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
}

.blog-content {
    padding: 20px;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.horizontal-card .blog-content {
    width: 65%;
}

.blog-category {
    font-size: 11px;
    color: var(--main-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.blog-content h3 {
    margin: 5px 0 10px;
    font-size: 18px;
    line-height: 1.3;
}

.blog-content h3 a {
    color: #fff;
    transition: .3s;
}

.blog-content h3 a:hover {
    color: var(--main-color);
}

.blog-content p {
    font-size: 13px;
    color: #bbb;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2 satırda sınırla */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 13px;
    color: var(--main-color);
    font-weight: 600;
}

.read-more i {
    margin-left: 5px;
    transition: .3s;
}

.read-more:hover i {
    margin-left: 10px;
}

.full-width-btn {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

/* SIDEBAR WIDGETS */
.sidebar-widget {
    background: var(--bg-color);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.category-list li {
    list-style: none;
    margin-bottom: 12px;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    color: #bbb;
    font-size: 14px;
    transition: .3s;
}

.category-list li a span {
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.category-list li a:hover {
    color: var(--main-color);
    transform: translateX(5px);
}

/* Popüler Yazılar (Küçük) */
.popular-post {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pp-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.pp-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp-content {
    display: flex;
    flex-direction: column;
}

.pp-content a {
    font-size: 14px;
    color: #e3e3e3;
    font-weight: 500;
    line-height: 1.4;
    transition: .3s;
    margin-bottom: 5px;
}

.pp-content a:hover {
    color: var(--main-color);
}

.pp-content span {
    font-size: 11px;
    color: #888;
}

/* --- BLOG SAYFASI GENEL KART AYARI --- */
/* (blog.html içindeki kartlar dikey olsun diye) */
.blog-page .blog-card {
    display: block; /* Anasayfadaki flex yapısını ez */
    height: auto;
}
.blog-page .blog-img {
    width: 100%;
    height: 220px;
}
.blog-page .blog-content {
    width: 100%;
}

/* --- DETAY VE TEKİL YAZI STİLLERİ --- */
.blog-single { padding: 120px 0 50px; min-height: 100vh; }
.back-link { color: #aaa; font-size: 14px; margin-bottom: 30px; display: inline-block; }
.back-link:hover { color: var(--main-color); }
.article-header { text-align: center; max-width: 800px; margin: 0 auto 40px; }
.article-category { color: var(--main-color); font-size: 14px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; display: block; }
.article-header h1 { font-size: 36px; margin-bottom: 20px; line-height: 1.3; }
.article-meta span { margin: 0 10px; font-size: 14px; color: #888; }
.article-image {
    width: 100%;
    height: 500px; /* Alanın yüksekliği sabit kalsın */
    background-color: var(--second-bg-color); /* Resim kenarlarında boşluk kalırsa şık dursun */
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 50px;
    
    /* Resmi kutunun tam ortasına hizala */
    display: flex;
    justify-content: center;
    align-items: center;
}

.article-image img {
    max-width: 100%;  /* Resim genişliği kutuyu asla geçmesin */
    max-height: 100%; /* Resim yüksekliği 500px'i asla geçmesin */
    width: auto;      /* En-boy oranını koru (Sündürme yapma) */
    height: auto;     /* En-boy oranını koru */
    object-fit: contain; /* Resmi kutunun içine sığdır */
}
.article-content { max-width: 800px; margin: 0 auto; font-size: 16px; line-height: 1.8; color: #ddd; }
.article-content p { margin-bottom: 20px; }
.article-content .lead { font-size: 20px; color: #fff; font-weight: 300; margin-bottom: 40px; border-left: 3px solid var(--main-color); padding-left: 20px; }
.article-content h2 { font-size: 24px; color: #fff; margin: 40px 0 20px; }
.article-content h3 { font-size: 20px; color: #fff; margin: 30px 0 15px; }
.article-content ul { margin-bottom: 20px; padding-left: 20px; }
.article-content li { margin-bottom: 10px; list-style-type: disc; }
pre { background: #0d1117; padding: 20px; border-radius: 10px; overflow-x: auto; border: 1px solid rgba(255,255,255,0.1); margin-bottom: 30px; }
code { font-family: 'Courier New', Courier, monospace; color: #c9d1d9; font-size: 14px; }
.share-post { max-width: 800px; margin: 50px auto 0; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 15px; }
.share-post p { margin: 0; color: #aaa; }
.share-post a { color: #fff; font-size: 18px; transition: .3s; }
.share-post a:hover { color: var(--main-color); }

/* MOBİL UYUMLULUK */
@media (max-width: 991px) {
    .home-img img { width: 350px; }
    .home-blog-wrapper { grid-template-columns: 1fr; } /* Mobilde tek sütun yap */
}

@media (max-width: 768px) {
    .menu-btn { display: block; }
    .navbar { position: absolute; top: 100%; left: 0; width: 100%; padding: 1rem 3%; background: var(--bg-color); border-top: 1px solid rgba(255,255,255,0.1); display: none; }
    .navbar.active { display: block; }
    .navbar a { display: block; margin: 20px 0; font-size: 18px; }
    .home-container { flex-direction: column-reverse; text-align: center; }
    .home-content { margin-top: 40px; }
    .home-img img { width: 280px; }
    .btn-group { justify-content: center; }
    .about-card { flex-direction: column; text-align: center; }
    .about-icon { margin: 0 auto; }
    .blog-card.horizontal-card { flex-direction: column; height: auto; }
    .horizontal-card .blog-img, .horizontal-card .blog-content { width: 100%; }
    .horizontal-card .blog-img { height: 200px; }
    .article-header h1 { font-size: 28px; }
    .blog-page, .blog-single { padding-top: 100px; }
}