/* ===== Genel Stiller ve Değişkenler ===== */
:root {
    --primary-color: #203470; /* Sizin seçtiğiniz ana renk */
    --secondary-color: #F9F9F9; /* Yumuşak beyaz arkaplan */
    --white-color: #FFFFFF;
    --dark-text-color: #333333;
    --light-text-color: #FFFFFF;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth; /* Sayfa içi linklere pürüzsüz kaydırma */
}

body {
    line-height: 1.6;
    color: var(--dark-text-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

/* Başlık altı çizgisi */
.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

/* ===== Navigasyon ===== */
.navbar {
    background: var(--white-color);
    box-shadow: var(--shadow);
    position: sticky; /* Menüyü yukarı sabitler */
    top: 0;
    width: 100%;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--dark-text-color);
    font-weight: 600;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

/* Aktif link alt çizgisi */
.nav-menu li a::after {
    content: '';
    width: 0;
    height: 2px;
    background: var(--primary-color);
    position: absolute;
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}

.nav-menu li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none; /* Mobil dışında gizli */
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}


/* ===== Ana Sayfa (Hero) Bölümü ===== */
.hero {
    height: 100vh; /* Tam ekran yüksekliği */
    background: url('images/screen-bg.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
}

/* Resim üzerine koyu filtre */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(32, 52, 112, 0.7); /* Ana rengin koyu ve transparan hali */
}

.hero-content {
    position: relative; /* Overlay'in üzerinde kalması için */
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 30px;
}

.hero-content .btn-primary:hover {
    background: var(--white-color);
    border-color: var(--white-color);
    color: var(--primary-color);
}

/* ===== Hakkımda Bölümü ===== */
.hakkimda {
    background: var(--white-color);
}

.hakkimda-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hakkimda-img {
    flex: 1;
    max-width: 350px;
}

.hakkimda-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.hakkimda-text {
    flex: 2;
}

.hakkimda-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.hakkimda-text .quote {
    font-style: italic;
    color: #555;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin: 20px 0;
}

.hakkimda-text .btn {
    margin-top: 20px;
}

/* ===== Beceriler Bölümü ===== */
.beceriler {
    background: var(--secondary-color); /* Yumuşak beyaz arkaplan */
}

.beceriler-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.beceri-kart {
    background: var(--white-color);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.beceri-kart:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.beceri-kart i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.beceri-kart h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* ===== Projeler Bölümü ===== */
.projeler {
    background: url('images/proje-bg.jpg') no-repeat center center/cover;
    position: relative;
    color: var(--light-text-color);
}

/* Resim üzerine koyu filtre */
.proje-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(32, 52, 112, 0.85); /* Ana rengin daha koyu hali */
    z-index: 1;
}

.projeler .container {
    position: relative;
    z-index: 2;
}

.projeler .section-title {
    color: var(--white-color); /* Başlık rengi beyaz */
}
.projeler .section-title::after {
    background: var(--white-color); /* Başlık alt çizgisi beyaz */
}

.projeler-grid {
    display: grid;
    grid-template-columns: 1fr; /* Tek sütun */
    gap: 30px;
}

.proje-kart {
    background: rgba(255, 255, 255, 0.1); /* Hafif transparan beyaz */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(5px); /* Arkaplanı bulanıklaştırma (modern etki) */
}

.proje-kart h4 {
    font-size: 1.5rem;
    color: var(--white-color);
    margin-bottom: 15px;
}

.proje-kart ul {
    list-style: none;
    margin: 15px 0;
}

.proje-kart ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.proje-kart ul li i {
    color: #4CAF50; /* Onay ikonu rengi */
    margin-right: 10px;
}

/* ===== Eğitim & Deneyim Bölümü ===== */
.egitim-deneyim {
    background: var(--white-color);
}
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
/* Zaman çizgisi */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
/* Sol taraf */
.timeline-item:nth-child(odd) {
    left: 0;
}
/* Sağ taraf */
.timeline-item:nth-child(even) {
    left: 50%;
}
/* İkonlar */
.timeline-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    top: 20px;
    z-index: 10;
}
.timeline-item:nth-child(odd) .timeline-icon {
    right: -20px;
}
.timeline-item:nth-child(even) .timeline-icon {
    left: -20px;
}
.timeline-content {
    padding: 20px 30px;
    background: var(--secondary-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
}
.timeline-content h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* ===== İletişim Bölümü ===== */
.iletisim {
    background: var(--secondary-color);
    text-align: center;
}
.iletisim-subtext {
    max-width: 600px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
}
.iletisim .btn {
    font-size: 1.2rem;
}
.social-links {
    margin-top: 30px;
}
.social-links a {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0 15px;
    transition: transform 0.3s;
}
.social-links a:hover {
    transform: scale(1.2);
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 20px 0;
}

/* ===== Duyarlılık (Responsive) ===== */

/* Tablet ve küçük masaüstü */
@media (max-width: 992px) {
    .hakkimda-content {
        flex-direction: column;
        text-align: center;
    }
    .hakkimda-img {
        max-width: 300px;
        margin-bottom: 30px;
    }
    .beceriler-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobil Cihazlar */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.3rem;
    }

    /* Mobil Navigasyon */
    .nav-menu {
        position: fixed;
        left: -100%; /* Başlangıçta ekranın dışında */
        top: 70px;
        flex-direction: column;
        background: var(--white-color);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: left 0.3s ease;
    }
    /* JavaScript ile eklenecek 'active' classı */
    .nav-menu.active {
        left: 0;
    }
    .nav-menu li {
        margin: 20px 0;
        font-size: 1.2rem;
    }
    .hamburger {
        display: block; /* Mobilde göster */
    }
    .hamburger.active .fa-bars {
        display: none;
    }
    .hamburger.active .fa-times {
        display: block !important; /* JS için */
    }
    .hamburger .fa-times {
        display: none;
    }
    
    .beceriler-grid {
        grid-template-columns: 1fr;
    }

    /* Timeline mobilde ortalanır */
    .timeline::after {
        left: 30px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-icon {
        left: 10px;
    }
    .timeline-item:nth-child(odd) .timeline-icon {
        left: 10px;
    }
    .timeline-item:nth-child(even) .timeline-icon {
        left: 10px;
    }
}