/* --- GENEL AYARLAR --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background: #f4f6f9; color: #333; line-height: 1.6; }
a { text-decoration: none; }
.container { max-width: 1100px; margin: auto; padding: 0 20px; }

/* --- NAVBAR (MENÜ) --- */
nav { 
    background: #2c3e50; 
    padding: 0; 
    position: sticky; 
    top: 0; 
    z-index: 9999; /* En üstte durması için artırdım */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2); 
    height: auto; 
    min-height: 70px;
    display: flex; 
    align-items: center; 
}

nav .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
    flex-wrap: wrap; /* Mobilde taşmaya izin ver */
}

/* --- LOGO --- */
a.logo { 
    font-size: 24px; /* Mobilde taşmasın diye biraz kıstım */
    font-weight: 800; 
    letter-spacing: 1px; 
    color: #f1c40f; 
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.4); 
    display: flex;
    align-items: center;
    height: 70px;
}
.logo span { color: inherit; }

/* --- MENÜ LİSTESİ (PC İÇİN) --- */
nav ul { 
    display: flex; 
    list-style: none; 
    margin: 0;
    padding: 0;
}

nav ul li { position: relative; }

nav ul li a { 
    color: #ecf0f1; 
    padding: 0 15px; 
    font-weight: 500; 
    display: block; 
    line-height: 70px; 
    font-size: 16px;
}
nav ul li a:hover, nav ul li a.active { color: #3498db; }

/* --- HAMBURGER MENÜ BUTONU --- */
.menu-toggle {
    display: none; /* PC'de GİZLİ */
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.1); /* Buton belli olsun diye çerçeve */
    border-radius: 5px;
}

/* --- DROPDOWN (ALT MENÜ) --- */
.dropdown-menu {
    display: none; 
    position: absolute;
    top: 100%; 
    left: 0;
    background-color: #2c3e50; 
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    border-top: 3px solid #3498db;
    flex-direction: column;
    z-index: 10000;
}

/* SADECE PC'DE HOVER İLE AÇILSIN */
@media (min-width: 769px) {
    nav ul li:hover .dropdown-menu { display: flex; }
    .search-box { display: flex; } /* PC'de arama kutusu açık */
}

