/* Genel ayarlar */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: #0a0f2b; /* koyu mavi arkaplan */
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ARKA PLAN PARÇACIKLARI */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* HERO */
.careers-page .hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90vh;
    /* Koyu mavi gradient */
    background: linear-gradient(135deg, #0b1a4a, #16265c);
    position: relative;
    overflow: hidden;
    z-index: 1;
}


.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease forwards;
    color: #fff;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3rem;
}

/* OPEN POSITIONS */
.open-positions {
    padding: 80px 20px;
    max-width: 1200px;
    margin: auto;
    z-index: 1;
    position: relative;
}

.open-positions h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    background: linear-gradient(90deg, #00bfff, #1e90ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.job-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.job-item {
    background: #0f1a40;
    padding: 30px 25px;
    border-radius: 15px;
    flex: 1 1 300px;
    box-shadow: 0 10px 30px rgba(0,191,255,0.3);
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.job-item.visible {
    transform: translateY(0);
    opacity: 1;
}

.job-item:hover {
    box-shadow: 0 15px 35px rgba(0,191,255,0.6);
    transform: translateY(-5px);
}

.job-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #00bfff;
}

.job-item p {
    margin: 5px 0;
}

.apply-btn {
    display: inline-block;
    margin-top: 15px;
    background: #1e90ff;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}

.apply-btn:hover {
    background: #00bfff;
    transform: scale(1.05);
}

/* CTA */
.cta {
    background: #0a0f2b;
    text-align: center;
    padding: 80px 20px;
    margin-top: 50px;
    border-top: 2px solid #00bfff;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta .apply-btn {
    background: #00bfff;
}

.cta .apply-btn:hover {
    background: #1e90ff;
}

/* ANIMATIONS */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .job-list {
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}
document.addEventListener("DOMContentLoaded", () => {
    const jobs = document.querySelectorAll(".job-item");

    // Hover animasyonu
    jobs.forEach(job => {
        job.addEventListener("mouseenter", () => job.style.backgroundColor = "#16265c");
        job.addEventListener("mouseleave", () => job.style.backgroundColor = "#0f1a40");
    });

    // Scroll animasyonu
    const observer = new IntersectionObserver(entries => {
        entries.forEach(entry => {
            if(entry.isIntersecting) {
                entry.target.classList.add("visible");
            }
        });
    }, { threshold: 0.2 });

    jobs.forEach(job => observer.observe(job));

    // Particles.js tarzı basit arka plan hareketi
    const particleCount = 50;
    for(let i = 0; i < particleCount; i++) {
        let particle = document.createElement("div");
        particle.classList.add("particle");
        particle.style.left = Math.random() * 100 + "vw";
        particle.style.top = Math.random() * 100 + "vh";
        particle.style.width = particle.style.height = (Math.random() * 4 + 2) + "px";
        particle.style.background = "rgba(0,191,255,0.7)";
        particle.style.position = "fixed";
        particle.style.borderRadius = "50%";
        particle.style.zIndex = "0";
        particle.style.animation = `float ${Math.random()*10 + 5}s infinite`;
        document.body.appendChild(particle);
    }
});
