/* Genel Ayarlar ve Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Ortak Sınıflar */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.bg-light {
    background-color: #fff;
}

h2 {
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: #2c3e50;
}

/* Navigasyon Menüsü */
.navbar {
    background-color: #fff;
    color: #333;
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
}

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

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar ul li a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: #3498db;
}

/* Bölüm Genel Ayarları */
section {
    padding: 100px 0; /* Navbar için üstten boşluk */
    min-height: 80vh; /* Her bölüm ekranın çoğunu kaplasın */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero (Anasayfa) */
#home {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://via.placeholder.com/1920x1080') no-repeat center center/cover;
    color: #fff;
    height: 100vh;
}

#home h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

/* Kart Yapısı (Deneyim ve Projeler için) */
.card {
    background: #fff;
    padding: 20px;
    margin: 15px 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Yetenekler Listesi */
.skills-list {
    list-style: none;
}

/* Footer */
footer {
    background: #fff;
    color: #333;
    text-align: center;
    padding: 20px 0;
}

/* --- index.html'den Taşınan Stiller --- */

/* Dark Mode Stilleri */
html, body {
    overflow-x: hidden; /* Mobilde yatay taşmayı ve beyaz boşlukları engelle */
}
body.dark-mode {
    background-color: #001f3f; /* Lacivert Arka Plan */
    color: #fff;
}
body.dark-mode .navbar, 
body.dark-mode footer {
    background-color: #001f3f;
    color: #fff;
}
body.dark-mode .card {
    background-color: #003366; /* Kartlar için biraz daha açık lacivert */
    color: #fff;
}
body.dark-mode .bg-light {
    background-color: #001f3f;
}
body.dark-mode .navbar a, body.dark-mode .logo, body.dark-mode footer a {
    color: #fff;
}
#theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 10px;
    color: inherit;
}
/* Profil Resmi Pulse Animasyonu */
@keyframes pulse-border {
    0% {
        box-shadow: 0 4px 10px rgba(0,0,0,0.2), 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 4px 10px rgba(0,0,0,0.2), 0 0 0 20px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 4px 10px rgba(0,0,0,0.2), 0 0 0 0 rgba(255, 255, 255, 0);
    }
}
.profile-img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    animation: pulse-border 2s infinite;
    transition: transform 0.3s ease;
}
.profile-img:hover {
    transform: scale(1.05);
}
#home .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 30px;
}
.home-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: 60px;
}
@media (max-width: 768px) {
    .home-content {
        flex-direction: column;
        text-align: center;
    }
}
/* --- Yeni Eklenen Stiller --- */

/* Navigasyon Scroll Efekti */
.navbar {
    background-color: transparent !important; /* Başlangıçta şeffaf */
    box-shadow: none;
    transition: all 0.3s ease;
}
.navbar .logo, .navbar ul li a, #theme-toggle {
    color: #fff !important; /* Başlangıçta yazılar beyaz */
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Scroll olunca devreye girecek sınıf */
.navbar.scrolled {
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar.scrolled .logo, .navbar.scrolled ul li a, .navbar.scrolled #theme-toggle {
    color: #333 !important; /* Scroll olunca yazılar siyah */
    text-shadow: none;
}

/* İsim ve Animasyonlu Yazı */
#home h1 {
    font-size: 4.5rem; /* İsmi büyüttük */
    margin-bottom: 10px;
}
.typing-text {
    font-size: 1.8rem; /* Alt yazı boyutu */
    font-weight: 500;
    color: #f0f0f0;
    min-height: 35px; /* Kaymayı önlemek için */
}
.bio-text {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin: 15px 0 25px 0;
    max-width: 600px;
}
/* Sosyal Medya İkonları */
.social-icons {
    margin: 20px 0;
}
.social-icons a {
    color: #fff;
    font-size: 2rem;
    margin-right: 20px;
    transition: transform 0.3s ease;
    display: inline-block;
}
.social-icons a:hover {
    transform: scale(1.2);
    color: #3498db;
}
/* Yukarı Çık Butonu */
#scrollTopBtn {
    display: none; /* Başlangıçta gizli */
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 1.2rem;
    border: none;
    outline: none;
    background-color: #3498db;
    color: white;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.3s;
}
#scrollTopBtn:hover {
    background-color: #2980b9;
    transform: scale(1.1);
}
/* Aşağı Kaydır Butonu (Scroll Down) */
.scroll-down-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    text-decoration: none;
    z-index: 10;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}