/* Alt Menü Linkleri */
.dropdown-menu li a {
    line-height: normal;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Arama Kutusu Genel */
.search-box { background: #fff; border-radius: 20px; padding: 5px 15px; align-items: center; max-width: 200px; margin-left: 20px; }
.search-box input { border: none; outline: none; width: 100%; }
.search-btn { background: #3498db; border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; }


/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */
/* --- BURASI MOBİL İÇİN ZORUNLU KISIM (BAK BURAYA) --- */
/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */

@media (max-width: 990px) { /* Tablet ve Telefonu Kapsasın */
    
    /* 1. Hamburger İkonunu Zorla Göster */
    .menu-toggle {
        display: block !important;
    }

    /* 2. Arama Kutusunu Zorla Gizle */
    .search-box {
        display: none !important;
    }

    /* 3. Menüyü Zorla Gizle (Açılana Kadar) */
    nav ul {
        display: none !important; /* Javascript 'aktif' yapana kadar gizli kalacak */
        flex-direction: column;
        width: 100%;
        background-color: #2c3e50;
        text-align: center;
        margin-top: 10px;
        padding-bottom: 20px;
        border-top: 2px solid #3498db;
    }

    /* 4. JAVASCRIPT ÇALIŞINCA BU SINIF GELECEK VE AÇILACAK */
    nav ul.aktif {
        display: flex !important; /* Zorla görünür yap */
    }

    /* Linklerin arasını aç */
    nav ul li a {
        line-height: 50px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    /* Dropdown hep açık dursun ya da tıklanınca gelsin */
    .dropdown-menu {
        position: relative;
        width: 100%;
        box-shadow: none;
        top: 0;
        background: #34495e;
    }
    
    /* Diğer Mobil Ayarlar */
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    .skills-container { transform: scale(0.7); gap: 10px; margin-top: 10px; }
    .about-wrap, .contact-wrap { flex-direction: column; padding: 15px; }
    .about-img img { width: 150px; height: 150px; }
    .grid-layout { grid-template-columns: 1fr; }
    .live-demo, .browser-mockup { width: 100% !important; max-width: 100% !important; }
}

/* Diğer Gerekliler */
.hero-full { height: 90vh; position: relative; background: #1a252f; color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
#tsparticles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-content { position: relative; z-index: 1; }
.hero-content h1 { font-size: 4rem; margin-bottom: 10px; text-shadow: 2px 2px 5px rgba(0,0,0,0.5); }
.hero-content p { font-size: 1.8rem; font-weight: 600; margin-bottom: 25px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.btn { display: inline-block; background: #3498db; color: #fff; padding: 12px 30px; margin: 10px; border-radius: 5px; font-weight: bold; transition: 0.3s; border: none; cursor: pointer; }
.btn:hover { background: #2980b9; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: #1a252f; }
.sub-hero { height: 40vh; background: linear-gradient(-45deg, #1a252f, #2980b9, #8e44ad, #1a252f); background-size: 400% 400%; animation: bgHareket 12s infinite; display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; margin-bottom: -30px; padding-top: 20px; }
@keyframes bgHareket { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.sub-hero h1 { font-size: 3.5rem; text-shadow: 2px 2px 10px rgba(0,0,0,0.4); font-weight: 800; letter-spacing: 2px; }
.page-content { padding: 0 0 60px 0; }
.about-wrap, .grid-layout, .contact-wrap { position: relative; top: -40px; z-index: 10; }
.about-wrap { display: flex; gap: 40px; background: #fff; padding: 40px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); align-items: center; }
.about-img img { width: 250px; height: 250px; object-fit: cover; border-radius: 50%; border: 5px solid #3498db; }
.about-text h3 { margin-bottom: 15px; color: #2c3e50; font-size: 1.8rem; }
.grid-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: 0.3s; }
.card:hover { transform: translateY(-5px); }
.card-img { height: 180px; background: #ddd; display: flex; align-items: center; justify-content: center; color: #777; font-size: 2rem; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-info { padding: 20px; }
.card-info h3 { margin-bottom: 10px; color: #2c3e50; }
.contact-wrap { display: flex; gap: 30px; }
.c-box { flex: 1; background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.form-group { margin-bottom: 15px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; }
footer { background: #2c3e50; color: #ecf0f1; text-align: center; padding: 25px 0; margin-top: 50px; border-top: 4px solid #3498db; font-weight: 500; }
footer p { margin: 0; font-size: 1rem; }
.card-img { position: relative; overflow: hidden; cursor: pointer; }
.overlay { position: absolute; bottom: -100%; left: 0; width: 100%; background: rgba(0, 0, 0, 0.8); color: #fff; padding: 15px; transition: bottom 0.3s ease; text-align: center; font-size: 0.9rem; }
.card-img:hover .overlay { bottom: 0; }
@keyframes yukariGelis { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animasyonlu-yazi { opacity: 0; animation: yukariGelis 1s ease-out forwards; }
.gecikmeli { animation-delay: 0.5s; }
.skills-container { margin-top: 40px; display: flex; justify-content: center; gap: 40px; perspective: 1000px; }
.skill-item { font-size: 4rem; animation: donmeEfekti 6s infinite ease-in-out; cursor: pointer; transition: transform 0.3s; display: flex; align-items: center; justify-content: center; }
.skill-item:hover { transform: scale(1.15); filter: drop-shadow(0 0 15px rgba(255,255,255,0.6)); }
.fa-js { color: #f0db4f; text-shadow: 0 0 20px rgba(240, 219, 79, 0.5); }
.custom-box { width: 64px; height: 64px; font-family: 'Segoe UI', sans-serif; font-weight: 700; font-size: 28px; border-radius: 12px; line-height: 60px; border: 3px solid; box-shadow: 0 0 20px rgba(0,0,0,0.3); }
.cs-box { background: #1e1e1e; color: #a179dc; border-color: #a179dc; box-shadow: 0 0 15px rgba(161, 121, 220, 0.4); }
.ps-box { background: #001e36; color: #31a8ff; border-color: #31a8ff; box-shadow: 0 0 15px rgba(49, 168, 255, 0.4); }
@keyframes donmeEfekti { 0% { transform: rotateY(0deg); } 10% { transform: rotateY(360deg); } 100% { transform: rotateY(360deg); } }
.skill-item:nth-child(1) { animation-delay: 0s; }
.skill-item:nth-child(2) { animation-delay: 2s; }
.skill-item:nth-child(3) { animation-delay: 4s; }