/* GENEL AYARLAR */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: #fdfbf7; color: #333; padding-top: 70px; transition: background-color 0.3s, color 0.3s; }

/* NAVBAR */
.navbar {
    position: fixed; top: 0; width: 100%; height: 70px;
    background-color: #2c5e41; display: flex; justify-content: space-between;
    align-items: center; padding: 0 50px; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.logo { color: white; font-size: 1.5rem; font-weight: bold; }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links button {
    background: none; border: none; color: white; font-size: 1rem;
    cursor: pointer; padding: 10px 15px; transition: 0.3s;
}
.nav-links button:hover, .nav-links button.active-btn {
    background-color: #a8d5ba; color: #2c5e41; border-radius: 5px; font-weight: bold;
}
@media (max-width: 768px) {
    .navbar { padding: 0 15px; }
    .nav-links { gap: 5px; }
    .nav-links button { padding: 5px; font-size: 0.8rem; }
    .logo { font-size: 1.2rem; }
}

/* SLIDER ALANI */
.slider-container {
    position: relative; 
    width: 100%; 
    max-width: 1000px;
    height: 400px; 
    margin: 20px auto; 
    overflow: hidden; 
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.slider-wrapper { 
    display: flex; 
    transition: transform 0.5s ease-in-out; 
    height: 100%; 
}

.slider-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;      
    object-position: center; 
    min-width: 100%;        
    flex-shrink: 0;         
}

.prev-btn, .next-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5); color: white; border: none;
    padding: 15px; cursor: pointer; font-size: 1.5rem; border-radius: 50%;
    z-index: 10;
    transition: background-color 0.3s;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(0,0,0,0.8);
}

.prev-btn { left: 20px; } 
.next-btn { right: 20px; }