/* Yetenekler Bölümü Yeni Tasarım */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    text-align: left;
}
.skill-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    display: inline-block;
}
.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.skill-badge {
    background-color: #e3f2fd; /* Açık Mavi */
    color: #1565c0;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
}
.skill-badge:hover {
    transform: translateY(-3px);
    background-color: #3498db;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
/* Dark Mode Uyumu */
body.dark-mode .skill-badge {
    background-color: #1a2639;
    color: #90caf9;
    border: 1px solid #34495e;
}
body.dark-mode .skill-badge:hover {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}
/* Sayfa Açılış Animasyonu (Fade-in) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
section {
    animation: fadeIn 1.5s ease-out;
}
/* Progress Bar (İlerleme Çubuğu) */
.progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
}
.progress-bar {
    height: 4px;
    background: #3498db;
    width: 0%;
    transition: width 0.1s;
}
/* İletişim Kartları Tasarımı */
.contact-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.contact-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    width: 300px;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}
.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.contact-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}
.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}
/* Dark Mode için İletişim Kartları */
body.dark-mode .contact-card {
    background-color: #1a2639;
    color: #fff;
    border-color: #34495e;
}
body.dark-mode .contact-card h3 {
    color: #fff;
}
body.dark-mode .footer-left h3,
body.dark-mode .footer-right a {
    color: #fff;
}
body.dark-mode .footer-content {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Footer Düzenlemeleri */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.footer-left {
    text-align: left;
}
.footer-left h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #333;
}
.footer-left p {
    opacity: 0.8;
    font-size: 1rem;
    margin: 0;
}
.footer-right a {
    color: #fff;
    font-size: 1.5rem;
    margin-left: 20px;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}
.footer-right a:hover {
    color: #3498db;
    transform: scale(1.2);
}
.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .footer-left {
        text-align: center;
    }
    .footer-right a {
        margin: 0 10px;
    }
}

/* Hakkımda Bölümü Özel Stilleri */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
}
.about-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin: 40px 0;
}
.detail-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}
.detail-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #3498db;
}
.detail-box i {
    font-size: 2.2rem;
    color: #3498db;
    margin-bottom: 15px;
}
.detail-box h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}
.detail-box p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* Dark Mode Hakkımda */
body.dark-mode .about-text p {
    color: #d0d0d0;
}
body.dark-mode .detail-box {
    background: #112240; /* Koyu lacivert */
    border-color: #233554;
}
body.dark-mode .detail-box h4 {
    color: #e6f1ff;
}
body.dark-mode .detail-box p {
    color: #8892b0;
}

/* Navbar CV Butonu */
.nav-btn-cv {
    border: 2px solid #3498db;
    padding: 8px 20px !important;
    border-radius: 25px;
    margin-left: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.nav-btn-cv:hover {
    background-color: #3498db;
    color: #fff !important;
    text-shadow: none !important;
}

/* Deneyim Bölümü Yeni Tasarım */
.experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}
.experience-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 5px solid #3498db;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease;
}
.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.experience-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.experience-card.visible:hover {
    transform: translateY(-5px);
}
.exp-date {
    font-size: 0.85rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.exp-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 700;
}
.exp-company {
    font-size: 1.1rem;
    color: #3498db;
    margin-bottom: 15px;
    font-weight: 500;
}
.exp-company a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}
.exp-company a:hover {
    opacity: 0.7;
    text-decoration: underline;
}
.exp-desc {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
}
.exp-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.exp-tech span {
    background: #f0f2f5;
    color: #555;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}
/* Dark Mode Deneyim */
body.dark-mode .experience-card {
    background-color: #112240;
    box-shadow: none;
}
body.dark-mode .exp-title {
    color: #e6f1ff;
}
body.dark-mode .exp-desc {
    color: #a8b2d1;
}
body.dark-mode .exp-tech span {
    background-color: #233554;
    color: #ccd6f6;
}

/* Projeler Bölümü Yeni Tasarım */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.project-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eee;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -15px rgba(2,12,27,0.2);
}
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.folder-icon {
    font-size: 2.5rem;
    color: #3498db;
}
.project-links a {
    color: #555;
    font-size: 1.3rem;
    margin-left: 15px;
    transition: color 0.3s;
}
.project-links a:hover {
    color: #3498db;
}
.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 700;
}
.project-card p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.6;
}
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: #888;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

/* Dark Mode Projeler */
body.dark-mode .project-card {
    background-color: #112240;
    border-color: #233554;
    box-shadow: 0 10px 30px -15px rgba(0,0,0,0.7);
}
body.dark-mode .project-card h3 {
    color: #e6f1ff;
}
body.dark-mode .project-card p {
    color: #a8b2d1;
}
body.dark-mode .project-links a {
    color: #ccd6f6;
}
body.dark-mode .project-links a:hover {
    color: #3498db;
}