/* SAYFA YAPISI */
.sayfa-bolumu { padding: 20px; animation: fadeIn 0.5s; }
.gizli { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* HEADER-SEARCH */
header { text-align: center; margin: 30px 0; color: #2c5e41; }
.search-container { text-align: center; margin-bottom: 30px; }
#search-input { padding: 12px; width: 60%; border: 2px solid #a8d5ba; border-radius: 25px; outline: none; transition: 0.3s; }
#search-input:focus { border-color: #2c5e41; box-shadow: 0 0 8px rgba(44, 94, 65, 0.2); }

/* ÇİÇEK LİSTESİ */
.flower-container { 
    display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; 
    max-width: 1200px; margin: 0 auto; min-height: 600px; align-content: flex-start; 
}
.card { background: white; border-radius: 15px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); width: 300px; overflow: hidden; transition: transform 0.3s, background-color 0.3s; height: fit-content; }
.card:hover { transform: translateY(-5px); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.card-title { color: #2c5e41; margin-bottom: 10px; font-size: 1.2rem; }
.card-info { font-size: 0.9rem; margin-bottom: 8px; line-height: 1.4; }

/* PARALLAX */
.parallax-banner {
    background-image: url('https://images.unsplash.com/photo-1501004318641-b39e6451bec6?w=1600');
    height: 250px; background-attachment: fixed; background-position: center;
    background-repeat: no-repeat; background-size: cover; position: relative;
    margin: 40px 0; display: flex; align-items: center; justify-content: center;
}
.parallax-banner .overlay { background: rgba(0, 0, 0, 0.4); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.parallax-banner h2 { color: white; font-size: 2rem; font-style: italic; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }

/* FİLTRE BUTONLARI */
.filter-btn { padding: 8px 16px; margin: 5px; border: 2px solid #2c5e41; background-color: white; color: #2c5e41; border-radius: 20px; cursor: pointer; font-weight: 600; transition: 0.3s; }
.filter-btn:hover, .filter-btn.active-filter { background-color: #2c5e41; color: white; }

/* GALERİ */
.galeri-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; max-width: 1000px; margin: 0 auto; }
.galeri-grid img { width: 300px; height: 200px; object-fit: cover; border-radius: 10px; transition: 0.3s; }
.galeri-grid img:hover { transform: scale(1.05); }
.video-container { max-width: 800px; margin: 20px auto; border-radius: 15px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

/* İLETİŞİM */
.contact-box { max-width: 600px; margin: 0 auto; background: white; padding: 40px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.contact-box input, .contact-box textarea { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ccc; border-radius: 5px; }
.gonder-btn { background-color: #2c5e41; color: white; border: none; padding: 10px 20px; cursor: pointer; width: 100%; border-radius: 5px; }

/* HAKKIMIZDA */
.about-container { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 40px; max-width: 1000px; margin: 40px auto; }
.about-text { flex: 1; min-width: 300px; line-height: 1.8; font-size: 1.1rem; }
.dev-card { background: white; width: 300px; padding: 30px; text-align: center; border-radius: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-top: 5px solid #2c5e41; }
.dev-card img { width: 100px; margin-bottom: 15px; }
.skills span { background: #e8f5e9; color: #2c5e41; padding: 5px 10px; border-radius: 15px; font-size: 0.8rem; font-weight: bold; margin: 2px; display: inline-block; }

/* YUKARI ÇIK & FOOTER */
#scrollTopBtn { display: none; position: fixed; bottom: 20px; right: 30px; z-index: 99; font-size: 18px; border: none; background-color: #2c5e41; color: white; cursor: pointer; padding: 15px; border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: 0.3s; }
footer { text-align: center; padding: 20px; margin-top: 40px; background-color: #333; color: white; }

/* DARK MODE */
body.dark-mode { background-color: #1a1a1a; color: #f0f0f0; }
body.dark-mode .navbar { background-color: #143625; }
body.dark-mode .card, body.dark-mode .contact-box, body.dark-mode .dev-card { background-color: #2d2d2d; color: #e0e0e0; }
body.dark-mode .card-title, body.dark-mode .dev-card h3 { color: #81c784; }
body.dark-mode #search-input { background-color: #333; color: white; border-color: #555; }
body.dark-mode .filter-btn { background-color: #2d2d2d; color: #81c784; border-color: #81c784; }
body.dark-mode .filter-btn.active-filter { background-color: #81c784; color: #1a1a1a; }
/* --- POP-UP PENCERE (MODAL) STİLLERİ --- */

/* Modal Arkaplanı */
.modal-arkaplan {
    display: none; /* Varsayılan olarak gizli */
    position: fixed; 
    z-index: 2000; /* En üstte olmalı */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Hafif karartılmış arkaplan */
    padding-top: 50px;
    animation: fadeInModal 0.3s;
}

/* Modal İçerik Kutusu */
.modal-icerik {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%; 
    max-width: 700px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: slideInTop 0.4s;
}

/* Kapatma Butonu */
.kapat-btn {
    color: #aaa;
    float: right;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.kapat-btn:hover,
.kapat-btn:focus {
    color: #2c5e41;
    text-decoration: none;
}

/* Modal Başlık ve Etiketler */
.modal-baslik {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#modalTitle {
    color: #2c5e41;
    margin: 0;
}

.modal-etiket {
    background-color: #a8d5ba;
    color: #2c5e41;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Modal Resim */
#modalImage {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Detay Bölümleri */
.modal-detay, .modal-ek-bilgi {
    padding: 15px;
    margin-bottom: 15px;
    border-left: 5px solid #2c5e41;
    background-color: #f7fff7;
    border-radius: 8px;
}

.modal-detay h3, .modal-ek-bilgi h4 {
    color: #2c5e41;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Animasyonlar */
@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInTop { from { top: -300px; opacity: 0; } to { top: 2%; opacity: 1; }}


/* DARK MODE UYUMLULUĞU */
body.dark-mode .modal-icerik { 
    background-color: #2d2d2d; 
    color: #e0e0e0;
    border-color: #555;
}
body.dark-mode .modal-baslik {
    border-bottom-color: #444;
}
body.dark-mode #modalTitle {
    color: #81c784;
}
body.dark-mode .kapat-btn:hover {
    color: #81c784;
}
body.dark-mode .modal-etiket {
    background-color: #143625;
    color: #81c784;
}
body.dark-mode .modal-detay, body.dark-mode .modal-ek-bilgi {
    background-color: #383838;
    border-left-color: #81c784;
}
body.dark-mode .modal-detay h3, body.dark-mode .modal-ek-bilgi h4 {
    color: #81c784;
}

/* Eylemi tetikleyen buton ekleme */
.card-body { 
    padding: 20px; 
}
.card-detail-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #2c5e41;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}
.card-detail-btn:hover {
    background-color: #143625;
}
body.dark-mode .card-detail-btn {
    background-color: #81c784;
    color: #1a1a1a;
}
body.dark-mode .card-detail-btn:hover {
    background-color: #a8d5ba;
}