/* İletişim Formu Stilleri */
.contact-form-box {
    max-width: 700px;
    margin: 40px auto 0;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}
.form-group {
    margin-bottom: 20px;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}
.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}
.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* Dark Mode Form */
body.dark-mode .contact-form-box {
    background-color: #1a2639;
    border-color: #34495e;
}
body.dark-mode .form-group label {
    color: #e6f1ff;
}
body.dark-mode .form-group input, 
body.dark-mode .form-group textarea {
    background-color: #112240;
    border-color: #233554;
    color: #fff;
}
body.dark-mode .form-group input:focus, 
body.dark-mode .form-group textarea:focus {
    border-color: #3498db;
}

/* Form Durum Mesajı */
#status-message {
    margin-top: 15px;
    font-weight: 600;
    display: none; /* Başlangıçta gizli */
}

/* Alt Navigasyon Menüsü (Bottom Navigation) */
.bottom-nav {
    display: none; /* Masaüstünde gizli */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Yarı şeffaf */
    backdrop-filter: blur(10px); /* Buzlu cam efekti */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1002;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #eee;
}
.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #555;
    font-size: 0.8rem;
    transition: color 0.3s;
}
.bottom-nav a i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}
.bottom-nav a:hover, .bottom-nav a:active {
    color: #3498db;
}
/* Dark Mode Bottom Nav */
body.dark-mode .bottom-nav {
    background-color: rgba(0, 31, 63, 0.8);
    border-top-color: #34495e;
}
body.dark-mode .bottom-nav a {
    color: #a8b2d1;
}
body.dark-mode .bottom-nav a:hover {
    color: #3498db;
}

/* --- Mobil Uyumluluk (Responsive) --- */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    z-index: 1001;
}
.navbar.scrolled .hamburger {
    color: #333;
}

@media (max-width: 768px) {
    /* Hamburger Menü Görünür Olsun */
    .hamburger {
        display: block;
    }
    /* Menü Linklerini Gizle ve Dikey Yap */
    .navbar .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.9); /* Hafif şeffaf beyaz */
        backdrop-filter: blur(10px); /* Buzlu cam efekti */
        -webkit-backdrop-filter: blur(10px); /* Safari desteği */
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
    }
    .navbar .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 15px 0;
    }
    .navbar.scrolled .nav-links {
        background-color: #fff;
    }
    /* Dark Mode Mobil Menü */
    body.dark-mode .nav-links,
    body.dark-mode .navbar.scrolled .nav-links {
        background-color: rgba(0, 31, 63, 0.9); /* Hafif şeffaf lacivert */
    }
    body.dark-mode .navbar.scrolled .hamburger {
        color: #fff;
    }
    
    /* Hero ve Profil Resmi Mobil Ayarları */
    #home {
        height: auto !important; /* Mobilde içeriğe göre uzasın, sıkışmasın */
        min-height: 100vh;
        padding-top: 130px; /* Navbar üstte kalmasın */
        padding-bottom: 60px;
    }
    #home h1 { font-size: 2.2rem; }
    .typing-text { font-size: 1.2rem; }
    .profile-img { 
        width: 200px; 
        height: 200px;
        animation: none; /* Mobilde animasyonu kapat */
    }
    .home-content { 
        gap: 30px; 
        flex-direction: column;
        text-align: center;
    }
    
    /* Grid ve Kart Düzenlemeleri - Tek Sütun Zorlaması */
    .project-grid, .skills-grid {
        grid-template-columns: 1fr !important; /* Yan yana gelmeye çalışmasınlar */
    }
    .experience-card, .project-card, .skill-card {
        padding: 20px; /* Mobilde kart iç boşluğunu azalt */
    }
    h2 { font-size: 2rem; } /* Başlıkları mobilde biraz küçült */
    
    /* İletişim Kartları Genişliği */
    .contact-card { width: 100%; }

    /* Mobilde Hakkımda'ya giden butonu (aşağı ok) gizle */
    .scroll-down-btn {
        display: none;
    }

    /* Alt Menü Görünürlüğü ve Düzeni */
    .bottom-nav {
        display: flex;
    }
    footer {
        padding-bottom: 80px; /* Alt menü için yer aç */
    }
    #scrollTopBtn {
        bottom: 80px; /* Butonu yukarı taşı */
    }
}